diff --git a/Cargo.lock b/Cargo.lock index 0f6415b4..b7905570 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,6 +324,12 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +[[package]] +name = "ethnum" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0198b9d0078e0f30dedc7acbb21c974e838fc8fae3ee170128658a98cb2c1c04" + [[package]] name = "fnv" version = "1.0.7" @@ -802,11 +808,12 @@ dependencies = [ [[package]] name = "soroban-env-common" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28be0b49003d163d32164528aa37e6c45f0af24e2dfc27a1beb2832e0893d56b" +checksum = "6d29fbe906feaf8aea5f4d7d42213523d167b7dca9d7fff6d41d32b7614fce9b" dependencies = [ "crate-git-revision", + "ethnum", "serde", "soroban-env-macros", "soroban-wasmi", @@ -816,9 +823,9 @@ dependencies = [ [[package]] name = "soroban-env-guest" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3656b9f9ed6bf1926f3fadf9f289c53e3625627ff8294befb9f9ee62b998970" +checksum = "2fefd6b8af45c2a06cbbe8a26abe99265853e25d2eefe44e6a89da773e04298e" dependencies = [ "soroban-env-common", "static_assertions", @@ -826,9 +833,9 @@ dependencies = [ [[package]] name = "soroban-env-host" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c687a3a9a772816ed604ef2551e8377071cec343729ffe0b43dae13ae1280fdf" +checksum = "e95f23c4d51ae35b6b76e6e7bade504610dbcb8e992c4b8a8ecd7e767dc67a8f" dependencies = [ "backtrace", "curve25519-dalek", @@ -849,9 +856,9 @@ dependencies = [ [[package]] name = "soroban-env-macros" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f8a0b12e9345e0527c2fa82a32869080b02b3d320f25693fb7a040956bac67" +checksum = "6671aba5e9a697d26fb2b06351c7fa169621e05f1a60eb786fdd7233bd4ee5e0" dependencies = [ "itertools", "proc-macro2", @@ -865,9 +872,9 @@ dependencies = [ [[package]] name = "soroban-ledger-snapshot" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb84883d0beae1ed63812d51ad15a9b2d0a88e884f72ee8f519645ce507e3de4" +checksum = "2f5301e13544c0f5b51cc44f56e85066130523b2bf67fdc17e939663aa52d410" dependencies = [ "serde", "serde_json", @@ -877,9 +884,9 @@ dependencies = [ [[package]] name = "soroban-native-sdk-macros" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d6ec8239376e09d710f4dd79448dc07b27111a49e264386c5d12cbdc43951cb" +checksum = "2b5f2b2b62c86d365db6f1b712f27fb78521c37421d5f936b088eb55af862cf5" dependencies = [ "itertools", "proc-macro2", @@ -889,9 +896,9 @@ dependencies = [ [[package]] name = "soroban-sdk" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558c79da34d4b93a699cd98898047f249737f791410e1b040159fda992f93162" +checksum = "c2ebf70a33a492a07e42e80d8cef4319e2a11ddc74714a2f89b5cadbb3b26ce3" dependencies = [ "bytes-lit", "ed25519-dalek", @@ -905,9 +912,9 @@ dependencies = [ [[package]] name = "soroban-sdk-macros" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832a69c78fff228a369c230054a9c57e9fb24cc9d184124cab9803ff1b67f9c6" +checksum = "bf80f167c13e45c1fa6c367e58ea480e4810a31ac50eeb271554c8a2acee8e9e" dependencies = [ "darling", "itertools", @@ -922,9 +929,9 @@ dependencies = [ [[package]] name = "soroban-spec" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8861bfce88ccfc4694f2ad6774f4ff929f8cc61d8b2ed5c5f4e9fa98a375aa60" +checksum = "ac8da7a37b2534fe52602e824d99387ccb6af968152d8961149f12267a39adf4" dependencies = [ "base64", "darling", @@ -990,9 +997,9 @@ dependencies = [ [[package]] name = "stellar-xdr" -version = "0.0.14" +version = "0.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "940dc58ca70e647b0b2517461beb3476fbffa5dc78d10f5c53645da8503c765c" +checksum = "586e1cd433a1769db6acf8418018ec72f7404f3542ee8cf7d9ddc9f6595f58fa" dependencies = [ "base64", "crate-git-revision", diff --git a/Cargo.toml b/Cargo.toml index ad9562c7..00b43afc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,28 +16,28 @@ codegen-units = 1 lto = true [workspace.dependencies.soroban-env-common] -version = "0.0.14" +version = "0.0.15" [workspace.dependencies.soroban-env-guest] -version = "0.0.14" +version = "0.0.15" [workspace.dependencies.soroban-env-macros] -version = "0.0.14" +version = "0.0.15" [workspace.dependencies.soroban-env-host] -version = "0.0.14" +version = "0.0.15" [workspace.dependencies.soroban-native-sdk-macros] -version = "0.0.14" +version = "0.0.15" [workspace.dependencies.soroban-spec] -version = "0.6.0" +version = "0.7.0" [workspace.dependencies.soroban-sdk] -version = "0.6.0" +version = "0.7.0" [workspace.dependencies.soroban-sdk-macros] -version = "0.6.0" +version = "0.7.0" [workspace.dependencies.stellar-xdr] -version = "0.0.14" +version = "0.0.15" diff --git a/components/molecules/deposits/index.tsx b/components/molecules/deposits/index.tsx index 19bf3315..c50bbdd0 100644 --- a/components/molecules/deposits/index.tsx +++ b/components/molecules/deposits/index.tsx @@ -2,7 +2,6 @@ import React from 'react' import * as SorobanClient from 'soroban-client' import styles from './style.module.css' import { Utils } from '../../../shared/utils' -import BigNumber from 'bignumber.js' import { Spacer } from '../../atoms/spacer' import * as convert from '../../../convert' import { Constants } from '../../../shared/constants' diff --git a/components/organisms/pledge/index.tsx b/components/organisms/pledge/index.tsx index 9d382fd1..28ca31c3 100644 --- a/components/organisms/pledge/index.tsx +++ b/components/organisms/pledge/index.tsx @@ -59,12 +59,6 @@ const Pledge: FunctionComponent = () => { sorobanContext }) - let started = useContractValue({ - contractId: Constants.CrowdfundId, - method: 'started', - sorobanContext - }) - let targetAmountXdr = useContractValue({ contractId: Constants.CrowdfundId, method: 'target', @@ -84,19 +78,11 @@ const Pledge: FunctionComponent = () => { deadline.result && new Date( convert.xdrUint64ToNumber( - deadline.result.obj()?.u64() ?? xdr.Int64.fromString('0') + deadline.result.u64() ?? xdr.Int64.fromString('0') ) * 1000 ) const targetAmount = convert.scvalToBigNumber(targetAmountXdr.result) - const startedDate = - started.result && - new Date( - convert.xdrUint64ToNumber( - started.result.obj()?.u64() ?? xdr.Int64.fromString('0') - ) * 1000 - ) - const isLoading = (): boolean | undefined => { return ( token.balance.loading || diff --git a/contracts/token/soroban_token_spec.wasm b/contracts/token/soroban_token_spec.wasm index 12328bd6..3e62eefc 100755 Binary files a/contracts/token/soroban_token_spec.wasm and b/contracts/token/soroban_token_spec.wasm differ diff --git a/convert.ts b/convert.ts index 49d97dd9..742ca78f 100644 --- a/convert.ts +++ b/convert.ts @@ -7,42 +7,37 @@ export function scvalToBigNumber(scval: SorobanClient.xdr.ScVal | undefined): Bi case undefined: { return BigNumber(0); } - case xdr.ScValType.scvU63(): { - const {high, low} = scval.u63(); - return bigNumberFromBytes(false, high, low); - } case xdr.ScValType.scvU32(): { return BigNumber(scval.u32()); } case xdr.ScValType.scvI32(): { return BigNumber(scval.i32()); } - case xdr.ScValType.scvObject(): { - let obj = scval.obj()!; - switch (obj.switch()) { - case xdr.ScObjectType.scoU64(): { - const {high, low} = obj.u64(); - return bigNumberFromBytes(false, high, low); - } - case xdr.ScObjectType.scoI64(): { - const {high, low} = obj.i64(); - return bigNumberFromBytes(true, high, low); - } - case xdr.ScObjectType.scoU128(): { - const parts = obj.u128(); - const a = parts.hi(); - const b = parts.lo(); - return bigNumberFromBytes(false, a.high, a.low, b.high, b.low); - } - case xdr.ScObjectType.scoI128(): { - const parts = obj.i128(); - const a = parts.hi(); - const b = parts.lo(); - return bigNumberFromBytes(true, a.high, a.low, b.high, b.low); - } - default: - throw new Error(`Invalid type for scvalToBigNumber: ${obj.switch().name}`); - } + case xdr.ScValType.scvU64(): { + const {high, low} = scval.u64(); + return bigNumberFromBytes(false, high, low); + } + case xdr.ScValType.scvI64(): { + const {high, low} = scval.i64(); + return bigNumberFromBytes(true, high, low); + } + case xdr.ScValType.scvU128(): { + const parts = scval.u128(); + const a = parts.hi(); + const b = parts.lo(); + return bigNumberFromBytes(false, a.high, a.low, b.high, b.low); + } + case xdr.ScValType.scvI128(): { + const parts = scval.i128(); + const a = parts.hi(); + const b = parts.lo(); + return bigNumberFromBytes(true, a.high, a.low, b.high, b.low); + } + case xdr.ScValType.scvU256(): { + return bigNumberFromBytes(false, ...scval.u256()); + } + case xdr.ScValType.scvI256(): { + return bigNumberFromBytes(true, ...scval.i256()); } default: { throw new Error(`Invalid type for scvalToBigNumber: ${scval?.switch().name}`); @@ -96,7 +91,7 @@ export function bigNumberToI128(value: BigNumber): SorobanClient.xdr.ScVal { bigNumberFromBytes(false, ...padded.slice(8, 12)).toNumber() ); - return xdr.ScVal.scvObject(xdr.ScObject.scoI128(new xdr.Int128Parts({lo, hi}))); + return xdr.ScVal.scvI128(new xdr.Int128Parts({lo, hi})); } function bigintToBuf(bn: bigint): Buffer { @@ -131,6 +126,6 @@ export function xdrUint64ToNumber(value: SorobanClient.xdr.Uint64): number { } export function scvalToString(value: SorobanClient.xdr.ScVal): string | undefined { - return value.obj()?.bin().toString(); + return value.bytes().toString(); } diff --git a/initialize.sh b/initialize.sh index 0ea2b50d..87f4b810 100755 --- a/initialize.sh +++ b/initialize.sh @@ -58,7 +58,7 @@ echo "$TOKEN_ADMIN_ADDRESS" > .soroban/token_admin_address echo Fund token-admin account from friendbot curl --silent -X POST "$FRIENDBOT_URL?addr=$TOKEN_ADMIN_ADDRESS" >/dev/null -ARGS="--network $NETWORK --identity token-admin" +ARGS="--network $NETWORK --source token-admin" echo Wrap the Stellar asset mkdir -p .soroban @@ -85,7 +85,8 @@ soroban contract invoke \ $ARGS \ --wasm target/wasm32-unknown-unknown/release/soroban_crowdfund_contract.wasm \ --id "$CROWDFUND_ID" \ - --fn initialize -- \ + -- \ + initialize \ --recipient "$TOKEN_ADMIN_ADDRESS" \ --deadline "$deadline" \ --target_amount "1000000000" \ diff --git a/package-lock.json b/package-lock.json index f58a955f..1098c573 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "0.1.0", "dependencies": { "@radix-ui/react-dialog": "1.0.2", - "@soroban-react/chains": "4.0.0", - "@soroban-react/contracts": "4.0.0", - "@soroban-react/core": "4.0.0", + "@soroban-react/chains": "4.1.0", + "@soroban-react/contracts": "4.1.0", + "@soroban-react/core": "4.1.0", "@soroban-react/freighter": "4.0.0", "@soroban-react/types": "4.0.0", "@stellar/freighter-api": "^1.3.1", @@ -22,15 +22,15 @@ "next": "12.1.5", "react": "18.1.0", "react-dom": "18.1.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" }, "devDependencies": { "@types/humanize-duration": "^3.27.1", "@types/node": "17.0.30", "@types/react": "18.0.8", "@types/react-dom": "18.0.3", - "eslint": "8.14.0", - "eslint-config-next": "12.1.5", + "eslint": "^8.14.0", + "eslint-config-next": "^12.1.5", "typescript": "4.6.4" }, "engines": { @@ -550,34 +550,34 @@ "dev": true }, "node_modules/@soroban-react/chains": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/chains/-/chains-4.0.0.tgz", - "integrity": "sha512-JxQ18KadbR8qHMhSGdFfgLmLnq4uVyAYGosAAF5sRAP5R873BlFLWPrBYz1vrT2zkd947P3U1UCrQRvckr3CuA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/chains/-/chains-4.1.0.tgz", + "integrity": "sha512-40bASgPfmLPOzUUXaF8ZHYJdMJ5vf9TltralqPJgRC8wlXoSKnOSlU/Nk6iyE1gDyzsURItgnu79YJ6oLTQdOg==", "dependencies": { "@soroban-react/types": "^4.0.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" } }, "node_modules/@soroban-react/contracts": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.0.0.tgz", - "integrity": "sha512-uGlIzDb2lgQkcCYnfQiAPGJmPahwKspMSbgoU1Bi9U0gfeZDTfHmJPQGDiT0N4tkTWKFR/1UV92Z6EntsF/bQA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.0.tgz", + "integrity": "sha512-vnhmZbSXPmAtXg2XUmhR46oFYOBMnuyeJgxssfyKAl3Ud3nEwu/3KbSmfMqlIOZh3YZn+T8rB4BXZCeMB9P3dQ==", "dependencies": { - "@soroban-react/core": "^4.0.0", - "soroban-client": "^0.4.0" + "@soroban-react/core": "^4.1.0", + "soroban-client": "^0.5.0" }, "peerDependencies": { "react": ">=16.8" } }, "node_modules/@soroban-react/core": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/core/-/core-4.0.0.tgz", - "integrity": "sha512-QsK+9aNxHTGkgAERZ1Jyi9n4J7G6tJpe+KxN5DmfEcdUN+b/pOg95JwFDq9ZpkfIEWaeWpRixFEhIw4oxnaVSw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/core/-/core-4.1.0.tgz", + "integrity": "sha512-4Bnb8lfMxbnEWVHANU/Sp1x79RJBAYQ5eyLUCI6E0y5hI7ug0RYteawt2wvacHXB89jSLeXnUeil++6FR/lW2w==", "dependencies": { "@soroban-react/freighter": "^4.0.0", "@soroban-react/types": "^4.0.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" }, "peerDependencies": { "react": ">=16.8" @@ -2725,9 +2725,9 @@ } }, "node_modules/node-gyp-build": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", - "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", + "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", "optional": true, "bin": { "node-gyp-build": "bin.js", @@ -3322,9 +3322,9 @@ } }, "node_modules/soroban-client": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-0.4.0.tgz", - "integrity": "sha512-4t+SioFeUnG9dptkEzRzSgFKXTuRMz1abtxmzE461QVUCLIDayMIjY8B3vloKiWNSx9y/wNBIA5IA8PtAIm8rQ==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-0.5.0.tgz", + "integrity": "sha512-t4P+G7YTyNcO0Wgp1ROSmcXU8Nb+/ShE+2x2BvzJNLsKTZyF/7jVFH/PKkzsrJztgHZ7gnkzh6IUCNQ5wcKYXQ==", "dependencies": { "@types/eventsource": "^1.1.2", "@types/node": "18.11.9", @@ -3333,7 +3333,7 @@ "axios": "0.25.0", "es6-promise": "^4.2.4", "lodash": "4.17.21", - "stellar-base": "8.2.2-soroban.11", + "stellar-base": "8.2.2-soroban.12", "urijs": "^1.19.1" } }, @@ -3350,18 +3350,18 @@ "follow-redirects": "^1.14.7" } }, - "node_modules/soroban-client/node_modules/bignumber.js": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", - "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==", + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", "engines": { - "node": "*" + "node": ">=0.10.0" } }, - "node_modules/soroban-client/node_modules/stellar-base": { - "version": "8.2.2-soroban.11", - "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-8.2.2-soroban.11.tgz", - "integrity": "sha512-pizPJj/4Vg75n4slk3L66pzJS1+bCXsWWG7GgYiuNmzl2bKwY7cS/87PypBEDUx7msOF/ZEocGg9kJ7sU6wupg==", + "node_modules/stellar-base": { + "version": "8.2.2-soroban.12", + "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-8.2.2-soroban.12.tgz", + "integrity": "sha512-bQQxRFA2GXoNsr2ZFN+eK9Du1hSu0+t983tHRMI3nyWlLgZInKg7B9ZFa4UjLbLYpxQ4mE1EYupk3bulqNA91A==", "dependencies": { "base32.js": "^0.1.0", "bignumber.js": "^4.0.0", @@ -3375,12 +3375,12 @@ "sodium-native": "^3.3.0" } }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "node_modules/stellar-base/node_modules/bignumber.js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==", "engines": { - "node": ">=0.10.0" + "node": "*" } }, "node_modules/string.prototype.matchall": { @@ -4063,31 +4063,31 @@ "dev": true }, "@soroban-react/chains": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/chains/-/chains-4.0.0.tgz", - "integrity": "sha512-JxQ18KadbR8qHMhSGdFfgLmLnq4uVyAYGosAAF5sRAP5R873BlFLWPrBYz1vrT2zkd947P3U1UCrQRvckr3CuA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/chains/-/chains-4.1.0.tgz", + "integrity": "sha512-40bASgPfmLPOzUUXaF8ZHYJdMJ5vf9TltralqPJgRC8wlXoSKnOSlU/Nk6iyE1gDyzsURItgnu79YJ6oLTQdOg==", "requires": { "@soroban-react/types": "^4.0.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" } }, "@soroban-react/contracts": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.0.0.tgz", - "integrity": "sha512-uGlIzDb2lgQkcCYnfQiAPGJmPahwKspMSbgoU1Bi9U0gfeZDTfHmJPQGDiT0N4tkTWKFR/1UV92Z6EntsF/bQA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.0.tgz", + "integrity": "sha512-vnhmZbSXPmAtXg2XUmhR46oFYOBMnuyeJgxssfyKAl3Ud3nEwu/3KbSmfMqlIOZh3YZn+T8rB4BXZCeMB9P3dQ==", "requires": { - "@soroban-react/core": "^4.0.0", - "soroban-client": "^0.4.0" + "@soroban-react/core": "^4.1.0", + "soroban-client": "^0.5.0" } }, "@soroban-react/core": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@soroban-react/core/-/core-4.0.0.tgz", - "integrity": "sha512-QsK+9aNxHTGkgAERZ1Jyi9n4J7G6tJpe+KxN5DmfEcdUN+b/pOg95JwFDq9ZpkfIEWaeWpRixFEhIw4oxnaVSw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@soroban-react/core/-/core-4.1.0.tgz", + "integrity": "sha512-4Bnb8lfMxbnEWVHANU/Sp1x79RJBAYQ5eyLUCI6E0y5hI7ug0RYteawt2wvacHXB89jSLeXnUeil++6FR/lW2w==", "requires": { "@soroban-react/freighter": "^4.0.0", "@soroban-react/types": "^4.0.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" } }, "@soroban-react/freighter": { @@ -5643,9 +5643,9 @@ } }, "node-gyp-build": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz", - "integrity": "sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", + "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", "optional": true }, "object-assign": { @@ -6028,9 +6028,9 @@ } }, "soroban-client": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-0.4.0.tgz", - "integrity": "sha512-4t+SioFeUnG9dptkEzRzSgFKXTuRMz1abtxmzE461QVUCLIDayMIjY8B3vloKiWNSx9y/wNBIA5IA8PtAIm8rQ==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/soroban-client/-/soroban-client-0.5.0.tgz", + "integrity": "sha512-t4P+G7YTyNcO0Wgp1ROSmcXU8Nb+/ShE+2x2BvzJNLsKTZyF/7jVFH/PKkzsrJztgHZ7gnkzh6IUCNQ5wcKYXQ==", "requires": { "@types/eventsource": "^1.1.2", "@types/node": "18.11.9", @@ -6039,7 +6039,7 @@ "axios": "0.25.0", "es6-promise": "^4.2.4", "lodash": "4.17.21", - "stellar-base": "8.2.2-soroban.11", + "stellar-base": "8.2.2-soroban.12", "urijs": "^1.19.1" }, "dependencies": { @@ -6055,26 +6055,6 @@ "requires": { "follow-redirects": "^1.14.7" } - }, - "bignumber.js": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", - "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==" - }, - "stellar-base": { - "version": "8.2.2-soroban.11", - "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-8.2.2-soroban.11.tgz", - "integrity": "sha512-pizPJj/4Vg75n4slk3L66pzJS1+bCXsWWG7GgYiuNmzl2bKwY7cS/87PypBEDUx7msOF/ZEocGg9kJ7sU6wupg==", - "requires": { - "base32.js": "^0.1.0", - "bignumber.js": "^4.0.0", - "crc": "^3.5.0", - "js-xdr": "^1.1.3", - "lodash": "^4.17.21", - "sha.js": "^2.3.6", - "sodium-native": "^3.3.0", - "tweetnacl": "^1.0.3" - } } } }, @@ -6083,6 +6063,28 @@ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" }, + "stellar-base": { + "version": "8.2.2-soroban.12", + "resolved": "https://registry.npmjs.org/stellar-base/-/stellar-base-8.2.2-soroban.12.tgz", + "integrity": "sha512-bQQxRFA2GXoNsr2ZFN+eK9Du1hSu0+t983tHRMI3nyWlLgZInKg7B9ZFa4UjLbLYpxQ4mE1EYupk3bulqNA91A==", + "requires": { + "base32.js": "^0.1.0", + "bignumber.js": "^4.0.0", + "crc": "^3.5.0", + "js-xdr": "^1.1.3", + "lodash": "^4.17.21", + "sha.js": "^2.3.6", + "sodium-native": "^3.3.0", + "tweetnacl": "^1.0.3" + }, + "dependencies": { + "bignumber.js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==" + } + } + }, "string.prototype.matchall": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", diff --git a/package.json b/package.json index caa177ef..90c2df7b 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,11 @@ }, "dependencies": { "@radix-ui/react-dialog": "1.0.2", - "@soroban-react/contracts": "4.0.0", - "@soroban-react/core": "4.0.0", + "@soroban-react/chains": "4.1.0", + "@soroban-react/contracts": "4.1.0", + "@soroban-react/core": "4.1.0", "@soroban-react/freighter": "4.0.0", "@soroban-react/types": "4.0.0", - "@soroban-react/chains": "4.0.0", "@stellar/freighter-api": "^1.3.1", "axios": "^0.27.2", "bignumber.js": "^9.1.0", @@ -25,15 +25,15 @@ "next": "12.1.5", "react": "18.1.0", "react-dom": "18.1.0", - "soroban-client": "^0.4.0" + "soroban-client": "^0.5.0" }, "devDependencies": { "@types/humanize-duration": "^3.27.1", "@types/node": "17.0.30", "@types/react": "18.0.8", "@types/react-dom": "18.0.3", - "eslint": "8.14.0", - "eslint-config-next": "12.1.5", + "eslint": "^8.14.0", + "eslint-config-next": "^12.1.5", "typescript": "4.6.4" }, "engines": {