forked from LaconicNetwork/icns-frontend
Add initial sendMsgs
function
This commit is contained in:
parent
4410691a45
commit
ae7a6bc74d
BIN
.yarn/cache/@ethersproject-address-npm-5.7.0-d27f4f2b80-64ea5ebea9.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-address-npm-5.7.0-d27f4f2b80-64ea5ebea9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@ethersproject-bignumber-npm-5.7.0-cd761880ac-8c9a134b76.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-bignumber-npm-5.7.0-cd761880ac-8c9a134b76.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@ethersproject-bytes-npm-5.7.0-4454fe4cb0-66ad365cea.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-bytes-npm-5.7.0-4454fe4cb0-66ad365cea.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@ethersproject-keccak256-npm-5.7.0-be838547c4-ff70950d82.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-keccak256-npm-5.7.0-be838547c4-ff70950d82.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@ethersproject-logger-npm-5.7.0-63fe9c3d29-075ab2f605.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-logger-npm-5.7.0-63fe9c3d29-075ab2f605.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@ethersproject-rlp-npm-5.7.0-a6c9e763ff-bce165b0f7.zip
vendored
Normal file
BIN
.yarn/cache/@ethersproject-rlp-npm-5.7.0-a6c9e763ff-bce165b0f7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip
vendored
Normal file
BIN
.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@keplr-wallet-common-npm-0.11.23-21e0bff02f-fa756241d0.zip
vendored
Normal file
BIN
.yarn/cache/@keplr-wallet-common-npm-0.11.23-21e0bff02f-fa756241d0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@keplr-wallet-cosmos-npm-0.11.23-e909d29c73-3777ad82ee.zip
vendored
Normal file
BIN
.yarn/cache/@keplr-wallet-cosmos-npm-0.11.23-e909d29c73-3777ad82ee.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@keplr-wallet-crypto-npm-0.11.23-00a1560834-660425deb6.zip
vendored
Normal file
BIN
.yarn/cache/@keplr-wallet-crypto-npm-0.11.23-00a1560834-660425deb6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@keplr-wallet-proto-types-npm-0.11.23-e19f2b6321-0dfe72c3c9.zip
vendored
Normal file
BIN
.yarn/cache/@keplr-wallet-proto-types-npm-0.11.23-e19f2b6321-0dfe72c3c9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@keplr-wallet-unit-npm-0.11.23-5690bbdf49-560aec00cb.zip
vendored
Normal file
BIN
.yarn/cache/@keplr-wallet-unit-npm-0.11.23-5690bbdf49-560aec00cb.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@npmcli-fs-npm-2.1.2-08d434e77b-405074965e.zip
vendored
Normal file
BIN
.yarn/cache/@npmcli-fs-npm-2.1.2-08d434e77b-405074965e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@npmcli-move-file-npm-2.0.1-b593d8f741-52dc02259d.zip
vendored
Normal file
BIN
.yarn/cache/@npmcli-move-file-npm-2.0.1-b593d8f741-52dc02259d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip
vendored
Normal file
BIN
.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-node-npm-10.12.18-7c6aeb4e07-333cedae77.zip
vendored
Normal file
BIN
.yarn/cache/@types-node-npm-10.12.18-7c6aeb4e07-333cedae77.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip
vendored
Normal file
BIN
.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip
vendored
Normal file
BIN
.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip
vendored
Normal file
BIN
.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip
vendored
Normal file
BIN
.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip
vendored
Normal file
BIN
.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip
vendored
Normal file
BIN
.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/base-x-npm-3.0.9-7b2588e106-957101d6fd.zip
vendored
Normal file
BIN
.yarn/cache/base-x-npm-3.0.9-7b2588e106-957101d6fd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/big-integer-npm-1.6.51-1a244d8e1f-3d444173d1.zip
vendored
Normal file
BIN
.yarn/cache/big-integer-npm-1.6.51-1a244d8e1f-3d444173d1.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/bindings-npm-1.5.0-77ce1d213c-65b6b48095.zip
vendored
Normal file
BIN
.yarn/cache/bindings-npm-1.5.0-77ce1d213c-65b6b48095.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/bip32-npm-2.0.6-e2304169e2-1c654a9383.zip
vendored
Normal file
BIN
.yarn/cache/bip32-npm-2.0.6-e2304169e2-1c654a9383.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/bn.js-npm-5.2.1-dc952b1965-3dd8c8d380.zip
vendored
Normal file
BIN
.yarn/cache/bn.js-npm-5.2.1-dc952b1965-3dd8c8d380.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip
vendored
Normal file
BIN
.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/bs58-npm-4.0.1-8d2a7822b1-b3c5365bb9.zip
vendored
Normal file
BIN
.yarn/cache/bs58-npm-4.0.1-8d2a7822b1-b3c5365bb9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/bs58check-npm-2.1.2-4e87e40195-43bdf08a5d.zip
vendored
Normal file
BIN
.yarn/cache/bs58check-npm-2.1.2-4e87e40195-43bdf08a5d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/cacache-npm-16.1.3-4e2088ed0d-d91409e6e5.zip
vendored
Normal file
BIN
.yarn/cache/cacache-npm-16.1.3-4e2088ed0d-d91409e6e5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip
vendored
Normal file
BIN
.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip
vendored
Normal file
BIN
.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip
vendored
Normal file
BIN
.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip
vendored
Normal file
BIN
.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-b3747c12ee.zip
vendored
Normal file
BIN
.yarn/cache/crypto-js-npm-4.1.1-38a3b8c19d-b3747c12ee.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/delay-npm-4.4.1-43afd2835c-97b001126a.zip
vendored
Normal file
BIN
.yarn/cache/delay-npm-4.4.1-43afd2835c-97b001126a.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip
vendored
Normal file
BIN
.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip
vendored
Normal file
BIN
.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip
vendored
Normal file
BIN
.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip
vendored
Normal file
BIN
.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip
vendored
Normal file
BIN
.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip
vendored
Normal file
BIN
.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/file-uri-to-path-npm-1.0.0-1043ac6206-b648580bdd.zip
vendored
Normal file
BIN
.yarn/cache/file-uri-to-path-npm-1.0.0-1043ac6206-b648580bdd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip
vendored
Normal file
BIN
.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip
vendored
Normal file
BIN
.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip
vendored
Normal file
BIN
.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip
vendored
Normal file
BIN
.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip
vendored
Normal file
BIN
.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip
vendored
Normal file
BIN
.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip
vendored
Normal file
BIN
.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip
vendored
Normal file
BIN
.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip
vendored
Normal file
BIN
.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip
vendored
Normal file
BIN
.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip
vendored
Normal file
BIN
.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip
vendored
Normal file
BIN
.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip
vendored
Normal file
BIN
.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/lru-cache-npm-7.14.1-d3ba9407b6-d72c6713c6.zip
vendored
Normal file
BIN
.yarn/cache/lru-cache-npm-7.14.1-d3ba9407b6-d72c6713c6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/make-fetch-happen-npm-10.2.1-f1cc7cd2df-2332eb9a8e.zip
vendored
Normal file
BIN
.yarn/cache/make-fetch-happen-npm-10.2.1-f1cc7cd2df-2332eb9a8e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minimatch-npm-5.1.1-521233e3d2-215edd0978.zip
vendored
Normal file
BIN
.yarn/cache/minimatch-npm-5.1.1-521233e3d2-215edd0978.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip
vendored
Normal file
BIN
.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-fetch-npm-2.1.2-9b21a5c930-3f216be791.zip
vendored
Normal file
BIN
.yarn/cache/minipass-fetch-npm-2.1.2-9b21a5c930-3f216be791.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip
vendored
Normal file
BIN
.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-npm-3.3.6-b8d93a945b-a30d083c80.zip
vendored
Normal file
BIN
.yarn/cache/minipass-npm-3.3.6-b8d93a945b-a30d083c80.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-npm-4.0.0-2520d5ae3c-7a609afbf3.zip
vendored
Normal file
BIN
.yarn/cache/minipass-npm-4.0.0-2520d5ae3c-7a609afbf3.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip
vendored
Normal file
BIN
.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip
vendored
Normal file
BIN
.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip
vendored
Normal file
BIN
.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip
vendored
Normal file
BIN
.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/nan-npm-2.17.0-bf36a21d6f-ec609aeaf7.zip
vendored
Normal file
BIN
.yarn/cache/nan-npm-2.17.0-bf36a21d6f-ec609aeaf7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip
vendored
Normal file
BIN
.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/node-gyp-npm-9.3.0-21c41a4dfd-589ddd3ed9.zip
vendored
Normal file
BIN
.yarn/cache/node-gyp-npm-9.3.0-21c41a4dfd-589ddd3ed9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/nopt-npm-6.0.0-5ea8050815-82149371f8.zip
vendored
Normal file
BIN
.yarn/cache/nopt-npm-6.0.0-5ea8050815-82149371f8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip
vendored
Normal file
BIN
.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip
vendored
Normal file
BIN
.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip
vendored
Normal file
BIN
.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip
vendored
Normal file
BIN
.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip
vendored
Normal file
BIN
.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip
vendored
Normal file
BIN
.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip
vendored
Normal file
BIN
.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip
vendored
Normal file
BIN
.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip
vendored
Normal file
BIN
.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/socks-npm-2.7.1-17f2b53052-259d9e3e8e.zip
vendored
Normal file
BIN
.yarn/cache/socks-npm-2.7.1-17f2b53052-259d9e3e8e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip
vendored
Normal file
BIN
.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip
vendored
Normal file
BIN
.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip
vendored
Normal file
BIN
.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/tar-npm-6.1.13-3234e72781-8a278bed12.zip
vendored
Normal file
BIN
.yarn/cache/tar-npm-6.1.13-3234e72781-8a278bed12.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/tiny-secp256k1-npm-1.1.6-00db893e04-f8f705f8a7.zip
vendored
Normal file
BIN
.yarn/cache/tiny-secp256k1-npm-1.1.6-00db893e04-f8f705f8a7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/typeforce-npm-1.18.0-372e34e2a2-e3b21e27e7.zip
vendored
Normal file
BIN
.yarn/cache/typeforce-npm-1.18.0-372e34e2a2-e3b21e27e7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/unique-filename-npm-2.0.1-183c6c7c2b-807acf3381.zip
vendored
Normal file
BIN
.yarn/cache/unique-filename-npm-2.0.1-183c6c7c2b-807acf3381.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/unique-slug-npm-3.0.0-0b82e51577-49f8d915ba.zip
vendored
Normal file
BIN
.yarn/cache/unique-slug-npm-3.0.0-0b82e51577-49f8d915ba.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/utility-types-npm-3.10.0-747e7c6549-8f274415c6.zip
vendored
Normal file
BIN
.yarn/cache/utility-types-npm-3.10.0-747e7c6549-8f274415c6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip
vendored
Normal file
BIN
.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/wif-npm-2.0.6-f351bf025a-8c3147ef98.zip
vendored
Normal file
BIN
.yarn/cache/wif-npm-2.0.6-f351bf025a-8c3147ef98.zip
vendored
Normal file
Binary file not shown.
@ -10,7 +10,12 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@keplr-wallet/common": "^0.11.23",
|
||||
"@keplr-wallet/cosmos": "^0.11.23",
|
||||
"@keplr-wallet/proto-types": "^0.11.23",
|
||||
"@keplr-wallet/types": "^0.11.23",
|
||||
"axios": "^0.27.2",
|
||||
"buffer": "^6.0.3",
|
||||
"crypto": "^1.0.1",
|
||||
"iron-session": "^6.3.1",
|
||||
"next": "13.0.5",
|
||||
|
148
wallets/cosmos.ts
Normal file
148
wallets/cosmos.ts
Normal file
@ -0,0 +1,148 @@
|
||||
import { Wallet } from "./types";
|
||||
import { BaseAccount } from "@keplr-wallet/cosmos";
|
||||
import Axios from "axios";
|
||||
import { StdSignDoc } from "@keplr-wallet/types";
|
||||
import { sortObjectByKey } from "@keplr-wallet/common";
|
||||
import { Buffer } from "buffer/";
|
||||
import {
|
||||
AuthInfo,
|
||||
Fee,
|
||||
TxBody,
|
||||
TxRaw,
|
||||
} from "@keplr-wallet/proto-types/cosmos/tx/v1beta1/tx";
|
||||
import { Any } from "@keplr-wallet/proto-types/google/protobuf/any";
|
||||
import { PubKey } from "@keplr-wallet/proto-types/cosmos/crypto/secp256k1/keys";
|
||||
import { SignMode } from "@keplr-wallet/proto-types/cosmos/tx/signing/v1beta1/signing";
|
||||
import { MsgExecuteContract } from "@keplr-wallet/proto-types/cosmwasm/wasm/v1/tx";
|
||||
|
||||
export async function sendMsgs(
|
||||
wallet: Wallet,
|
||||
chainInfo: {
|
||||
readonly chainId: string;
|
||||
readonly rpc: string;
|
||||
readonly rest: string;
|
||||
},
|
||||
sender: string,
|
||||
msgs: {
|
||||
amino: {
|
||||
readonly type: string;
|
||||
readonly value: any;
|
||||
}[];
|
||||
proto: Any[];
|
||||
},
|
||||
fee: {
|
||||
readonly amount: readonly {
|
||||
readonly amount: string;
|
||||
readonly denom: string;
|
||||
}[];
|
||||
readonly gas: string;
|
||||
},
|
||||
memo: string = "",
|
||||
): Promise<Uint8Array> {
|
||||
const account = await BaseAccount.fetchFromRest(
|
||||
Axios.create({
|
||||
baseURL: chainInfo.rest,
|
||||
}),
|
||||
sender,
|
||||
true,
|
||||
);
|
||||
|
||||
const signDocRaw: StdSignDoc = {
|
||||
chain_id: chainInfo.chainId,
|
||||
account_number: account.getAccountNumber().toString(),
|
||||
sequence: account.getSequence().toString(),
|
||||
fee,
|
||||
msgs: msgs.amino,
|
||||
memo: memo,
|
||||
};
|
||||
|
||||
const signDoc = sortObjectByKey(signDocRaw);
|
||||
|
||||
const signResponse = await wallet.signAmino(
|
||||
chainInfo.chainId,
|
||||
sender,
|
||||
signDoc,
|
||||
);
|
||||
|
||||
const signedTx = TxRaw.encode({
|
||||
bodyBytes: TxBody.encode(
|
||||
TxBody.fromPartial({
|
||||
// XXX: I don't know why typing error occurs.
|
||||
// TODO: Solve typing problem.
|
||||
messages: msgs.proto as any,
|
||||
memo: signResponse.signed.memo,
|
||||
}),
|
||||
).finish(),
|
||||
authInfoBytes: AuthInfo.encode({
|
||||
signerInfos: [
|
||||
{
|
||||
publicKey: {
|
||||
typeUrl: "/cosmos.crypto.secp256k1.PubKey",
|
||||
value: PubKey.encode({
|
||||
key: Buffer.from(signResponse.signature.pub_key.value, "base64"),
|
||||
}).finish(),
|
||||
},
|
||||
modeInfo: {
|
||||
single: {
|
||||
mode: SignMode.SIGN_MODE_LEGACY_AMINO_JSON,
|
||||
},
|
||||
multi: undefined,
|
||||
},
|
||||
sequence: signResponse.signed.sequence,
|
||||
},
|
||||
],
|
||||
fee: Fee.fromPartial({
|
||||
// XXX: I don't know why typing error occurs.
|
||||
// TODO: Solve typing problem.
|
||||
// amount: signResponse.signed.fee.amount as {
|
||||
// amount: string;
|
||||
// denom: string;
|
||||
// }[],
|
||||
amount: signResponse.signed.fee.amount as any,
|
||||
gasLimit: signResponse.signed.fee.gas,
|
||||
}),
|
||||
}).finish(),
|
||||
signatures: [Buffer.from(signResponse.signature.signature, "base64")],
|
||||
}).finish();
|
||||
|
||||
return wallet.broadcastTxSync(chainInfo.chainId, signedTx);
|
||||
}
|
||||
|
||||
export function makeCosmwasmExecMsg(
|
||||
sender: string,
|
||||
contractAddress: string,
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
obj: object,
|
||||
funds: { readonly amount: string; readonly denom: string }[],
|
||||
): {
|
||||
amino: {
|
||||
readonly type: string;
|
||||
readonly value: any;
|
||||
};
|
||||
proto: Any;
|
||||
} {
|
||||
const amino = {
|
||||
type: "wasm/MsgExecuteContract",
|
||||
value: {
|
||||
sender,
|
||||
contract: contractAddress,
|
||||
msg: obj,
|
||||
funds,
|
||||
},
|
||||
};
|
||||
|
||||
const proto = {
|
||||
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
|
||||
value: MsgExecuteContract.encode({
|
||||
sender: amino.value.sender,
|
||||
contract: amino.value.contract,
|
||||
msg: Buffer.from(JSON.stringify(amino.value.msg)),
|
||||
funds: amino.value.funds,
|
||||
}).finish(),
|
||||
};
|
||||
|
||||
return {
|
||||
amino,
|
||||
proto,
|
||||
};
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
export * from "./types";
|
||||
export * from "./keplr";
|
||||
export * from "./cosmos";
|
||||
|
Loading…
Reference in New Issue
Block a user