Skip to content

Commit

Permalink
lists and offer updated
Browse files Browse the repository at this point in the history
  • Loading branch information
microchipgnu committed Apr 21, 2021
1 parent 52547a4 commit db17ee5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class Wallet {
})

// @ts-ignore: method does not exist on Contract type
await contract.batch_burn({ token_ids: tokenIds }, MAX_GAS, YOCTO)
await contract.burn_tokens({ token_ids: tokenIds }, MAX_GAS, YOCTO)
}

/**
Expand All @@ -302,7 +302,8 @@ export class Wallet {
public async batchList(
tokenId: string[],
storeId: string,
price: string
price: string,
autotransfer?: boolean
): Promise<void> {
const account = this.activeWallet?.account()
const accountId = this.activeWallet?.account().accountId
Expand Down Expand Up @@ -334,6 +335,7 @@ export class Wallet {
account_id: MARKET_ACCOUNT,
msg: JSON.stringify({
price: price,
autotransfer: autotransfer || true,
}),
},
GAS,
Expand All @@ -351,7 +353,8 @@ export class Wallet {
public async list(
tokenId: string,
storeId: string,
price: string
price: string,
autotransfer?: boolean
): Promise<void> {
const account = this.activeWallet?.account()
const accountId = this.activeWallet?.account().accountId
Expand Down Expand Up @@ -383,6 +386,7 @@ export class Wallet {
account_id: MARKET_ACCOUNT,
msg: JSON.stringify({
price: price,
autotransfer: autotransfer || true,
}),
},
GAS,
Expand Down Expand Up @@ -412,7 +416,7 @@ export class Wallet {
const list = result.list[0]

const contract = new Contract(account, MARKET_ACCOUNT, {
viewMethods: ['get_token_owner_id', 'get_token', 'get_token_token_id'],
viewMethods: [],
changeMethods: ['make_offer'],
})

Expand Down Expand Up @@ -594,6 +598,10 @@ export class Wallet {
await contract.mint_tokens(obj, MAX_GAS, ZERO)
}

// public async addMinter(): Promise<void> {
// return
// }

public async setSessionKeyPair(
accountId: string,
privateKey: string
Expand Down

0 comments on commit db17ee5

Please sign in to comment.