Skip to content

Commit

Permalink
use sdk v2 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj committed Oct 20, 2023
1 parent a4a3039 commit 792137c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"aptos": "aptos"
},
"dependencies": {
"@aptos-labs/ts-sdk": "^0.0.0",
"@aptos-labs/wallet-adapter-react": "^1.3.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@types/node": "20.4.5",
"@types/react": "18.2.17",
"@types/react-dom": "18.2.7",
"aptos": "^1.15.0",
"autoprefixer": "10.4.14",
"clsx": "^2.0.0",
"eslint": "^8.48.0",
Expand Down
39 changes: 32 additions & 7 deletions frontend/pnpm-lock.yaml

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

8 changes: 7 additions & 1 deletion frontend/src/app/home/Pet/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

import { Dispatch, SetStateAction, useState } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { Network, Provider } from "aptos";
// import { Aptos } from "@aptos-labs/ts-sdk";
import { Pet } from ".";

import { Account, Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
const config = new AptosConfig({ network: "devnet" });
// const aptos = new Aptos(config);

// const aptos = new Aptos();

export const provider = new Provider(Network.TESTNET);
export type PetAction = "feed" | "play";

Expand Down

0 comments on commit 792137c

Please sign in to comment.