diff --git a/.pnp.cjs b/.pnp.cjs index b89637238..56607671a 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -144,51 +144,51 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], [ "@cosmjs/amino", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/cosmwasm-stargate", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/crypto", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/encoding", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/json-rpc", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/math", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/proto-signing", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/socket", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/stargate", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/stream", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/tendermint-rpc", - "npm:0.28.4" + "npm:0.29.0" ], [ "@cosmjs/utils", - "npm:0.28.4" + "npm:0.29.0" ], [ "@discoveryjs/json-ext", @@ -832,7 +832,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], [ "cosmjs-types", - "npm:0.4.0" + "npm:0.5.1" ], [ "create-ecdh", @@ -1512,7 +1512,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], [ "isomorphic-ws", - "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:4.0.1" + "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:4.0.1" ], [ "istanbul-lib-coverage", @@ -1632,7 +1632,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], [ "lbmjs-types", - "npm:0.46.0-rc7" + "npm:0.46.0-rc8" ], [ "levn", @@ -2528,7 +2528,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], [ "ws", - "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:7.5.7" + "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:7.5.7" ], [ "xstream", @@ -2564,10 +2564,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { [null, { "packageLocation": "./", "packageDependencies": [ - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/stargate", "npm:0.28.4"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/stargate", "npm:0.29.0"], ["@lbmjs/finschia", "workspace:packages/finschia"], ["eslint", "npm:7.32.0"], ["karma-chrome-launcher", "npm:3.1.0"], @@ -2911,47 +2911,46 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@cosmjs/amino", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-amino-npm-0.28.4-4ff8dafb8e-f84e6968d9.zip/node_modules/@cosmjs/amino/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-amino-npm-0.29.0-6844ffbe00-372e3ef9a5.zip/node_modules/@cosmjs/amino/", "packageDependencies": [ - ["@cosmjs/amino", "npm:0.28.4"], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"] + ["@cosmjs/amino", "npm:0.29.0"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/cosmwasm-stargate", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.28.4-6628baefb3-6b1142c45f.zip/node_modules/@cosmjs/cosmwasm-stargate/", - "packageDependencies": [ - ["@cosmjs/cosmwasm-stargate", "npm:0.28.4"], - ["@cosmjs/amino", "npm:0.28.4"], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/stargate", "npm:0.28.4"], - ["@cosmjs/tendermint-rpc", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], - ["cosmjs-types", "npm:0.4.1"], + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.29.0-2dc0d73164-8a2be801a1.zip/node_modules/@cosmjs/cosmwasm-stargate/", + "packageDependencies": [ + ["@cosmjs/cosmwasm-stargate", "npm:0.29.0"], + ["@cosmjs/amino", "npm:0.29.0"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/stargate", "npm:0.29.0"], + ["@cosmjs/tendermint-rpc", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], + ["cosmjs-types", "npm:0.5.1"], ["long", "npm:4.0.0"], - ["pako", "npm:2.0.4"], - ["protobufjs", "npm:6.10.2"] + ["pako", "npm:2.0.4"] ], "linkType": "HARD", }] ]], ["@cosmjs/crypto", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-crypto-npm-0.28.4-a76962f744-2ea35cc3cc.zip/node_modules/@cosmjs/crypto/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-crypto-npm-0.29.0-aa375b78ca-d6f32d3e91.zip/node_modules/@cosmjs/crypto/", "packageDependencies": [ - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], ["@noble/hashes", "npm:1.0.0"], ["bn.js", "npm:5.2.0"], ["elliptic", "npm:6.5.4"], @@ -2961,10 +2960,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@cosmjs/encoding", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-encoding-npm-0.28.4-54d85e096e-7de561119c.zip/node_modules/@cosmjs/encoding/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-encoding-npm-0.29.0-75026f1167-70e9458eda.zip/node_modules/@cosmjs/encoding/", "packageDependencies": [ - ["@cosmjs/encoding", "npm:0.28.4"], + ["@cosmjs/encoding", "npm:0.29.0"], ["base64-js", "npm:1.5.1"], ["bech32", "npm:1.1.4"], ["readonly-date", "npm:1.0.0"] @@ -2973,99 +2972,98 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@cosmjs/json-rpc", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-json-rpc-npm-0.28.4-e29808fef6-d7b84452eb.zip/node_modules/@cosmjs/json-rpc/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-json-rpc-npm-0.29.0-7a30852b1a-1197a71d63.zip/node_modules/@cosmjs/json-rpc/", "packageDependencies": [ - ["@cosmjs/json-rpc", "npm:0.28.4"], - ["@cosmjs/stream", "npm:0.28.4"], + ["@cosmjs/json-rpc", "npm:0.29.0"], + ["@cosmjs/stream", "npm:0.29.0"], ["xstream", "npm:11.14.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/math", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-math-npm-0.28.4-af1914a3b5-89b7d263b4.zip/node_modules/@cosmjs/math/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-math-npm-0.29.0-536187b13e-b420a5f4e0.zip/node_modules/@cosmjs/math/", "packageDependencies": [ - ["@cosmjs/math", "npm:0.28.4"], + ["@cosmjs/math", "npm:0.29.0"], ["bn.js", "npm:5.2.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/proto-signing", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-proto-signing-npm-0.28.4-7e555775ea-9d6419b110.zip/node_modules/@cosmjs/proto-signing/", - "packageDependencies": [ - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/amino", "npm:0.28.4"], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], - ["cosmjs-types", "npm:0.4.1"], - ["long", "npm:4.0.0"], - ["protobufjs", "npm:6.10.2"] + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-proto-signing-npm-0.29.0-3425536e03-71c00cb526.zip/node_modules/@cosmjs/proto-signing/", + "packageDependencies": [ + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/amino", "npm:0.29.0"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], + ["cosmjs-types", "npm:0.5.1"], + ["long", "npm:4.0.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/socket", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-socket-npm-0.28.4-ea3972b601-1a27c010a5.zip/node_modules/@cosmjs/socket/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-socket-npm-0.29.0-3b08073185-b401227457.zip/node_modules/@cosmjs/socket/", "packageDependencies": [ - ["@cosmjs/socket", "npm:0.28.4"], - ["@cosmjs/stream", "npm:0.28.4"], - ["isomorphic-ws", "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:4.0.1"], - ["ws", "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:7.5.7"], + ["@cosmjs/socket", "npm:0.29.0"], + ["@cosmjs/stream", "npm:0.29.0"], + ["isomorphic-ws", "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:4.0.1"], + ["ws", "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:7.5.7"], ["xstream", "npm:11.14.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/stargate", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-stargate-npm-0.28.4-876af0bc19-ce3969a479.zip/node_modules/@cosmjs/stargate/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-stargate-npm-0.29.0-837cdf976c-fe814d740a.zip/node_modules/@cosmjs/stargate/", "packageDependencies": [ - ["@cosmjs/stargate", "npm:0.28.4"], + ["@cosmjs/stargate", "npm:0.29.0"], ["@confio/ics23", "npm:0.6.8"], - ["@cosmjs/amino", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/stream", "npm:0.28.4"], - ["@cosmjs/tendermint-rpc", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], - ["cosmjs-types", "npm:0.4.1"], + ["@cosmjs/amino", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/stream", "npm:0.29.0"], + ["@cosmjs/tendermint-rpc", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], + ["cosmjs-types", "npm:0.5.1"], ["long", "npm:4.0.0"], - ["protobufjs", "npm:6.10.2"], + ["protobufjs", "npm:6.11.3"], ["xstream", "npm:11.14.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/stream", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-stream-npm-0.28.4-96688842fa-b5d88927f2.zip/node_modules/@cosmjs/stream/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-stream-npm-0.29.0-e90ea4c25a-b56ac5929d.zip/node_modules/@cosmjs/stream/", "packageDependencies": [ - ["@cosmjs/stream", "npm:0.28.4"], + ["@cosmjs/stream", "npm:0.29.0"], ["xstream", "npm:11.14.0"] ], "linkType": "HARD", }] ]], ["@cosmjs/tendermint-rpc", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-tendermint-rpc-npm-0.28.4-c9c41913fa-fad057a14d.zip/node_modules/@cosmjs/tendermint-rpc/", - "packageDependencies": [ - ["@cosmjs/tendermint-rpc", "npm:0.28.4"], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/json-rpc", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/socket", "npm:0.28.4"], - ["@cosmjs/stream", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-tendermint-rpc-npm-0.29.0-d813e93f0d-c538ac7e8f.zip/node_modules/@cosmjs/tendermint-rpc/", + "packageDependencies": [ + ["@cosmjs/tendermint-rpc", "npm:0.29.0"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/json-rpc", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/socket", "npm:0.29.0"], + ["@cosmjs/stream", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], ["axios", "npm:0.21.4"], ["readonly-date", "npm:1.0.0"], ["xstream", "npm:11.14.0"] @@ -3074,10 +3072,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["@cosmjs/utils", [ - ["npm:0.28.4", { - "packageLocation": "./.yarn/cache/@cosmjs-utils-npm-0.28.4-1d4249ce8b-8c0994ff33.zip/node_modules/@cosmjs/utils/", + ["npm:0.29.0", { + "packageLocation": "./.yarn/cache/@cosmjs-utils-npm-0.29.0-44f2a2db59-580cc28c9c.zip/node_modules/@cosmjs/utils/", "packageDependencies": [ - ["@cosmjs/utils", "npm:0.28.4"] + ["@cosmjs/utils", "npm:0.29.0"] ], "linkType": "HARD", }] @@ -3219,15 +3217,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./packages/finschia/", "packageDependencies": [ ["@lbmjs/finschia", "workspace:packages/finschia"], - ["@cosmjs/amino", "npm:0.28.4"], - ["@cosmjs/cosmwasm-stargate", "npm:0.28.4"], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/math", "npm:0.28.4"], - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/stargate", "npm:0.28.4"], - ["@cosmjs/tendermint-rpc", "npm:0.28.4"], - ["@cosmjs/utils", "npm:0.28.4"], + ["@cosmjs/amino", "npm:0.29.0"], + ["@cosmjs/cosmwasm-stargate", "npm:0.29.0"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/math", "npm:0.29.0"], + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/stargate", "npm:0.29.0"], + ["@cosmjs/tendermint-rpc", "npm:0.29.0"], + ["@cosmjs/utils", "npm:0.29.0"], ["@istanbuljs/nyc-config-typescript", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:1.0.2"], ["@types/eslint-plugin-prettier", "npm:3.1.0"], ["@types/jasmine", "npm:3.10.3"], @@ -3239,7 +3237,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/pako", "npm:1.0.3"], ["@typescript-eslint/eslint-plugin", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:5.17.0"], ["@typescript-eslint/parser", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:5.17.0"], - ["cosmjs-types", "npm:0.4.0"], + ["cosmjs-types", "npm:0.5.1"], ["eslint", "npm:7.32.0"], ["eslint-config-prettier", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:8.3.0"], ["eslint-import-resolver-node", "npm:0.3.6"], @@ -3257,7 +3255,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["karma-jasmine-html-reporter", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:1.7.0"], ["karma-spec-reporter", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:0.0.33"], ["karma-typescript", "virtual:7b7a30ab09c232808f75d8deefc2be1f787c4d994bf0447ebbc0120f713df9b186b49db25d8d4a325f09a8c21d3026240b3241d151187e257eff7792b66c65e7#npm:5.5.3"], - ["lbmjs-types", "npm:0.46.0-rc7"], + ["lbmjs-types", "npm:0.46.0-rc8"], ["long", "npm:4.0.0"], ["nyc", "npm:15.1.0"], ["pako", "npm:2.0.4"], @@ -5142,19 +5140,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["cosmjs-types", [ - ["npm:0.4.0", { - "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.4.0-accb450c96-ffc3e6451e.zip/node_modules/cosmjs-types/", + ["npm:0.5.1", { + "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.5.1-52380d33c4-418622ea55.zip/node_modules/cosmjs-types/", "packageDependencies": [ - ["cosmjs-types", "npm:0.4.0"], - ["long", "npm:4.0.0"], - ["protobufjs", "npm:6.11.2"] - ], - "linkType": "HARD", - }], - ["npm:0.4.1", { - "packageLocation": "./.yarn/cache/cosmjs-types-npm-0.4.1-7067cbeac4-7921026bb7.zip/node_modules/cosmjs-types/", - "packageDependencies": [ - ["cosmjs-types", "npm:0.4.1"], + ["cosmjs-types", "npm:0.5.1"], ["long", "npm:4.0.0"], ["protobufjs", "npm:6.11.2"] ], @@ -7197,12 +7186,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "SOFT", }], - ["virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:4.0.1", { - "packageLocation": "./.yarn/__virtual__/isomorphic-ws-virtual-6c1501ed5a/0/cache/isomorphic-ws-npm-4.0.1-aa39192848-d7190eadef.zip/node_modules/isomorphic-ws/", + ["virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:4.0.1", { + "packageLocation": "./.yarn/__virtual__/isomorphic-ws-virtual-7b6197fec9/0/cache/isomorphic-ws-npm-4.0.1-aa39192848-d7190eadef.zip/node_modules/isomorphic-ws/", "packageDependencies": [ - ["isomorphic-ws", "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:4.0.1"], + ["isomorphic-ws", "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:4.0.1"], ["@types/ws", null], - ["ws", "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:7.5.7"] + ["ws", "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:7.5.7"] ], "packagePeers": [ "@types/ws", @@ -7747,10 +7736,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./", "packageDependencies": [ ["lbmjs-monorepo-root", "workspace:."], - ["@cosmjs/crypto", "npm:0.28.4"], - ["@cosmjs/encoding", "npm:0.28.4"], - ["@cosmjs/proto-signing", "npm:0.28.4"], - ["@cosmjs/stargate", "npm:0.28.4"], + ["@cosmjs/crypto", "npm:0.29.0"], + ["@cosmjs/encoding", "npm:0.29.0"], + ["@cosmjs/proto-signing", "npm:0.29.0"], + ["@cosmjs/stargate", "npm:0.29.0"], ["@lbmjs/finschia", "workspace:packages/finschia"], ["eslint", "npm:7.32.0"], ["karma-chrome-launcher", "npm:3.1.0"], @@ -7765,10 +7754,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["lbmjs-types", [ - ["npm:0.46.0-rc7", { - "packageLocation": "./.yarn/cache/lbmjs-types-npm-0.46.0-rc7-02743dd713-e3fb4e283e.zip/node_modules/lbmjs-types/", + ["npm:0.46.0-rc8", { + "packageLocation": "./.yarn/cache/lbmjs-types-npm-0.46.0-rc8-b4d5876543-01d37472a6.zip/node_modules/lbmjs-types/", "packageDependencies": [ - ["lbmjs-types", "npm:0.46.0-rc7"], + ["lbmjs-types", "npm:0.46.0-rc8"], ["long", "npm:4.0.0"], ["protobufjs", "npm:6.11.2"] ], @@ -8856,6 +8845,26 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["long", "npm:4.0.0"] ], "linkType": "HARD", + }], + ["npm:6.11.3", { + "packageLocation": "./.yarn/unplugged/protobufjs-npm-6.11.3-566fb31188/node_modules/protobufjs/", + "packageDependencies": [ + ["protobufjs", "npm:6.11.3"], + ["@protobufjs/aspromise", "npm:1.1.2"], + ["@protobufjs/base64", "npm:1.1.2"], + ["@protobufjs/codegen", "npm:2.0.4"], + ["@protobufjs/eventemitter", "npm:1.1.0"], + ["@protobufjs/fetch", "npm:1.1.0"], + ["@protobufjs/float", "npm:1.0.2"], + ["@protobufjs/inquire", "npm:1.1.0"], + ["@protobufjs/path", "npm:1.1.2"], + ["@protobufjs/pool", "npm:1.1.0"], + ["@protobufjs/utf8", "npm:1.1.0"], + ["@types/long", "npm:4.0.1"], + ["@types/node", "npm:17.0.16"], + ["long", "npm:4.0.0"] + ], + "linkType": "HARD", }] ]], ["public-encrypt", [ @@ -10485,10 +10494,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "SOFT", }], - ["virtual:733cb6899318fc97abde396915533fc4f9852a2d62abe85daf265f0103211854a5c657d9a2fa18cdee56e1c047ccecb37162ba0f185d142200181f148b16695f#npm:8.2.3", { - "packageLocation": "./.yarn/__virtual__/ws-virtual-4b865e96d3/0/cache/ws-npm-8.2.3-03a35b8ad7-c869296ccb.zip/node_modules/ws/", + ["virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:7.5.7", { + "packageLocation": "./.yarn/__virtual__/ws-virtual-e8abd3805b/0/cache/ws-npm-7.5.7-6cc440864a-5c1f669a16.zip/node_modules/ws/", "packageDependencies": [ - ["ws", "virtual:733cb6899318fc97abde396915533fc4f9852a2d62abe85daf265f0103211854a5c657d9a2fa18cdee56e1c047ccecb37162ba0f185d142200181f148b16695f#npm:8.2.3"], + ["ws", "virtual:3b080731855640b90909ae2404110b0f9d916eee02b5af00f402937a4371f960fd543e6949e1cebc7eac12eb9e8c17acf6ce2c5b27fd58baa48cd0839a1cc13b#npm:7.5.7"], ["@types/bufferutil", null], ["@types/utf-8-validate", null], ["bufferutil", null], @@ -10502,10 +10511,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], - ["virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:7.5.7", { - "packageLocation": "./.yarn/__virtual__/ws-virtual-50a62863cd/0/cache/ws-npm-7.5.7-6cc440864a-5c1f669a16.zip/node_modules/ws/", + ["virtual:733cb6899318fc97abde396915533fc4f9852a2d62abe85daf265f0103211854a5c657d9a2fa18cdee56e1c047ccecb37162ba0f185d142200181f148b16695f#npm:8.2.3", { + "packageLocation": "./.yarn/__virtual__/ws-virtual-4b865e96d3/0/cache/ws-npm-8.2.3-03a35b8ad7-c869296ccb.zip/node_modules/ws/", "packageDependencies": [ - ["ws", "virtual:ea3972b6019a8ef6ddba911e7250143cb52f45e0ed3721e47d25a59bfa407419779a1c92577a2f5a18b1396065d45d1fa470319b4ea7f05e54e2834e674fdf2b#npm:7.5.7"], + ["ws", "virtual:733cb6899318fc97abde396915533fc4f9852a2d62abe85daf265f0103211854a5c657d9a2fa18cdee56e1c047ccecb37162ba0f185d142200181f148b16695f#npm:8.2.3"], ["@types/bufferutil", null], ["@types/utf-8-validate", null], ["bufferutil", null], diff --git a/.yarn/cache/@cosmjs-amino-npm-0.28.4-4ff8dafb8e-f84e6968d9.zip b/.yarn/cache/@cosmjs-amino-npm-0.28.4-4ff8dafb8e-f84e6968d9.zip deleted file mode 100644 index 9532ac1bf..000000000 --- a/.yarn/cache/@cosmjs-amino-npm-0.28.4-4ff8dafb8e-f84e6968d9.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89f7cd66761987cae8196eb2e6b281cce0720cb2fe1fe050ab22ba4e57fe4a93 -size 62692 diff --git a/.yarn/cache/@cosmjs-amino-npm-0.29.0-6844ffbe00-372e3ef9a5.zip b/.yarn/cache/@cosmjs-amino-npm-0.29.0-6844ffbe00-372e3ef9a5.zip new file mode 100644 index 000000000..94306f1d8 --- /dev/null +++ b/.yarn/cache/@cosmjs-amino-npm-0.29.0-6844ffbe00-372e3ef9a5.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa65854510b26170058023e05602b99fb63a86b3b888bf3ebf15c08c35cb9c72 +size 35965 diff --git a/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.28.4-6628baefb3-6b1142c45f.zip b/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.28.4-6628baefb3-6b1142c45f.zip deleted file mode 100644 index 66793de99..000000000 --- a/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.28.4-6628baefb3-6b1142c45f.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4022b674fa5988df111d3ae3b5668aa2f2fd48bc714f937105f73a58a488748 -size 174300 diff --git a/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.29.0-2dc0d73164-8a2be801a1.zip b/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.29.0-2dc0d73164-8a2be801a1.zip new file mode 100644 index 000000000..5d158da8b --- /dev/null +++ b/.yarn/cache/@cosmjs-cosmwasm-stargate-npm-0.29.0-2dc0d73164-8a2be801a1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45db76b756098d2665743f810feb678cd4e2070c028409662cfa2c7de2b24072 +size 32630 diff --git a/.yarn/cache/@cosmjs-crypto-npm-0.28.4-a76962f744-2ea35cc3cc.zip b/.yarn/cache/@cosmjs-crypto-npm-0.28.4-a76962f744-2ea35cc3cc.zip deleted file mode 100644 index 2f7a419c9..000000000 --- a/.yarn/cache/@cosmjs-crypto-npm-0.28.4-a76962f744-2ea35cc3cc.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:117db9cdf958f5d718d436ab7decc7ea32e4f269e72a64acd7f0ec05f60c2fbf -size 223203 diff --git a/.yarn/cache/@cosmjs-crypto-npm-0.29.0-aa375b78ca-d6f32d3e91.zip b/.yarn/cache/@cosmjs-crypto-npm-0.29.0-aa375b78ca-d6f32d3e91.zip new file mode 100644 index 000000000..acfdc596d --- /dev/null +++ b/.yarn/cache/@cosmjs-crypto-npm-0.29.0-aa375b78ca-d6f32d3e91.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6de606a356b6cb01479cfa4717520fc439d9d8e7b1ba59bb1affc03738628c23 +size 45071 diff --git a/.yarn/cache/@cosmjs-encoding-npm-0.28.4-54d85e096e-7de561119c.zip b/.yarn/cache/@cosmjs-encoding-npm-0.28.4-54d85e096e-7de561119c.zip deleted file mode 100644 index 40f2e3246..000000000 --- a/.yarn/cache/@cosmjs-encoding-npm-0.28.4-54d85e096e-7de561119c.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3069d59e1289e845cab496741ec000a6d988d6f4b67c0c4719fe35e5dbfeb8eb -size 24449 diff --git a/.yarn/cache/@cosmjs-encoding-npm-0.29.0-75026f1167-70e9458eda.zip b/.yarn/cache/@cosmjs-encoding-npm-0.29.0-75026f1167-70e9458eda.zip new file mode 100644 index 000000000..aa7fc94a3 --- /dev/null +++ b/.yarn/cache/@cosmjs-encoding-npm-0.29.0-75026f1167-70e9458eda.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cbb92e84b6c29053b0d4bad0842544b688238abe3851eb2a8a85cf89ed8b786 +size 13382 diff --git a/.yarn/cache/@cosmjs-json-rpc-npm-0.28.4-e29808fef6-d7b84452eb.zip b/.yarn/cache/@cosmjs-json-rpc-npm-0.28.4-e29808fef6-d7b84452eb.zip deleted file mode 100644 index 140192db6..000000000 --- a/.yarn/cache/@cosmjs-json-rpc-npm-0.28.4-e29808fef6-d7b84452eb.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee2d2c476fecdf13c5c1ea6f08bbde3b3c3e5fec341f791c0afc568d8cf93af8 -size 22788 diff --git a/.yarn/cache/@cosmjs-json-rpc-npm-0.29.0-7a30852b1a-1197a71d63.zip b/.yarn/cache/@cosmjs-json-rpc-npm-0.29.0-7a30852b1a-1197a71d63.zip new file mode 100644 index 000000000..2a37e42ea --- /dev/null +++ b/.yarn/cache/@cosmjs-json-rpc-npm-0.29.0-7a30852b1a-1197a71d63.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1db7963571f9a7d645948064fda3382fd57afe8139cd82f4df321180ea4c971a +size 14718 diff --git a/.yarn/cache/@cosmjs-math-npm-0.28.4-af1914a3b5-89b7d263b4.zip b/.yarn/cache/@cosmjs-math-npm-0.28.4-af1914a3b5-89b7d263b4.zip deleted file mode 100644 index 5555edf42..000000000 --- a/.yarn/cache/@cosmjs-math-npm-0.28.4-af1914a3b5-89b7d263b4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a577f4c2e1d357c2e19796427b4bf4dc1a34266f964c6d16e09d49471186825 -size 21210 diff --git a/.yarn/cache/@cosmjs-math-npm-0.29.0-536187b13e-b420a5f4e0.zip b/.yarn/cache/@cosmjs-math-npm-0.29.0-536187b13e-b420a5f4e0.zip new file mode 100644 index 000000000..2b0a985ef --- /dev/null +++ b/.yarn/cache/@cosmjs-math-npm-0.29.0-536187b13e-b420a5f4e0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:528192056d17dbc1fee26379a996abd7be7331ef4785fb8b7c4ea45c8dd32e00 +size 11185 diff --git a/.yarn/cache/@cosmjs-proto-signing-npm-0.28.4-7e555775ea-9d6419b110.zip b/.yarn/cache/@cosmjs-proto-signing-npm-0.28.4-7e555775ea-9d6419b110.zip deleted file mode 100644 index 08d937fd5..000000000 --- a/.yarn/cache/@cosmjs-proto-signing-npm-0.28.4-7e555775ea-9d6419b110.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b00158a3e58177e1bd4633cabf32e4ba825199e2d689fbbe364bfbccacc7bc8e -size 55448 diff --git a/.yarn/cache/@cosmjs-proto-signing-npm-0.29.0-3425536e03-71c00cb526.zip b/.yarn/cache/@cosmjs-proto-signing-npm-0.29.0-3425536e03-71c00cb526.zip new file mode 100644 index 000000000..307f57fb1 --- /dev/null +++ b/.yarn/cache/@cosmjs-proto-signing-npm-0.29.0-3425536e03-71c00cb526.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7276b5ac1ab11d29686e0bad5d6beb3a958b829d11a428dcc059fba509ea3e8 +size 33556 diff --git a/.yarn/cache/@cosmjs-socket-npm-0.28.4-ea3972b601-1a27c010a5.zip b/.yarn/cache/@cosmjs-socket-npm-0.28.4-ea3972b601-1a27c010a5.zip deleted file mode 100644 index 400d4e1d0..000000000 --- a/.yarn/cache/@cosmjs-socket-npm-0.28.4-ea3972b601-1a27c010a5.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75928a37c74ca4d59cc7773c69fcde9ebf05a286bbdfdeae58d63ceca76068e1 -size 25462 diff --git a/.yarn/cache/@cosmjs-socket-npm-0.29.0-3b08073185-b401227457.zip b/.yarn/cache/@cosmjs-socket-npm-0.29.0-3b08073185-b401227457.zip new file mode 100644 index 000000000..c760ad499 --- /dev/null +++ b/.yarn/cache/@cosmjs-socket-npm-0.29.0-3b08073185-b401227457.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cfa1a861ce5464697bddfdf7ad8e2f25cafe070aa7194820632af187e1eac52 +size 14709 diff --git a/.yarn/cache/@cosmjs-stargate-npm-0.28.4-876af0bc19-ce3969a479.zip b/.yarn/cache/@cosmjs-stargate-npm-0.28.4-876af0bc19-ce3969a479.zip deleted file mode 100644 index 3a8113145..000000000 --- a/.yarn/cache/@cosmjs-stargate-npm-0.28.4-876af0bc19-ce3969a479.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ce170e8c488c60ddbce95e10a762fff3faf5c1141e8bfd4c1d264be46d1ef35 -size 193508 diff --git a/.yarn/cache/@cosmjs-stargate-npm-0.29.0-837cdf976c-fe814d740a.zip b/.yarn/cache/@cosmjs-stargate-npm-0.29.0-837cdf976c-fe814d740a.zip new file mode 100644 index 000000000..f033ac910 --- /dev/null +++ b/.yarn/cache/@cosmjs-stargate-npm-0.29.0-837cdf976c-fe814d740a.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b1cd09a11ee20ff7475d6c43d3c5ca45d674cecc00cb15a67ccae135a5abdbd +size 115721 diff --git a/.yarn/cache/@cosmjs-stream-npm-0.28.4-96688842fa-b5d88927f2.zip b/.yarn/cache/@cosmjs-stream-npm-0.28.4-96688842fa-b5d88927f2.zip deleted file mode 100644 index 4bcfbe118..000000000 --- a/.yarn/cache/@cosmjs-stream-npm-0.28.4-96688842fa-b5d88927f2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1858e8b03b0c1dce96658089929234f357628b5a771b81a57aafc97b5f75dbaa -size 29428 diff --git a/.yarn/cache/@cosmjs-stream-npm-0.29.0-e90ea4c25a-b56ac5929d.zip b/.yarn/cache/@cosmjs-stream-npm-0.29.0-e90ea4c25a-b56ac5929d.zip new file mode 100644 index 000000000..0f8ca2a20 --- /dev/null +++ b/.yarn/cache/@cosmjs-stream-npm-0.29.0-e90ea4c25a-b56ac5929d.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c5c39afc9e88d60fe973d05801e6a66fd14302ea4bfbb88796b9810f56037ab +size 16214 diff --git a/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.28.4-c9c41913fa-fad057a14d.zip b/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.28.4-c9c41913fa-fad057a14d.zip deleted file mode 100644 index 4d02750da..000000000 --- a/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.28.4-c9c41913fa-fad057a14d.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72c6eb2691f5418159883aa6544792be8165510ac5035e4b96a107c20450cccb -size 88289 diff --git a/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.29.0-d813e93f0d-c538ac7e8f.zip b/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.29.0-d813e93f0d-c538ac7e8f.zip new file mode 100644 index 000000000..0be236da7 --- /dev/null +++ b/.yarn/cache/@cosmjs-tendermint-rpc-npm-0.29.0-d813e93f0d-c538ac7e8f.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f50d4b7b83d9dc0f05409cda2b176cad3ec097ec6ec7a79cfa52ba3cdc299e6 +size 95871 diff --git a/.yarn/cache/@cosmjs-utils-npm-0.28.4-1d4249ce8b-8c0994ff33.zip b/.yarn/cache/@cosmjs-utils-npm-0.28.4-1d4249ce8b-8c0994ff33.zip deleted file mode 100644 index 8927e91e9..000000000 --- a/.yarn/cache/@cosmjs-utils-npm-0.28.4-1d4249ce8b-8c0994ff33.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c328d5e76f3bbb7a033aa3cf31f8f7f89be97188cc0032e9f449648f62e0f7c8 -size 15216 diff --git a/.yarn/cache/@cosmjs-utils-npm-0.29.0-44f2a2db59-580cc28c9c.zip b/.yarn/cache/@cosmjs-utils-npm-0.29.0-44f2a2db59-580cc28c9c.zip new file mode 100644 index 000000000..3ade528c8 --- /dev/null +++ b/.yarn/cache/@cosmjs-utils-npm-0.29.0-44f2a2db59-580cc28c9c.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00de1799c930bc7b26b682422fc9ebef1d8090093e7b461509d08b9f68575c91 +size 8881 diff --git a/.yarn/cache/cosmjs-types-npm-0.4.0-accb450c96-ffc3e6451e.zip b/.yarn/cache/cosmjs-types-npm-0.4.0-accb450c96-ffc3e6451e.zip deleted file mode 100644 index c07169a6a..000000000 --- a/.yarn/cache/cosmjs-types-npm-0.4.0-accb450c96-ffc3e6451e.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e730c8bd09822b2153803a941023040367fd9d08bb1a74cb1466189e4649427 -size 1074040 diff --git a/.yarn/cache/cosmjs-types-npm-0.4.1-7067cbeac4-7921026bb7.zip b/.yarn/cache/cosmjs-types-npm-0.4.1-7067cbeac4-7921026bb7.zip deleted file mode 100644 index 9dffa4519..000000000 --- a/.yarn/cache/cosmjs-types-npm-0.4.1-7067cbeac4-7921026bb7.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3911e77344ad5399ff243156ece15a5d26a6699cb9baafe774a21a377045e5a0 -size 1081705 diff --git a/.yarn/cache/cosmjs-types-npm-0.5.1-52380d33c4-418622ea55.zip b/.yarn/cache/cosmjs-types-npm-0.5.1-52380d33c4-418622ea55.zip new file mode 100644 index 000000000..4c79941f8 --- /dev/null +++ b/.yarn/cache/cosmjs-types-npm-0.5.1-52380d33c4-418622ea55.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72884adb619218f1f8561e1ac5a97ff6e22a53471a10b9e8cb9c7e40bd1f2ce3 +size 1134369 diff --git a/.yarn/cache/lbmjs-types-npm-0.46.0-rc7-02743dd713-e3fb4e283e.zip b/.yarn/cache/lbmjs-types-npm-0.46.0-rc7-02743dd713-e3fb4e283e.zip deleted file mode 100644 index 966f1f5a3..000000000 --- a/.yarn/cache/lbmjs-types-npm-0.46.0-rc7-02743dd713-e3fb4e283e.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5186dc745bfc0fdc96288e004c18af1228f6e100735b85a34906f376dbd8b9cb -size 1244317 diff --git a/.yarn/cache/lbmjs-types-npm-0.46.0-rc8-b4d5876543-01d37472a6.zip b/.yarn/cache/lbmjs-types-npm-0.46.0-rc8-b4d5876543-01d37472a6.zip new file mode 100644 index 000000000..1d54979ae --- /dev/null +++ b/.yarn/cache/lbmjs-types-npm-0.46.0-rc8-b4d5876543-01d37472a6.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c29d44f7fa8918e36bed8164874ceb9828c1c5cadc9e947693411fa1dd8f73b +size 1260236 diff --git a/.yarn/cache/protobufjs-npm-6.11.3-566fb31188-4a6ce19641.zip b/.yarn/cache/protobufjs-npm-6.11.3-566fb31188-4a6ce19641.zip new file mode 100644 index 000000000..b12b64586 --- /dev/null +++ b/.yarn/cache/protobufjs-npm-6.11.3-566fb31188-4a6ce19641.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:117dcd9eea72ff364d1bcce79674a295f596f12339b1e768a52c27b7d7cfcca2 +size 758281 diff --git a/checksums.sha256 b/checksums.sha256 deleted file mode 100644 index 0654fe874..000000000 --- a/checksums.sha256 +++ /dev/null @@ -1,2 +0,0 @@ -470c5b703a682f778b8b088d48169b8d6e43f7f44ac70316692cdbe69e6605e3 hackatom.wasm -d92d2ecfc38986268d65034196cbedd7a401a0ac22617a7a63c29aebb0afa895 ibc_reflect.wasm diff --git a/hackatom.wasm b/hackatom.wasm deleted file mode 100644 index 96e3f5a23..000000000 --- a/hackatom.wasm +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:470c5b703a682f778b8b088d48169b8d6e43f7f44ac70316692cdbe69e6605e3 -size 216295 diff --git a/ibc_reflect.wasm b/ibc_reflect.wasm deleted file mode 100644 index ae0d6d86e..000000000 --- a/ibc_reflect.wasm +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d92d2ecfc38986268d65034196cbedd7a401a0ac22617a7a63c29aebb0afa895 -size 264774 diff --git a/package.json b/package.json index 31aa0f817..2a837cac2 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ "publish-latest": "yarn workspaces foreach --no-private exec yarn npm publish" }, "devDependencies": { - "@cosmjs/crypto": "0.28.4", - "@cosmjs/encoding": "0.28.4", - "@cosmjs/proto-signing": "0.28.4", - "@cosmjs/stargate": "0.28.4", + "@cosmjs/crypto": "^0.29.0", + "@cosmjs/encoding": "^0.29.0", + "@cosmjs/proto-signing": "^0.29.0", + "@cosmjs/stargate": "^0.29.0", "@lbmjs/finschia": "workspace:packages/finschia", "eslint": "^7.5", "karma-chrome-launcher": "^3.1.0", diff --git a/packages/finschia/package.json b/packages/finschia/package.json index 1a14b9029..e05ef2ee8 100644 --- a/packages/finschia/package.json +++ b/packages/finschia/package.json @@ -1,9 +1,8 @@ { "name": "@lbmjs/finschia", - "version": "0.4.0-rc7", - "description": "Utilities for LBM SDK 0.45.0-rc7", + "version": "0.4.0-rc8", + "description": "Utilities for LBM SDK 0.46.0-rc8", "contributors": [ - "Simon Warta ", "zemyblue ", "loin3 <55660267+loin3@users.noreply.github.com>" ], @@ -36,23 +35,23 @@ "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js" }, "dependencies": { - "@cosmjs/amino": "0.28.4", - "@cosmjs/cosmwasm-stargate": "0.28.4", - "@cosmjs/encoding": "0.28.4", - "@cosmjs/math": "0.28.4", - "@cosmjs/proto-signing": "0.28.4", - "@cosmjs/stargate": "0.28.4", - "@cosmjs/tendermint-rpc": "0.28.4", - "@cosmjs/utils": "0.28.4", - "cosmjs-types": "0.4.0", - "lbmjs-types": "^0.46.0-rc7", + "@cosmjs/amino": "^0.29.0", + "@cosmjs/cosmwasm-stargate": "^0.29.0", + "@cosmjs/encoding": "^0.29.0", + "@cosmjs/math": "^0.29.0", + "@cosmjs/proto-signing": "^0.29.0", + "@cosmjs/stargate": "^0.29.0", + "@cosmjs/tendermint-rpc": "^0.29.0", + "@cosmjs/utils": "^0.29.0", + "cosmjs-types": "^0.5.1", + "lbmjs-types": "^0.46.0-rc8", "long": "^4.0.0", "pako": "^2.0.2", "protobufjs": "~6.10.2", "xstream": "^11.14.0" }, "devDependencies": { - "@cosmjs/crypto": "0.28.4", + "@cosmjs/crypto": "^0.29.0", "@istanbuljs/nyc-config-typescript": "^1.0.1", "@types/eslint-plugin-prettier": "^3", "@types/jasmine": "^3.8", diff --git a/packages/finschia/src/finschiaclient.searchtx.spec.ts b/packages/finschia/src/finschiaclient.searchtx.spec.ts index 48d620e84..eaeaee8f5 100644 --- a/packages/finschia/src/finschiaclient.searchtx.spec.ts +++ b/packages/finschia/src/finschiaclient.searchtx.spec.ts @@ -81,7 +81,9 @@ async function sendTokens( }, ]; const gasLimit = 200000; - const authInfoBytes = makeAuthInfoBytes([{ pubkey, sequence }], feeAmount, gasLimit); + const feeGranter = undefined; + const feePayer = undefined; + const authInfoBytes = makeAuthInfoBytes([{ pubkey, sequence }], feeAmount, gasLimit, feeGranter, feePayer); const chainId = await client.getChainId(); const signDoc = makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber); diff --git a/packages/finschia/src/finschiaclient.spec.ts b/packages/finschia/src/finschiaclient.spec.ts index 68801a130..eb2dad364 100644 --- a/packages/finschia/src/finschiaclient.spec.ts +++ b/packages/finschia/src/finschiaclient.spec.ts @@ -277,7 +277,15 @@ describe("FinschiaClient", () => { }; const txBodyBytes = registry.encode(txBody); const gasLimit = Int53.fromString(fee.gas).toNumber(); - const authInfoBytes = makeAuthInfoBytes([{ pubkey, sequence }], fee.amount, gasLimit); + const feeGranter = undefined; + const feePayer = undefined; + const authInfoBytes = makeAuthInfoBytes( + [{ pubkey, sequence }], + fee.amount, + gasLimit, + feeGranter, + feePayer, + ); const signDoc = makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber); const { signed, signature } = await wallet.signDirect(faucet.address0, signDoc); const txRaw = TxRaw.fromPartial({ @@ -331,7 +339,16 @@ describe("FinschiaClient", () => { const { accountNumber, sequence } = (await client.getSequence(address))!; const feeAmount = coins(2000, "cony"); const gasLimit = 200000; - const authInfoBytes = makeAuthInfoBytes([{ pubkey, sequence }], feeAmount, gasLimit, sequence); + const feeGranter = undefined; + const feePayer = undefined; + const authInfoBytes = makeAuthInfoBytes( + [{ pubkey, sequence }], + feeAmount, + gasLimit, + feeGranter, + feePayer, + sequence, + ); const chainId = await client.getChainId(); const signDoc = makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber); diff --git a/packages/finschia/src/finschiaclient.ts b/packages/finschia/src/finschiaclient.ts index 386ea72f0..442494930 100644 --- a/packages/finschia/src/finschiaclient.ts +++ b/packages/finschia/src/finschiaclient.ts @@ -1,5 +1,13 @@ import { addCoins } from "@cosmjs/amino"; -import { Code, CodeDetails, Contract, ContractCodeHistoryEntry } from "@cosmjs/cosmwasm-stargate"; +import { + Code, + CodeDetails, + Contract, + ContractCodeHistoryEntry, + JsonObject, + setupWasmExtension, + WasmExtension, +} from "@cosmjs/cosmwasm-stargate"; import { fromAscii, toHex } from "@cosmjs/encoding"; import { Uint53 } from "@cosmjs/math"; import { @@ -22,10 +30,12 @@ import { SearchTxQuery, SequenceResponse, setupAuthExtension, + setupAuthzExtension, setupBankExtension, setupDistributionExtension, setupGovExtension, setupMintExtension, + setupSlashingExtension, setupStakingExtension, setupTxExtension, StakingExtension, @@ -33,6 +43,8 @@ import { TimeoutError, TxExtension, } from "@cosmjs/stargate"; +import { SlashingExtension } from "@cosmjs/stargate/build/modules"; +import { AuthzExtension } from "@cosmjs/stargate/build/modules/authz/queries"; import { HttpEndpoint, Tendermint34Client, toRfc3339WithNanoseconds } from "@cosmjs/tendermint-rpc"; import { assert, sleep } from "@cosmjs/utils"; import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin"; @@ -51,21 +63,22 @@ import { FeeGrantExtension, FoundationExtension, IbcExtension, - JsonObject, setupCollectionExtension, setupEvidenceExtension, setupFeeGrantExtension, setupFoundationExtension, setupIbcExtension, setupTokenExtension, - setupWasmExtension, + setupWasmplusExtension, TokenExtension, - WasmExtension, + WasmplusExtension, } from "./modules"; export type QueryClientWithExtensions = QueryClient & AuthExtension & BankExtension & + AuthzExtension & + SlashingExtension & CollectionExtension & DistributionExtension & EvidenceExtension & @@ -77,15 +90,16 @@ export type QueryClientWithExtensions = QueryClient & StakingExtension & TokenExtension & TxExtension & - WasmExtension; + WasmExtension & + WasmplusExtension; function createQueryClientWithExtensions(tmClient: Tendermint34Client): QueryClientWithExtensions { return QueryClient.withExtensions( tmClient, setupAuthExtension, setupBankExtension, - // setupAuthzExtension, this is omitted in cosmjs export - // setupSlashingExtension, this is omitted in cosmjs export + setupAuthzExtension, + setupSlashingExtension, setupCollectionExtension, setupDistributionExtension, setupEvidenceExtension, @@ -98,6 +112,7 @@ function createQueryClientWithExtensions(tmClient: Tendermint34Client): QueryCli setupTokenExtension, setupTxExtension, setupWasmExtension, + setupWasmplusExtension, ); } @@ -362,7 +377,7 @@ export class FinschiaClient { if (broadcasted.code) { return Promise.reject( new Error( - `Broadcasting transaction failed with code ${broadcasted.code} (codespace: ${broadcasted.codeSpace}). Log: ${broadcasted.log}`, + `Broadcasting transaction failed with code ${broadcasted.code} (codespace: ${broadcasted.codespace}). Log: ${broadcasted.log}`, ), ); } diff --git a/packages/finschia/src/index.ts b/packages/finschia/src/index.ts index 79d666900..5a10c9b0e 100644 --- a/packages/finschia/src/index.ts +++ b/packages/finschia/src/index.ts @@ -29,7 +29,7 @@ export { MsgStoreCodeAndInstantiateContractEncodeObject, wasmTypes, } from "./modules"; -export { JsonObject, setupWasmExtension, WasmExtension } from "./modules"; +export { setupWasmplusExtension, WasmplusExtension } from "./modules"; export { makeLinkPath } from "./paths"; export { finschiaRegistryTypes, diff --git a/packages/finschia/src/modules/ibc/queries.ts b/packages/finschia/src/modules/ibc/queries.ts index 1907831a9..bb0fe5962 100644 --- a/packages/finschia/src/modules/ibc/queries.ts +++ b/packages/finschia/src/modules/ibc/queries.ts @@ -19,6 +19,7 @@ import { QueryConnectionChannelsResponse, QueryNextSequenceReceiveResponse, QueryPacketAcknowledgementResponse, + QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryPacketCommitmentResponse, QueryPacketCommitmentsResponse, @@ -302,22 +303,25 @@ export function setupIbcExtension(base: QueryClient): IbcExtension { channelId: channelId, sequence: Long.fromNumber(sequence, true), }), - packetAcknowledgements: async (portId: string, channelId: string, paginationKey?: Uint8Array) => - channelQueryService.PacketAcknowledgements({ + packetAcknowledgements: async (portId: string, channelId: string, paginationKey?: Uint8Array) => { + const request = QueryPacketAcknowledgementsRequest.fromPartial({ portId: portId, channelId: channelId, pagination: createPagination(paginationKey), - }), + }); + return channelQueryService.PacketAcknowledgements(request); + }, allPacketAcknowledgements: async (portId: string, channelId: string) => { const acknowledgements = []; let response: QueryPacketAcknowledgementsResponse; let key: Uint8Array | undefined; do { - response = await channelQueryService.PacketAcknowledgements({ + const request = QueryPacketAcknowledgementsRequest.fromPartial({ channelId: channelId, portId: portId, pagination: createPagination(key), }); + response = await channelQueryService.PacketAcknowledgements(request); acknowledgements.push(...response.acknowledgements); key = response.pagination?.nextKey; } while (key && key.length); diff --git a/packages/finschia/src/modules/index.ts b/packages/finschia/src/modules/index.ts index a9046aaf0..8dee4a541 100644 --- a/packages/finschia/src/modules/index.ts +++ b/packages/finschia/src/modules/index.ts @@ -23,9 +23,10 @@ export { ibcTypes } from "./ibc/messages"; export { IbcExtension, setupIbcExtension } from "./ibc/queries"; export { tokenTypes } from "./token/messages"; export { setupTokenExtension, TokenExtension } from "./token/queries"; +export { wasmTypes } from "./wasm/messages"; export { isMsgStoreCodeAndInstantiateContract, MsgStoreCodeAndInstantiateContractEncodeObject, - wasmTypes, -} from "./wasm/messages"; -export { JsonObject, setupWasmExtension, WasmExtension } from "./wasm/queries"; + wasmplusTypes, +} from "./wasmplus/messages"; +export { setupWasmplusExtension, WasmplusExtension } from "./wasmplus/queries"; diff --git a/packages/finschia/src/modules/wasm/messages.ts b/packages/finschia/src/modules/wasm/messages.ts index 483a976b9..e3a92622a 100644 --- a/packages/finschia/src/modules/wasm/messages.ts +++ b/packages/finschia/src/modules/wasm/messages.ts @@ -1,4 +1,4 @@ -import { EncodeObject, GeneratedType } from "@cosmjs/proto-signing"; +import { GeneratedType } from "@cosmjs/proto-signing"; import { MsgClearAdmin, MsgExecuteContract, @@ -7,7 +7,6 @@ import { MsgStoreCode, MsgUpdateAdmin, } from "cosmjs-types/cosmwasm/wasm/v1/tx"; -import { MsgStoreCodeAndInstantiateContract } from "lbmjs-types/cosmwasm/wasm/v1/tx"; export const wasmTypes: ReadonlyArray<[string, GeneratedType]> = [ ["/cosmwasm.wasm.v1.MsgClearAdmin", MsgClearAdmin], @@ -15,20 +14,5 @@ export const wasmTypes: ReadonlyArray<[string, GeneratedType]> = [ ["/cosmwasm.wasm.v1.MsgMigrateContract", MsgMigrateContract], ["/cosmwasm.wasm.v1.MsgStoreCode", MsgStoreCode], ["/cosmwasm.wasm.v1.MsgInstantiateContract", MsgInstantiateContract], - ["/cosmwasm.wasm.v1.MsgStoreCodeAndInstantiateContract", MsgStoreCodeAndInstantiateContract], ["/cosmwasm.wasm.v1.MsgUpdateAdmin", MsgUpdateAdmin], ]; - -export interface MsgStoreCodeAndInstantiateContractEncodeObject extends EncodeObject { - readonly typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeAndInstantiateContract"; - readonly value: Partial; -} - -export function isMsgStoreCodeAndInstantiateContract( - object: EncodeObject, -): object is MsgStoreCodeAndInstantiateContractEncodeObject { - return ( - (object as MsgStoreCodeAndInstantiateContractEncodeObject).typeUrl === - "/cosmwasm.wasm.v1.MsgStoreCodeAndInstantiateContract" - ); -} diff --git a/packages/finschia/src/modules/wasm/queries.spec.ts b/packages/finschia/src/modules/wasm/queries.spec.ts deleted file mode 100644 index 98b1dfc9f..000000000 --- a/packages/finschia/src/modules/wasm/queries.spec.ts +++ /dev/null @@ -1,450 +0,0 @@ -import { - MsgExecuteContractEncodeObject, - MsgInstantiateContractEncodeObject, - MsgStoreCodeEncodeObject, -} from "@cosmjs/cosmwasm-stargate"; -import { sha256 } from "@cosmjs/crypto"; -import { fromAscii, fromHex, toAscii, toHex } from "@cosmjs/encoding"; -import { DirectSecp256k1HdWallet, OfflineDirectSigner, Registry } from "@cosmjs/proto-signing"; -import { - assertIsDeliverTxSuccess, - Coin, - coin, - coins, - DeliverTxResponse, - logs, - SigningStargateClient, - StdFee, -} from "@cosmjs/stargate"; -import { assert } from "@cosmjs/utils"; -import { MsgExecuteContract, MsgInstantiateContract, MsgStoreCode } from "cosmjs-types/cosmwasm/wasm/v1/tx"; -import { ContractCodeHistoryOperationType } from "cosmjs-types/cosmwasm/wasm/v1/types"; -import { ContractStatus } from "lbmjs-types/cosmwasm/wasm/v1/types"; -import Long from "long"; - -import { makeLinkPath } from "../../paths"; -import { SigningFinschiaClient } from "../../signingfinschiaclient"; -import { - bech32AddressMatcher, - ContractUploadInstructions, - defaultSigningClientOptions, - faucet, - getHackatom, - makeRandomAddress, - makeWasmClient, - pendingWithoutSimapp, - simapp, - simappEnabled, -} from "../../testutils.spec"; -import { wasmTypes } from "./messages"; - -const registry = new Registry(wasmTypes); - -const eventTypeInstantiateContract = "instantiate"; -const attributeTypeContractAddress = "_contract_address"; - -async function uploadContract( - signer: OfflineDirectSigner, - contract: ContractUploadInstructions, -): Promise { - const memo = "My first contract on chain"; - const theMsg: MsgStoreCodeEncodeObject = { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode", - value: MsgStoreCode.fromPartial({ - sender: faucet.address0, - wasmByteCode: contract.data, - }), - }; - const fee: StdFee = { - amount: coins(5000000, "cony"), - gas: "89000000", - }; - const firstAddress = (await signer.getAccounts())[0].address; - const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, signer, { - ...defaultSigningClientOptions, - registry, - }); - return client.signAndBroadcast(firstAddress, [theMsg], fee, memo); -} - -async function instantiateContract( - signer: OfflineDirectSigner, - codeId: number, - beneficiaryAddress: string, - funds?: readonly Coin[], -): Promise { - const memo = "Create an escrow instance"; - const theMsg: MsgInstantiateContractEncodeObject = { - typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract", - value: MsgInstantiateContract.fromPartial({ - sender: faucet.address0, - codeId: Long.fromNumber(codeId), - label: "my escrow", - msg: toAscii( - JSON.stringify({ - verifier: faucet.address0, - beneficiary: beneficiaryAddress, - }), - ), - funds: funds ? [...funds] : [], - }), - }; - const fee: StdFee = { - amount: coins(5000000, "cony"), - gas: "89000000", - }; - - const firstAddress = (await signer.getAccounts())[0].address; - const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, signer, { - ...defaultSigningClientOptions, - registry, - }); - return client.signAndBroadcast(firstAddress, [theMsg], fee, memo); -} - -async function executeContract( - signer: OfflineDirectSigner, - contractAddress: string, - msg: Record, -): Promise { - const memo = "Time for action"; - const theMsg: MsgExecuteContractEncodeObject = { - typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract", - value: MsgExecuteContract.fromPartial({ - sender: faucet.address0, - contract: contractAddress, - msg: toAscii(JSON.stringify(msg)), - funds: [], - }), - }; - const fee: StdFee = { - amount: coins(5000000, "cony"), - gas: "89000000", - }; - - const firstAddress = (await signer.getAccounts())[0].address; - const client = await SigningFinschiaClient.connectWithSigner(simapp.tendermintUrl, signer, { - ...defaultSigningClientOptions, - registry, - }); - return client.signAndBroadcast(firstAddress, [theMsg], fee, memo); -} - -describe("WasmExtension", () => { - const hackatom = getHackatom(); - const hackatomConfigKey = toAscii("config"); - let hackatomCodeId: number | undefined; - let hackatomContractAddress: string | undefined; - - beforeAll(async () => { - if (simappEnabled()) { - const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { - hdPaths: [makeLinkPath(0)], - prefix: simapp.prefix, - }); - const result = await uploadContract(wallet, hackatom); - assertIsDeliverTxSuccess(result); - hackatomCodeId = Number.parseInt( - JSON.parse(result.rawLog!)[0] - .events.find((event: any) => event.type === "store_code") - .attributes.find((attribute: any) => attribute.key === "code_id").value, - 10, - ); - - const instantiateResult = await instantiateContract(wallet, hackatomCodeId, makeRandomAddress()); - assertIsDeliverTxSuccess(instantiateResult); - hackatomContractAddress = JSON.parse(instantiateResult.rawLog!)[0] - .events.find((event: any) => event.type === eventTypeInstantiateContract) - .attributes.find((attribute: any) => attribute.key === attributeTypeContractAddress).value; - } - }); - - describe("listCodeInfo", () => { - it("has recently uploaded contract as last entry", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const client = await makeWasmClient(simapp.tendermintUrl); - const { codeInfos } = await client.wasm.listCodeInfo(); - assert(codeInfos); - const lastCode = codeInfos[codeInfos.length - 1]; - expect(lastCode.codeId.toNumber()).toEqual(hackatomCodeId); - expect(lastCode.creator).toEqual(faucet.address0); - expect(toHex(lastCode.dataHash)).toEqual(toHex(sha256(hackatom.data))); - }); - }); - - describe("getCode", () => { - it("contains fill code information", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const client = await makeWasmClient(simapp.tendermintUrl); - const { codeInfo, data } = await client.wasm.getCode(hackatomCodeId); - assert(codeInfo); - expect(codeInfo.codeId.toNumber()).toEqual(hackatomCodeId); - expect(codeInfo.creator).toEqual(faucet.address0); - expect(toHex(codeInfo.dataHash)).toEqual(toHex(sha256(hackatom.data))); - expect(data).toEqual(hackatom.data); - }); - }); - - // TODO: move listContractsByCodeId tests out of here - describe("getContractInfo", () => { - it("works", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { - hdPaths: [makeLinkPath(0)], - prefix: simapp.prefix, - }); - const client = await makeWasmClient(simapp.tendermintUrl); - - // create new instance and compare before and after - const { contracts: existingContracts } = await client.wasm.listContractsByCodeId(hackatomCodeId); - assert(existingContracts); - for (const address of existingContracts) { - expect(address).toMatch(bech32AddressMatcher); - } - - const beneficiaryAddress = makeRandomAddress(); - const funds = coins(707707, "cony"); - const result = await instantiateContract(wallet, hackatomCodeId, beneficiaryAddress, funds); - assertIsDeliverTxSuccess(result); - const myAddress = JSON.parse(result.rawLog!)[0] - .events.find((event: any) => event.type === eventTypeInstantiateContract) - .attributes!.find((attribute: any) => attribute.key === attributeTypeContractAddress).value; - - const { contracts: newContracts } = await client.wasm.listContractsByCodeId(hackatomCodeId); - assert(newContracts); - expect(newContracts.length).toEqual(existingContracts.length + 1); - const newContract = newContracts[newContracts.length - 1]; - expect(newContract).toMatch(bech32AddressMatcher); - - const { contractInfo } = await client.wasm.getContractInfo(myAddress); - assert(contractInfo); - expect({ ...contractInfo }).toEqual({ - codeId: Long.fromNumber(hackatomCodeId, true), - creator: faucet.address0, - label: "my escrow", - admin: "", - ibcPortId: "", - status: ContractStatus.CONTRACT_STATUS_ACTIVE, - created: undefined, - extension: undefined, - }); - expect(contractInfo.admin).toEqual(""); - }); - - it("rejects for non-existent address", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const client = await makeWasmClient(simapp.tendermintUrl); - const nonExistentAddress = makeRandomAddress(); - await expectAsync(client.wasm.getContractInfo(nonExistentAddress)).toBeRejectedWithError(/not found/i); - }); - }); - - describe("getContractCodeHistory", () => { - it("can list contract history", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { - hdPaths: [makeLinkPath(0)], - prefix: simapp.prefix, - }); - const client = await makeWasmClient(simapp.tendermintUrl); - - // create new instance and compare before and after - const beneficiaryAddress = makeRandomAddress(); - const funds = coins(707707, "cony"); - const result = await instantiateContract(wallet, hackatomCodeId, beneficiaryAddress, funds); - assertIsDeliverTxSuccess(result); - - const myAddress = JSON.parse(result.rawLog!)[0] - .events.find((event: any) => event.type === eventTypeInstantiateContract) - .attributes!.find((attribute: any) => attribute.key === attributeTypeContractAddress).value; - - const history = await client.wasm.getContractCodeHistory(myAddress); - assert(history.entries); - expect(history.entries).toContain( - jasmine.objectContaining({ - codeId: Long.fromNumber(hackatomCodeId, true), - operation: ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT, - msg: toAscii( - JSON.stringify({ - verifier: faucet.address0, - beneficiary: beneficiaryAddress, - }), - ), - }), - ); - }); - - it("returns empty list for non-existent address", async () => { - pendingWithoutSimapp(); - assert(hackatomCodeId); - const client = await makeWasmClient(simapp.tendermintUrl); - const nonExistentAddress = makeRandomAddress(); - const history = await client.wasm.getContractCodeHistory(nonExistentAddress); - expect(history.entries).toEqual([]); - }); - }); - - describe("getAllContractState", () => { - it("can get all state", async () => { - pendingWithoutSimapp(); - assert(hackatomContractAddress); - const client = await makeWasmClient(simapp.tendermintUrl); - const { models } = await client.wasm.getAllContractState(hackatomContractAddress); - assert(models); - expect(models.length).toEqual(1); - const data = models[0]; - expect(data.key).toEqual(hackatomConfigKey); - const value = JSON.parse(fromAscii(data.value)); - expect(value.verifier).toMatch(bech32AddressMatcher); - expect(value.beneficiary).toMatch(bech32AddressMatcher); - }); - - it("rejects for non-existent address", async () => { - pendingWithoutSimapp(); - const client = await makeWasmClient(simapp.tendermintUrl); - const nonExistentAddress = makeRandomAddress(); - await expectAsync(client.wasm.getAllContractState(nonExistentAddress)).toBeRejectedWithError( - /not found/i, - ); - }); - }); - - describe("queryContractRaw", () => { - it("can query by key", async () => { - pendingWithoutSimapp(); - assert(hackatomContractAddress); - const client = await makeWasmClient(simapp.tendermintUrl); - const raw = await client.wasm.queryContractRaw(hackatomContractAddress, hackatomConfigKey); - assert(raw.data, "must get result"); - const model = JSON.parse(fromAscii(raw.data)); - expect(model.verifier).toMatch(bech32AddressMatcher); - expect(model.beneficiary).toMatch(bech32AddressMatcher); - }); - - it("returns empty for missing key", async () => { - pendingWithoutSimapp(); - assert(hackatomContractAddress); - const client = await makeWasmClient(simapp.tendermintUrl); - const { data } = await client.wasm.queryContractRaw(hackatomContractAddress, fromHex("cafe0dad")); - expect(data).toEqual(new Uint8Array()); - }); - - it("returns null for non-existent address", async () => { - pendingWithoutSimapp(); - const client = await makeWasmClient(simapp.tendermintUrl); - const nonExistentAddress = makeRandomAddress(); - await expectAsync( - client.wasm.queryContractRaw(nonExistentAddress, hackatomConfigKey), - ).toBeRejectedWithError(/not found/i); - }); - }); - - describe("queryContractSmart", () => { - it("can make smart queries", async () => { - pendingWithoutSimapp(); - assert(hackatomContractAddress); - const client = await makeWasmClient(simapp.tendermintUrl); - const request = { verifier: {} }; - const result = await client.wasm.queryContractSmart(hackatomContractAddress, request); - expect(result).toEqual({ verifier: faucet.address0 }); - }); - - it("throws for invalid query requests", async () => { - pendingWithoutSimapp(); - assert(hackatomContractAddress); - const client = await makeWasmClient(simapp.tendermintUrl); - const request = { nosuchkey: {} }; - await expectAsync( - client.wasm.queryContractSmart(hackatomContractAddress, request), - ).toBeRejectedWithError(/Error parsing into type hackatom::msg::QueryMsg: unknown variant/i); - }); - - it("throws for non-existent address", async () => { - pendingWithoutSimapp(); - const client = await makeWasmClient(simapp.tendermintUrl); - const nonExistentAddress = makeRandomAddress(); - const request = { verifier: {} }; - await expectAsync(client.wasm.queryContractSmart(nonExistentAddress, request)).toBeRejectedWithError( - /not found/i, - ); - }); - }); - - describe("broadcastTx", () => { - it("can upload, instantiate and execute wasm", async () => { - pendingWithoutSimapp(); - const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { - hdPaths: [makeLinkPath(0)], - prefix: simapp.prefix, - }); - const client = await makeWasmClient(simapp.tendermintUrl); - - const funds = [coin(1234, "cony"), coin(321, "stake")]; - const beneficiaryAddress = makeRandomAddress(); - - let codeId: number; - - // upload - { - const result = await uploadContract(wallet, getHackatom()); - assertIsDeliverTxSuccess(result); - const parsedLogs = logs.parseLogs(logs.parseRawLog(result.rawLog)); - const codeIdAttr = logs.findAttribute(parsedLogs, "store_code", "code_id"); - codeId = Number.parseInt(codeIdAttr.value, 10); - expect(codeId).toBeGreaterThanOrEqual(1); - expect(codeId).toBeLessThanOrEqual(200); - const actionAttr = logs.findAttribute(parsedLogs, "message", "module"); - expect(actionAttr.value).toEqual("wasm"); - } - - let contractAddress: string; - - // instantiate - { - const result = await instantiateContract(wallet, codeId, beneficiaryAddress, funds); - assertIsDeliverTxSuccess(result); - const parsedLogs = logs.parseLogs(logs.parseRawLog(result.rawLog)); - const contractAddressAttr = logs.findAttribute( - parsedLogs, - eventTypeInstantiateContract, - attributeTypeContractAddress, - ); - contractAddress = contractAddressAttr.value; - const amountAttr = logs.findAttribute(parsedLogs, "transfer", "amount"); - expect(amountAttr.value).toEqual("1234cony,321stake"); - const actionAttr = logs.findAttribute(parsedLogs, "message", "module"); - expect(actionAttr.value).toEqual("wasm"); - - const balanceCony = await client.bank.balance(contractAddress, "cony"); - expect(balanceCony).toEqual(funds[0]); - const balanceUstake = await client.bank.balance(contractAddress, "stake"); - expect(balanceUstake).toEqual(funds[1]); - } - - // execute - { - const result = await executeContract(wallet, contractAddress, { release: {} }); - assertIsDeliverTxSuccess(result); - const parsedLogs = logs.parseLogs(logs.parseRawLog(result.rawLog)); - const wasmEvent = parsedLogs.find(() => true)?.events.find((e) => e.type === "wasm"); - assert(wasmEvent, "Event of type wasm expected"); - expect(wasmEvent.attributes).toContain({ key: "action", value: "release" }); - expect(wasmEvent.attributes).toContain({ - key: "destination", - value: beneficiaryAddress, - }); - - // Verify token transfer from contract to beneficiary - const beneficiaryBalanceCony = await client.bank.balance(beneficiaryAddress, "cony"); - expect(beneficiaryBalanceCony).toEqual(funds[0]); - const beneficiaryBalanceUstake = await client.bank.balance(beneficiaryAddress, "stake"); - expect(beneficiaryBalanceUstake).toEqual(funds[1]); - } - }); - }); -}); diff --git a/packages/finschia/src/modules/wasm/queries.ts b/packages/finschia/src/modules/wasm/queries.ts deleted file mode 100644 index bb50b77f2..000000000 --- a/packages/finschia/src/modules/wasm/queries.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { fromUtf8, toAscii } from "@cosmjs/encoding"; -import { createPagination, createProtobufRpcClient, QueryClient } from "@cosmjs/stargate"; -import { - QueryAllContractStateResponse, - QueryCodeResponse, - QueryCodesResponse, - QueryContractHistoryResponse, - QueryContractsByCodeResponse, - QueryRawContractStateResponse, -} from "cosmjs-types/cosmwasm/wasm/v1/query"; -import { QueryClientImpl, QueryContractInfoResponse } from "lbmjs-types/cosmwasm/wasm/v1/query"; -import Long from "long"; - -/** - * An object containing a parsed JSON document. The result of JSON.parse(). - * This doesn't provide any type safety over `any` but expresses intent in the code. - * - * This type is returned by `queryContractSmart`. - */ -export type JsonObject = any; - -export interface WasmExtension { - readonly wasm: { - readonly listCodeInfo: (paginationKey?: Uint8Array) => Promise; - /** - * Downloads the original wasm bytecode by code ID. - * - * Throws an error if no code with this id - */ - readonly getCode: (id: number) => Promise; - readonly listContractsByCodeId: ( - id: number, - paginationKey?: Uint8Array, - ) => Promise; - /** - * Returns null when contract was not found at this address. - */ - readonly getContractInfo: (address: string) => Promise; - /** - * Returns null when contract history was not found for this address. - */ - readonly getContractCodeHistory: ( - address: string, - paginationKey?: Uint8Array, - ) => Promise; - /** - * Returns all contract state. - * This is an empty array if no such contract, or contract has no data. - */ - readonly getAllContractState: ( - address: string, - paginationKey?: Uint8Array, - ) => Promise; - /** - * Returns the data at the key if present (unknown decoded json), - * or null if no data at this (contract address, key) pair - */ - readonly queryContractRaw: (address: string, key: Uint8Array) => Promise; - /** - * Makes a smart query on the contract and parses the response as JSON. - * Throws error if no such contract exists, the query format is invalid or the response is invalid. - */ - readonly queryContractSmart: (address: string, query: Record) => Promise; - }; -} - -export function setupWasmExtension(base: QueryClient): WasmExtension { - const rpc = createProtobufRpcClient(base); - // Use this service to get easy typed access to query methods - // This cannot be used for proof verification - const queryService = new QueryClientImpl(rpc); - - return { - wasm: { - listCodeInfo: async (paginationKey?: Uint8Array) => { - const request = { - pagination: createPagination(paginationKey), - }; - return queryService.Codes(request); - }, - getCode: async (id: number) => { - const request = { codeId: Long.fromNumber(id) }; - return queryService.Code(request); - }, - listContractsByCodeId: async (id: number, paginationKey?: Uint8Array) => { - const request = { - codeId: Long.fromNumber(id), - pagination: createPagination(paginationKey), - }; - return queryService.ContractsByCode(request); - }, - getContractInfo: async (address: string) => { - const request = { address: address }; - return queryService.ContractInfo(request); - }, - - getContractCodeHistory: async (address: string, paginationKey?: Uint8Array) => { - const request = { - address: address, - pagination: createPagination(paginationKey), - }; - return queryService.ContractHistory(request); - }, - - getAllContractState: async (address: string, paginationKey?: Uint8Array) => { - const request = { - address: address, - pagination: createPagination(paginationKey), - }; - return queryService.AllContractState(request); - }, - - queryContractRaw: async (address: string, key: Uint8Array) => { - const request = { address: address, queryData: key }; - return queryService.RawContractState(request); - }, - - queryContractSmart: async (address: string, query: Record) => { - const request = { address: address, queryData: toAscii(JSON.stringify(query)) }; - const { data } = await queryService.SmartContractState(request); - // By convention, smart queries must return a valid JSON document (see https://github.com/CosmWasm/cosmwasm/issues/144) - let responseText: string; - try { - responseText = fromUtf8(data); - } catch (error) { - throw new Error(`Could not UTF-8 decode smart query response from contract: ${error}`); - } - try { - return JSON.parse(responseText); - } catch (error) { - throw new Error(`Could not JSON parse smart query response from contract: ${error}`); - } - }, - }, - }; -} diff --git a/packages/finschia/src/modules/wasmplus/messages.ts b/packages/finschia/src/modules/wasmplus/messages.ts new file mode 100644 index 000000000..ccd026615 --- /dev/null +++ b/packages/finschia/src/modules/wasmplus/messages.ts @@ -0,0 +1,20 @@ +import { EncodeObject, GeneratedType } from "@cosmjs/proto-signing"; +import { MsgStoreCodeAndInstantiateContract } from "lbmjs-types/lbm/wasm/v1/tx"; + +export const wasmplusTypes: ReadonlyArray<[string, GeneratedType]> = [ + ["/lbm.wasm.v1.MsgStoreCodeAndInstantiateContract", MsgStoreCodeAndInstantiateContract], +]; + +export interface MsgStoreCodeAndInstantiateContractEncodeObject extends EncodeObject { + readonly typeUrl: "/lbm.wasm.v1.MsgStoreCodeAndInstantiateContract"; + readonly value: Partial; +} + +export function isMsgStoreCodeAndInstantiateContract( + object: EncodeObject, +): object is MsgStoreCodeAndInstantiateContractEncodeObject { + return ( + (object as MsgStoreCodeAndInstantiateContractEncodeObject).typeUrl === + "/lbm.wasm.v1.MsgStoreCodeAndInstantiateContract" + ); +} diff --git a/packages/finschia/src/modules/wasmplus/queries.spec.ts b/packages/finschia/src/modules/wasmplus/queries.spec.ts new file mode 100644 index 000000000..ac29f4bbc --- /dev/null +++ b/packages/finschia/src/modules/wasmplus/queries.spec.ts @@ -0,0 +1,136 @@ +import { toUtf8 } from "@cosmjs/encoding"; +import { DirectSecp256k1HdWallet, OfflineDirectSigner, Registry } from "@cosmjs/proto-signing"; +import { + assertIsDeliverTxSuccess, + calculateFee, + coin, + DeliverTxResponse, + logs, + SigningStargateClient, +} from "@cosmjs/stargate"; +import { assert } from "@cosmjs/utils"; +import { MsgStoreCodeAndInstantiateContract } from "lbmjs-types/lbm/wasm/v1/tx"; + +import { makeLinkPath } from "../../paths"; +import { + defaultGasPrice, + defaultSigningClientOptions, + faucet, + getHackatom, + makeRandomAddress, + makeWasmClient, + pendingWithoutSimapp, + simapp, + simappEnabled, +} from "../../testutils.spec"; +import { MsgStoreCodeAndInstantiateContractEncodeObject, wasmplusTypes } from "./messages"; + +const registry = new Registry(wasmplusTypes); + +const eventTypeInstantiateContract = "instantiate"; +const attributeTypeContractAddress = "_contract_address"; + +async function uploadAndInstantiate( + signer: OfflineDirectSigner, + beneficiaryAddress: string, +): Promise { + const memo = "My first contract on chain"; + const theMsg: MsgStoreCodeAndInstantiateContractEncodeObject = { + typeUrl: "/lbm.wasm.v1.MsgStoreCodeAndInstantiateContract", + value: MsgStoreCodeAndInstantiateContract.fromPartial({ + sender: faucet.address0, + wasmByteCode: getHackatom().data, + admin: "", + label: "My Test label", + msg: toUtf8( + JSON.stringify({ + verifier: faucet.address0, + beneficiary: beneficiaryAddress, + }), + ), + funds: [coin(1234, "cony"), coin(321, "stake")], + }), + }; + + const firstAddress = (await signer.getAccounts())[0].address; + const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, signer, { + ...defaultSigningClientOptions, + registry, + }); + return client.signAndBroadcast(firstAddress, [theMsg], calculateFee(3_000_000, defaultGasPrice), memo); +} + +describe("WasmplusExtension", () => { + let hackatomContractAddress: string | undefined; + + beforeAll(async () => { + if (simappEnabled()) { + const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { + hdPaths: [makeLinkPath(0)], + prefix: simapp.prefix, + }); + const result = await uploadAndInstantiate(wallet, makeRandomAddress()); + + assertIsDeliverTxSuccess(result); + hackatomContractAddress = JSON.parse(result.rawLog!)[0] + .events.find((event: any) => event.type === eventTypeInstantiateContract) + .attributes.find((attribute: any) => attribute.key === attributeTypeContractAddress).value; + } + }); + + describe("inactiveContract", () => { + it("get status wether the contract by the contract address is active or not", async () => { + pendingWithoutSimapp(); + assert(hackatomContractAddress); + const client = await makeWasmClient(simapp.tendermintUrl); + const result = await client.wasmplus.getInactiveContract(hackatomContractAddress); + assert(result); + }); + }); + + describe("inactiveContracts", () => { + it("get list of contract addresses that is inactive", async () => { + pendingWithoutSimapp(); + const client = await makeWasmClient(simapp.tendermintUrl); + const { addresses } = await client.wasmplus.getInactiveContracts(); + assert(addresses); + }); + }); + + describe("broadcastTx", () => { + it("can upload and intantiate", async () => { + pendingWithoutSimapp(); + const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { + hdPaths: [makeLinkPath(0)], + prefix: simapp.prefix, + }); + const client = await makeWasmClient(simapp.tendermintUrl); + + const funds = [coin(1234, "cony"), coin(321, "stake")]; + const beneficiaryAddress = makeRandomAddress(); + + const result = await uploadAndInstantiate(wallet, beneficiaryAddress); + assertIsDeliverTxSuccess(result); + + const parsedLogs = logs.parseLogs(logs.parseRawLog(result.rawLog)); + const codeIdAttr = logs.findAttribute(parsedLogs, "store_code", "code_id"); + const codeId = Number.parseInt(codeIdAttr.value, 10); + expect(codeId).toBeGreaterThanOrEqual(1); + expect(codeId).toBeLessThanOrEqual(200); + const actionAttr1 = logs.findAttribute(parsedLogs, "message", "module"); + expect(actionAttr1.value).toEqual("wasm"); + + const contractAddressAttr = logs.findAttribute(parsedLogs, "instantiate", "_contract_address"); + const contractAddress = contractAddressAttr.value; + const amountAttr = logs.findAttribute(parsedLogs, "transfer", "amount"); + expect(amountAttr.value).toEqual("1234cony,321stake"); + const actionAttr2 = logs.findAttribute(parsedLogs, "message", "module"); + expect(actionAttr2.value).toEqual("wasm"); + + const balanceUcosm = await client.bank.balance(contractAddress, "cony"); + expect(balanceUcosm).toEqual(funds[0]); + const balanceUstake = await client.bank.balance(contractAddress, "stake"); + expect(balanceUstake).toEqual(funds[1]); + }); + }); +}); diff --git a/packages/finschia/src/modules/wasmplus/queries.ts b/packages/finschia/src/modules/wasmplus/queries.ts new file mode 100644 index 000000000..d4c710a29 --- /dev/null +++ b/packages/finschia/src/modules/wasmplus/queries.ts @@ -0,0 +1,41 @@ +import { createPagination, createProtobufRpcClient, QueryClient } from "@cosmjs/stargate"; +import { + QueryClientImpl, + QueryInactiveContractResponse, + QueryInactiveContractsResponse, +} from "lbmjs-types/lbm/wasm/v1/query"; + +/** + * An object containing a parsed JSON document. The result of JSON.parse(). + * This doesn't provide any type safety over `any` but expresses intent in the code. + * + * This type is returned by `queryContractSmart`. + */ +export type JsonObject = any; + +export interface WasmplusExtension { + readonly wasmplus: { + readonly getInactiveContract: (address: string) => Promise; + readonly getInactiveContracts: (paginationKey?: Uint8Array) => Promise; + }; +} + +export function setupWasmplusExtension(base: QueryClient): WasmplusExtension { + const rpc = createProtobufRpcClient(base); + // Use this service to get easy typed access to query methods + // This cannot be used for proof verification + const queryService = new QueryClientImpl(rpc); + + return { + wasmplus: { + getInactiveContract: async (address: string) => { + const request = { address: address }; + return queryService.InactiveContract(request); + }, + getInactiveContracts: async (paginationKey?: Uint8Array) => { + const request = { pagination: createPagination(paginationKey) }; + return queryService.InactiveContracts(request); + }, + }, + }; +} diff --git a/packages/finschia/src/signingfinschiaclient.ts b/packages/finschia/src/signingfinschiaclient.ts index f73ab2427..793eb58d2 100644 --- a/packages/finschia/src/signingfinschiaclient.ts +++ b/packages/finschia/src/signingfinschiaclient.ts @@ -55,7 +55,7 @@ import { StdFee, } from "@cosmjs/stargate"; import { - createFreegrantAminoConverters, + createFeegrantAminoConverters, createIbcAminoConverters, MsgTransferEncodeObject, } from "@cosmjs/stargate"; @@ -76,12 +76,20 @@ import { import { AccessType } from "cosmjs-types/cosmwasm/wasm/v1/types"; import { MsgTransfer } from "cosmjs-types/ibc/applications/transfer/v1/tx"; import { Height } from "cosmjs-types/ibc/core/client/v1/client"; -import { MsgStoreCodeAndInstantiateContract } from "lbmjs-types/cosmwasm/wasm/v1/tx"; +import { MsgStoreCodeAndInstantiateContract } from "lbmjs-types/lbm/wasm/v1/tx"; import Long from "long"; import pako from "pako"; import { FinschiaClient } from "./finschiaclient"; -import { collectionTypes, feegrantTypes, foundationTypes, ibcTypes, tokenTypes, wasmTypes } from "./modules"; +import { + collectionTypes, + feegrantTypes, + foundationTypes, + ibcTypes, + tokenTypes, + wasmplusTypes, + wasmTypes, +} from "./modules"; export interface UploadAndInstantiateResult { /** Size of the original wasm code in bytes */ @@ -114,6 +122,7 @@ export const finschiaRegistryTypes: ReadonlyArray<[string, GeneratedType]> = [ ...foundationTypes, ...collectionTypes, ...wasmTypes, + ...wasmplusTypes, ]; function createDefaultRegistry(): Registry { @@ -125,7 +134,7 @@ function createDefaultTypes(prefix: string): AminoConverters { ...createAuthzAminoConverters(), ...createBankAminoConverters(), ...createDistributionAminoConverters(), - ...createFreegrantAminoConverters(), + ...createFeegrantAminoConverters(), ...createGovAminoConverters(), ...createIbcAminoConverters(), ...createStakingAminoConverters(prefix), @@ -376,7 +385,7 @@ export class SigningFinschiaClient extends FinschiaClient { ): Promise { const compressed = pako.gzip(wasmCode, { level: 9 }); const storeCodeAndInstantiateMsg: EncodeObject = { - typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeAndInstantiateContract", + typeUrl: "/lbm.wasm.v1.MsgStoreCodeAndInstantiateContract", value: MsgStoreCodeAndInstantiateContract.fromPartial({ sender: signerAddress, wasmByteCode: compressed, @@ -615,6 +624,8 @@ export class SigningFinschiaClient extends FinschiaClient { [{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, + signed.fee.granter, + signed.fee.payer, signMode, ); return TxRaw.fromPartial({ @@ -648,7 +659,13 @@ export class SigningFinschiaClient extends FinschiaClient { }; const txBodyBytes = this.registry.encode(txBody); const gasLimit = Int53.fromString(fee.gas).toNumber(); - const authInfoBytes = makeAuthInfoBytes([{ pubkey, sequence }], fee.amount, gasLimit); + const authInfoBytes = makeAuthInfoBytes( + [{ pubkey, sequence }], + fee.amount, + gasLimit, + fee.granter, + fee.payer, + ); const signDoc = makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber); const { signature, signed } = await this.signer.signDirect(signerAddress, signDoc); return TxRaw.fromPartial({ diff --git a/packages/finschia/src/testutils.spec.ts b/packages/finschia/src/testutils.spec.ts index b189e35e8..87cefdc1c 100644 --- a/packages/finschia/src/testutils.spec.ts +++ b/packages/finschia/src/testutils.spec.ts @@ -1,5 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { AminoSignResponse, Secp256k1HdWallet, Secp256k1HdWalletOptions, StdSignDoc } from "@cosmjs/amino"; +import { setupWasmExtension, WasmExtension } from "@cosmjs/cosmwasm-stargate"; import { Bip39, EnglishMnemonic, Random } from "@cosmjs/crypto"; import { fromBase64, toBech32 } from "@cosmjs/encoding"; import { @@ -23,7 +24,7 @@ import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; import { SignMode } from "cosmjs-types/cosmos/tx/signing/v1beta1/signing"; import { AuthInfo, SignDoc, TxBody } from "cosmjs-types/cosmos/tx/v1beta1/tx"; -import { setupWasmExtension, WasmExtension } from "./modules"; +import { setupWasmplusExtension, WasmplusExtension } from "./modules"; import hackatom from "./testdata/contract.json"; export const defaultGasPrice = GasPrice.fromString("0.025cony"); @@ -214,9 +215,15 @@ export function fromOneElementArray(elements: ArrayLike): T { export async function makeWasmClient( endpoint: string, -): Promise { +): Promise { const tmClient = await Tendermint34Client.connect(endpoint); - return QueryClient.withExtensions(tmClient, setupAuthExtension, setupBankExtension, setupWasmExtension); + return QueryClient.withExtensions( + tmClient, + setupAuthExtension, + setupBankExtension, + setupWasmExtension, + setupWasmplusExtension, + ); } /** @@ -271,6 +278,8 @@ export class ModifyingDirectSecp256k1HdWallet extends DirectSecp256k1HdWallet { })); const modifiedFeeAmount = coins(3000, "cony"); const modifiedGasLimit = 333333; + const modifiedFeeGranter = undefined; + const modifiedFeePayer = undefined; const modifiedSignDoc = { ...signDoc, bodyBytes: Uint8Array.from(TxBody.encode(modifiedTxBody).finish()), @@ -278,6 +287,8 @@ export class ModifyingDirectSecp256k1HdWallet extends DirectSecp256k1HdWallet { signers, modifiedFeeAmount, modifiedGasLimit, + modifiedFeeGranter, + modifiedFeePayer, SignMode.SIGN_MODE_DIRECT, ), }; diff --git a/scripts/simapp/env b/scripts/simapp/env index da11c5a39..776c7891d 100644 --- a/scripts/simapp/env +++ b/scripts/simapp/env @@ -1,4 +1,4 @@ # Choose from https://hub.docker.com/r/line/lbm-simapp/tags REPOSITORY="line/lbm-simapp" -VERSION="0.46.0-rc7" +VERSION="0.46.0-rc8" CONTAINER_NAME="lbm-simapp" diff --git a/yarn.lock b/yarn.lock index 2030f78cc..3abea08f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -290,162 +290,160 @@ __metadata: languageName: node linkType: hard -"@cosmjs/amino@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/amino@npm:0.28.4" - dependencies: - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/utils": 0.28.4 - checksum: f84e6968d9f23fa17b96f23d65255a5030d055057160b2951afeb98f91b36a753c3687d25dc25e97c44fd952ff1b6b79c72f060fa6787910f6c8517b3f91f797 - languageName: node - linkType: hard - -"@cosmjs/cosmwasm-stargate@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/cosmwasm-stargate@npm:0.28.4" - dependencies: - "@cosmjs/amino": 0.28.4 - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/proto-signing": 0.28.4 - "@cosmjs/stargate": 0.28.4 - "@cosmjs/tendermint-rpc": 0.28.4 - "@cosmjs/utils": 0.28.4 - cosmjs-types: ^0.4.0 +"@cosmjs/amino@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/amino@npm:0.29.0" + dependencies: + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/utils": ^0.29.0 + checksum: 372e3ef9a5a338d609410ffe31e65a06f92b9f67e1ecdf8a2be3cfa0ac3f5d7c92efacfed35694a650bdacebb4f13aa97a8be207277579a1af6536f4d6394e5a + languageName: node + linkType: hard + +"@cosmjs/cosmwasm-stargate@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/cosmwasm-stargate@npm:0.29.0" + dependencies: + "@cosmjs/amino": ^0.29.0 + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/proto-signing": ^0.29.0 + "@cosmjs/stargate": ^0.29.0 + "@cosmjs/tendermint-rpc": ^0.29.0 + "@cosmjs/utils": ^0.29.0 + cosmjs-types: ^0.5.0 long: ^4.0.0 pako: ^2.0.2 - protobufjs: ~6.10.2 - checksum: 6b1142c45f6dc130385889d4bd4e2fc13bde3ef431f649f88e019871b961a01eb92af5d60d3f97c407e6d25aeb62e6baf5cdbb366b8e5d5ae009a7231cee40b9 + checksum: 8a2be801a1863483ca12014a421ce4ff55059341541a8fa78ecfa5464af5375ac5896d49112dd33a613bcd1bbbf17242538c2b23f107ec947150f2d40838bc18 languageName: node linkType: hard -"@cosmjs/crypto@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/crypto@npm:0.28.4" +"@cosmjs/crypto@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/crypto@npm:0.29.0" dependencies: - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/utils": 0.28.4 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/utils": ^0.29.0 "@noble/hashes": ^1 bn.js: ^5.2.0 elliptic: ^6.5.3 libsodium-wrappers: ^0.7.6 - checksum: 2ea35cc3cc846a5ecb6ca4ff2d8e228eb58314363722f6e8274ddf7bb2dd070c929731c22f376bd8181c8e0c55bf091faafd3b5e345751588105ee169df08798 + checksum: d6f32d3e91884a7eddb797f524115bb07d5fbf88ea2c8e4c340fca948be29620fca5a5bd426f61e9c8334b54c77ba2e15434a96ef94761af42e536a1d596588b languageName: node linkType: hard -"@cosmjs/encoding@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/encoding@npm:0.28.4" +"@cosmjs/encoding@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/encoding@npm:0.29.0" dependencies: base64-js: ^1.3.0 bech32: ^1.1.4 readonly-date: ^1.0.0 - checksum: 7de561119c083bb539d3e2868529da55aef6e36f20ebd613ee15391143076eb8b2b6d84f86c6954b8ad1a7dcff0594e6fe5ef3b1078303d570d602466524a04a + checksum: 70e9458edaa3da132012a473d60e86de656c84afc8eeedf98cb42a6ff2dcb3fd1c0c19a53c22c646a46b338b27f29ad872ce1a780357df752fc31ce90b6998f2 languageName: node linkType: hard -"@cosmjs/json-rpc@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/json-rpc@npm:0.28.4" +"@cosmjs/json-rpc@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/json-rpc@npm:0.29.0" dependencies: - "@cosmjs/stream": 0.28.4 + "@cosmjs/stream": ^0.29.0 xstream: ^11.14.0 - checksum: d7b84452eb5190c91fe01e8f41cdbc699ad51c55ac26611d7816956117ee68852f9d5dbf134ced9e0a5d741e759ed79fc8b3b2af6cc63214d13d7d729161390a + checksum: 1197a71d63b772f2fa1856f67ffa2081f3cd7ffa201f1cd95d455ec3bc2bdb92d5afc6c271ce0548422e64a8cab781542ff48f0ca0680d689b20ab351c1ba031 languageName: node linkType: hard -"@cosmjs/math@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/math@npm:0.28.4" +"@cosmjs/math@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/math@npm:0.29.0" dependencies: bn.js: ^5.2.0 - checksum: 89b7d263b4bfe458a81adde32791da8dffe7c3ae9f53176496cd864a1bb9db9649a7c7c82d89acc05aeea4eccc76b7e01552a7df54371fbd0b8d4cda3d5f210d + checksum: b420a5f4e00fe25ef256ae9fb89d01007e06947f393377a41db4fd689928eb1548d8cd00f01c351ec51683c66a73006fe1c1a8a533b1f22e3308942a11d455fe languageName: node linkType: hard -"@cosmjs/proto-signing@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/proto-signing@npm:0.28.4" +"@cosmjs/proto-signing@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/proto-signing@npm:0.29.0" dependencies: - "@cosmjs/amino": 0.28.4 - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/utils": 0.28.4 - cosmjs-types: ^0.4.0 + "@cosmjs/amino": ^0.29.0 + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/utils": ^0.29.0 + cosmjs-types: ^0.5.0 long: ^4.0.0 - protobufjs: ~6.10.2 - checksum: 9d6419b1109d61f6f6b50c35ee8d6673462dafb031f63496df120f3751c5b21a6c09f601d5ad48dfac7a39226a709c5dc571f4b1018b802316df66c9e5a05f30 + checksum: 71c00cb526ec9bde3afe4a6ac4f42d924f92391c02bebc6102dcd831921d56b4dcf72d50fb64b08f74feee7f0979f18d02eb7d7abb506fd8401cdfb9dd62e85d languageName: node linkType: hard -"@cosmjs/socket@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/socket@npm:0.28.4" +"@cosmjs/socket@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/socket@npm:0.29.0" dependencies: - "@cosmjs/stream": 0.28.4 + "@cosmjs/stream": ^0.29.0 isomorphic-ws: ^4.0.1 ws: ^7 xstream: ^11.14.0 - checksum: 1a27c010a5b443f0692ab8ab84e80d75183ab216f32a43f3298848c92799d45e4b6f240341f1442dda64497ead5cf5ebc05fe0d776117a1522125d33535d2f8d + checksum: b4012274573487cf7a59f688cea6b5b5394bebf0e11e36fad06aff56266cb62b2e3b8ed4453fb9873c03dff091c0de91ddea35d8066d2a91fc2db3c080e04fd0 languageName: node linkType: hard -"@cosmjs/stargate@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/stargate@npm:0.28.4" +"@cosmjs/stargate@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/stargate@npm:0.29.0" dependencies: "@confio/ics23": ^0.6.8 - "@cosmjs/amino": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/proto-signing": 0.28.4 - "@cosmjs/stream": 0.28.4 - "@cosmjs/tendermint-rpc": 0.28.4 - "@cosmjs/utils": 0.28.4 - cosmjs-types: ^0.4.0 + "@cosmjs/amino": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/proto-signing": ^0.29.0 + "@cosmjs/stream": ^0.29.0 + "@cosmjs/tendermint-rpc": ^0.29.0 + "@cosmjs/utils": ^0.29.0 + cosmjs-types: ^0.5.0 long: ^4.0.0 - protobufjs: ~6.10.2 + protobufjs: ~6.11.3 xstream: ^11.14.0 - checksum: ce3969a4791889f624e918de930fece4da8ba641364635d6b1bf32c1f1374c7f83e87239a2776e8a82b4f179184a716efe797f386e25fb6b87b4286c66755126 + checksum: fe814d740ab58bdfd733b347d12b145754249ba126b6f4afa4853015732c6e259c2a157559435208b8571c25eb0a8c0ae933866e534e67731744eb6d9447bd47 languageName: node linkType: hard -"@cosmjs/stream@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/stream@npm:0.28.4" +"@cosmjs/stream@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/stream@npm:0.29.0" dependencies: xstream: ^11.14.0 - checksum: b5d88927f259c6b20f3f316ffa6cb84c3b9e7b80ad134eb4906444690fa7233c3d7ca13a6b352b45ec0f8ecfd1bb8a49248e594837e0d50a1e10f6ecd33e9fec + checksum: b56ac5929dc310e2ef29bc4a3f18c51d75e9c0d41ebf94a1ecf47c774d9f62ad54a6f259e07112a86f58ed0e94ec501680df7a8c8a05d6a284b960444a18bdd8 languageName: node linkType: hard -"@cosmjs/tendermint-rpc@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/tendermint-rpc@npm:0.28.4" +"@cosmjs/tendermint-rpc@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/tendermint-rpc@npm:0.29.0" dependencies: - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/json-rpc": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/socket": 0.28.4 - "@cosmjs/stream": 0.28.4 - "@cosmjs/utils": 0.28.4 + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/json-rpc": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/socket": ^0.29.0 + "@cosmjs/stream": ^0.29.0 + "@cosmjs/utils": ^0.29.0 axios: ^0.21.2 readonly-date: ^1.0.0 xstream: ^11.14.0 - checksum: fad057a14da035306f2e0809a6653a159f5cb84f415c516f08d7af987804f5ef6c4c11b83677451c3662da513b1e0065863badcf13983462e8e073701ac13714 + checksum: c538ac7e8fb167d190b9616dc19527f20aaa14c88b637506074ef26fd83701b2550ba702da484ee14e7c12bbd6a8f34895452c5d2379ad86f8b165b686c330e5 languageName: node linkType: hard -"@cosmjs/utils@npm:0.28.4": - version: 0.28.4 - resolution: "@cosmjs/utils@npm:0.28.4" - checksum: 8c0994ff33850612fa6361effa3412ad44d154ec073308d3c921557a91631cce12a08523633eadda5bad131d88a63d3990b5070b5042dfd45a78597d5c2491cb +"@cosmjs/utils@npm:^0.29.0": + version: 0.29.0 + resolution: "@cosmjs/utils@npm:0.29.0" + checksum: 580cc28c9c2b28e4e5a1da8462e40e504352c54bf9dd28fa0da296941d5ef7d9ad33de8b38179f0cd4ce96fdee004b33bc7e2f1604ec832b84562c112c8693af languageName: node linkType: hard @@ -557,15 +555,15 @@ __metadata: version: 0.0.0-use.local resolution: "@lbmjs/finschia@workspace:packages/finschia" dependencies: - "@cosmjs/amino": 0.28.4 - "@cosmjs/cosmwasm-stargate": 0.28.4 - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/math": 0.28.4 - "@cosmjs/proto-signing": 0.28.4 - "@cosmjs/stargate": 0.28.4 - "@cosmjs/tendermint-rpc": 0.28.4 - "@cosmjs/utils": 0.28.4 + "@cosmjs/amino": ^0.29.0 + "@cosmjs/cosmwasm-stargate": ^0.29.0 + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/math": ^0.29.0 + "@cosmjs/proto-signing": ^0.29.0 + "@cosmjs/stargate": ^0.29.0 + "@cosmjs/tendermint-rpc": ^0.29.0 + "@cosmjs/utils": ^0.29.0 "@istanbuljs/nyc-config-typescript": ^1.0.1 "@types/eslint-plugin-prettier": ^3 "@types/jasmine": ^3.8 @@ -577,7 +575,7 @@ __metadata: "@types/pako": ^1.0.1 "@typescript-eslint/eslint-plugin": ^5.13.0 "@typescript-eslint/parser": ^5.13.0 - cosmjs-types: 0.4.0 + cosmjs-types: ^0.5.1 eslint: ^7.5 eslint-config-prettier: ^8.3.0 eslint-import-resolver-node: ^0.3.4 @@ -595,7 +593,7 @@ __metadata: karma-jasmine-html-reporter: ^1.5.4 karma-spec-reporter: ^0.0.33 karma-typescript: ^5.5.3 - lbmjs-types: ^0.46.0-rc7 + lbmjs-types: ^0.46.0-rc8 long: ^4.0.0 nyc: ^15.1.0 pako: ^2.0.2 @@ -2116,23 +2114,13 @@ __metadata: languageName: node linkType: hard -"cosmjs-types@npm:0.4.0": - version: 0.4.0 - resolution: "cosmjs-types@npm:0.4.0" - dependencies: - long: ^4.0.0 - protobufjs: ~6.11.2 - checksum: ffc3e6451e85023f81e17ae55cc221d2be77fa01ac65cbd51ec69b695c49a7fba5ddd50a913e519db8aae821f02f0c1a231a2d20337d4646ca520bb3584631a1 - languageName: node - linkType: hard - -"cosmjs-types@npm:^0.4.0": - version: 0.4.1 - resolution: "cosmjs-types@npm:0.4.1" +"cosmjs-types@npm:^0.5.0, cosmjs-types@npm:^0.5.1": + version: 0.5.1 + resolution: "cosmjs-types@npm:0.5.1" dependencies: long: ^4.0.0 protobufjs: ~6.11.2 - checksum: 7921026bb7f1fef70a6d3c3cbfc71d6af21616d532e5cd9f2af15b94c53f98f8d76da65a8fd60f930df2a9ff4eebed1bb3f49baa3eac7117981fbc8f45259005 + checksum: 418622ea552ddac1334f99ab2151609c70b54992b380cd4dcbd768c32b3070ea97ae3152b23d4b66993fa41051cfe274817773916a076e0d6a3732830b525372 languageName: node linkType: hard @@ -4217,10 +4205,10 @@ __metadata: version: 0.0.0-use.local resolution: "lbmjs-monorepo-root@workspace:." dependencies: - "@cosmjs/crypto": 0.28.4 - "@cosmjs/encoding": 0.28.4 - "@cosmjs/proto-signing": 0.28.4 - "@cosmjs/stargate": 0.28.4 + "@cosmjs/crypto": ^0.29.0 + "@cosmjs/encoding": ^0.29.0 + "@cosmjs/proto-signing": ^0.29.0 + "@cosmjs/stargate": ^0.29.0 "@lbmjs/finschia": "workspace:packages/finschia" eslint: ^7.5 karma-chrome-launcher: ^3.1.0 @@ -4233,13 +4221,13 @@ __metadata: languageName: unknown linkType: soft -"lbmjs-types@npm:^0.46.0-rc7": - version: 0.46.0-rc7 - resolution: "lbmjs-types@npm:0.46.0-rc7" +"lbmjs-types@npm:^0.46.0-rc8": + version: 0.46.0-rc8 + resolution: "lbmjs-types@npm:0.46.0-rc8" dependencies: long: ^4.0.0 protobufjs: ~6.11.2 - checksum: e3fb4e283ebe29ff666d32fbbdfa8f69cf1620bc699fc26a4f2552e083f02f3460f3fbdf72d342c5fef928a6371f4ae6a774b63d4877628855529a01d9c65831 + checksum: 01d37472a60f51fc13ec84e3c3f25bd07dcf138fe8e35d6bf6012c62c7a74a601f28d4b2e8813181a5e4267a9df47c1e985b178dd7cd3ce96cd3dea048c7bcce languageName: node linkType: hard @@ -5207,6 +5195,30 @@ __metadata: languageName: node linkType: hard +"protobufjs@npm:~6.11.3": + version: 6.11.3 + resolution: "protobufjs@npm:6.11.3" + dependencies: + "@protobufjs/aspromise": ^1.1.2 + "@protobufjs/base64": ^1.1.2 + "@protobufjs/codegen": ^2.0.4 + "@protobufjs/eventemitter": ^1.1.0 + "@protobufjs/fetch": ^1.1.0 + "@protobufjs/float": ^1.0.2 + "@protobufjs/inquire": ^1.1.0 + "@protobufjs/path": ^1.1.2 + "@protobufjs/pool": ^1.1.0 + "@protobufjs/utf8": ^1.1.0 + "@types/long": ^4.0.1 + "@types/node": ">=13.7.0" + long: ^4.0.0 + bin: + pbjs: bin/pbjs + pbts: bin/pbts + checksum: 4a6ce1964167e4c45c53fd8a312d7646415c777dd31b4ba346719947b88e61654912326101f927da387d6b6473ab52a7ea4f54d6f15d63b31130ce28e2e15070 + languageName: node + linkType: hard + "public-encrypt@npm:^4.0.0": version: 4.0.3 resolution: "public-encrypt@npm:4.0.3"