Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update polkadot dependencies to latest #483

Merged
merged 9 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:

strategy:
matrix:
image: ['latest-rc']
image: ['latest-master']
required: ['optional']
include:
- image: 'latest-develop'
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:

strategy:
matrix:
image: ['latest-rc']
image: ['latest-master']
required: ['required']
include:
- image: 'latest-develop'
Expand Down
353 changes: 339 additions & 14 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions packages/chain-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
"@kiltprotocol/config": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^6.11.1",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/util": "^8.1.2",
"@polkadot/api": "^7.10.1",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"@polkadot/util": "^8.4.1",
"typescript-logging": "^0.6.4"
}
}
1 change: 1 addition & 0 deletions packages/chain-helpers/src/blockchain/Blockchain.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export async function submitSignedTx(
status:
latestResult.status ||
api.registry.createType('ExtrinsicStatus', 'future'),
txHash: api.registry.createType('Hash'),
})
subscription(result)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/chain-helpers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export { ErrorHandler } from './errorhandling/index.js'
export { BlockchainApiConnection } from './blockchainApiConnection/index.js'
export {
Expand Down
1 change: 1 addition & 0 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"dependencies": {
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api-augment": "^7.10.1",
"typescript-logging": "^0.6.4"
}
}
2 changes: 2 additions & 0 deletions packages/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export * as ConfigService from './ConfigService.js'
13 changes: 7 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
"@kiltprotocol/did": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^6.11.1",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/types-known": "^6.11.1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"@polkadot/api": "^7.10.1",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"@polkadot/types-known": "^7.10.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"tweetnacl": "^1.0.3",
"typescript-logging": "^0.6.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__integrationtests__/Ctypes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('When there is an CtypeCreator and a verifier', () => {
return CType.fromSchema({
$id: `kilt:ctype:0x${ctypeCounter}`,
$schema: 'http://kilt-protocol.org/draft-01/ctype#',
title: `ctype1${ctypeCounter}`,
title: `ctype${ctypeCounter}`,
properties: {
name: { type: 'string' },
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__integrationtests__/Deposit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ describe('Different deposits scenarios', () => {
)
).resolves.not.toThrow()
}, 120_000)
it.only('Check if claiming and releasing a web3 name correctly handles deposits', async () => {
it('Check if claiming and releasing a web3 name correctly handles deposits', async () => {
await expect(
checkWeb3Deposit(testIdentities[9], testFullDidTen, keystore)
).resolves.toBeTruthy()
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export { Attestation, AttestationUtils } from './attestation/index.js'
export { Credential, CredentialUtils } from './credential/index.js'
export { Balance, BalanceUtils } from './balance/index.js'
Expand Down
11 changes: 6 additions & 5 deletions packages/did/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
"@kiltprotocol/config": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api": "^6.11.1",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"@polkadot/api": "^7.10.1",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"cbor": "^8.0.2"
}
}
2 changes: 2 additions & 0 deletions packages/did/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export * from './DemoKeystore/index.js'
export * from './DidDetails/index.js'
export * from './DidBatcher/index.js'
Expand Down
3 changes: 2 additions & 1 deletion packages/messaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@kiltprotocol/did": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/util": "^8.1.2"
"@polkadot/api-augment": "^7.10.1",
"@polkadot/util": "^8.4.1"
}
}
2 changes: 2 additions & 0 deletions packages/messaging/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export * from './Message.js'
export * from './Message.utils.js'
3 changes: 2 additions & 1 deletion packages/sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@kiltprotocol/did": "workspace:*",
"@kiltprotocol/messaging": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*"
"@kiltprotocol/utils": "workspace:*",
"@polkadot/api-augment": "^7.10.1"
}
}
2 changes: 2 additions & 0 deletions packages/sdk-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export * from '@kiltprotocol/core'
export { Message } from '@kiltprotocol/messaging'
export * as Messaging from '@kiltprotocol/messaging'
Expand Down
5 changes: 3 additions & 2 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
"homepage": "https://github.com/KILTprotocol/sdk-js#readme",
"dependencies": {
"@kiltprotocol/types": "workspace:*",
"@polkadot/api": "^6.11.1",
"@polkadot/types": "^6.11.1"
"@polkadot/api": "^7.10.1",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/types": "^7.10.1"
},
"devDependencies": {
"rimraf": "^3.0.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/testing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export * as ApiMocks from './mocks/index.js'
1 change: 1 addition & 0 deletions packages/testing/src/mocks/mockedApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ function makeSubmittableResult(
},
} as any,
],
txHash: registry.createType('Hash'),
})
}

Expand Down
5 changes: 1 addition & 4 deletions packages/testing/src/mocks/mockedApi.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ import { createRegistryFromMetadata } from './typeRegistry.js'

const TYPE_REGISTRY = createRegistryFromMetadata()

const chainProperties = TYPE_REGISTRY.createType('ChainProperties', {
ss58Format: 38,
})
TYPE_REGISTRY.setChainProperties(chainProperties)
TYPE_REGISTRY.setChainProperties(TYPE_REGISTRY.getChainProperties())

const AccountId = TYPE_REGISTRY.getOrThrow('AccountId')

Expand Down
4 changes: 3 additions & 1 deletion packages/testing/src/mocks/typeRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import type { HexString } from '@polkadot/util/types'

import { ApiPromise, WsProvider } from '@polkadot/api'
import { Metadata, TypeRegistry } from '@polkadot/types'

Expand All @@ -13,7 +15,7 @@ import metaStatic from './metadata/spiritnet.json'
// adapted from https://github.com/polkadot-js/apps/blob/master/packages/test-support/src/api/createAugmentedApi.ts
export type StaticMetadata =
| Uint8Array
| string
| HexString
| Map<string, unknown>
| Record<string, unknown>

Expand Down
7 changes: 4 additions & 3 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
"bugs": "https://github.com/KILTprotocol/sdk-js/issues",
"homepage": "https://github.com/KILTprotocol/sdk-js#readme",
"dependencies": {
"@polkadot/api": "^6.11.1",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/api": "^7.10.1",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"tweetnacl": "^1.0.3"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

export type { ISubmittableResult } from '@polkadot/types/types'
export type { SubmittableExtrinsic } from '@polkadot/api/promise/types'
export type { KeyringPair } from '@polkadot/keyring/types'
Expand Down
9 changes: 5 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
},
"dependencies": {
"@kiltprotocol/types": "workspace:*",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"tweetnacl": "^1.0.3",
"uuid": "^8.1.0"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

import * as jsonabcCjs from './jsonabc.cjs'

export const jsonabc = jsonabcCjs
Expand Down
9 changes: 5 additions & 4 deletions packages/vc-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@
"@kiltprotocol/did": "workspace:*",
"@kiltprotocol/types": "workspace:*",
"@kiltprotocol/utils": "workspace:*",
"@polkadot/keyring": "^8.1.2",
"@polkadot/types": "^6.11.1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"@polkadot/api-augment": "^7.10.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "^7.10.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"jsonld": "^2.0.2",
"jsonld-signatures": "^5.0.0",
"vc-js": "^0.6.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/vc-export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import '@polkadot/api-augment'

import type * as types from './types.js'

export * as verification from './verificationUtils.js'
Expand Down
Loading