Skip to content

chore: upgrading to latest sdk #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions NextJS/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion NextJS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.0",
"subtopia-js": "^3.0.0-beta.34",
"subtopia-js-sdk": "^1.0.0",
"typescript": "^5.1.3"
}
}
5 changes: 3 additions & 2 deletions NextJS/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Duration,
SUBTOPIA_REGISTRY_ID,
SubtopiaClient,
} from "subtopia-js";
} from "subtopia-js-sdk";
import algosdk from "algosdk";
import { useAsyncRetry } from "react-use";

Expand All @@ -25,7 +25,7 @@ const testNetAlgodClient = new algosdk.Algodv2(
``
);

const DUMMY_SMI_ID = 481312144;
const DUMMY_SMI_ID = 487827764;

export default function Home() {
const { activeAddress, providers, signer } = useWallet();
Expand Down Expand Up @@ -55,6 +55,7 @@ export default function Home() {
const client = await SubtopiaClient.init({
algodClient: testNetAlgodClient,
productID: DUMMY_SMI_ID,
chainType: ChainType.TESTNET,
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
creator: {
addr: activeAddress,
Expand Down
10 changes: 5 additions & 5 deletions React/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1",
"react-use": "^17.4.0",
"subtopia-js": "^3.0.0-beta.34",
"subtopia-js-sdk": "^1.0.0",
"typescript": "^4",
"web-vitals": "^3.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions React/src/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Duration,
SUBTOPIA_REGISTRY_ID,
SubtopiaClient,
} from "subtopia-js";
} from "subtopia-js-sdk";
import algosdk from "algosdk";
import { useAsyncRetry } from "react-use";

Expand All @@ -20,7 +20,7 @@ const testNetAlgodClient = new algosdk.Algodv2(
``
);

const DUMMY_SMI_ID = 481312144;
const DUMMY_SMI_ID = 487827764;

export default function Home() {
const { activeAddress, providers, signer } = useWallet();
Expand Down Expand Up @@ -51,6 +51,7 @@ export default function Home() {
const client = await SubtopiaClient.init({
algodClient: testNetAlgodClient,
productID: DUMMY_SMI_ID,
chainType: ChainType.TESTNET,
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
creator: {
addr: activeAddress,
Expand Down
10 changes: 5 additions & 5 deletions Svelte/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@perawallet/connect": "^1.3.3",
"algosdk": "^2.7.0",
"subtopia-js": "^3.0.0-beta.34"
"subtopia-js-sdk": "^1.0.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1",
Expand Down
7 changes: 4 additions & 3 deletions Svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
SubtopiaClient,
Duration,
type SubscriptionRecord,
} from "subtopia-js";
} from "subtopia-js-sdk";
import algosdk, { Transaction } from "algosdk";
import type {
DecodedSignedTransaction,
DecodedTransaction,
PeraTransaction,
} from "./types/node";
import { SUBTOPIA_REGISTRY_ID, ChainType } from "subtopia-js";
import { SUBTOPIA_REGISTRY_ID, ChainType } from "subtopia-js-sdk";

const peraWallet = new PeraWalletConnect();
const dummySmiID = 481312144;
const dummySmiID = 487827764;
const testNetAlgodClient = new algosdk.Algodv2(
``,
`https://testnet-api.algonode.cloud`,
Expand All @@ -32,6 +32,7 @@
(async () => {
subtopiaClient = await SubtopiaClient.init({
algodClient: testNetAlgodClient,
chainType: ChainType.TESTNET,
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
productID: dummySmiID,
creator: {
Expand Down
10 changes: 5 additions & 5 deletions Vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@perawallet/connect": "^1.3.3",
"algorand-walletconnect-qrcode-modal": "^1.8.0",
"algosdk": "^2.7.0",
"subtopia-js": "^3.0.0-beta.34"
"subtopia-js-sdk": "^1.0.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.2.0",
Expand Down
5 changes: 3 additions & 2 deletions Vue/src/views/DemoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import {
SUBTOPIA_REGISTRY_ID,
ChainType,
Duration
} from 'subtopia-js'
} from 'subtopia-js-sdk'

const peraWallet = new PeraWalletConnect()
const dummySmiID = 481312144
const dummySmiID = 487827764
const testNetAlgodClient = new algosdk.Algodv2('', 'https://testnet-api.algonode.cloud', '')

export default {
Expand Down Expand Up @@ -74,6 +74,7 @@ export default {
async initializeSubtopia() {
this.subtopiaClient = await SubtopiaClient.init({
algodClient: testNetAlgodClient,
chainType: ChainType.TESTNET,
registryID: SUBTOPIA_REGISTRY_ID(ChainType.TESTNET),
productID: dummySmiID,
creator: {
Expand Down
Loading