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,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
|
+
import { Any } from "cosmjs-types/google/protobuf/any";
|
|
4
3
|
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
5
4
|
/** ClassFeature defines possible features of non-fungible token class. */
|
|
6
5
|
export declare enum ClassFeature {
|
|
@@ -8,7 +7,8 @@ export declare enum ClassFeature {
|
|
|
8
7
|
freezing = 1,
|
|
9
8
|
whitelisting = 2,
|
|
10
9
|
disable_sending = 3,
|
|
11
|
-
soulbound = 4
|
|
10
|
+
soulbound = 4,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
12
|
}
|
|
13
13
|
export declare function classFeatureFromJSON(object: any): ClassFeature;
|
|
14
14
|
export declare function classFeatureToJSON(object: ClassFeature): string;
|
|
@@ -18,8 +18,8 @@ export interface ClassDefinition {
|
|
|
18
18
|
issuer: string;
|
|
19
19
|
features: ClassFeature[];
|
|
20
20
|
/**
|
|
21
|
-
* royalty_rate is a number between 0 and 1,which will be used in coreum native
|
|
22
|
-
* whenever an NFT this class is traded on the
|
|
21
|
+
* royalty_rate is a number between 0 and 1,which will be used in coreum native DEX.
|
|
22
|
+
* whenever an NFT this class is traded on the DEX, the traded amount will be multiplied by this value
|
|
23
23
|
* that will be transferred to the issuer of the NFT.
|
|
24
24
|
*/
|
|
25
25
|
royaltyRate: string;
|
|
@@ -33,115 +33,19 @@ export interface Class {
|
|
|
33
33
|
description: string;
|
|
34
34
|
uri: string;
|
|
35
35
|
uriHash: string;
|
|
36
|
-
data
|
|
36
|
+
data: Any | undefined;
|
|
37
37
|
features: ClassFeature[];
|
|
38
38
|
/**
|
|
39
|
-
* royalty_rate is a number between 0 and 1,which will be used in coreum native
|
|
40
|
-
* whenever an NFT this class is traded on the
|
|
39
|
+
* royalty_rate is a number between 0 and 1,which will be used in coreum native DEX.
|
|
40
|
+
* whenever an NFT this class is traded on the DEX, the traded amount will be multiplied by this value
|
|
41
41
|
* that will be transferred to the issuer of the NFT.
|
|
42
42
|
*/
|
|
43
43
|
royaltyRate: string;
|
|
44
44
|
}
|
|
45
|
-
export declare const ClassDefinition:
|
|
46
|
-
|
|
47
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClassDefinition;
|
|
48
|
-
fromJSON(object: any): ClassDefinition;
|
|
49
|
-
toJSON(message: ClassDefinition): unknown;
|
|
50
|
-
create<I extends {
|
|
51
|
-
id?: string;
|
|
52
|
-
issuer?: string;
|
|
53
|
-
features?: ClassFeature[];
|
|
54
|
-
royaltyRate?: string;
|
|
55
|
-
} & {
|
|
56
|
-
id?: string;
|
|
57
|
-
issuer?: string;
|
|
58
|
-
features?: ClassFeature[] & ClassFeature[] & { [K in Exclude<keyof I["features"], keyof ClassFeature[]>]: never; };
|
|
59
|
-
royaltyRate?: string;
|
|
60
|
-
} & { [K_1 in Exclude<keyof I, keyof ClassDefinition>]: never; }>(base?: I): ClassDefinition;
|
|
61
|
-
fromPartial<I_1 extends {
|
|
62
|
-
id?: string;
|
|
63
|
-
issuer?: string;
|
|
64
|
-
features?: ClassFeature[];
|
|
65
|
-
royaltyRate?: string;
|
|
66
|
-
} & {
|
|
67
|
-
id?: string;
|
|
68
|
-
issuer?: string;
|
|
69
|
-
features?: ClassFeature[] & ClassFeature[] & { [K_2 in Exclude<keyof I_1["features"], keyof ClassFeature[]>]: never; };
|
|
70
|
-
royaltyRate?: string;
|
|
71
|
-
} & { [K_3 in Exclude<keyof I_1, keyof ClassDefinition>]: never; }>(object: I_1): ClassDefinition;
|
|
72
|
-
};
|
|
73
|
-
export declare const Class: {
|
|
74
|
-
encode(message: Class, writer?: _m0.Writer): _m0.Writer;
|
|
75
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Class;
|
|
76
|
-
fromJSON(object: any): Class;
|
|
77
|
-
toJSON(message: Class): unknown;
|
|
78
|
-
create<I extends {
|
|
79
|
-
id?: string;
|
|
80
|
-
issuer?: string;
|
|
81
|
-
name?: string;
|
|
82
|
-
symbol?: string;
|
|
83
|
-
description?: string;
|
|
84
|
-
uri?: string;
|
|
85
|
-
uriHash?: string;
|
|
86
|
-
data?: {
|
|
87
|
-
typeUrl?: string;
|
|
88
|
-
value?: Uint8Array;
|
|
89
|
-
};
|
|
90
|
-
features?: ClassFeature[];
|
|
91
|
-
royaltyRate?: string;
|
|
92
|
-
} & {
|
|
93
|
-
id?: string;
|
|
94
|
-
issuer?: string;
|
|
95
|
-
name?: string;
|
|
96
|
-
symbol?: string;
|
|
97
|
-
description?: string;
|
|
98
|
-
uri?: string;
|
|
99
|
-
uriHash?: string;
|
|
100
|
-
data?: {
|
|
101
|
-
typeUrl?: string;
|
|
102
|
-
value?: Uint8Array;
|
|
103
|
-
} & {
|
|
104
|
-
typeUrl?: string;
|
|
105
|
-
value?: Uint8Array;
|
|
106
|
-
} & { [K in Exclude<keyof I["data"], keyof Any>]: never; };
|
|
107
|
-
features?: ClassFeature[] & ClassFeature[] & { [K_1 in Exclude<keyof I["features"], keyof ClassFeature[]>]: never; };
|
|
108
|
-
royaltyRate?: string;
|
|
109
|
-
} & { [K_2 in Exclude<keyof I, keyof Class>]: never; }>(base?: I): Class;
|
|
110
|
-
fromPartial<I_1 extends {
|
|
111
|
-
id?: string;
|
|
112
|
-
issuer?: string;
|
|
113
|
-
name?: string;
|
|
114
|
-
symbol?: string;
|
|
115
|
-
description?: string;
|
|
116
|
-
uri?: string;
|
|
117
|
-
uriHash?: string;
|
|
118
|
-
data?: {
|
|
119
|
-
typeUrl?: string;
|
|
120
|
-
value?: Uint8Array;
|
|
121
|
-
};
|
|
122
|
-
features?: ClassFeature[];
|
|
123
|
-
royaltyRate?: string;
|
|
124
|
-
} & {
|
|
125
|
-
id?: string;
|
|
126
|
-
issuer?: string;
|
|
127
|
-
name?: string;
|
|
128
|
-
symbol?: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
uri?: string;
|
|
131
|
-
uriHash?: string;
|
|
132
|
-
data?: {
|
|
133
|
-
typeUrl?: string;
|
|
134
|
-
value?: Uint8Array;
|
|
135
|
-
} & {
|
|
136
|
-
typeUrl?: string;
|
|
137
|
-
value?: Uint8Array;
|
|
138
|
-
} & { [K_3 in Exclude<keyof I_1["data"], keyof Any>]: never; };
|
|
139
|
-
features?: ClassFeature[] & ClassFeature[] & { [K_4 in Exclude<keyof I_1["features"], keyof ClassFeature[]>]: never; };
|
|
140
|
-
royaltyRate?: string;
|
|
141
|
-
} & { [K_5 in Exclude<keyof I_1, keyof Class>]: never; }>(object: I_1): Class;
|
|
142
|
-
};
|
|
45
|
+
export declare const ClassDefinition: MessageFns<ClassDefinition>;
|
|
46
|
+
export declare const Class: MessageFns<Class>;
|
|
143
47
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
144
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
48
|
+
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 {} ? {
|
|
145
49
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
146
50
|
} : Partial<T>;
|
|
147
51
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -150,4 +54,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
150
54
|
} & {
|
|
151
55
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
152
56
|
};
|
|
57
|
+
export interface MessageFns<T> {
|
|
58
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
59
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
60
|
+
fromJSON(object: any): T;
|
|
61
|
+
toJSON(message: T): unknown;
|
|
62
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
63
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
64
|
+
}
|
|
153
65
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
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: coreum-protos/nft/nft.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.Class = exports.ClassDefinition = exports.classFeatureToJSON = exports.classFeatureFromJSON = exports.ClassFeature = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const any_1 = require("../../../../google/protobuf/any");
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
11
|
+
const any_1 = require("cosmjs-types/google/protobuf/any");
|
|
11
12
|
exports.protobufPackage = "coreum.asset.nft.v1";
|
|
12
13
|
/** ClassFeature defines possible features of non-fungible token class. */
|
|
13
14
|
var ClassFeature;
|
|
@@ -17,6 +18,7 @@ var ClassFeature;
|
|
|
17
18
|
ClassFeature[ClassFeature["whitelisting"] = 2] = "whitelisting";
|
|
18
19
|
ClassFeature[ClassFeature["disable_sending"] = 3] = "disable_sending";
|
|
19
20
|
ClassFeature[ClassFeature["soulbound"] = 4] = "soulbound";
|
|
21
|
+
ClassFeature[ClassFeature["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
22
|
})(ClassFeature || (exports.ClassFeature = ClassFeature = {}));
|
|
21
23
|
function classFeatureFromJSON(object) {
|
|
22
24
|
switch (object) {
|
|
@@ -35,8 +37,10 @@ function classFeatureFromJSON(object) {
|
|
|
35
37
|
case 4:
|
|
36
38
|
case "soulbound":
|
|
37
39
|
return ClassFeature.soulbound;
|
|
40
|
+
case -1:
|
|
41
|
+
case "UNRECOGNIZED":
|
|
38
42
|
default:
|
|
39
|
-
return
|
|
43
|
+
return ClassFeature.UNRECOGNIZED;
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
exports.classFeatureFromJSON = classFeatureFromJSON;
|
|
@@ -52,6 +56,9 @@ function classFeatureToJSON(object) {
|
|
|
52
56
|
return "disable_sending";
|
|
53
57
|
case ClassFeature.soulbound:
|
|
54
58
|
return "soulbound";
|
|
59
|
+
case ClassFeature.UNRECOGNIZED:
|
|
60
|
+
default:
|
|
61
|
+
return "UNRECOGNIZED";
|
|
55
62
|
}
|
|
56
63
|
}
|
|
57
64
|
exports.classFeatureToJSON = classFeatureToJSON;
|
|
@@ -59,7 +66,7 @@ function createBaseClassDefinition() {
|
|
|
59
66
|
return { id: "", issuer: "", features: [], royaltyRate: "" };
|
|
60
67
|
}
|
|
61
68
|
exports.ClassDefinition = {
|
|
62
|
-
encode(message, writer =
|
|
69
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
63
70
|
if (message.id !== "") {
|
|
64
71
|
writer.uint32(10).string(message.id);
|
|
65
72
|
}
|
|
@@ -77,30 +84,32 @@ exports.ClassDefinition = {
|
|
|
77
84
|
return writer;
|
|
78
85
|
},
|
|
79
86
|
decode(input, length) {
|
|
80
|
-
const reader = input instanceof
|
|
87
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
81
88
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
89
|
const message = createBaseClassDefinition();
|
|
83
90
|
while (reader.pos < end) {
|
|
84
91
|
const tag = reader.uint32();
|
|
85
92
|
switch (tag >>> 3) {
|
|
86
|
-
case 1:
|
|
87
|
-
if (tag
|
|
93
|
+
case 1: {
|
|
94
|
+
if (tag !== 10) {
|
|
88
95
|
break;
|
|
89
96
|
}
|
|
90
97
|
message.id = reader.string();
|
|
91
98
|
continue;
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
}
|
|
100
|
+
case 2: {
|
|
101
|
+
if (tag !== 18) {
|
|
94
102
|
break;
|
|
95
103
|
}
|
|
96
104
|
message.issuer = reader.string();
|
|
97
105
|
continue;
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
}
|
|
107
|
+
case 3: {
|
|
108
|
+
if (tag === 24) {
|
|
100
109
|
message.features.push(reader.int32());
|
|
101
110
|
continue;
|
|
102
111
|
}
|
|
103
|
-
if (tag
|
|
112
|
+
if (tag === 26) {
|
|
104
113
|
const end2 = reader.uint32() + reader.pos;
|
|
105
114
|
while (reader.pos < end2) {
|
|
106
115
|
message.features.push(reader.int32());
|
|
@@ -108,54 +117,59 @@ exports.ClassDefinition = {
|
|
|
108
117
|
continue;
|
|
109
118
|
}
|
|
110
119
|
break;
|
|
111
|
-
|
|
112
|
-
|
|
120
|
+
}
|
|
121
|
+
case 4: {
|
|
122
|
+
if (tag !== 34) {
|
|
113
123
|
break;
|
|
114
124
|
}
|
|
115
125
|
message.royaltyRate = reader.string();
|
|
116
126
|
continue;
|
|
127
|
+
}
|
|
117
128
|
}
|
|
118
|
-
if ((tag & 7)
|
|
129
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
119
130
|
break;
|
|
120
131
|
}
|
|
121
|
-
reader.
|
|
132
|
+
reader.skip(tag & 7);
|
|
122
133
|
}
|
|
123
134
|
return message;
|
|
124
135
|
},
|
|
125
136
|
fromJSON(object) {
|
|
126
137
|
return {
|
|
127
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
128
|
-
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
129
|
-
features: Array.isArray(object
|
|
138
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
139
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
140
|
+
features: globalThis.Array.isArray(object?.features)
|
|
130
141
|
? object.features.map((e) => classFeatureFromJSON(e))
|
|
131
142
|
: [],
|
|
132
|
-
royaltyRate: isSet(object.royaltyRate)
|
|
143
|
+
royaltyRate: isSet(object.royaltyRate)
|
|
144
|
+
? globalThis.String(object.royaltyRate)
|
|
145
|
+
: "",
|
|
133
146
|
};
|
|
134
147
|
},
|
|
135
148
|
toJSON(message) {
|
|
136
149
|
const obj = {};
|
|
137
|
-
message.id !==
|
|
138
|
-
|
|
139
|
-
|
|
150
|
+
if (message.id !== "") {
|
|
151
|
+
obj.id = message.id;
|
|
152
|
+
}
|
|
153
|
+
if (message.issuer !== "") {
|
|
154
|
+
obj.issuer = message.issuer;
|
|
155
|
+
}
|
|
156
|
+
if (message.features?.length) {
|
|
140
157
|
obj.features = message.features.map((e) => classFeatureToJSON(e));
|
|
141
158
|
}
|
|
142
|
-
|
|
143
|
-
obj.
|
|
159
|
+
if (message.royaltyRate !== "") {
|
|
160
|
+
obj.royaltyRate = message.royaltyRate;
|
|
144
161
|
}
|
|
145
|
-
message.royaltyRate !== undefined &&
|
|
146
|
-
(obj.royaltyRate = message.royaltyRate);
|
|
147
162
|
return obj;
|
|
148
163
|
},
|
|
149
164
|
create(base) {
|
|
150
|
-
return exports.ClassDefinition.fromPartial(base
|
|
165
|
+
return exports.ClassDefinition.fromPartial(base ?? {});
|
|
151
166
|
},
|
|
152
167
|
fromPartial(object) {
|
|
153
|
-
var _a, _b, _c, _d;
|
|
154
168
|
const message = createBaseClassDefinition();
|
|
155
|
-
message.id =
|
|
156
|
-
message.issuer =
|
|
157
|
-
message.features =
|
|
158
|
-
message.royaltyRate =
|
|
169
|
+
message.id = object.id ?? "";
|
|
170
|
+
message.issuer = object.issuer ?? "";
|
|
171
|
+
message.features = object.features?.map((e) => e) || [];
|
|
172
|
+
message.royaltyRate = object.royaltyRate ?? "";
|
|
159
173
|
return message;
|
|
160
174
|
},
|
|
161
175
|
};
|
|
@@ -174,7 +188,7 @@ function createBaseClass() {
|
|
|
174
188
|
};
|
|
175
189
|
}
|
|
176
190
|
exports.Class = {
|
|
177
|
-
encode(message, writer =
|
|
191
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
178
192
|
if (message.id !== "") {
|
|
179
193
|
writer.uint32(10).string(message.id);
|
|
180
194
|
}
|
|
@@ -210,66 +224,74 @@ exports.Class = {
|
|
|
210
224
|
return writer;
|
|
211
225
|
},
|
|
212
226
|
decode(input, length) {
|
|
213
|
-
const reader = input instanceof
|
|
227
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
214
228
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
215
229
|
const message = createBaseClass();
|
|
216
230
|
while (reader.pos < end) {
|
|
217
231
|
const tag = reader.uint32();
|
|
218
232
|
switch (tag >>> 3) {
|
|
219
|
-
case 1:
|
|
220
|
-
if (tag
|
|
233
|
+
case 1: {
|
|
234
|
+
if (tag !== 10) {
|
|
221
235
|
break;
|
|
222
236
|
}
|
|
223
237
|
message.id = reader.string();
|
|
224
238
|
continue;
|
|
225
|
-
|
|
226
|
-
|
|
239
|
+
}
|
|
240
|
+
case 2: {
|
|
241
|
+
if (tag !== 18) {
|
|
227
242
|
break;
|
|
228
243
|
}
|
|
229
244
|
message.issuer = reader.string();
|
|
230
245
|
continue;
|
|
231
|
-
|
|
232
|
-
|
|
246
|
+
}
|
|
247
|
+
case 3: {
|
|
248
|
+
if (tag !== 26) {
|
|
233
249
|
break;
|
|
234
250
|
}
|
|
235
251
|
message.name = reader.string();
|
|
236
252
|
continue;
|
|
237
|
-
|
|
238
|
-
|
|
253
|
+
}
|
|
254
|
+
case 4: {
|
|
255
|
+
if (tag !== 34) {
|
|
239
256
|
break;
|
|
240
257
|
}
|
|
241
258
|
message.symbol = reader.string();
|
|
242
259
|
continue;
|
|
243
|
-
|
|
244
|
-
|
|
260
|
+
}
|
|
261
|
+
case 5: {
|
|
262
|
+
if (tag !== 42) {
|
|
245
263
|
break;
|
|
246
264
|
}
|
|
247
265
|
message.description = reader.string();
|
|
248
266
|
continue;
|
|
249
|
-
|
|
250
|
-
|
|
267
|
+
}
|
|
268
|
+
case 6: {
|
|
269
|
+
if (tag !== 50) {
|
|
251
270
|
break;
|
|
252
271
|
}
|
|
253
272
|
message.uri = reader.string();
|
|
254
273
|
continue;
|
|
255
|
-
|
|
256
|
-
|
|
274
|
+
}
|
|
275
|
+
case 7: {
|
|
276
|
+
if (tag !== 58) {
|
|
257
277
|
break;
|
|
258
278
|
}
|
|
259
279
|
message.uriHash = reader.string();
|
|
260
280
|
continue;
|
|
261
|
-
|
|
262
|
-
|
|
281
|
+
}
|
|
282
|
+
case 8: {
|
|
283
|
+
if (tag !== 66) {
|
|
263
284
|
break;
|
|
264
285
|
}
|
|
265
286
|
message.data = any_1.Any.decode(reader, reader.uint32());
|
|
266
287
|
continue;
|
|
267
|
-
|
|
268
|
-
|
|
288
|
+
}
|
|
289
|
+
case 9: {
|
|
290
|
+
if (tag === 72) {
|
|
269
291
|
message.features.push(reader.int32());
|
|
270
292
|
continue;
|
|
271
293
|
}
|
|
272
|
-
if (tag
|
|
294
|
+
if (tag === 74) {
|
|
273
295
|
const end2 = reader.uint32() + reader.pos;
|
|
274
296
|
while (reader.pos < end2) {
|
|
275
297
|
message.features.push(reader.int32());
|
|
@@ -277,84 +299,97 @@ exports.Class = {
|
|
|
277
299
|
continue;
|
|
278
300
|
}
|
|
279
301
|
break;
|
|
280
|
-
|
|
281
|
-
|
|
302
|
+
}
|
|
303
|
+
case 10: {
|
|
304
|
+
if (tag !== 82) {
|
|
282
305
|
break;
|
|
283
306
|
}
|
|
284
307
|
message.royaltyRate = reader.string();
|
|
285
308
|
continue;
|
|
309
|
+
}
|
|
286
310
|
}
|
|
287
|
-
if ((tag & 7)
|
|
311
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
288
312
|
break;
|
|
289
313
|
}
|
|
290
|
-
reader.
|
|
314
|
+
reader.skip(tag & 7);
|
|
291
315
|
}
|
|
292
316
|
return message;
|
|
293
317
|
},
|
|
294
318
|
fromJSON(object) {
|
|
295
319
|
return {
|
|
296
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
297
|
-
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
298
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
299
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
300
|
-
description: isSet(object.description)
|
|
301
|
-
|
|
302
|
-
|
|
320
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
321
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
322
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
323
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
324
|
+
description: isSet(object.description)
|
|
325
|
+
? globalThis.String(object.description)
|
|
326
|
+
: "",
|
|
327
|
+
uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
|
|
328
|
+
uriHash: isSet(object.uriHash) ? globalThis.String(object.uriHash) : "",
|
|
303
329
|
data: isSet(object.data) ? any_1.Any.fromJSON(object.data) : undefined,
|
|
304
|
-
features: Array.isArray(object
|
|
330
|
+
features: globalThis.Array.isArray(object?.features)
|
|
305
331
|
? object.features.map((e) => classFeatureFromJSON(e))
|
|
306
332
|
: [],
|
|
307
|
-
royaltyRate: isSet(object.royaltyRate)
|
|
333
|
+
royaltyRate: isSet(object.royaltyRate)
|
|
334
|
+
? globalThis.String(object.royaltyRate)
|
|
335
|
+
: "",
|
|
308
336
|
};
|
|
309
337
|
},
|
|
310
338
|
toJSON(message) {
|
|
311
339
|
const obj = {};
|
|
312
|
-
message.id !==
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
message.
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
message.
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
340
|
+
if (message.id !== "") {
|
|
341
|
+
obj.id = message.id;
|
|
342
|
+
}
|
|
343
|
+
if (message.issuer !== "") {
|
|
344
|
+
obj.issuer = message.issuer;
|
|
345
|
+
}
|
|
346
|
+
if (message.name !== "") {
|
|
347
|
+
obj.name = message.name;
|
|
348
|
+
}
|
|
349
|
+
if (message.symbol !== "") {
|
|
350
|
+
obj.symbol = message.symbol;
|
|
351
|
+
}
|
|
352
|
+
if (message.description !== "") {
|
|
353
|
+
obj.description = message.description;
|
|
354
|
+
}
|
|
355
|
+
if (message.uri !== "") {
|
|
356
|
+
obj.uri = message.uri;
|
|
357
|
+
}
|
|
358
|
+
if (message.uriHash !== "") {
|
|
359
|
+
obj.uriHash = message.uriHash;
|
|
360
|
+
}
|
|
361
|
+
if (message.data !== undefined) {
|
|
362
|
+
obj.data = any_1.Any.toJSON(message.data);
|
|
363
|
+
}
|
|
364
|
+
if (message.features?.length) {
|
|
323
365
|
obj.features = message.features.map((e) => classFeatureToJSON(e));
|
|
324
366
|
}
|
|
325
|
-
|
|
326
|
-
obj.
|
|
367
|
+
if (message.royaltyRate !== "") {
|
|
368
|
+
obj.royaltyRate = message.royaltyRate;
|
|
327
369
|
}
|
|
328
|
-
message.royaltyRate !== undefined &&
|
|
329
|
-
(obj.royaltyRate = message.royaltyRate);
|
|
330
370
|
return obj;
|
|
331
371
|
},
|
|
332
372
|
create(base) {
|
|
333
|
-
return exports.Class.fromPartial(base
|
|
373
|
+
return exports.Class.fromPartial(base ?? {});
|
|
334
374
|
},
|
|
335
375
|
fromPartial(object) {
|
|
336
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
337
376
|
const message = createBaseClass();
|
|
338
|
-
message.id =
|
|
339
|
-
message.issuer =
|
|
340
|
-
message.name =
|
|
341
|
-
message.symbol =
|
|
342
|
-
message.description =
|
|
343
|
-
message.uri =
|
|
344
|
-
message.uriHash =
|
|
377
|
+
message.id = object.id ?? "";
|
|
378
|
+
message.issuer = object.issuer ?? "";
|
|
379
|
+
message.name = object.name ?? "";
|
|
380
|
+
message.symbol = object.symbol ?? "";
|
|
381
|
+
message.description = object.description ?? "";
|
|
382
|
+
message.uri = object.uri ?? "";
|
|
383
|
+
message.uriHash = object.uriHash ?? "";
|
|
345
384
|
message.data =
|
|
346
385
|
object.data !== undefined && object.data !== null
|
|
347
386
|
? any_1.Any.fromPartial(object.data)
|
|
348
387
|
: undefined;
|
|
349
|
-
message.features =
|
|
350
|
-
message.royaltyRate =
|
|
388
|
+
message.features = object.features?.map((e) => e) || [];
|
|
389
|
+
message.royaltyRate = object.royaltyRate ?? "";
|
|
351
390
|
return message;
|
|
352
391
|
},
|
|
353
392
|
};
|
|
354
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
355
|
-
minimal_1.default.util.Long = long_1.default;
|
|
356
|
-
minimal_1.default.configure();
|
|
357
|
-
}
|
|
358
393
|
function isSet(value) {
|
|
359
394
|
return value !== null && value !== undefined;
|
|
360
395
|
}
|
|
@@ -1,48 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
3
|
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
5
4
|
/** Params store gov manageable parameters. */
|
|
6
5
|
export interface Params {
|
|
7
6
|
/** mint_fee is the fee burnt each time new NFT is minted */
|
|
8
|
-
mintFee
|
|
7
|
+
mintFee: Coin | undefined;
|
|
9
8
|
}
|
|
10
|
-
export declare const Params:
|
|
11
|
-
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
13
|
-
fromJSON(object: any): Params;
|
|
14
|
-
toJSON(message: Params): unknown;
|
|
15
|
-
create<I extends {
|
|
16
|
-
mintFee?: {
|
|
17
|
-
denom?: string;
|
|
18
|
-
amount?: string;
|
|
19
|
-
};
|
|
20
|
-
} & {
|
|
21
|
-
mintFee?: {
|
|
22
|
-
denom?: string;
|
|
23
|
-
amount?: string;
|
|
24
|
-
} & {
|
|
25
|
-
denom?: string;
|
|
26
|
-
amount?: string;
|
|
27
|
-
} & { [K in Exclude<keyof I["mintFee"], keyof Coin>]: never; };
|
|
28
|
-
} & { [K_1 in Exclude<keyof I, "mintFee">]: never; }>(base?: I): Params;
|
|
29
|
-
fromPartial<I_1 extends {
|
|
30
|
-
mintFee?: {
|
|
31
|
-
denom?: string;
|
|
32
|
-
amount?: string;
|
|
33
|
-
};
|
|
34
|
-
} & {
|
|
35
|
-
mintFee?: {
|
|
36
|
-
denom?: string;
|
|
37
|
-
amount?: string;
|
|
38
|
-
} & {
|
|
39
|
-
denom?: string;
|
|
40
|
-
amount?: string;
|
|
41
|
-
} & { [K_2 in Exclude<keyof I_1["mintFee"], keyof Coin>]: never; };
|
|
42
|
-
} & { [K_3 in Exclude<keyof I_1, "mintFee">]: never; }>(object: I_1): Params;
|
|
43
|
-
};
|
|
9
|
+
export declare const Params: MessageFns<Params>;
|
|
44
10
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
11
|
+
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 {} ? {
|
|
46
12
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
47
13
|
} : Partial<T>;
|
|
48
14
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -51,4 +17,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
51
17
|
} & {
|
|
52
18
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
53
19
|
};
|
|
20
|
+
export interface MessageFns<T> {
|
|
21
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
22
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
23
|
+
fromJSON(object: any): T;
|
|
24
|
+
toJSON(message: T): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
27
|
+
}
|
|
54
28
|
export {};
|