-
Notifications
You must be signed in to change notification settings - Fork 2
/
execute_msg.d.ts
72 lines (70 loc) · 1.38 KB
/
execute_msg.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { Empty, Expiration } from "./shared-types";
/**
* This is like Cw721ExecuteMsg but we add a Mint command for an owner to make this stand-alone. You will likely want to remove mint and use other control logic in any contract that inherits this.
*/
export type ExecuteMsg = ({
transfer_nft: {
recipient: string
token_id: string
}
} | {
send_nft: {
contract: string
msg: Binary
token_id: string
}
} | {
approve: {
expires?: (Expiration | null)
spender: string
token_id: string
}
} | {
revoke: {
spender: string
token_id: string
}
} | {
approve_all: {
expires?: (Expiration | null)
operator: string
}
} | {
revoke_all: {
operator: string
}
} | {
mint: MintMsgFor_Nullable_Empty
} | {
burn: {
token_id: string
}
} | {
extension: {
msg: Empty
}
})
/**
* Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.
*
* This is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>
*/
export type Binary = string
export interface MintMsgFor_Nullable_Empty {
/**
* Any custom extension used by this contract
*/
extension?: (Empty | null)
/**
* The owner of the newly minter NFT
*/
owner: string
/**
* Unique ID of the NFT
*/
token_id: string
/**
* Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema
*/
token_uri?: (string | null)
}