diff --git a/package.json b/package.json index 432b5dcc9..5dfaa521d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@polkadot/wasm-crypto": "^1.4.1", "babel-core": "^7.0.0-bridge.0", "typescript": "^3.8.3", - "@darwinia/types": "2.6.100-3" + "@darwinia/types": "2.6.100-4" }, "scripts": { "analyze": "yarn run build && cd packages/apps && yarn run source-map-explorer build/main.*.js", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index fd447a520..70796e156 100755 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@darwinia/types-known": "2.6.100-3", + "@darwinia/types-known": "2.6.100-4", "@polkadot/types": "1.35.0-beta.19", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", diff --git a/packages/page-settings/package.json b/packages/page-settings/package.json index 68ca946ee..7a148a1a1 100644 --- a/packages/page-settings/package.json +++ b/packages/page-settings/package.json @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.9.6", - "@darwinia/types-known": "2.6.100-3", + "@darwinia/types-known": "2.6.100-4", "@polkadot/apps-config": "0.42.0-beta.100", "@polkadot/react-components": "0.42.0-beta.100", "@polkadot/react-query": "0.42.0-beta.100", diff --git a/packages/page-staking-darwinia/package.json b/packages/page-staking-darwinia/package.json index 5cb0ba2ec..52750db29 100755 --- a/packages/page-staking-darwinia/package.json +++ b/packages/page-staking-darwinia/package.json @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.9.6", - "@darwinia/types": "2.6.100-3", + "@darwinia/types": "2.6.100-4", "@polkadot/app-explorer": "0.42.0-beta.100", "@polkadot/react-components-darwinia": "0.42.0-beta.100", "@polkadot/react-query": "0.42.0-beta.100" diff --git a/packages/react-api/package.json b/packages/react-api/package.json index 97e725397..5550d4f58 100644 --- a/packages/react-api/package.json +++ b/packages/react-api/package.json @@ -31,7 +31,7 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.9.6", - "@darwinia/types-known": "2.6.100-3", + "@darwinia/types-known": "2.6.100-4", "@polkadot/api": "1.35.0-beta.19", "@polkadot/extension-dapp": "^0.25.0-beta.4", "rxjs-compat": "^6.6.2" diff --git a/packages/types/src/interfaces/bridges/definitions.ts b/packages/types/src/interfaces/bridges/definitions.ts index 2064dd457..e5b793283 100644 --- a/packages/types/src/interfaces/bridges/definitions.ts +++ b/packages/types/src/interfaces/bridges/definitions.ts @@ -12,6 +12,7 @@ export default { BridgedBlockHash: 'H256', BridgedBlockNumber: 'BlockNumber', BridgedHeader: 'Header', + BridgeMessageId: '(LaneId, MessageNonce)', CallOrigin: { _enum: { SourceRoot: 'Null', diff --git a/packages/types/src/interfaces/bridges/types.ts b/packages/types/src/interfaces/bridges/types.ts index 13d3d77db..f547a27b6 100644 --- a/packages/types/src/interfaces/bridges/types.ts +++ b/packages/types/src/interfaces/bridges/types.ts @@ -30,6 +30,9 @@ export interface BridgedBlockNumber extends MillauBlockNumber {} /** @name BridgedHeader */ export interface BridgedHeader extends MillauHeader {} +/** @name BridgeMessageId */ +export interface BridgeMessageId extends ITuple<[LaneId, MessageNonce]> {} + /** @name BridgedOpaqueCall */ export interface BridgedOpaqueCall extends Bytes {} diff --git a/yarn.lock b/yarn.lock index 55ac96ded..b1487c4c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1408,24 +1408,24 @@ __metadata: languageName: node linkType: hard -"@darwinia/types-known@npm:2.6.100-3, @darwinia/types-known@npm:^2.6.100-3": - version: 2.6.100-3 - resolution: "@darwinia/types-known@npm:2.6.100-3" +"@darwinia/types-known@npm:2.6.100-4, @darwinia/types-known@npm:^2.6.100-4": + version: 2.6.100-4 + resolution: "@darwinia/types-known@npm:2.6.100-4" dependencies: "@babel/runtime": ^7.9.6 "@polkadot/types": 4.0.4-5 "@polkadot/util": 6.0.5 bn.js: ^5.1.2 - checksum: 6d6751660236a3ef20205c01411eecd9cc1c37e9d4b9dde9d4193410c91c913d747b78f34063abf7687c75cf9ed441ae7ca5c4d7f7df296f828b815887b611eb + checksum: 6f14a1d25e8478ea2cdabce8ef35f764c2cde14b9f3fe5872198ee369a640102e238464ff28d04c55cffb75982e24a13619c507968ce828d3d2750d88a36ceff languageName: node linkType: hard -"@darwinia/types@npm:2.6.100-3": - version: 2.6.100-3 - resolution: "@darwinia/types@npm:2.6.100-3" +"@darwinia/types@npm:2.6.100-4": + version: 2.6.100-4 + resolution: "@darwinia/types@npm:2.6.100-4" dependencies: - "@darwinia/types-known": ^2.6.100-3 - checksum: 4d8dc8cd1356bc5477fd46f0b0f896636a3b3ddc2c17324a8e7baf05cd07f1c5d28e1e05c94f29380d60c42def4df8fee5b952efce98b5420309d8ac3a2107a7 + "@darwinia/types-known": ^2.6.100-4 + checksum: e2f84687d5f0039b50026d298de2b6309153ebd4d441872382ca07304a246c97062abc3e20ed6b0220a247c7fabd034820c38e38eb883beb8cfc2c9e768b78f0 languageName: node linkType: hard @@ -3264,7 +3264,7 @@ __metadata: resolution: "@polkadot/app-settings@workspace:packages/page-settings" dependencies: "@babel/runtime": ^7.9.6 - "@darwinia/types-known": 2.6.100-3 + "@darwinia/types-known": 2.6.100-4 "@polkadot/apps-config": 0.42.0-beta.100 "@polkadot/react-components": 0.42.0-beta.100 "@polkadot/react-query": 0.42.0-beta.100 @@ -3286,7 +3286,7 @@ __metadata: resolution: "@polkadot/app-staking-darwinia@workspace:packages/page-staking-darwinia" dependencies: "@babel/runtime": ^7.9.6 - "@darwinia/types": 2.6.100-3 + "@darwinia/types": 2.6.100-4 "@polkadot/app-explorer": 0.42.0-beta.100 "@polkadot/react-components-darwinia": 0.42.0-beta.100 "@polkadot/react-query": 0.42.0-beta.100 @@ -3535,7 +3535,7 @@ __metadata: resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.11.2 - "@darwinia/types-known": 2.6.100-3 + "@darwinia/types-known": 2.6.100-4 "@polkadot/keyring": ^3.5.1 "@polkadot/types": 1.35.0-beta.19 "@polkadot/util": ^3.5.1 @@ -3549,7 +3549,7 @@ __metadata: resolution: "@polkadot/react-api@workspace:packages/react-api" dependencies: "@babel/runtime": ^7.9.6 - "@darwinia/types-known": 2.6.100-3 + "@darwinia/types-known": 2.6.100-4 "@polkadot/api": 1.35.0-beta.19 "@polkadot/extension-dapp": ^0.25.0-beta.4 rxjs-compat: ^6.6.2