Skip to content

Commit

Permalink
chore: update sdk to p22 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mootz12 committed Dec 12, 2024
1 parent 35b6b53 commit 9a81836
Show file tree
Hide file tree
Showing 8 changed files with 255 additions and 450 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Now that you have your library up-to-date and added to your project, you can imp
```js
import { VotesClient } from "soroban-governor-js-sdk";

let rpc = new SorobanRpc.Server("rpcUrl");
let account = await rpc.getAccount("public key");
let stellarRpc = new rpc.Server("rpcUrl");
let account = await stellarRpc.getAccount("public key");
let votes = new VotesClient("Contract Address");

let { op, parser } = votes.depositFor({
Expand All @@ -28,7 +28,7 @@ let tx = new TransactionBuilder(account, {
.build();

// Simulate
let sim_resp = await rpc.simulateTransaction(tx);
let sim_resp = await stellarRpc.simulateTransaction(tx);

// Parse Response
let result = ContractResult.fromSimulationResponse(sim_resp, parser);
Expand Down
112 changes: 76 additions & 36 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.1",
"version": "1.3.0",
"name": "@script3/soroban-governor-sdk",
"description": "Javascript SDK for the Soroban Governor",
"type": "module",
Expand Down Expand Up @@ -29,7 +29,7 @@
"homepage": "https://github.com/script3/soroban-governor-js-sdk#readme",
"dependencies": {
"buffer": "6.0.3",
"@stellar/stellar-sdk": "12.1.0"
"@stellar/stellar-sdk": "13.0.0"
},
"devDependencies": {
"typescript": "5.3.3"
Expand Down
Loading

0 comments on commit 9a81836

Please sign in to comment.