From f93bd9b1cfd5d691ae077d257e16aa13f467f09c Mon Sep 17 00:00:00 2001 From: Lucas Magnus Date: Tue, 19 Dec 2023 16:16:46 -0300 Subject: [PATCH] feat: update soroban version --- frontend/package-lock.json | 66 +++++++++++++++++------------------ frontend/package.json | 2 +- frontend/src/soroban/index.ts | 2 +- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 818831fc..5b8052a1 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -54,7 +54,7 @@ "react-slick": "^0.29.0", "react-timeago": "^7.1.0", "sass": "~1.59.2", - "soroban-client": "1.0.0-beta.4", + "soroban-client": "^1.0.0", "swiper": "^10.2.0", "typescript": "~4.9.5", "web-vitals": "~3.3.0", @@ -6471,6 +6471,11 @@ "resolved": "https://registry.npmjs.org/@stellar/freighter-api/-/freighter-api-1.7.1.tgz", "integrity": "sha512-XvPO+XgEbkeP0VhP0U1edOkds+rGS28+y8GRGbCVXeZ9ZslbWqRFQoETAdX8IXGuykk2ib/aPokiLc5ZaWYP7w==" }, + "node_modules/@stellar/js-xdr": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@stellar/js-xdr/-/js-xdr-3.0.1.tgz", + "integrity": "sha512-dp5Eh7Nr1YjiIeqpdkj2cQYxfoPudDAH3ck8MWggp48Htw66Z/hUssNYUQG/OftLjEmHT90Z/dtey2Y77DOxIw==" + }, "node_modules/@storybook/addon-a11y": { "version": "6.5.16", "resolved": "https://registry.npmjs.org/@storybook/addon-a11y/-/addon-a11y-6.5.16.tgz", @@ -24764,11 +24769,6 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, - "node_modules/js-xdr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/js-xdr/-/js-xdr-3.0.0.tgz", - "integrity": "sha512-tSt6UKJ2L7t+yaQURGkHo9kop9qnVbChTlCu62zNiDbDZQoZb/YjUj2iFJ3lgelhfg9p5bhO2o/QX+g36TPsSQ==" - }, "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", @@ -33018,21 +33018,21 @@ } }, "node_modules/soroban-client": { - "version": "1.0.0-beta.4", - "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-1.0.0-beta.4.tgz", - "integrity": "sha512-M1jLCwQtWZkQIJ6U72nYpvj+giYnB2/Vw4E1DBaiCgg5iWIWatDto+QTI/aUR9m7fNGTt/AhFtQzhjksK1rFkQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-1.0.0.tgz", + "integrity": "sha512-dflXkSBpgmke9ATSaXdka4mvHOz9EyUFioho7ffLj0FwzwOMapSjFnE2TpQTrDKnV9C3HuAO44c8Fhl6IewebQ==", "dependencies": { "axios": "^1.6.0", "bignumber.js": "^9.1.1", "buffer": "^6.0.3", - "stellar-base": "v10.0.0-beta.4", + "stellar-base": "10.0.0", "urijs": "^1.19.1" } }, "node_modules/soroban-client/node_modules/axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -33311,14 +33311,14 @@ } }, "node_modules/stellar-base": { - "version": "10.0.0-beta.4", - "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-10.0.0-beta.4.tgz", - "integrity": "sha512-3EXDFHSahVDMTHrHiFOO8kFf5KN+AL4x5kd5rxjElElPG+385cyWDbO83GrNmDGU/u9/XiVL+riJjz5gQTv6RQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-10.0.0.tgz", + "integrity": "sha512-WQhxGXQLSwwmIxWbZqv0HcJtlSOiaUgv7yKCCEwP+OoYDHKBjPjQiZWyAkuEY+mRFX9L+hnejLaBorc3P2rk0g==", "dependencies": { + "@stellar/js-xdr": "^3.0.1", "base32.js": "^0.1.0", "bignumber.js": "^9.1.2", "buffer": "^6.0.3", - "js-xdr": "^3.0.0", "sha.js": "^2.3.6", "tweetnacl": "^1.0.3" }, @@ -41508,6 +41508,11 @@ "resolved": "https://registry.npmjs.org/@stellar/freighter-api/-/freighter-api-1.7.1.tgz", "integrity": "sha512-XvPO+XgEbkeP0VhP0U1edOkds+rGS28+y8GRGbCVXeZ9ZslbWqRFQoETAdX8IXGuykk2ib/aPokiLc5ZaWYP7w==" }, + "@stellar/js-xdr": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@stellar/js-xdr/-/js-xdr-3.0.1.tgz", + "integrity": "sha512-dp5Eh7Nr1YjiIeqpdkj2cQYxfoPudDAH3ck8MWggp48Htw66Z/hUssNYUQG/OftLjEmHT90Z/dtey2Y77DOxIw==" + }, "@storybook/addon-a11y": { "version": "6.5.16", "resolved": "https://registry.npmjs.org/@storybook/addon-a11y/-/addon-a11y-6.5.16.tgz", @@ -55262,11 +55267,6 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, - "js-xdr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/js-xdr/-/js-xdr-3.0.0.tgz", - "integrity": "sha512-tSt6UKJ2L7t+yaQURGkHo9kop9qnVbChTlCu62zNiDbDZQoZb/YjUj2iFJ3lgelhfg9p5bhO2o/QX+g36TPsSQ==" - }, "js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", @@ -61262,21 +61262,21 @@ } }, "soroban-client": { - "version": "1.0.0-beta.4", - "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-1.0.0-beta.4.tgz", - "integrity": "sha512-M1jLCwQtWZkQIJ6U72nYpvj+giYnB2/Vw4E1DBaiCgg5iWIWatDto+QTI/aUR9m7fNGTt/AhFtQzhjksK1rFkQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-1.0.0.tgz", + "integrity": "sha512-dflXkSBpgmke9ATSaXdka4mvHOz9EyUFioho7ffLj0FwzwOMapSjFnE2TpQTrDKnV9C3HuAO44c8Fhl6IewebQ==", "requires": { "axios": "^1.6.0", "bignumber.js": "^9.1.1", "buffer": "^6.0.3", - "stellar-base": "v10.0.0-beta.4", + "stellar-base": "10.0.0", "urijs": "^1.19.1" }, "dependencies": { "axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -61507,14 +61507,14 @@ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" }, "stellar-base": { - "version": "10.0.0-beta.4", - "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-10.0.0-beta.4.tgz", - "integrity": "sha512-3EXDFHSahVDMTHrHiFOO8kFf5KN+AL4x5kd5rxjElElPG+385cyWDbO83GrNmDGU/u9/XiVL+riJjz5gQTv6RQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-10.0.0.tgz", + "integrity": "sha512-WQhxGXQLSwwmIxWbZqv0HcJtlSOiaUgv7yKCCEwP+OoYDHKBjPjQiZWyAkuEY+mRFX9L+hnejLaBorc3P2rk0g==", "requires": { + "@stellar/js-xdr": "^3.0.1", "base32.js": "^0.1.0", "bignumber.js": "^9.1.2", "buffer": "^6.0.3", - "js-xdr": "^3.0.0", "sha.js": "^2.3.6", "sodium-native": "^4.0.1", "tweetnacl": "^1.0.3" diff --git a/frontend/package.json b/frontend/package.json index edb98338..84422173 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -50,7 +50,7 @@ "react-slick": "^0.29.0", "react-timeago": "^7.1.0", "sass": "~1.59.2", - "soroban-client": "1.0.0-beta.4", + "soroban-client": "^1.0.0", "swiper": "^10.2.0", "typescript": "~4.9.5", "web-vitals": "~3.3.0", diff --git a/frontend/src/soroban/index.ts b/frontend/src/soroban/index.ts index 11b0428c..24e2b4b2 100644 --- a/frontend/src/soroban/index.ts +++ b/frontend/src/soroban/index.ts @@ -177,7 +177,7 @@ const getContractOperation = (wrapArgs: { const createContractArgs = new xdr.CreateContractArgs({ contractIdPreimage: xdr.ContractIdPreimage.contractIdPreimageFromAsset(xdrAsset), - executable: xdr.ContractExecutable.contractExecutableToken(), + executable: xdr.ContractExecutable.contractExecutableStellarAsset(), }) const func =