diff --git a/centrifuge-js/package.json b/centrifuge-js/package.json index 4474400936..4db4173359 100644 --- a/centrifuge-js/package.json +++ b/centrifuge-js/package.json @@ -33,9 +33,9 @@ "@ethersproject/bignumber": "^5.7.0", "@ethersproject/contracts": "^5.6.0", "@ethersproject/providers": "^5.6.0", - "@polkadot/api": "~12.0.1", + "@polkadot/api": "~12.1.1", "@polkadot/keyring": "^11.1.3", - "@polkadot/types": "~12.0.1", + "@polkadot/types": "~12.1.1", "@stablelib/blake2b": "^1.0.1", "clp-wasm": "^0.0.15", "decimal.js-light": "^2.5.1", diff --git a/centrifuge-js/src/CentrifugeBase.ts b/centrifuge-js/src/CentrifugeBase.ts index 20e00b16f8..d843c30cd8 100644 --- a/centrifuge-js/src/CentrifugeBase.ts +++ b/centrifuge-js/src/CentrifugeBase.ts @@ -413,7 +413,9 @@ export class CentrifugeBase { if (options?.signOnly) { return $checkBalance.pipe( - switchMap(() => actualSubmittable.signAsync(signingAddress, { signer, era: options?.era })) + switchMap(() => + actualSubmittable.signAsync(signingAddress, { signer, era: options?.era, withSignedTransaction: true }) + ) ) } @@ -421,7 +423,13 @@ export class CentrifugeBase { options?.sendOnly ? actualSubmittable.send() : $checkBalance.pipe( - switchMap(() => actualSubmittable.signAndSend(signingAddress, { signer, era: options?.era })) + switchMap(() => + actualSubmittable.signAndSend(signingAddress, { + signer, + era: options?.era, + withSignedTransaction: true, + }) + ) ) ).pipe( map((result) => { diff --git a/centrifuge-react/package.json b/centrifuge-react/package.json index 359f4770fd..8e8a01ec4e 100644 --- a/centrifuge-react/package.json +++ b/centrifuge-react/package.json @@ -53,7 +53,7 @@ "@finoa/finoa-connect-sdk": "^1.0.1", "@polkadot/extension-dapp": "~0.45.5", "@polkadot/react-identicon": "~3.1.4", - "@polkadot/types": "~12.0.1", + "@polkadot/types": "~12.1.1", "@subwallet/wallet-connect": "0.2.5", "@types/bn.js": "^5", "@walletconnect/ethereum-provider": "^2.12.2", diff --git a/package.json b/package.json index 9470dcc002..d3195e5b19 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "typescript": "~5.3.3" }, "dependencies": { - "@polkadot/api": "~12.0.1", - "@polkadot/types": "~12.0.1", + "@polkadot/api": "~12.1.1", + "@polkadot/types": "~12.1.1", "@polkadot/util-crypto": "^11.1.3", "@sendgrid/mail": "^7.7.0", "bn.js": "^5.2.1", diff --git a/yarn.lock b/yarn.lock index d6257c00a3..25b498f4c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1796,9 +1796,9 @@ __metadata: "@ethersproject/bignumber": ^5.7.0 "@ethersproject/contracts": ^5.6.0 "@ethersproject/providers": ^5.6.0 - "@polkadot/api": ~12.0.1 + "@polkadot/api": ~12.1.1 "@polkadot/keyring": ^11.1.3 - "@polkadot/types": ~12.0.1 + "@polkadot/types": ~12.1.1 "@stablelib/blake2b": ^1.0.1 "@types/isomorphic-fetch": ^0.0.36 "@types/jest": ^27.0.3 @@ -1836,7 +1836,7 @@ __metadata: "@mdx-js/react": ^1.6.22 "@polkadot/extension-dapp": ~0.45.5 "@polkadot/react-identicon": ~3.1.4 - "@polkadot/types": ~12.0.1 + "@polkadot/types": ~12.1.1 "@subwallet/wallet-connect": 0.2.5 "@types/bn.js": ^5 "@types/eslint": ^7 @@ -4657,18 +4657,18 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/api-augment@npm:12.0.1" +"@polkadot/api-augment@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/api-augment@npm:12.1.1" dependencies: - "@polkadot/api-base": 12.0.1 - "@polkadot/rpc-augment": 12.0.1 - "@polkadot/types": 12.0.1 - "@polkadot/types-augment": 12.0.1 - "@polkadot/types-codec": 12.0.1 + "@polkadot/api-base": 12.1.1 + "@polkadot/rpc-augment": 12.1.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-augment": 12.1.1 + "@polkadot/types-codec": 12.1.1 "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: 392e3582cf6732b3da7888120622b8c20c3f59ac9114ccc5f0b194fe00558c52f9bfd8f7dd044591e4fae59edd81921cd4e10232bd4ed072ab8cd7183437056c + checksum: 9d6fbc8e139a89ece2ea35c3dd90aeea2bf3b44a74e921089bdd00fec982871f2a77e28ff09c8b226dd790aead5dac5e66a0d9572ed25c81b1dec816a2965f68 languageName: node linkType: hard @@ -4685,16 +4685,16 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-base@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/api-base@npm:12.0.1" +"@polkadot/api-base@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/api-base@npm:12.1.1" dependencies: - "@polkadot/rpc-core": 12.0.1 - "@polkadot/types": 12.0.1 + "@polkadot/rpc-core": 12.1.1 + "@polkadot/types": 12.1.1 "@polkadot/util": ^12.6.2 rxjs: ^7.8.1 tslib: ^2.6.2 - checksum: ef8f1b9d7afe1b667b132b1bf993d6fe8214ac589a24559cd241b0ed98c8aceaa89d713fbad83af2b6fbf4c7c8202d205e30dc65729ef3b763cf6947f6d240f0 + checksum: 131a90d848e94682396834e1a1d4f3eaa360f4880a87d68b9aded76b788d7162546bfca13e48412fb5c724ab9dbd99c70d53eb6ebb845d4e052dbbf397d7a603 languageName: node linkType: hard @@ -4716,21 +4716,21 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-derive@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/api-derive@npm:12.0.1" +"@polkadot/api-derive@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/api-derive@npm:12.1.1" dependencies: - "@polkadot/api": 12.0.1 - "@polkadot/api-augment": 12.0.1 - "@polkadot/api-base": 12.0.1 - "@polkadot/rpc-core": 12.0.1 - "@polkadot/types": 12.0.1 - "@polkadot/types-codec": 12.0.1 + "@polkadot/api": 12.1.1 + "@polkadot/api-augment": 12.1.1 + "@polkadot/api-base": 12.1.1 + "@polkadot/rpc-core": 12.1.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-codec": 12.1.1 "@polkadot/util": ^12.6.2 "@polkadot/util-crypto": ^12.6.2 rxjs: ^7.8.1 tslib: ^2.6.2 - checksum: 9d83e006130612ea3669dac122541428d2b7d43a1ba9c24d1729a02078f23793fdc278c5ab9822571624c16b6abe348989e4719f4fdfbb7168b3f42f6a0c2d86 + checksum: 37657fed3b5b28550a9018afed8a2d95d19c6d66e28dcf92385e88d9004e5ce7168d5a2d7888e32196f89f03b02ac91c00f3f1e8af47df5d4f9a6f8dd24c40c8 languageName: node linkType: hard @@ -4759,28 +4759,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/api@npm:12.0.1, @polkadot/api@npm:~12.0.1": - version: 12.0.1 - resolution: "@polkadot/api@npm:12.0.1" +"@polkadot/api@npm:12.1.1, @polkadot/api@npm:~12.1.1": + version: 12.1.1 + resolution: "@polkadot/api@npm:12.1.1" dependencies: - "@polkadot/api-augment": 12.0.1 - "@polkadot/api-base": 12.0.1 - "@polkadot/api-derive": 12.0.1 + "@polkadot/api-augment": 12.1.1 + "@polkadot/api-base": 12.1.1 + "@polkadot/api-derive": 12.1.1 "@polkadot/keyring": ^12.6.2 - "@polkadot/rpc-augment": 12.0.1 - "@polkadot/rpc-core": 12.0.1 - "@polkadot/rpc-provider": 12.0.1 - "@polkadot/types": 12.0.1 - "@polkadot/types-augment": 12.0.1 - "@polkadot/types-codec": 12.0.1 - "@polkadot/types-create": 12.0.1 - "@polkadot/types-known": 12.0.1 + "@polkadot/rpc-augment": 12.1.1 + "@polkadot/rpc-core": 12.1.1 + "@polkadot/rpc-provider": 12.1.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-augment": 12.1.1 + "@polkadot/types-codec": 12.1.1 + "@polkadot/types-create": 12.1.1 + "@polkadot/types-known": 12.1.1 "@polkadot/util": ^12.6.2 "@polkadot/util-crypto": ^12.6.2 eventemitter3: ^5.0.1 rxjs: ^7.8.1 tslib: ^2.6.2 - checksum: 0e8efece8adc3adf49978884b1046b4659f803d88aa5217bc89371c35145cb181b75337ac182ff1ef5149a67f0d73b422923c1cdddc40d0b292b77b099142767 + checksum: 02ed01bde28b223d15a77c07e9cb3308633252d3dde24c1f5cdf7d5a34d1b7a95e75c8d96788ed6a04a76e89c6e8c4bd18e487f6dd9f038ec9546faa338ba40b languageName: node linkType: hard @@ -5034,16 +5034,16 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-augment@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/rpc-augment@npm:12.0.1" +"@polkadot/rpc-augment@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/rpc-augment@npm:12.1.1" dependencies: - "@polkadot/rpc-core": 12.0.1 - "@polkadot/types": 12.0.1 - "@polkadot/types-codec": 12.0.1 + "@polkadot/rpc-core": 12.1.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-codec": 12.1.1 "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: 44473672c3eebfa5fe0d55bb0fd816cfc4575804860d6f0fe3f1e802bc91d7bf11bc5d3eeec878025ed8bbf89c9e08c3016da8bef7323c49a358ce26dcd71207 + checksum: 148620f739289f34ebacd5bc0d93f2b38dbdf906204aebe02b64a67d1e3bb31de970748bf97c3df2a98034a39518d7e9d5ff00d50e66825859314b7e4444059d languageName: node linkType: hard @@ -5061,17 +5061,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/rpc-core@npm:12.0.1" +"@polkadot/rpc-core@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/rpc-core@npm:12.1.1" dependencies: - "@polkadot/rpc-augment": 12.0.1 - "@polkadot/rpc-provider": 12.0.1 - "@polkadot/types": 12.0.1 + "@polkadot/rpc-augment": 12.1.1 + "@polkadot/rpc-provider": 12.1.1 + "@polkadot/types": 12.1.1 "@polkadot/util": ^12.6.2 rxjs: ^7.8.1 tslib: ^2.6.2 - checksum: 78cdd9348a791673f3de43ebd92056d54d61259e51e6ea8cb221179dfa85e153e4e9624e77bf9e0ab696b79c2abfbf2c75125728c0475bc8ca32dadf2832f3b6 + checksum: 94605eebfda95e2532f2d73826130ad48559626aba0a916f6c608d3671fa141c33d0795907c42c4e4b5605c3377313b2dea51d140c50cf7feb3c73a6db29486a languageName: node linkType: hard @@ -5099,13 +5099,13 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-provider@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/rpc-provider@npm:12.0.1" +"@polkadot/rpc-provider@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/rpc-provider@npm:12.1.1" dependencies: "@polkadot/keyring": ^12.6.2 - "@polkadot/types": 12.0.1 - "@polkadot/types-support": 12.0.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-support": 12.1.1 "@polkadot/util": ^12.6.2 "@polkadot/util-crypto": ^12.6.2 "@polkadot/x-fetch": ^12.6.2 @@ -5119,7 +5119,7 @@ __metadata: dependenciesMeta: "@substrate/connect": optional: true - checksum: ad06bd63e631da155c0e7452b565e49620c2a10d8c7517c3977b3bab73476c0b5a7af64553f89a0b6af14a66ee6f18fb0de1fcbe0218f85e3262de8335c481de + checksum: eabbb2409d61f8bb4502ff0911bb660692236bcbe379fa6a4943ec15c03366046ee1c9827de971a36c256feb7c90ba370e23cf927217eb29b0b7d8e985b1b510 languageName: node linkType: hard @@ -5156,15 +5156,15 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-augment@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/types-augment@npm:12.0.1" +"@polkadot/types-augment@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/types-augment@npm:12.1.1" dependencies: - "@polkadot/types": 12.0.1 - "@polkadot/types-codec": 12.0.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-codec": 12.1.1 "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: 69068c6768602448e88e7fdb894cf36e6a418e75f5da3cff8fe268c8732756e0f3475387e872002ee42d0b3f19250e4077d1d783088e8ab3e7926abe578ba355 + checksum: 7d31056cf6d33c8e876638be1705dcdaa3f1e817117d47b166ecc627f185a8eae985b3c6a69a47bdd6f2f80db6356ff09e8d3b00fda24b426debd919b75ef9cb languageName: node linkType: hard @@ -5191,14 +5191,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-codec@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/types-codec@npm:12.0.1" +"@polkadot/types-codec@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/types-codec@npm:12.1.1" dependencies: "@polkadot/util": ^12.6.2 "@polkadot/x-bigint": ^12.6.2 tslib: ^2.6.2 - checksum: c8ce91e741d86b3c85bca9eda80215532531cab8b4fae7053c9c159d22b147205e97ae23dc04fc539905cf81ef37962edc48a34667c0ae072bb27112f0431a10 + checksum: 25095bb7a38718c531b1799dcf8d2cc9b566d231f43370f5c40e70e8ab07efbc1cc4d2f2285ea3d2bfc47e1924c285d03a3239a71836825b3846d84f8895836f languageName: node linkType: hard @@ -5224,14 +5224,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-create@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/types-create@npm:12.0.1" +"@polkadot/types-create@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/types-create@npm:12.1.1" dependencies: - "@polkadot/types-codec": 12.0.1 + "@polkadot/types-codec": 12.1.1 "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: 4f89a171f53c5a032974c574a35212b9073585a58a7b09c5d01572ebe1263c3f139210dba71add90eaa53c875ec7e48f1a3c8d67b37e418793f9ce8e3171ee01 + checksum: 91ea6607567ca632b1dfa3c36cf1b7fb659e5b74bdb0f323c89d8563b3e0257af6f4b1b94be48bd09acf9c43906718952c0f1e76572f6e51ca50f72fd4a00fab languageName: node linkType: hard @@ -5260,17 +5260,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-known@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/types-known@npm:12.0.1" +"@polkadot/types-known@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/types-known@npm:12.1.1" dependencies: "@polkadot/networks": ^12.6.2 - "@polkadot/types": 12.0.1 - "@polkadot/types-codec": 12.0.1 - "@polkadot/types-create": 12.0.1 + "@polkadot/types": 12.1.1 + "@polkadot/types-codec": 12.1.1 + "@polkadot/types-create": 12.1.1 "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: e39a66bb231f4f8ae198290ed5e1333bc054d71248177046351f091e49b9f4a2484ef0337161449d1ad0cdf00bc88d5804a31181a78f08e20b078e5bb509a36c + checksum: 505dc8a26a1332f85c7b119880dd3fdbd04ad04b7759065630600f8451cea659ebf79a7ee22266bbfa085eaaef3c47ad54c1040b4ecd1aaa02fef234f0a5c873 languageName: node linkType: hard @@ -5284,13 +5284,13 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-support@npm:12.0.1": - version: 12.0.1 - resolution: "@polkadot/types-support@npm:12.0.1" +"@polkadot/types-support@npm:12.1.1": + version: 12.1.1 + resolution: "@polkadot/types-support@npm:12.1.1" dependencies: "@polkadot/util": ^12.6.2 tslib: ^2.6.2 - checksum: 3f01a225a342ff49bb75d6fed819bf96fefeb45057a9f1b2dade76786b04d850a92f2d7b236c54c8f9e9370db587cc250a2712a37c8935d4c079336967327307 + checksum: 87fdecb7f1bbdbbf9e82420a7577d5f35004ba451074ef35946e359b5395e324a9b2887b0236946e8563f9346c85f72d79e64a32dbaea1d565413b6ccda48ed7 languageName: node linkType: hard @@ -5320,19 +5320,19 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:12.0.1, @polkadot/types@npm:~12.0.1": - version: 12.0.1 - resolution: "@polkadot/types@npm:12.0.1" +"@polkadot/types@npm:12.1.1, @polkadot/types@npm:~12.1.1": + version: 12.1.1 + resolution: "@polkadot/types@npm:12.1.1" dependencies: "@polkadot/keyring": ^12.6.2 - "@polkadot/types-augment": 12.0.1 - "@polkadot/types-codec": 12.0.1 - "@polkadot/types-create": 12.0.1 + "@polkadot/types-augment": 12.1.1 + "@polkadot/types-codec": 12.1.1 + "@polkadot/types-create": 12.1.1 "@polkadot/util": ^12.6.2 "@polkadot/util-crypto": ^12.6.2 rxjs: ^7.8.1 tslib: ^2.6.2 - checksum: 37846996daa37d332f36098704259bbebfbbe597bb10731a4e7532e04c0792773b87512494119e54fe9d6a9854e7d348316d13fdfb908435c7ffba33e86f6513 + checksum: a84bb90cd7005350df14378d64ea936b23f4d4a6b4c7943436183a23b18bfe133ce18b738fb333a8e4736b7cf86c1ddcce0ea21cfc26014a22c3aadf031a401e languageName: node linkType: hard @@ -25162,8 +25162,8 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@polkadot/api": ~12.0.1 - "@polkadot/types": ~12.0.1 + "@polkadot/api": ~12.1.1 + "@polkadot/types": ~12.1.1 "@polkadot/util-crypto": ^11.1.3 "@sendgrid/mail": ^7.7.0 "@types/bn.js": ^5.1.1