coreum-js 2.16.2 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/client/index.js +16 -17
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/main/coreum/asset/ft/v1/token.js +273 -197
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +9 -9
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +14 -8
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.js +3 -4
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.js +183 -223
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.js +57 -68
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/wasm/v1/authz.d.ts +20 -471
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/genesis.d.ts +14 -1020
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -62
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -720
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -1201
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -788
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -297
- package/dist/main/wasm/v1/types.js +219 -190
- package/dist/module/client/index.js +4 -3
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/wasm/v1/authz.d.ts +20 -471
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -1020
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -62
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/proposal.d.ts +23 -720
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -1201
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -788
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -297
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { Class, NFT } from "./nft";
|
|
4
3
|
export declare const protobufPackage = "cosmos.nft.v1beta1";
|
|
5
4
|
/** GenesisState defines the nft module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
/** class defines the class of the nft type. */
|
|
8
7
|
classes: Class[];
|
|
8
|
+
/** entry defines all nft owned by a person. */
|
|
9
9
|
entries: Entry[];
|
|
10
10
|
}
|
|
11
11
|
/** Entry Defines all nft owned by a person */
|
|
@@ -15,440 +15,10 @@ export interface Entry {
|
|
|
15
15
|
/** nfts is a group of nfts of the same owner */
|
|
16
16
|
nfts: NFT[];
|
|
17
17
|
}
|
|
18
|
-
export declare const GenesisState:
|
|
19
|
-
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
21
|
-
fromJSON(object: any): GenesisState;
|
|
22
|
-
toJSON(message: GenesisState): unknown;
|
|
23
|
-
create<I extends {
|
|
24
|
-
classes?: {
|
|
25
|
-
id?: string;
|
|
26
|
-
name?: string;
|
|
27
|
-
symbol?: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
uri?: string;
|
|
30
|
-
uriHash?: string;
|
|
31
|
-
data?: {
|
|
32
|
-
typeUrl?: string;
|
|
33
|
-
value?: Uint8Array;
|
|
34
|
-
};
|
|
35
|
-
}[];
|
|
36
|
-
entries?: {
|
|
37
|
-
owner?: string;
|
|
38
|
-
nfts?: {
|
|
39
|
-
classId?: string;
|
|
40
|
-
id?: string;
|
|
41
|
-
uri?: string;
|
|
42
|
-
uriHash?: string;
|
|
43
|
-
data?: {
|
|
44
|
-
typeUrl?: string;
|
|
45
|
-
value?: Uint8Array;
|
|
46
|
-
};
|
|
47
|
-
}[];
|
|
48
|
-
}[];
|
|
49
|
-
} & {
|
|
50
|
-
classes?: {
|
|
51
|
-
id?: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
symbol?: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
uri?: string;
|
|
56
|
-
uriHash?: string;
|
|
57
|
-
data?: {
|
|
58
|
-
typeUrl?: string;
|
|
59
|
-
value?: Uint8Array;
|
|
60
|
-
};
|
|
61
|
-
}[] & ({
|
|
62
|
-
id?: string;
|
|
63
|
-
name?: string;
|
|
64
|
-
symbol?: string;
|
|
65
|
-
description?: string;
|
|
66
|
-
uri?: string;
|
|
67
|
-
uriHash?: string;
|
|
68
|
-
data?: {
|
|
69
|
-
typeUrl?: string;
|
|
70
|
-
value?: Uint8Array;
|
|
71
|
-
};
|
|
72
|
-
} & {
|
|
73
|
-
id?: string;
|
|
74
|
-
name?: string;
|
|
75
|
-
symbol?: string;
|
|
76
|
-
description?: string;
|
|
77
|
-
uri?: string;
|
|
78
|
-
uriHash?: string;
|
|
79
|
-
data?: {
|
|
80
|
-
typeUrl?: string;
|
|
81
|
-
value?: Uint8Array;
|
|
82
|
-
} & {
|
|
83
|
-
typeUrl?: string;
|
|
84
|
-
value?: Uint8Array;
|
|
85
|
-
} & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
86
|
-
} & { [K_1 in Exclude<keyof I["classes"][number], keyof Class>]: never; })[] & { [K_2 in Exclude<keyof I["classes"], keyof {
|
|
87
|
-
id?: string;
|
|
88
|
-
name?: string;
|
|
89
|
-
symbol?: string;
|
|
90
|
-
description?: string;
|
|
91
|
-
uri?: string;
|
|
92
|
-
uriHash?: string;
|
|
93
|
-
data?: {
|
|
94
|
-
typeUrl?: string;
|
|
95
|
-
value?: Uint8Array;
|
|
96
|
-
};
|
|
97
|
-
}[]>]: never; };
|
|
98
|
-
entries?: {
|
|
99
|
-
owner?: string;
|
|
100
|
-
nfts?: {
|
|
101
|
-
classId?: string;
|
|
102
|
-
id?: string;
|
|
103
|
-
uri?: string;
|
|
104
|
-
uriHash?: string;
|
|
105
|
-
data?: {
|
|
106
|
-
typeUrl?: string;
|
|
107
|
-
value?: Uint8Array;
|
|
108
|
-
};
|
|
109
|
-
}[];
|
|
110
|
-
}[] & ({
|
|
111
|
-
owner?: string;
|
|
112
|
-
nfts?: {
|
|
113
|
-
classId?: string;
|
|
114
|
-
id?: string;
|
|
115
|
-
uri?: string;
|
|
116
|
-
uriHash?: string;
|
|
117
|
-
data?: {
|
|
118
|
-
typeUrl?: string;
|
|
119
|
-
value?: Uint8Array;
|
|
120
|
-
};
|
|
121
|
-
}[];
|
|
122
|
-
} & {
|
|
123
|
-
owner?: string;
|
|
124
|
-
nfts?: {
|
|
125
|
-
classId?: string;
|
|
126
|
-
id?: string;
|
|
127
|
-
uri?: string;
|
|
128
|
-
uriHash?: string;
|
|
129
|
-
data?: {
|
|
130
|
-
typeUrl?: string;
|
|
131
|
-
value?: Uint8Array;
|
|
132
|
-
};
|
|
133
|
-
}[] & ({
|
|
134
|
-
classId?: string;
|
|
135
|
-
id?: string;
|
|
136
|
-
uri?: string;
|
|
137
|
-
uriHash?: string;
|
|
138
|
-
data?: {
|
|
139
|
-
typeUrl?: string;
|
|
140
|
-
value?: Uint8Array;
|
|
141
|
-
};
|
|
142
|
-
} & {
|
|
143
|
-
classId?: string;
|
|
144
|
-
id?: string;
|
|
145
|
-
uri?: string;
|
|
146
|
-
uriHash?: string;
|
|
147
|
-
data?: {
|
|
148
|
-
typeUrl?: string;
|
|
149
|
-
value?: Uint8Array;
|
|
150
|
-
} & {
|
|
151
|
-
typeUrl?: string;
|
|
152
|
-
value?: Uint8Array;
|
|
153
|
-
} & { [K_3 in Exclude<keyof I["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
154
|
-
} & { [K_4 in Exclude<keyof I["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_5 in Exclude<keyof I["entries"][number]["nfts"], keyof {
|
|
155
|
-
classId?: string;
|
|
156
|
-
id?: string;
|
|
157
|
-
uri?: string;
|
|
158
|
-
uriHash?: string;
|
|
159
|
-
data?: {
|
|
160
|
-
typeUrl?: string;
|
|
161
|
-
value?: Uint8Array;
|
|
162
|
-
};
|
|
163
|
-
}[]>]: never; };
|
|
164
|
-
} & { [K_6 in Exclude<keyof I["entries"][number], keyof Entry>]: never; })[] & { [K_7 in Exclude<keyof I["entries"], keyof {
|
|
165
|
-
owner?: string;
|
|
166
|
-
nfts?: {
|
|
167
|
-
classId?: string;
|
|
168
|
-
id?: string;
|
|
169
|
-
uri?: string;
|
|
170
|
-
uriHash?: string;
|
|
171
|
-
data?: {
|
|
172
|
-
typeUrl?: string;
|
|
173
|
-
value?: Uint8Array;
|
|
174
|
-
};
|
|
175
|
-
}[];
|
|
176
|
-
}[]>]: never; };
|
|
177
|
-
} & { [K_8 in Exclude<keyof I, keyof GenesisState>]: never; }>(base?: I): GenesisState;
|
|
178
|
-
fromPartial<I_1 extends {
|
|
179
|
-
classes?: {
|
|
180
|
-
id?: string;
|
|
181
|
-
name?: string;
|
|
182
|
-
symbol?: string;
|
|
183
|
-
description?: string;
|
|
184
|
-
uri?: string;
|
|
185
|
-
uriHash?: string;
|
|
186
|
-
data?: {
|
|
187
|
-
typeUrl?: string;
|
|
188
|
-
value?: Uint8Array;
|
|
189
|
-
};
|
|
190
|
-
}[];
|
|
191
|
-
entries?: {
|
|
192
|
-
owner?: string;
|
|
193
|
-
nfts?: {
|
|
194
|
-
classId?: string;
|
|
195
|
-
id?: string;
|
|
196
|
-
uri?: string;
|
|
197
|
-
uriHash?: string;
|
|
198
|
-
data?: {
|
|
199
|
-
typeUrl?: string;
|
|
200
|
-
value?: Uint8Array;
|
|
201
|
-
};
|
|
202
|
-
}[];
|
|
203
|
-
}[];
|
|
204
|
-
} & {
|
|
205
|
-
classes?: {
|
|
206
|
-
id?: string;
|
|
207
|
-
name?: string;
|
|
208
|
-
symbol?: string;
|
|
209
|
-
description?: string;
|
|
210
|
-
uri?: string;
|
|
211
|
-
uriHash?: string;
|
|
212
|
-
data?: {
|
|
213
|
-
typeUrl?: string;
|
|
214
|
-
value?: Uint8Array;
|
|
215
|
-
};
|
|
216
|
-
}[] & ({
|
|
217
|
-
id?: string;
|
|
218
|
-
name?: string;
|
|
219
|
-
symbol?: string;
|
|
220
|
-
description?: string;
|
|
221
|
-
uri?: string;
|
|
222
|
-
uriHash?: string;
|
|
223
|
-
data?: {
|
|
224
|
-
typeUrl?: string;
|
|
225
|
-
value?: Uint8Array;
|
|
226
|
-
};
|
|
227
|
-
} & {
|
|
228
|
-
id?: string;
|
|
229
|
-
name?: string;
|
|
230
|
-
symbol?: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
uri?: string;
|
|
233
|
-
uriHash?: string;
|
|
234
|
-
data?: {
|
|
235
|
-
typeUrl?: string;
|
|
236
|
-
value?: Uint8Array;
|
|
237
|
-
} & {
|
|
238
|
-
typeUrl?: string;
|
|
239
|
-
value?: Uint8Array;
|
|
240
|
-
} & { [K_9 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
241
|
-
} & { [K_10 in Exclude<keyof I_1["classes"][number], keyof Class>]: never; })[] & { [K_11 in Exclude<keyof I_1["classes"], keyof {
|
|
242
|
-
id?: string;
|
|
243
|
-
name?: string;
|
|
244
|
-
symbol?: string;
|
|
245
|
-
description?: string;
|
|
246
|
-
uri?: string;
|
|
247
|
-
uriHash?: string;
|
|
248
|
-
data?: {
|
|
249
|
-
typeUrl?: string;
|
|
250
|
-
value?: Uint8Array;
|
|
251
|
-
};
|
|
252
|
-
}[]>]: never; };
|
|
253
|
-
entries?: {
|
|
254
|
-
owner?: string;
|
|
255
|
-
nfts?: {
|
|
256
|
-
classId?: string;
|
|
257
|
-
id?: string;
|
|
258
|
-
uri?: string;
|
|
259
|
-
uriHash?: string;
|
|
260
|
-
data?: {
|
|
261
|
-
typeUrl?: string;
|
|
262
|
-
value?: Uint8Array;
|
|
263
|
-
};
|
|
264
|
-
}[];
|
|
265
|
-
}[] & ({
|
|
266
|
-
owner?: string;
|
|
267
|
-
nfts?: {
|
|
268
|
-
classId?: string;
|
|
269
|
-
id?: string;
|
|
270
|
-
uri?: string;
|
|
271
|
-
uriHash?: string;
|
|
272
|
-
data?: {
|
|
273
|
-
typeUrl?: string;
|
|
274
|
-
value?: Uint8Array;
|
|
275
|
-
};
|
|
276
|
-
}[];
|
|
277
|
-
} & {
|
|
278
|
-
owner?: string;
|
|
279
|
-
nfts?: {
|
|
280
|
-
classId?: string;
|
|
281
|
-
id?: string;
|
|
282
|
-
uri?: string;
|
|
283
|
-
uriHash?: string;
|
|
284
|
-
data?: {
|
|
285
|
-
typeUrl?: string;
|
|
286
|
-
value?: Uint8Array;
|
|
287
|
-
};
|
|
288
|
-
}[] & ({
|
|
289
|
-
classId?: string;
|
|
290
|
-
id?: string;
|
|
291
|
-
uri?: string;
|
|
292
|
-
uriHash?: string;
|
|
293
|
-
data?: {
|
|
294
|
-
typeUrl?: string;
|
|
295
|
-
value?: Uint8Array;
|
|
296
|
-
};
|
|
297
|
-
} & {
|
|
298
|
-
classId?: string;
|
|
299
|
-
id?: string;
|
|
300
|
-
uri?: string;
|
|
301
|
-
uriHash?: string;
|
|
302
|
-
data?: {
|
|
303
|
-
typeUrl?: string;
|
|
304
|
-
value?: Uint8Array;
|
|
305
|
-
} & {
|
|
306
|
-
typeUrl?: string;
|
|
307
|
-
value?: Uint8Array;
|
|
308
|
-
} & { [K_12 in Exclude<keyof I_1["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
309
|
-
} & { [K_13 in Exclude<keyof I_1["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_14 in Exclude<keyof I_1["entries"][number]["nfts"], keyof {
|
|
310
|
-
classId?: string;
|
|
311
|
-
id?: string;
|
|
312
|
-
uri?: string;
|
|
313
|
-
uriHash?: string;
|
|
314
|
-
data?: {
|
|
315
|
-
typeUrl?: string;
|
|
316
|
-
value?: Uint8Array;
|
|
317
|
-
};
|
|
318
|
-
}[]>]: never; };
|
|
319
|
-
} & { [K_15 in Exclude<keyof I_1["entries"][number], keyof Entry>]: never; })[] & { [K_16 in Exclude<keyof I_1["entries"], keyof {
|
|
320
|
-
owner?: string;
|
|
321
|
-
nfts?: {
|
|
322
|
-
classId?: string;
|
|
323
|
-
id?: string;
|
|
324
|
-
uri?: string;
|
|
325
|
-
uriHash?: string;
|
|
326
|
-
data?: {
|
|
327
|
-
typeUrl?: string;
|
|
328
|
-
value?: Uint8Array;
|
|
329
|
-
};
|
|
330
|
-
}[];
|
|
331
|
-
}[]>]: never; };
|
|
332
|
-
} & { [K_17 in Exclude<keyof I_1, keyof GenesisState>]: never; }>(object: I_1): GenesisState;
|
|
333
|
-
};
|
|
334
|
-
export declare const Entry: {
|
|
335
|
-
encode(message: Entry, writer?: _m0.Writer): _m0.Writer;
|
|
336
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Entry;
|
|
337
|
-
fromJSON(object: any): Entry;
|
|
338
|
-
toJSON(message: Entry): unknown;
|
|
339
|
-
create<I extends {
|
|
340
|
-
owner?: string;
|
|
341
|
-
nfts?: {
|
|
342
|
-
classId?: string;
|
|
343
|
-
id?: string;
|
|
344
|
-
uri?: string;
|
|
345
|
-
uriHash?: string;
|
|
346
|
-
data?: {
|
|
347
|
-
typeUrl?: string;
|
|
348
|
-
value?: Uint8Array;
|
|
349
|
-
};
|
|
350
|
-
}[];
|
|
351
|
-
} & {
|
|
352
|
-
owner?: string;
|
|
353
|
-
nfts?: {
|
|
354
|
-
classId?: string;
|
|
355
|
-
id?: string;
|
|
356
|
-
uri?: string;
|
|
357
|
-
uriHash?: string;
|
|
358
|
-
data?: {
|
|
359
|
-
typeUrl?: string;
|
|
360
|
-
value?: Uint8Array;
|
|
361
|
-
};
|
|
362
|
-
}[] & ({
|
|
363
|
-
classId?: string;
|
|
364
|
-
id?: string;
|
|
365
|
-
uri?: string;
|
|
366
|
-
uriHash?: string;
|
|
367
|
-
data?: {
|
|
368
|
-
typeUrl?: string;
|
|
369
|
-
value?: Uint8Array;
|
|
370
|
-
};
|
|
371
|
-
} & {
|
|
372
|
-
classId?: string;
|
|
373
|
-
id?: string;
|
|
374
|
-
uri?: string;
|
|
375
|
-
uriHash?: string;
|
|
376
|
-
data?: {
|
|
377
|
-
typeUrl?: string;
|
|
378
|
-
value?: Uint8Array;
|
|
379
|
-
} & {
|
|
380
|
-
typeUrl?: string;
|
|
381
|
-
value?: Uint8Array;
|
|
382
|
-
} & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
383
|
-
} & { [K_1 in Exclude<keyof I["nfts"][number], keyof NFT>]: never; })[] & { [K_2 in Exclude<keyof I["nfts"], keyof {
|
|
384
|
-
classId?: string;
|
|
385
|
-
id?: string;
|
|
386
|
-
uri?: string;
|
|
387
|
-
uriHash?: string;
|
|
388
|
-
data?: {
|
|
389
|
-
typeUrl?: string;
|
|
390
|
-
value?: Uint8Array;
|
|
391
|
-
};
|
|
392
|
-
}[]>]: never; };
|
|
393
|
-
} & { [K_3 in Exclude<keyof I, keyof Entry>]: never; }>(base?: I): Entry;
|
|
394
|
-
fromPartial<I_1 extends {
|
|
395
|
-
owner?: string;
|
|
396
|
-
nfts?: {
|
|
397
|
-
classId?: string;
|
|
398
|
-
id?: string;
|
|
399
|
-
uri?: string;
|
|
400
|
-
uriHash?: string;
|
|
401
|
-
data?: {
|
|
402
|
-
typeUrl?: string;
|
|
403
|
-
value?: Uint8Array;
|
|
404
|
-
};
|
|
405
|
-
}[];
|
|
406
|
-
} & {
|
|
407
|
-
owner?: string;
|
|
408
|
-
nfts?: {
|
|
409
|
-
classId?: string;
|
|
410
|
-
id?: string;
|
|
411
|
-
uri?: string;
|
|
412
|
-
uriHash?: string;
|
|
413
|
-
data?: {
|
|
414
|
-
typeUrl?: string;
|
|
415
|
-
value?: Uint8Array;
|
|
416
|
-
};
|
|
417
|
-
}[] & ({
|
|
418
|
-
classId?: string;
|
|
419
|
-
id?: string;
|
|
420
|
-
uri?: string;
|
|
421
|
-
uriHash?: string;
|
|
422
|
-
data?: {
|
|
423
|
-
typeUrl?: string;
|
|
424
|
-
value?: Uint8Array;
|
|
425
|
-
};
|
|
426
|
-
} & {
|
|
427
|
-
classId?: string;
|
|
428
|
-
id?: string;
|
|
429
|
-
uri?: string;
|
|
430
|
-
uriHash?: string;
|
|
431
|
-
data?: {
|
|
432
|
-
typeUrl?: string;
|
|
433
|
-
value?: Uint8Array;
|
|
434
|
-
} & {
|
|
435
|
-
typeUrl?: string;
|
|
436
|
-
value?: Uint8Array;
|
|
437
|
-
} & { [K_4 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
438
|
-
} & { [K_5 in Exclude<keyof I_1["nfts"][number], keyof NFT>]: never; })[] & { [K_6 in Exclude<keyof I_1["nfts"], keyof {
|
|
439
|
-
classId?: string;
|
|
440
|
-
id?: string;
|
|
441
|
-
uri?: string;
|
|
442
|
-
uriHash?: string;
|
|
443
|
-
data?: {
|
|
444
|
-
typeUrl?: string;
|
|
445
|
-
value?: Uint8Array;
|
|
446
|
-
};
|
|
447
|
-
}[]>]: never; };
|
|
448
|
-
} & { [K_7 in Exclude<keyof I_1, keyof Entry>]: never; }>(object: I_1): Entry;
|
|
449
|
-
};
|
|
18
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
19
|
+
export declare const Entry: MessageFns<Entry>;
|
|
450
20
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
451
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
21
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
452
22
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
453
23
|
} : Partial<T>;
|
|
454
24
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -457,4 +27,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
457
27
|
} & {
|
|
458
28
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
459
29
|
};
|
|
30
|
+
export interface MessageFns<T> {
|
|
31
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
32
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
33
|
+
fromJSON(object: any): T;
|
|
34
|
+
toJSON(message: T): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
37
|
+
}
|
|
460
38
|
export {};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: cosmos-sdk/proto/cosmos/nft/v1beta1/genesis.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.Entry = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const nft_1 = require("./nft");
|
|
11
12
|
exports.protobufPackage = "cosmos.nft.v1beta1";
|
|
12
13
|
function createBaseGenesisState() {
|
|
13
14
|
return { classes: [], entries: [] };
|
|
14
15
|
}
|
|
15
16
|
exports.GenesisState = {
|
|
16
|
-
encode(message, writer =
|
|
17
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
17
18
|
for (const v of message.classes) {
|
|
18
19
|
nft_1.Class.encode(v, writer.uint32(10).fork()).ldelim();
|
|
19
20
|
}
|
|
@@ -23,62 +24,61 @@ exports.GenesisState = {
|
|
|
23
24
|
return writer;
|
|
24
25
|
},
|
|
25
26
|
decode(input, length) {
|
|
26
|
-
const reader = input instanceof
|
|
27
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
27
28
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
29
|
const message = createBaseGenesisState();
|
|
29
30
|
while (reader.pos < end) {
|
|
30
31
|
const tag = reader.uint32();
|
|
31
32
|
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag
|
|
33
|
+
case 1: {
|
|
34
|
+
if (tag !== 10) {
|
|
34
35
|
break;
|
|
35
36
|
}
|
|
36
37
|
message.classes.push(nft_1.Class.decode(reader, reader.uint32()));
|
|
37
38
|
continue;
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
}
|
|
40
|
+
case 2: {
|
|
41
|
+
if (tag !== 18) {
|
|
40
42
|
break;
|
|
41
43
|
}
|
|
42
44
|
message.entries.push(exports.Entry.decode(reader, reader.uint32()));
|
|
43
45
|
continue;
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
|
-
if ((tag & 7)
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
46
49
|
break;
|
|
47
50
|
}
|
|
48
|
-
reader.
|
|
51
|
+
reader.skip(tag & 7);
|
|
49
52
|
}
|
|
50
53
|
return message;
|
|
51
54
|
},
|
|
52
55
|
fromJSON(object) {
|
|
53
56
|
return {
|
|
54
|
-
classes: Array.isArray(object
|
|
55
|
-
|
|
57
|
+
classes: globalThis.Array.isArray(object?.classes)
|
|
58
|
+
? object.classes.map((e) => nft_1.Class.fromJSON(e))
|
|
59
|
+
: [],
|
|
60
|
+
entries: globalThis.Array.isArray(object?.entries)
|
|
61
|
+
? object.entries.map((e) => exports.Entry.fromJSON(e))
|
|
62
|
+
: [],
|
|
56
63
|
};
|
|
57
64
|
},
|
|
58
65
|
toJSON(message) {
|
|
59
66
|
const obj = {};
|
|
60
|
-
if (message.classes) {
|
|
61
|
-
obj.classes = message.classes.map((e) =>
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
obj.classes = [];
|
|
65
|
-
}
|
|
66
|
-
if (message.entries) {
|
|
67
|
-
obj.entries = message.entries.map((e) => e ? exports.Entry.toJSON(e) : undefined);
|
|
67
|
+
if (message.classes?.length) {
|
|
68
|
+
obj.classes = message.classes.map((e) => nft_1.Class.toJSON(e));
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
-
obj.entries =
|
|
70
|
+
if (message.entries?.length) {
|
|
71
|
+
obj.entries = message.entries.map((e) => exports.Entry.toJSON(e));
|
|
71
72
|
}
|
|
72
73
|
return obj;
|
|
73
74
|
},
|
|
74
75
|
create(base) {
|
|
75
|
-
return exports.GenesisState.fromPartial(base
|
|
76
|
+
return exports.GenesisState.fromPartial(base ?? {});
|
|
76
77
|
},
|
|
77
78
|
fromPartial(object) {
|
|
78
|
-
var _a, _b;
|
|
79
79
|
const message = createBaseGenesisState();
|
|
80
|
-
message.classes =
|
|
81
|
-
message.entries =
|
|
80
|
+
message.classes = object.classes?.map((e) => nft_1.Class.fromPartial(e)) || [];
|
|
81
|
+
message.entries = object.entries?.map((e) => exports.Entry.fromPartial(e)) || [];
|
|
82
82
|
return message;
|
|
83
83
|
},
|
|
84
84
|
};
|
|
@@ -86,7 +86,7 @@ function createBaseEntry() {
|
|
|
86
86
|
return { owner: "", nfts: [] };
|
|
87
87
|
}
|
|
88
88
|
exports.Entry = {
|
|
89
|
-
encode(message, writer =
|
|
89
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
90
90
|
if (message.owner !== "") {
|
|
91
91
|
writer.uint32(10).string(message.owner);
|
|
92
92
|
}
|
|
@@ -96,64 +96,62 @@ exports.Entry = {
|
|
|
96
96
|
return writer;
|
|
97
97
|
},
|
|
98
98
|
decode(input, length) {
|
|
99
|
-
const reader = input instanceof
|
|
99
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
100
100
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
101
|
const message = createBaseEntry();
|
|
102
102
|
while (reader.pos < end) {
|
|
103
103
|
const tag = reader.uint32();
|
|
104
104
|
switch (tag >>> 3) {
|
|
105
|
-
case 1:
|
|
106
|
-
if (tag
|
|
105
|
+
case 1: {
|
|
106
|
+
if (tag !== 10) {
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
message.owner = reader.string();
|
|
110
110
|
continue;
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
}
|
|
112
|
+
case 2: {
|
|
113
|
+
if (tag !== 18) {
|
|
113
114
|
break;
|
|
114
115
|
}
|
|
115
116
|
message.nfts.push(nft_1.NFT.decode(reader, reader.uint32()));
|
|
116
117
|
continue;
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
|
-
if ((tag & 7)
|
|
120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
119
121
|
break;
|
|
120
122
|
}
|
|
121
|
-
reader.
|
|
123
|
+
reader.skip(tag & 7);
|
|
122
124
|
}
|
|
123
125
|
return message;
|
|
124
126
|
},
|
|
125
127
|
fromJSON(object) {
|
|
126
128
|
return {
|
|
127
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
128
|
-
nfts: Array.isArray(object
|
|
129
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
130
|
+
nfts: globalThis.Array.isArray(object?.nfts)
|
|
131
|
+
? object.nfts.map((e) => nft_1.NFT.fromJSON(e))
|
|
132
|
+
: [],
|
|
129
133
|
};
|
|
130
134
|
},
|
|
131
135
|
toJSON(message) {
|
|
132
136
|
const obj = {};
|
|
133
|
-
message.owner !==
|
|
134
|
-
|
|
135
|
-
obj.nfts = message.nfts.map((e) => e ? nft_1.NFT.toJSON(e) : undefined);
|
|
137
|
+
if (message.owner !== "") {
|
|
138
|
+
obj.owner = message.owner;
|
|
136
139
|
}
|
|
137
|
-
|
|
138
|
-
obj.nfts =
|
|
140
|
+
if (message.nfts?.length) {
|
|
141
|
+
obj.nfts = message.nfts.map((e) => nft_1.NFT.toJSON(e));
|
|
139
142
|
}
|
|
140
143
|
return obj;
|
|
141
144
|
},
|
|
142
145
|
create(base) {
|
|
143
|
-
return exports.Entry.fromPartial(base
|
|
146
|
+
return exports.Entry.fromPartial(base ?? {});
|
|
144
147
|
},
|
|
145
148
|
fromPartial(object) {
|
|
146
|
-
var _a, _b;
|
|
147
149
|
const message = createBaseEntry();
|
|
148
|
-
message.owner =
|
|
149
|
-
message.nfts =
|
|
150
|
+
message.owner = object.owner ?? "";
|
|
151
|
+
message.nfts = object.nfts?.map((e) => nft_1.NFT.fromPartial(e)) || [];
|
|
150
152
|
return message;
|
|
151
153
|
},
|
|
152
154
|
};
|
|
153
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
154
|
-
minimal_1.default.util.Long = long_1.default;
|
|
155
|
-
minimal_1.default.configure();
|
|
156
|
-
}
|
|
157
155
|
function isSet(value) {
|
|
158
156
|
return value !== null && value !== undefined;
|
|
159
157
|
}
|