diff --git a/package-lock.json b/package-lock.json index 0286b09e..eda64bce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", - "alphadex-sdk-js": "^0.10.1", + "alphadex-sdk-js": "^0.11.0", "autoprefixer": "10.4.14", "eslint-config-next": "13.4.7", "lightweight-charts": "^4.0.1", @@ -2323,9 +2323,9 @@ } }, "node_modules/alphadex-sdk-js": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/alphadex-sdk-js/-/alphadex-sdk-js-0.10.1.tgz", - "integrity": "sha512-g9KG+Uo6iw0ucn+ZWQrsXFTZugxzowxH7kYjMluMCqmqURu/kSIb9YnHn7RWH45/rlb9RvHXSsTYxhfImqCv1w==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/alphadex-sdk-js/-/alphadex-sdk-js-0.11.0.tgz", + "integrity": "sha512-xBf/NMIMto1P/rotZVfL+6LCD5HO3G3I9IIStQx8xqxMPUe3loRyNHokg+T7L9rkwGislI9UXrtpVlQEW9CHzw==", "dependencies": { "axios": "^1.3.2", "rxjs": "^7.8.0" diff --git a/package.json b/package.json index 8b30ce74..53b07b2d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", - "alphadex-sdk-js": "^0.10.1", + "alphadex-sdk-js": "^0.11.0", "autoprefixer": "10.4.14", "eslint-config-next": "13.4.7", "lightweight-charts": "^4.0.1", diff --git a/src/app/subscriptions.ts b/src/app/subscriptions.ts index 7f8c844a..06e182fe 100644 --- a/src/app/subscriptions.ts +++ b/src/app/subscriptions.ts @@ -2,6 +2,7 @@ import { Subscription } from "rxjs"; import { DataRequestBuilder, RadixDappToolkit, + RadixNetwork, } from "@radixdlt/radix-dapp-toolkit"; import * as adex from "alphadex-sdk-js"; import { radixSlice, WalletData } from "./redux/radixSlice"; @@ -29,7 +30,7 @@ export function initializeSubscriptions(store: AppStore) { rdtInstance = RadixDappToolkit({ dAppDefinitionAddress: "account_tdx_d_12yhr42q497c46lr9vxkfsln9e9f3kjj8t5qexznpeq3ewxxqnhm527", - networkId: 14, + networkId: RadixNetwork.Stokenet, }); rdtInstance.walletApi.setRequestData( DataRequestBuilder.accounts().exactly(1)