Skip to content

Commit

Permalink
Merge pull request #19 from amarts/v0.7.4
Browse files Browse the repository at this point in the history
changes from cord-poa branch (v0.7.4)
  • Loading branch information
smohan-dw authored Jul 4, 2022
2 parents 8ae4c8e + ad5dd3f commit 62b24b0
Show file tree
Hide file tree
Showing 122 changed files with 3,721 additions and 6,716 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
devDependencies: [
'**/*.test.ts',
'**/*.spec.ts',
'**/__integrationtests__/*',
'**/webpack.config.js',
],
},
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ yarn-error.log*
!.yarn/sdks
.yarn/versions
.pnp.*

.yarnrc.yml

# testing
coverage
Expand Down
6 changes: 0 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
enableColors: true

enableInlineBuilds: true

enableProgressBars: true

nodeLinker: node-modules

npmPublishAccess: public

npmPublishRegistry: 'https://registry.npmjs.org'

plugins:
- path: .yarn/plugins/@ojkelly/plugin-all.cjs
spec: 'https://yarn.build/latest'
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Provides a collection of classes and methods to interact with the Cord network.
Install the SDK by running the following commands:

```bash
npm install @cord.network/api
npm install @cord.network/sdk
```

Or with `yarn`:

```bash
yarn add @cord.network/api
yarn add @cord.network/sdk
```

## Build to see changes
Expand Down
2 changes: 1 addition & 1 deletion demo/res/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"type": "string"
},
"credit": {
"type": "integer"
"type": "integer"
}
},
"type": "object"
Expand Down
10 changes: 7 additions & 3 deletions demo/src/bench.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import * as cord from '@cord.network/api'
import * as utils from './utils'
import * as cord from '@cord.network/sdk'
import BN from 'bn.js'
import moment from 'moment'
import Keyring from '@polkadot/keyring'

const amount: BN = new BN('1')

function delay(ms: number) {
return new Promise((resolve) => setTimeout(resolve, ms))
}

async function main() {
await cord.init({ address: 'ws://127.0.0.1:9944' })

Expand Down Expand Up @@ -58,6 +61,7 @@ async function main() {
} catch (e: any) {
console.log(e.errorCode, '-', e.message)
}
delay(4000)
}

let ancEndTime = moment()
Expand Down Expand Up @@ -93,7 +97,7 @@ async function main() {
txCount / batchAncDuration.as('seconds')
).toFixed(0)} `
)
await utils.waitForEnter('\n⏎ Press Enter to continue..')
delay(4000)
}

main()
Expand Down
Loading

0 comments on commit 62b24b0

Please sign in to comment.