Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
lllwvlvwlll committed May 17, 2023
1 parent 1937677 commit 494eaeb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions sdk/dist/Chest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ export declare class Chest {
lootChestAsOwner(chestId: number, signer: wallet.Account): Promise<number | string>;
getChestJSON(chestId: number, signer?: wallet.Account): Promise<number | string>;
totalChests(signer?: wallet.Account): Promise<number | string>;
loadChestFungible(tokenScriptHash: string, chestId: number, transferAmount: number, amountPerReservoirItem: number, signer: wallet.Account): Promise<any>;
}
11 changes: 11 additions & 0 deletions sdk/dist/Chest.js

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

2 changes: 1 addition & 1 deletion sdk/dist/Chest.js.map

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

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cityofzion/props",
"version": "0.2.4",
"version": "0.2.5",
"description": "an sdk for interfacing with props to use in decentralized applications",
"main": "dist/index",
"types": "dist/index",
Expand Down
5 changes: 2 additions & 3 deletions sdk/src/Chest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import {merge} from 'lodash'
import {rpc, sc, u, wallet} from '@cityofzion/neon-core'
import {ChestAPI, TemplateAPI} from './api'
import {EligibilityCase, NetworkOption, PropConstructorOptions} from "./interface";
import {formatter, sleep, txDidComplete} from "./helpers";
import {formatter, sleep, txDidComplete, variableInvoke} from "./helpers";
import Neon from "@cityofzion/neon-js";
import sdk from "../dist";

const DEFAULT_OPTIONS: PropConstructorOptions = {
network: NetworkOption.LocalNet
Expand Down Expand Up @@ -135,7 +134,7 @@ export class Chest {
sc.ContractParam.integer(amountPerReservoirItem)
)
]
return await sdk.api.NeoInterface.publishInvoke(this.node.url, this.networkMagic,
return await variableInvoke(this.node.url, this.networkMagic,
tokenScriptHash,
"transfer",
params,
Expand Down

0 comments on commit 494eaeb

Please sign in to comment.