fix(target_chains/sui/cli): update sui js package to make it work (#1386)

Also add build script to the package so we catch the failures on CI.
This commit is contained in:
Ali Behjati 2024-03-25 11:08:37 +01:00 committed by GitHub
parent a8d88fb1a1
commit 93598f8dc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 180 additions and 686 deletions

760
package-lock.json generated
View File

@ -434,55 +434,6 @@
"follow-redirects": "^1.14.0"
}
},
"contract_manager/node_modules/@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"dependencies": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
"engines": {
"node": ">=16"
}
},
"contract_manager/node_modules/@mysten/sui.js/node_modules/@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"dependencies": {
"bs58": "^5.0.0"
}
},
"contract_manager/node_modules/@mysten/sui.js/node_modules/@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"contract_manager/node_modules/@mysten/sui.js/node_modules/@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"dependencies": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"contract_manager/node_modules/@noble/curves": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz",
@ -11360,18 +11311,16 @@
}
},
"node_modules/@mysten/sui.js": {
"version": "0.37.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.37.1.tgz",
"integrity": "sha512-nEOqnjUqb/VJcVk23LgZOX1FmBib/mBCwAWaJhtsCHLwv2jIAfCPY/fpB9lJ62QHrM8UFclpWxsLkqcUkKyPgA==",
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"dependencies": {
"@mysten/bcs": "0.7.3",
"@noble/curves": "^1.0.0",
"@noble/hashes": "^1.3.0",
"@open-rpc/client-js": "^1.8.1",
"@scure/bip32": "^1.3.0",
"@scure/bip39": "^1.2.0",
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"events": "^3.3.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
@ -11380,53 +11329,58 @@
}
},
"node_modules/@mysten/sui.js/node_modules/@mysten/bcs": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.7.3.tgz",
"integrity": "sha512-fbusBfsyc2MpTACi72H5edWJ670T84va+qn9jSPpb5BzZ+pzUM1Q0ApPrF5OT+mB1o5Ng+mxPQpBCZQkfiV2TA==",
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"dependencies": {
"bs58": "^5.0.0"
}
},
"node_modules/@mysten/sui.js/node_modules/@noble/hashes": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz",
"integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
]
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz",
"integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@mysten/sui.js/node_modules/@scure/bip32": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz",
"integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz",
"integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==",
"dependencies": {
"@noble/curves": "~1.0.0",
"@noble/hashes": "~1.3.0",
"@scure/base": "~1.1.0"
"@noble/curves": "~1.4.0",
"@noble/hashes": "~1.4.0",
"@scure/base": "~1.1.6"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@mysten/sui.js/node_modules/@scure/bip39": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz",
"integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"dependencies": {
"@noble/hashes": "~1.3.0",
"@scure/base": "~1.1.0"
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@mysten/sui.js/node_modules/@scure/bip39/node_modules/@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@mysten/sui.js/node_modules/base-x": {
@ -12060,29 +12014,26 @@
}
},
"node_modules/@noble/curves": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz",
"integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
],
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz",
"integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==",
"dependencies": {
"@noble/hashes": "1.3.0"
"@noble/hashes": "1.4.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@noble/curves/node_modules/@noble/hashes": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz",
"integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==",
"funding": [
{
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
]
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz",
"integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@noble/hashes": {
"version": "1.1.5",
@ -13489,54 +13440,6 @@
"@octokit/openapi-types": "^16.0.0"
}
},
"node_modules/@open-rpc/client-js": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/@open-rpc/client-js/-/client-js-1.8.1.tgz",
"integrity": "sha512-vV+Hetl688nY/oWI9IFY0iKDrWuLdYhf7OIKI6U1DcnJV7r4gAgwRJjEr1QVYszUc0gjkHoQJzqevmXMGLyA0g==",
"dependencies": {
"isomorphic-fetch": "^3.0.0",
"isomorphic-ws": "^5.0.0",
"strict-event-emitter-types": "^2.0.0",
"ws": "^7.0.0"
}
},
"node_modules/@open-rpc/client-js/node_modules/isomorphic-fetch": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz",
"integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==",
"dependencies": {
"node-fetch": "^2.6.1",
"whatwg-fetch": "^3.4.1"
}
},
"node_modules/@open-rpc/client-js/node_modules/isomorphic-ws": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz",
"integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==",
"peerDependencies": {
"ws": "*"
}
},
"node_modules/@open-rpc/client-js/node_modules/ws": {
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
"engines": {
"node": ">=8.3.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": "^5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
},
"node_modules/@openzeppelin/contract-loader": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/@openzeppelin/contract-loader/-/contract-loader-0.6.3.tgz",
@ -15773,9 +15676,9 @@
"integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg=="
},
"node_modules/@scure/base": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz",
"integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==",
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.6.tgz",
"integrity": "sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g==",
"funding": {
"url": "https://paulmillr.com/funding/"
}
@ -17058,17 +16961,6 @@
"superstruct": "^0.14.2"
}
},
"node_modules/@solana/web3.js/node_modules/@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"dependencies": {
"@noble/hashes": "1.3.3"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@solana/web3.js/node_modules/@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
@ -51213,11 +51105,6 @@
"node": ">=10"
}
},
"node_modules/strict-event-emitter-types": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strict-event-emitter-types/-/strict-event-emitter-types-2.0.0.tgz",
"integrity": "sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA=="
},
"node_modules/strict-uri-encode": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",
@ -56892,32 +56779,6 @@
"follow-redirects": "^1.14.0"
}
},
"price_pusher/node_modules/@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"dependencies": {
"bs58": "^5.0.0"
}
},
"price_pusher/node_modules/@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"dependencies": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
"engines": {
"node": ">=16"
}
},
"price_pusher/node_modules/@noble/curves": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz",
@ -56940,53 +56801,6 @@
"url": "https://paulmillr.com/funding/"
}
},
"price_pusher/node_modules/@scure/bip32": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz",
"integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==",
"dependencies": {
"@noble/curves": "~1.3.0",
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"price_pusher/node_modules/@scure/bip32/node_modules/@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"dependencies": {
"@noble/hashes": "1.3.3"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"price_pusher/node_modules/@scure/bip32/node_modules/@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"price_pusher/node_modules/@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"dependencies": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"price_pusher/node_modules/@types/jest": {
"version": "27.5.2",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz",
@ -57033,24 +56847,11 @@
"form-data": "^4.0.0"
}
},
"price_pusher/node_modules/base-x": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz",
"integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw=="
},
"price_pusher/node_modules/borsh": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/borsh/-/borsh-1.0.0.tgz",
"integrity": "sha512-fSVWzzemnyfF89EPwlUNsrS5swF5CrtiN4e+h0/lLf4dz2he4L3ndM20PS9wj7ICSkXJe/TQUHdaPTq15b1mNQ=="
},
"price_pusher/node_modules/bs58": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",
"integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",
"dependencies": {
"base-x": "^4.0.0"
}
},
"price_pusher/node_modules/cosmjs-types": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/cosmjs-types/-/cosmjs-types-0.7.2.tgz",
@ -57253,14 +57054,6 @@
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
},
"price_pusher/node_modules/superstruct": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz",
"integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==",
"engines": {
"node": ">=14.0.0"
}
},
"price_pusher/node_modules/toidentifier": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
@ -59771,12 +59564,14 @@
"license": "Apache-2.0",
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.12",
"@mysten/sui.js": "^0.37.1",
"@mysten/sui.js": "^0.49.1",
"@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*",
"prettier": "^2.8.7",
"typescript": "^5.0.4"
"typescript": "^5.0.4",
"xc_admin_common": "*"
}
},
"target_chains/sui/cli/node_modules/@certusone/wormhole-sdk": {
@ -60322,92 +60117,6 @@
"yargs": "^17.0.20"
}
},
"target_chains/sui/sdk/js/node_modules/@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"dependencies": {
"bs58": "^5.0.0"
}
},
"target_chains/sui/sdk/js/node_modules/@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"dependencies": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
"engines": {
"node": ">=16"
}
},
"target_chains/sui/sdk/js/node_modules/@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"dependencies": {
"@noble/hashes": "1.3.3"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"target_chains/sui/sdk/js/node_modules/@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"target_chains/sui/sdk/js/node_modules/@scure/bip32": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz",
"integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==",
"dependencies": {
"@noble/curves": "~1.3.0",
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"target_chains/sui/sdk/js/node_modules/@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"dependencies": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"target_chains/sui/sdk/js/node_modules/base-x": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz",
"integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw=="
},
"target_chains/sui/sdk/js/node_modules/bs58": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",
"integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",
"dependencies": {
"base-x": "^4.0.0"
}
},
"target_chains/sui/sdk/js/node_modules/buffer": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
@ -60445,14 +60154,6 @@
"node": ">=12"
}
},
"target_chains/sui/sdk/js/node_modules/superstruct": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz",
"integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==",
"engines": {
"node": ">=14.0.0"
}
},
"target_chains/sui/sdk/js/node_modules/typescript": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
@ -65574,52 +65275,57 @@
}
},
"@mysten/sui.js": {
"version": "0.37.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.37.1.tgz",
"integrity": "sha512-nEOqnjUqb/VJcVk23LgZOX1FmBib/mBCwAWaJhtsCHLwv2jIAfCPY/fpB9lJ62QHrM8UFclpWxsLkqcUkKyPgA==",
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"requires": {
"@mysten/bcs": "0.7.3",
"@noble/curves": "^1.0.0",
"@noble/hashes": "^1.3.0",
"@open-rpc/client-js": "^1.8.1",
"@scure/bip32": "^1.3.0",
"@scure/bip39": "^1.2.0",
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"events": "^3.3.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
"dependencies": {
"@mysten/bcs": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.7.3.tgz",
"integrity": "sha512-fbusBfsyc2MpTACi72H5edWJ670T84va+qn9jSPpb5BzZ+pzUM1Q0ApPrF5OT+mB1o5Ng+mxPQpBCZQkfiV2TA==",
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"requires": {
"bs58": "^5.0.0"
}
},
"@noble/hashes": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz",
"integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg=="
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz",
"integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg=="
},
"@scure/bip32": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz",
"integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz",
"integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==",
"requires": {
"@noble/curves": "~1.0.0",
"@noble/hashes": "~1.3.0",
"@scure/base": "~1.1.0"
"@noble/curves": "~1.4.0",
"@noble/hashes": "~1.4.0",
"@scure/base": "~1.1.6"
}
},
"@scure/bip39": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz",
"integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"requires": {
"@noble/hashes": "~1.3.0",
"@scure/base": "~1.1.0"
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"dependencies": {
"@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA=="
}
}
},
"base-x": {
@ -66078,17 +65784,17 @@
}
},
"@noble/curves": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz",
"integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz",
"integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==",
"requires": {
"@noble/hashes": "1.3.0"
"@noble/hashes": "1.4.0"
},
"dependencies": {
"@noble/hashes": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz",
"integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg=="
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz",
"integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg=="
}
}
},
@ -67236,40 +66942,6 @@
"@octokit/openapi-types": "^16.0.0"
}
},
"@open-rpc/client-js": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/@open-rpc/client-js/-/client-js-1.8.1.tgz",
"integrity": "sha512-vV+Hetl688nY/oWI9IFY0iKDrWuLdYhf7OIKI6U1DcnJV7r4gAgwRJjEr1QVYszUc0gjkHoQJzqevmXMGLyA0g==",
"requires": {
"isomorphic-fetch": "^3.0.0",
"isomorphic-ws": "^5.0.0",
"strict-event-emitter-types": "^2.0.0",
"ws": "^7.0.0"
},
"dependencies": {
"isomorphic-fetch": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz",
"integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==",
"requires": {
"node-fetch": "^2.6.1",
"whatwg-fetch": "^3.4.1"
}
},
"isomorphic-ws": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz",
"integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==",
"requires": {}
},
"ws": {
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
"requires": {}
}
}
},
"@openzeppelin/contract-loader": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/@openzeppelin/contract-loader/-/contract-loader-0.6.3.tgz",
@ -69623,29 +69295,6 @@
}
}
},
"@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"requires": {
"bs58": "^5.0.0"
}
},
"@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"requires": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
}
},
"@noble/curves": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz",
@ -69659,40 +69308,6 @@
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz",
"integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ=="
},
"@scure/bip32": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz",
"integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==",
"requires": {
"@noble/curves": "~1.3.0",
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
},
"dependencies": {
"@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"requires": {
"@noble/hashes": "1.3.3"
}
},
"@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA=="
}
}
},
"@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"requires": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
}
},
"@types/jest": {
"version": "27.5.2",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz",
@ -69729,24 +69344,11 @@
"form-data": "^4.0.0"
}
},
"base-x": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz",
"integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw=="
},
"borsh": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/borsh/-/borsh-1.0.0.tgz",
"integrity": "sha512-fSVWzzemnyfF89EPwlUNsrS5swF5CrtiN4e+h0/lLf4dz2he4L3ndM20PS9wj7ICSkXJe/TQUHdaPTq15b1mNQ=="
},
"bs58": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",
"integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",
"requires": {
"base-x": "^4.0.0"
}
},
"cosmjs-types": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/cosmjs-types/-/cosmjs-types-0.7.2.tgz",
@ -69908,11 +69510,6 @@
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
},
"superstruct": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz",
"integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg=="
},
"toidentifier": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
@ -71554,74 +71151,6 @@
"yargs": "^17.0.20"
},
"dependencies": {
"@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"requires": {
"bs58": "^5.0.0"
}
},
"@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"requires": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
}
},
"@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"requires": {
"@noble/hashes": "1.3.3"
}
},
"@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA=="
},
"@scure/bip32": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz",
"integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==",
"requires": {
"@noble/curves": "~1.3.0",
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
}
},
"@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"requires": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
}
},
"base-x": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz",
"integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw=="
},
"bs58": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",
"integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",
"requires": {
"base-x": "^4.0.0"
}
},
"buffer": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
@ -71642,11 +71171,6 @@
"wrap-ansi": "^7.0.0"
}
},
"superstruct": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz",
"integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg=="
},
"typescript": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
@ -73079,9 +72603,9 @@
"integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg=="
},
"@scure/base": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz",
"integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ=="
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.6.tgz",
"integrity": "sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g=="
},
"@scure/bip32": {
"version": "1.1.0",
@ -73950,14 +73474,6 @@
"superstruct": "^0.14.2"
},
"dependencies": {
"@noble/curves": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz",
"integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==",
"requires": {
"@noble/hashes": "1.3.3"
}
},
"@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
@ -81953,45 +81469,6 @@
}
}
},
"@mysten/sui.js": {
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.49.1.tgz",
"integrity": "sha512-xMndhhlnlVYjMVmBkXnGs9wdw7/bh3R/QggD/DkqGG7Iq7RL2uldtAeIFYsPGfTua/TJW8RFX7q59RagIOwWdw==",
"requires": {
"@mysten/bcs": "0.10.1",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"@scure/bip32": "^1.3.1",
"@scure/bip39": "^1.2.1",
"@suchipi/femver": "^1.0.0",
"superstruct": "^1.0.3",
"tweetnacl": "^1.0.3"
},
"dependencies": {
"@mysten/bcs": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.10.1.tgz",
"integrity": "sha512-cQDb7Rhz2J82ZqgVQiHykuwKUlgiLWS2bjoajPPW0uvXlb75qrgKuaxh1UzsaRhHy3egk/APc0xjiZoqdbzB4w==",
"requires": {
"bs58": "^5.0.0"
}
},
"@noble/hashes": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz",
"integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA=="
},
"@scure/bip39": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz",
"integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==",
"requires": {
"@noble/hashes": "~1.3.2",
"@scure/base": "~1.1.4"
}
}
}
},
"@noble/curves": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz",
@ -97102,12 +96579,14 @@
"version": "file:target_chains/sui/cli",
"requires": {
"@certusone/wormhole-sdk": "^0.9.12",
"@mysten/sui.js": "^0.37.1",
"@mysten/sui.js": "^0.49.1",
"@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*",
"prettier": "^2.8.7",
"typescript": "^5.0.4"
"typescript": "^5.0.4",
"xc_admin_common": "*"
},
"dependencies": {
"@certusone/wormhole-sdk": {
@ -102229,11 +101708,6 @@
"integrity": "sha512-EWZT9XOceBPlVJRrYcykW8jyRSZYbkb/0ZK36uLEmoWVO5gxBOnntNTseNzfREsqxqdfEGQrD8SXQ3QWbBmq8A==",
"dev": true
},
"strict-event-emitter-types": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strict-event-emitter-types/-/strict-event-emitter-types-2.0.0.tgz",
"integrity": "sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA=="
},
"strict-uri-encode": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",

1
target_chains/sui/cli/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
lib

View File

@ -5,16 +5,19 @@
"main": "index.js",
"license": "Apache-2.0",
"scripts": {
"cli": "ts-node src/cli.ts"
"cli": "ts-node src/cli.ts",
"build": "tsc"
},
"private": "true",
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.12",
"@mysten/sui.js": "^0.37.1",
"@mysten/sui.js": "^0.49.1",
"@pythnetwork/client": "^2.17.0",
"@pythnetwork/price-service-client": "^1.4.0",
"@pythnetwork/price-service-sdk": "^1.2.0",
"contract_manager": "*",
"prettier": "^2.8.7",
"typescript": "^5.0.4"
"typescript": "^5.0.4",
"xc_admin_common": "*"
}
}

View File

@ -8,13 +8,8 @@ import {
} from "contract_manager";
import { PriceServiceConnection } from "@pythnetwork/price-service-client";
import { execSync } from "child_process";
import {
Connection,
Ed25519Keypair,
JsonRpcProvider,
RawSigner,
} from "@mysten/sui.js";
import { initPyth, publishPackage } from "./pyth_deploy";
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519";
import { resolve } from "path";
import {
buildForBytecodeAndDigest,
@ -174,18 +169,19 @@ yargs(hideBin(process.argv))
async (argv) => {
const walletPrivateKey = argv["private-key"];
const chain = DefaultStore.chains[argv.chain] as SuiChain;
const provider = new JsonRpcProvider(
new Connection({ fullnode: chain.rpcUrl })
const keypair = Ed25519Keypair.fromSecretKey(
Buffer.from(walletPrivateKey, "hex")
);
const wallet = new RawSigner(
Ed25519Keypair.fromSecretKey(Buffer.from(walletPrivateKey, "hex")),
provider
const result = await publishPackage(
keypair,
chain.getProvider(),
argv.path
);
const result = await publishPackage(wallet, argv.path);
const deploymentType = chain.isMainnet() ? "stable" : "beta";
const config = getDefaultDeploymentConfig(deploymentType);
await initPyth(
wallet,
keypair,
chain.getProvider(),
result.packageId,
result.deployerCapId,
result.upgradeCapId,
@ -242,10 +238,8 @@ yargs(hideBin(process.argv))
},
async (argv) => {
const contract = getContract(argv.contract);
const wallet = new RawSigner(
Ed25519Keypair.fromSecretKey(Buffer.from(argv["private-key"], "hex")),
contract.getProvider()
const keypair = Ed25519Keypair.fromSecretKey(
Buffer.from(argv["private-key"], "hex")
);
const pythContractsPath = resolve(`${__dirname}/${argv.path}`);
@ -259,7 +253,8 @@ yargs(hideBin(process.argv))
console.log("Old package id:", pythPackageOld);
const signedVaa = Buffer.from(argv.vaa, "hex");
const upgradeResults = await upgradePyth(
wallet,
keypair,
contract.chain.getProvider(),
modules,
dependencies,
signedVaa,
@ -281,7 +276,8 @@ yargs(hideBin(process.argv))
// on chain at the beginning of the transaction.
const migrateResults = await migratePyth(
wallet,
keypair,
contract.chain.getProvider(),
signedVaa,
contract,
pythPackageOld

View File

@ -1,16 +1,19 @@
import { TransactionBlock } from "@mysten/sui.js/transactions";
import {
fromB64,
getPublishedObjectChanges,
MIST_PER_SUI,
normalizeSuiObjectId,
RawSigner,
TransactionBlock,
} from "@mysten/sui.js";
fromB64,
} from "@mysten/sui.js/utils";
import { Ed25519Keypair } from "@mysten/sui.js/dist/cjs/keypairs/ed25519";
import { execSync } from "child_process";
import { DataSource } from "xc_admin_common";
import { SuiClient } from "@mysten/sui.js/client";
export async function publishPackage(
signer: RawSigner,
keypair: Ed25519Keypair,
provider: SuiClient,
packagePath: string
): Promise<{ packageId: string; upgradeCapId: string; deployerCapId: string }> {
// Build contracts
@ -43,11 +46,12 @@ export async function publishPackage(
// Transfer upgrade capability to deployer
transactionBlock.transferObjects(
[upgradeCap],
transactionBlock.pure(await signer.getAddress())
transactionBlock.pure(keypair.toSuiAddress())
);
// Execute transactions
const result = await signer.signAndExecuteTransactionBlock({
const result = await provider.signAndExecuteTransactionBlock({
signer: keypair,
transactionBlock,
options: {
showInput: true,
@ -55,19 +59,27 @@ export async function publishPackage(
},
});
const publishEvents = getPublishedObjectChanges(result);
if (!result.objectChanges || publishEvents.length !== 1) {
const publishedChanges = result.objectChanges?.filter(
(change) => change.type === "published"
);
if (
publishedChanges?.length !== 1 ||
publishedChanges[0].type !== "published"
) {
throw new Error(
"No publish event found in transaction:" +
JSON.stringify(result.objectChanges, null, 2)
);
}
const packageId = publishEvents[0].packageId;
const packageId = publishedChanges[0].packageId;
console.log("Published with package id: ", packageId);
console.log("Tx digest", result.digest);
let upgradeCapId: string | undefined;
let deployerCapId: string | undefined;
for (const objectChange of result.objectChanges) {
for (const objectChange of result.objectChanges!) {
if (objectChange.type === "created") {
if (objectChange.objectType === "0x2::package::UpgradeCap") {
upgradeCapId = objectChange.objectId;
@ -90,7 +102,8 @@ export async function publishPackage(
}
export async function initPyth(
signer: RawSigner,
keypair: Ed25519Keypair,
provider: SuiClient,
pythPackageId: string,
deployerCapId: string,
upgradeCapId: string,
@ -133,7 +146,8 @@ export async function initPyth(
tx.setGasBudget(MIST_PER_SUI / 10n); // 0.1 sui
let result = await signer.signAndExecuteTransactionBlock({
let result = await provider.signAndExecuteTransactionBlock({
signer: keypair,
transactionBlock: tx,
options: {
showInput: true,

View File

@ -1,10 +1,12 @@
import { TransactionBlock } from "@mysten/sui.js/transactions";
import {
fromB64,
MIST_PER_SUI,
normalizeSuiObjectId,
RawSigner,
TransactionBlock,
} from "@mysten/sui.js";
} from "@mysten/sui.js/utils";
import { SuiClient } from "@mysten/sui.js/client";
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519";
import { execSync } from "child_process";
import { SuiPriceFeedContract } from "contract_manager";
@ -29,7 +31,8 @@ export function buildForBytecodeAndDigest(packagePath: string) {
}
export async function upgradePyth(
signer: RawSigner,
keypair: Ed25519Keypair,
provider: SuiClient,
modules: number[][],
dependencies: string[],
signedVaa: Buffer,
@ -66,7 +69,8 @@ export async function upgradePyth(
tx.setGasBudget(MIST_PER_SUI / 4n); // 0.25 SUI
return signer.signAndExecuteTransactionBlock({
return provider.signAndExecuteTransactionBlock({
signer: keypair,
transactionBlock: tx,
options: {
showEffects: true,
@ -76,7 +80,8 @@ export async function upgradePyth(
}
export async function migratePyth(
signer: RawSigner,
keypair: Ed25519Keypair,
provider: SuiClient,
signedUpgradeVaa: Buffer,
contract: SuiPriceFeedContract,
pythPackageOld: string
@ -98,7 +103,8 @@ export async function migratePyth(
tx.setGasBudget(MIST_PER_SUI / 10n); //0.1 SUI
return signer.signAndExecuteTransactionBlock({
return provider.signAndExecuteTransactionBlock({
signer: keypair,
transactionBlock: tx,
options: {
showEffects: true,