Skip to content

Commit

Permalink
ts-relayer test: transfer NFT v16
Browse files Browse the repository at this point in the history
  • Loading branch information
taitruong committed Aug 14, 2024
1 parent 667dd69 commit 96d2d20
Show file tree
Hide file tree
Showing 2 changed files with 528 additions and 18 deletions.
31 changes: 28 additions & 3 deletions ts-relayer-tests/src/cw721-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function ownerOf(
return client.sign.queryContractSmart(cw721Contract, msg);
}

export function getCollectionInfoAndExtension(
export function getCw721CollectionInfoAndExtension(
client: CosmWasmSigner,
cw721Contract: string
): Promise<{
Expand All @@ -153,7 +153,20 @@ export function getCollectionInfoAndExtension(
return client.sign.queryContractSmart(cw721Contract, msg);
}

export function getMinterOwnership(
export function getCw721ContractInfo_v16(
client: CosmWasmSigner,
cw721Contract: string
): Promise<{
name: string;
symbol: string;
}> {
const msg = {
contract_info: {},
};
return client.sign.queryContractSmart(cw721Contract, msg);
}

export function getCw721MinterOwnership(
client: CosmWasmSigner,
cw721Contract: string
): Promise<{
Expand All @@ -167,7 +180,19 @@ export function getMinterOwnership(
return client.sign.queryContractSmart(cw721Contract, msg);
}

export function getCreatorOwnership(
export function getCw721Minter_v16(
client: CosmWasmSigner,
cw721Contract: string
): Promise<{
minter: string;
}> {
const msg = {
minter: {},
};
return client.sign.queryContractSmart(cw721Contract, msg);
}

export function getCw721CreatorOwnership(
client: CosmWasmSigner,
cw721Contract: string
): Promise<{
Expand Down
Loading

0 comments on commit 96d2d20

Please sign in to comment.