Skip to content

Commit

Permalink
Merge pull request #80 from leapwallet/update/cosmjs-version-snaps-pa…
Browse files Browse the repository at this point in the history
…ckage

Update cosmjs version in snaps package
  • Loading branch information
baryon2 authored Feb 27, 2024
2 parents afccfe1 + 1e085c5 commit 8a44c26
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 68 deletions.
2 changes: 1 addition & 1 deletion packages/cosmos-snap-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/cosmos-snap-provider",
"version": "0.1.25",
"version": "0.1.26",
"repository": {
"url": "[email protected]:leapwallet/cosmos-metamask-snap.git"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/metamask-cosmos-snap",
"version": "0.1.18",
"version": "0.1.19",
"description": "Securely manage keys, connect to Cosmos dapps, and sign transactions.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -29,8 +29,8 @@
"test-coverage": "jest --coverage"
},
"dependencies": {
"@cosmjs/amino": "^0.31.0",
"@cosmjs/stargate": "^0.30.1",
"@cosmjs/amino": "^0.32.0",
"@cosmjs/stargate": "^0.32.0",
"@leapwallet/buffer-boba": "0.1.6",
"@leapwallet/parser-parfait": "^0.6.2",
"@metamask/key-tree": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.1.18",
"version": "0.1.19",
"description": "Securely manage keys, connect to Cosmos dapps, and sign transactions.",
"proposedName": "Leap Cosmos Wallet",
"repository": {
"type": "git",
"url": "https://github.com/leapwallet/cosmos-metamask-snap.git"
},
"source": {
"shasum": "CLwZocaUEbDErtQAsybaudZDJq65a8AwlEFgkGUpmAQ=",
"shasum": "WeCKXxTICrnpMyAZjC5kSqR4xqjfaF5sYplesn8YlR4=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/snap/src/mocks/helpers/output.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const output = {
{
type: 'copyable',
value:
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgDelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "amount": {\n "denom": "uatom",\n "amount": "100"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.delegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "denomination": "uatom",\n "quantity": "100"\n }\n }\n]',
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgDelegate",\n "type_url": "/cosmos.staking.v1beta1.MsgDelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "amount": {\n "denom": "uatom",\n "amount": "100"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.delegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "denomination": "uatom",\n "quantity": "100"\n }\n }\n]',
},
],
unStake: [
Expand Down Expand Up @@ -59,7 +59,7 @@ const output = {
{
type: 'copyable',
value:
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgUndelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "amount": {\n "denom": "uatom",\n "amount": "1000"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.undelegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "denomination": "uatom",\n "quantity": "1000"\n }\n }\n]',
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgUndelegate",\n "type_url": "/cosmos.staking.v1beta1.MsgUndelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "amount": {\n "denom": "uatom",\n "amount": "1000"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.undelegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "denomination": "uatom",\n "quantity": "1000"\n }\n }\n]',
},
],
redelegate: [
Expand Down Expand Up @@ -90,7 +90,7 @@ const output = {
{
type: 'copyable',
value:
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgBeginRedelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_src_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "validator_dst_address": "cosmosvaloper1lkujuk2004p3w42tgvuvqnsdmsq8u6jqkwf9wj",\n "amount": {\n "denom": "uatom",\n "amount": "100"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.beginRedelegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "sourceValidatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "destinationValidatorAddress": "cosmosvaloper1lkujuk2004p3w42tgvuvqnsdmsq8u6jqkwf9wj",\n "denomination": "uatom",\n "quantity": "100"\n }\n }\n]',
'[\n {\n "raw": {\n "@type": "/cosmos.staking.v1beta1.MsgBeginRedelegate",\n "type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate",\n "delegator_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "validator_src_address": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "validator_dst_address": "cosmosvaloper1lkujuk2004p3w42tgvuvqnsdmsq8u6jqkwf9wj",\n "amount": {\n "denom": "uatom",\n "amount": "100"\n }\n },\n "parsed": {\n "__type": "cosmos.staking.beginRedelegate",\n "delegatorAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "sourceValidatorAddress": "cosmosvaloper1lcwxu50rvvgf9v6jy6q5mrzyhlszwtjxhtscmp",\n "destinationValidatorAddress": "cosmosvaloper1lkujuk2004p3w42tgvuvqnsdmsq8u6jqkwf9wj",\n "denomination": "uatom",\n "quantity": "100"\n }\n }\n]',
},
],
send: [
Expand Down Expand Up @@ -121,7 +121,7 @@ const output = {
{
type: 'copyable',
value:
'[\n {\n "raw": {\n "@type": "/cosmos.bank.v1beta1.MsgSend",\n "from_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "to_address": "cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh",\n "amount": [\n {\n "denom": "uatom",\n "amount": "100"\n }\n ]\n },\n "parsed": {\n "__type": "cosmos.bank.send",\n "fromAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "toAddress": "cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh",\n "tokens": [\n {\n "denomination": "uatom",\n "quantity": "100"\n }\n ]\n }\n }\n]',
'[\n {\n "raw": {\n "@type": "/cosmos.bank.v1beta1.MsgSend",\n "type_url": "/cosmos.bank.v1beta1.MsgSend",\n "from_address": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "to_address": "cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh",\n "amount": [\n {\n "denom": "uatom",\n "amount": "100"\n }\n ]\n },\n "parsed": {\n "__type": "cosmos.bank.send",\n "fromAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "toAddress": "cosmos19vf5mfr40awvkefw69nl6p3mmlsnacmm28xyqh",\n "tokens": [\n {\n "denomination": "uatom",\n "quantity": "100"\n }\n ]\n }\n }\n]',
},
],
IBCSend: [
Expand Down Expand Up @@ -152,7 +152,7 @@ const output = {
{
type: 'copyable',
value:
'[\n {\n "raw": {\n "@type": "/ibc.applications.transfer.v1.MsgTransfer",\n "source_port": "transfer",\n "source_channel": "channel-141",\n "token": {\n "denom": "uatom",\n "amount": "100"\n },\n "sender": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "receiver": "osmo19vf5mfr40awvkefw69nl6p3mmlsnacmmzu45k9",\n "timeout_timestamp": {\n "low": -408963584,\n "high": 393843903,\n "unsigned": true\n },\n "memo": ""\n },\n "parsed": {\n "__type": "ibc.applications.send",\n "sourcePort": "transfer",\n "sourceChannel": "channel-141",\n "token": {\n "denomination": "uatom",\n "quantity": "100"\n },\n "fromAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "toAddress": "osmo19vf5mfr40awvkefw69nl6p3mmlsnacmmzu45k9"\n }\n }\n]',
'[\n {\n "raw": {\n "@type": "/ibc.applications.transfer.v1.MsgTransfer",\n "type_url": "/ibc.applications.transfer.v1.MsgTransfer",\n "source_port": "transfer",\n "source_channel": "channel-141",\n "token": {\n "denom": "uatom",\n "amount": "100"\n },\n "sender": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "receiver": "osmo19vf5mfr40awvkefw69nl6p3mmlsnacmmzu45k9",\n "timeout_timestamp": {\n "low": -408963584,\n "high": 393843903,\n "unsigned": true\n },\n "memo": ""\n },\n "parsed": {\n "__type": "ibc.applications.send",\n "sourcePort": "transfer",\n "sourceChannel": "channel-141",\n "token": {\n "denomination": "uatom",\n "quantity": "100"\n },\n "fromAddress": "cosmos127jexdh5jx5tdqxt6z6dggfr5c6ffcwuamstpe",\n "toAddress": "osmo19vf5mfr40awvkefw69nl6p3mmlsnacmmzu45k9"\n }\n }\n]',
},
],
},
Expand Down
155 changes: 98 additions & 57 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1509,18 +1509,6 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/amino@npm:^0.31.0":
version: 0.31.1
resolution: "@cosmjs/amino@npm:0.31.1"
dependencies:
"@cosmjs/crypto": ^0.31.1
"@cosmjs/encoding": ^0.31.1
"@cosmjs/math": ^0.31.1
"@cosmjs/utils": ^0.31.1
checksum: 0e9dc15c4d6e77191135cd36bd8777c09704a39bf4c3281230d8899fbd57a1bc3929f728cc5bede55f69d23af6c03ac50a3b122440c9597afbd6512cf0b0f59d
languageName: node
linkType: hard

"@cosmjs/amino@npm:^0.32.0, @cosmjs/amino@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/amino@npm:0.32.2"
Expand Down Expand Up @@ -1578,21 +1566,6 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/crypto@npm:^0.31.1":
version: 0.31.1
resolution: "@cosmjs/crypto@npm:0.31.1"
dependencies:
"@cosmjs/encoding": ^0.31.1
"@cosmjs/math": ^0.31.1
"@cosmjs/utils": ^0.31.1
"@noble/hashes": ^1
bn.js: ^5.2.0
elliptic: ^6.5.4
libsodium-wrappers-sumo: ^0.7.11
checksum: c212113d1768041c0e28dfaac57324d39ae7f670c082afe15c45b742a5e1fdedb3ea9be19ce1ba8ad69e0e15904fe672ca8b335b8a4ff248762fddae2980c588
languageName: node
linkType: hard

"@cosmjs/crypto@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/crypto@npm:0.32.2"
Expand Down Expand Up @@ -1641,17 +1614,6 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/encoding@npm:^0.31.1":
version: 0.31.1
resolution: "@cosmjs/encoding@npm:0.31.1"
dependencies:
base64-js: ^1.3.0
bech32: ^1.1.4
readonly-date: ^1.0.0
checksum: dcfcce6832937749ed3f21d0b363ac2e73078704a66a9d74b33ad05f035ce3fe9c892b0be513d2f6c010d3201112f5c55870082184d37d9a113b4c9d0d1ceb8b
languageName: node
linkType: hard

"@cosmjs/encoding@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/encoding@npm:0.32.2"
Expand Down Expand Up @@ -1693,6 +1655,16 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/json-rpc@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/json-rpc@npm:0.32.2"
dependencies:
"@cosmjs/stream": ^0.32.2
xstream: ^11.14.0
checksum: 3634e990b491e058714fc192322144e15274efbb6b575ea63c2a238e4661ee6d8c7f3c0ebfc0d9a3dd487078bec421a7598526c0cc3ee74be782af5842478780
languageName: node
linkType: hard

"@cosmjs/math@npm:0.28.13":
version: 0.28.13
resolution: "@cosmjs/math@npm:0.28.13"
Expand Down Expand Up @@ -1720,15 +1692,6 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/math@npm:^0.31.1":
version: 0.31.1
resolution: "@cosmjs/math@npm:0.31.1"
dependencies:
bn.js: ^5.2.0
checksum: f0254092b67d6349cf5c83670e414f629b49fb8f91131baa9bccc5584b6d270ab3a4b35575d9988b4098de2bc3e814e137dd9f80ad795a1be6a037e053b35346
languageName: node
linkType: hard

"@cosmjs/math@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/math@npm:0.32.2"
Expand Down Expand Up @@ -1798,7 +1761,7 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/proto-signing@npm:^0.32.0":
"@cosmjs/proto-signing@npm:^0.32.0, @cosmjs/proto-signing@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/proto-signing@npm:0.32.2"
dependencies:
Expand Down Expand Up @@ -1848,6 +1811,18 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/socket@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/socket@npm:0.32.2"
dependencies:
"@cosmjs/stream": ^0.32.2
isomorphic-ws: ^4.0.1
ws: ^7
xstream: ^11.14.0
checksum: b92bae55a0edbd01c45cb5e91bbfc9e835f3343fd32ddafe1233a403eae5d0d09ffff9b12d8bfadfe5956672a4cb68f16483ab295566219455fdb3c7e79a4393
languageName: node
linkType: hard

"@cosmjs/stargate@npm:0.28.13":
version: 0.28.13
resolution: "@cosmjs/stargate@npm:0.28.13"
Expand Down Expand Up @@ -1908,6 +1883,24 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/stargate@npm:^0.32.0":
version: 0.32.2
resolution: "@cosmjs/stargate@npm:0.32.2"
dependencies:
"@confio/ics23": ^0.6.8
"@cosmjs/amino": ^0.32.2
"@cosmjs/encoding": ^0.32.2
"@cosmjs/math": ^0.32.2
"@cosmjs/proto-signing": ^0.32.2
"@cosmjs/stream": ^0.32.2
"@cosmjs/tendermint-rpc": ^0.32.2
"@cosmjs/utils": ^0.32.2
cosmjs-types: ^0.9.0
xstream: ^11.14.0
checksum: 6d90edbb098a60e0cebad110dddb78e47bb83b3f982da0372afca88c267388dd5647de32d981fa3d86d74ba1ad7dee463f135b26bcc6c7f6da79337b5d015428
languageName: node
linkType: hard

"@cosmjs/stream@npm:0.28.13":
version: 0.28.13
resolution: "@cosmjs/stream@npm:0.28.13"
Expand Down Expand Up @@ -1935,6 +1928,15 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/stream@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/stream@npm:0.32.2"
dependencies:
xstream: ^11.14.0
checksum: c712d1c2b205e2211f0aa6fa28a482192e60153078a3d1176e8c1e3773e9987a973f50392d1ad58da64feb75ba504c8232158d7a23eb01dc3e565ae1be555eec
languageName: node
linkType: hard

"@cosmjs/tendermint-rpc@npm:0.28.13":
version: 0.28.13
resolution: "@cosmjs/tendermint-rpc@npm:0.28.13"
Expand Down Expand Up @@ -1989,6 +1991,24 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/tendermint-rpc@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/tendermint-rpc@npm:0.32.2"
dependencies:
"@cosmjs/crypto": ^0.32.2
"@cosmjs/encoding": ^0.32.2
"@cosmjs/json-rpc": ^0.32.2
"@cosmjs/math": ^0.32.2
"@cosmjs/socket": ^0.32.2
"@cosmjs/stream": ^0.32.2
"@cosmjs/utils": ^0.32.2
axios: ^1.6.0
readonly-date: ^1.0.0
xstream: ^11.14.0
checksum: 0ba82b6a471d858d53cb6bd243a200ef6661710290f738979c0645e294cd0c4b501389a79e3aa366f4380f566680b8cabff90d5298c4a6d3ec68a1e24ebdbc11
languageName: node
linkType: hard

"@cosmjs/utils@npm:0.28.13":
version: 0.28.13
resolution: "@cosmjs/utils@npm:0.28.13"
Expand All @@ -2010,13 +2030,6 @@ __metadata:
languageName: node
linkType: hard

"@cosmjs/utils@npm:^0.31.1":
version: 0.31.1
resolution: "@cosmjs/utils@npm:0.31.1"
checksum: 55e1bca211b73f2b72fc1e742f69f53e780824717f81914cc313bb5a997e47da11249c3dc944a08c5a210440eaefa9a4818977a44f8af6e7d3b5e2bda55c0304
languageName: node
linkType: hard

"@cosmjs/utils@npm:^0.32.2":
version: 0.32.2
resolution: "@cosmjs/utils@npm:0.32.2"
Expand Down Expand Up @@ -2545,8 +2558,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@leapwallet/metamask-cosmos-snap@workspace:packages/snap"
dependencies:
"@cosmjs/amino": ^0.31.0
"@cosmjs/stargate": ^0.30.1
"@cosmjs/amino": ^0.32.0
"@cosmjs/stargate": ^0.32.0
"@lavamoat/allow-scripts": ^2.0.3
"@leapwallet/buffer-boba": 0.1.6
"@leapwallet/parser-parfait": ^0.6.2
Expand Down Expand Up @@ -4012,6 +4025,17 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^1.6.0":
version: 1.6.7
resolution: "axios@npm:1.6.7"
dependencies:
follow-redirects: ^1.15.4
form-data: ^4.0.0
proxy-from-env: ^1.1.0
checksum: 87d4d429927d09942771f3b3a6c13580c183e31d7be0ee12f09be6d5655304996bb033d85e54be81606f4e89684df43be7bf52d14becb73a12727bf33298a082
languageName: node
linkType: hard

"babel-jest@npm:^29.7.0":
version: 29.7.0
resolution: "babel-jest@npm:29.7.0"
Expand Down Expand Up @@ -6124,6 +6148,16 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.4":
version: 1.15.5
resolution: "follow-redirects@npm:1.15.5"
peerDependenciesMeta:
debug:
optional: true
checksum: 5ca49b5ce6f44338cbfc3546823357e7a70813cecc9b7b768158a1d32c1e62e7407c944402a918ea8c38ae2e78266312d617dc68783fac502cbb55e1047b34ec
languageName: node
linkType: hard

"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
Expand Down Expand Up @@ -8983,6 +9017,13 @@ __metadata:
languageName: node
linkType: hard

"proxy-from-env@npm:^1.1.0":
version: 1.1.0
resolution: "proxy-from-env@npm:1.1.0"
checksum: ed7fcc2ba0a33404958e34d95d18638249a68c430e30fcb6c478497d72739ba64ce9810a24f53a7d921d0c065e5b78e3822759800698167256b04659366ca4d4
languageName: node
linkType: hard

"public-encrypt@npm:^4.0.0":
version: 4.0.3
resolution: "public-encrypt@npm:4.0.3"
Expand Down

0 comments on commit 8a44c26

Please sign in to comment.