Skip to content

Commit b0b0c05

Browse files
committed
chore: upgrading to latest sdk
1 parent 2cfa125 commit b0b0c05

File tree

13 files changed

+130
-235
lines changed

13 files changed

+130
-235
lines changed

NextJS/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NextJS/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0",
2424
"react-use": "^17.4.0",
25-
"subtopia-js": "^3.0.0-beta.34",
25+
"subtopia-js-sdk": "^1.0.0",
2626
"typescript": "^5.1.3"
2727
}
2828
}

NextJS/pages/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Duration,
1010
SUBTOPIA_REGISTRY_ID,
1111
SubtopiaClient,
12-
} from "subtopia-js";
12+
} from "subtopia-js-sdk";
1313
import algosdk from "algosdk";
1414
import { useAsyncRetry } from "react-use";
1515

@@ -25,7 +25,7 @@ const testNetAlgodClient = new algosdk.Algodv2(
2525
``
2626
);
2727

28-
const DUMMY_SMI_ID = 481312144;
28+
const DUMMY_SMI_ID = 487827764;
2929

3030
export default function Home() {
3131
const { activeAddress, providers, signer } = useWallet();
@@ -55,6 +55,7 @@ export default function Home() {
5555
const client = await SubtopiaClient.init({
5656
algodClient: testNetAlgodClient,
5757
productID: DUMMY_SMI_ID,
58+
chainType: ChainType.TESTNET,
5859
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
5960
creator: {
6061
addr: activeAddress,

React/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

React/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-dom": "^18.2.0",
1818
"react-scripts": "^5.0.1",
1919
"react-use": "^17.4.0",
20-
"subtopia-js": "^3.0.0-beta.34",
20+
"subtopia-js-sdk": "^1.0.0",
2121
"typescript": "^4",
2222
"web-vitals": "^3.0.0"
2323
},

React/src/Demo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Duration,
77
SUBTOPIA_REGISTRY_ID,
88
SubtopiaClient,
9-
} from "subtopia-js";
9+
} from "subtopia-js-sdk";
1010
import algosdk from "algosdk";
1111
import { useAsyncRetry } from "react-use";
1212

@@ -20,7 +20,7 @@ const testNetAlgodClient = new algosdk.Algodv2(
2020
``
2121
);
2222

23-
const DUMMY_SMI_ID = 481312144;
23+
const DUMMY_SMI_ID = 487827764;
2424

2525
export default function Home() {
2626
const { activeAddress, providers, signer } = useWallet();
@@ -51,6 +51,7 @@ export default function Home() {
5151
const client = await SubtopiaClient.init({
5252
algodClient: testNetAlgodClient,
5353
productID: DUMMY_SMI_ID,
54+
chainType: ChainType.TESTNET,
5455
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
5556
creator: {
5657
addr: activeAddress,

Svelte/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@perawallet/connect": "^1.3.3",
1414
"algosdk": "^2.7.0",
15-
"subtopia-js": "^3.0.0-beta.34"
15+
"subtopia-js-sdk": "^1.0.0"
1616
},
1717
"devDependencies": {
1818
"@sveltejs/vite-plugin-svelte": "^3.0.1",

Svelte/src/App.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
SubtopiaClient,
66
Duration,
77
type SubscriptionRecord,
8-
} from "subtopia-js";
8+
} from "subtopia-js-sdk";
99
import algosdk, { Transaction } from "algosdk";
1010
import type {
1111
DecodedSignedTransaction,
1212
DecodedTransaction,
1313
PeraTransaction,
1414
} from "./types/node";
15-
import { SUBTOPIA_REGISTRY_ID, ChainType } from "subtopia-js";
15+
import { SUBTOPIA_REGISTRY_ID, ChainType } from "subtopia-js-sdk";
1616
1717
const peraWallet = new PeraWalletConnect();
18-
const dummySmiID = 481312144;
18+
const dummySmiID = 487827764;
1919
const testNetAlgodClient = new algosdk.Algodv2(
2020
``,
2121
`https://testnet-api.algonode.cloud`,
@@ -32,6 +32,7 @@
3232
(async () => {
3333
subtopiaClient = await SubtopiaClient.init({
3434
algodClient: testNetAlgodClient,
35+
chainType: ChainType.TESTNET,
3536
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
3637
productID: dummySmiID,
3738
creator: {

Vue/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@perawallet/connect": "^1.3.3",
1919
"algorand-walletconnect-qrcode-modal": "^1.8.0",
2020
"algosdk": "^2.7.0",
21-
"subtopia-js": "^3.0.0-beta.34"
21+
"subtopia-js-sdk": "^1.0.0"
2222
},
2323
"devDependencies": {
2424
"@rushstack/eslint-patch": "^1.2.0",

Vue/src/views/DemoView.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import {
3232
SUBTOPIA_REGISTRY_ID,
3333
ChainType,
3434
Duration
35-
} from 'subtopia-js'
35+
} from 'subtopia-js-sdk'
3636
3737
const peraWallet = new PeraWalletConnect()
38-
const dummySmiID = 481312144
38+
const dummySmiID = 487827764
3939
const testNetAlgodClient = new algosdk.Algodv2('', 'https://testnet-api.algonode.cloud', '')
4040
4141
export default {
@@ -74,6 +74,7 @@ export default {
7474
async initializeSubtopia() {
7575
this.subtopiaClient = await SubtopiaClient.init({
7676
algodClient: testNetAlgodClient,
77+
chainType: ChainType.TESTNET,
7778
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
7879
productID: dummySmiID,
7980
creator: {

0 commit comments

Comments
 (0)