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,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const assetFtRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
1
|
+
export declare const assetNftRegistry: ReadonlyArray<[string, any]>;
|
|
2
|
+
export declare const assetFtRegistry: ReadonlyArray<[string, any]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
|
+
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
3
|
+
/** SendAuthorization allows the grantee to send specific NFTs from the granter's account. */
|
|
4
|
+
export interface SendAuthorization {
|
|
5
|
+
nfts: NFTIdentifier[];
|
|
6
|
+
}
|
|
7
|
+
export interface NFTIdentifier {
|
|
8
|
+
/** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */
|
|
9
|
+
classId: string;
|
|
10
|
+
/** id defines the unique identification of nft */
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SendAuthorization: MessageFns<SendAuthorization>;
|
|
14
|
+
export declare const NFTIdentifier: MessageFns<NFTIdentifier>;
|
|
15
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
|
+
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 {} ? {
|
|
17
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
18
|
+
} : Partial<T>;
|
|
19
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
20
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
21
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
22
|
+
} & {
|
|
23
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
24
|
+
};
|
|
25
|
+
export interface MessageFns<T> {
|
|
26
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
27
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
28
|
+
fromJSON(object: any): T;
|
|
29
|
+
toJSON(message: T): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: coreum-protos/nft/authz.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
8
|
+
export const protobufPackage = "coreum.asset.nft.v1";
|
|
9
|
+
function createBaseSendAuthorization() {
|
|
10
|
+
return { nfts: [] };
|
|
11
|
+
}
|
|
12
|
+
export const SendAuthorization = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
for (const v of message.nfts) {
|
|
15
|
+
NFTIdentifier.encode(v, writer.uint32(10).fork()).ldelim();
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseSendAuthorization();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
case 1: {
|
|
27
|
+
if (tag !== 10) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
message.nfts.push(NFTIdentifier.decode(reader, reader.uint32()));
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
reader.skip(tag & 7);
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
fromJSON(object) {
|
|
42
|
+
return {
|
|
43
|
+
nfts: globalThis.Array.isArray(object?.nfts)
|
|
44
|
+
? object.nfts.map((e) => NFTIdentifier.fromJSON(e))
|
|
45
|
+
: [],
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
toJSON(message) {
|
|
49
|
+
const obj = {};
|
|
50
|
+
if (message.nfts?.length) {
|
|
51
|
+
obj.nfts = message.nfts.map((e) => NFTIdentifier.toJSON(e));
|
|
52
|
+
}
|
|
53
|
+
return obj;
|
|
54
|
+
},
|
|
55
|
+
create(base) {
|
|
56
|
+
return SendAuthorization.fromPartial(base ?? {});
|
|
57
|
+
},
|
|
58
|
+
fromPartial(object) {
|
|
59
|
+
const message = createBaseSendAuthorization();
|
|
60
|
+
message.nfts = object.nfts?.map((e) => NFTIdentifier.fromPartial(e)) || [];
|
|
61
|
+
return message;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
function createBaseNFTIdentifier() {
|
|
65
|
+
return { classId: "", id: "" };
|
|
66
|
+
}
|
|
67
|
+
export const NFTIdentifier = {
|
|
68
|
+
encode(message, writer = new BinaryWriter()) {
|
|
69
|
+
if (message.classId !== "") {
|
|
70
|
+
writer.uint32(10).string(message.classId);
|
|
71
|
+
}
|
|
72
|
+
if (message.id !== "") {
|
|
73
|
+
writer.uint32(18).string(message.id);
|
|
74
|
+
}
|
|
75
|
+
return writer;
|
|
76
|
+
},
|
|
77
|
+
decode(input, length) {
|
|
78
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
79
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
80
|
+
const message = createBaseNFTIdentifier();
|
|
81
|
+
while (reader.pos < end) {
|
|
82
|
+
const tag = reader.uint32();
|
|
83
|
+
switch (tag >>> 3) {
|
|
84
|
+
case 1: {
|
|
85
|
+
if (tag !== 10) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.classId = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
case 2: {
|
|
92
|
+
if (tag !== 18) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.id = reader.string();
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
reader.skip(tag & 7);
|
|
103
|
+
}
|
|
104
|
+
return message;
|
|
105
|
+
},
|
|
106
|
+
fromJSON(object) {
|
|
107
|
+
return {
|
|
108
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
109
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
toJSON(message) {
|
|
113
|
+
const obj = {};
|
|
114
|
+
if (message.classId !== "") {
|
|
115
|
+
obj.classId = message.classId;
|
|
116
|
+
}
|
|
117
|
+
if (message.id !== "") {
|
|
118
|
+
obj.id = message.id;
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return NFTIdentifier.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseNFTIdentifier();
|
|
127
|
+
message.classId = object.classId ?? "";
|
|
128
|
+
message.id = object.id ?? "";
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { ClassFeature } from "./nft";
|
|
4
3
|
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
5
4
|
/** EventClassIssued is emitted on MsgIssueClass. */
|
|
@@ -24,6 +23,14 @@ export interface EventUnfrozen {
|
|
|
24
23
|
id: string;
|
|
25
24
|
owner: string;
|
|
26
25
|
}
|
|
26
|
+
export interface EventClassFrozen {
|
|
27
|
+
classId: string;
|
|
28
|
+
account: string;
|
|
29
|
+
}
|
|
30
|
+
export interface EventClassUnfrozen {
|
|
31
|
+
classId: string;
|
|
32
|
+
account: string;
|
|
33
|
+
}
|
|
27
34
|
export interface EventAddedToWhitelist {
|
|
28
35
|
classId: string;
|
|
29
36
|
id: string;
|
|
@@ -34,152 +41,25 @@ export interface EventRemovedFromWhitelist {
|
|
|
34
41
|
id: string;
|
|
35
42
|
account: string;
|
|
36
43
|
}
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
issuer?: string;
|
|
55
|
-
symbol?: string;
|
|
56
|
-
name?: string;
|
|
57
|
-
description?: string;
|
|
58
|
-
uri?: string;
|
|
59
|
-
uriHash?: string;
|
|
60
|
-
features?: ClassFeature[] & ClassFeature[] & { [K in Exclude<keyof I["features"], keyof ClassFeature[]>]: never; };
|
|
61
|
-
royaltyRate?: string;
|
|
62
|
-
} & { [K_1 in Exclude<keyof I, keyof EventClassIssued>]: never; }>(base?: I): EventClassIssued;
|
|
63
|
-
fromPartial<I_1 extends {
|
|
64
|
-
id?: string;
|
|
65
|
-
issuer?: string;
|
|
66
|
-
symbol?: string;
|
|
67
|
-
name?: string;
|
|
68
|
-
description?: string;
|
|
69
|
-
uri?: string;
|
|
70
|
-
uriHash?: string;
|
|
71
|
-
features?: ClassFeature[];
|
|
72
|
-
royaltyRate?: string;
|
|
73
|
-
} & {
|
|
74
|
-
id?: string;
|
|
75
|
-
issuer?: string;
|
|
76
|
-
symbol?: string;
|
|
77
|
-
name?: string;
|
|
78
|
-
description?: string;
|
|
79
|
-
uri?: string;
|
|
80
|
-
uriHash?: string;
|
|
81
|
-
features?: ClassFeature[] & ClassFeature[] & { [K_2 in Exclude<keyof I_1["features"], keyof ClassFeature[]>]: never; };
|
|
82
|
-
royaltyRate?: string;
|
|
83
|
-
} & { [K_3 in Exclude<keyof I_1, keyof EventClassIssued>]: never; }>(object: I_1): EventClassIssued;
|
|
84
|
-
};
|
|
85
|
-
export declare const EventFrozen: {
|
|
86
|
-
encode(message: EventFrozen, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventFrozen;
|
|
88
|
-
fromJSON(object: any): EventFrozen;
|
|
89
|
-
toJSON(message: EventFrozen): unknown;
|
|
90
|
-
create<I extends {
|
|
91
|
-
classId?: string;
|
|
92
|
-
id?: string;
|
|
93
|
-
owner?: string;
|
|
94
|
-
} & {
|
|
95
|
-
classId?: string;
|
|
96
|
-
id?: string;
|
|
97
|
-
owner?: string;
|
|
98
|
-
} & { [K in Exclude<keyof I, keyof EventFrozen>]: never; }>(base?: I): EventFrozen;
|
|
99
|
-
fromPartial<I_1 extends {
|
|
100
|
-
classId?: string;
|
|
101
|
-
id?: string;
|
|
102
|
-
owner?: string;
|
|
103
|
-
} & {
|
|
104
|
-
classId?: string;
|
|
105
|
-
id?: string;
|
|
106
|
-
owner?: string;
|
|
107
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventFrozen>]: never; }>(object: I_1): EventFrozen;
|
|
108
|
-
};
|
|
109
|
-
export declare const EventUnfrozen: {
|
|
110
|
-
encode(message: EventUnfrozen, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventUnfrozen;
|
|
112
|
-
fromJSON(object: any): EventUnfrozen;
|
|
113
|
-
toJSON(message: EventUnfrozen): unknown;
|
|
114
|
-
create<I extends {
|
|
115
|
-
classId?: string;
|
|
116
|
-
id?: string;
|
|
117
|
-
owner?: string;
|
|
118
|
-
} & {
|
|
119
|
-
classId?: string;
|
|
120
|
-
id?: string;
|
|
121
|
-
owner?: string;
|
|
122
|
-
} & { [K in Exclude<keyof I, keyof EventUnfrozen>]: never; }>(base?: I): EventUnfrozen;
|
|
123
|
-
fromPartial<I_1 extends {
|
|
124
|
-
classId?: string;
|
|
125
|
-
id?: string;
|
|
126
|
-
owner?: string;
|
|
127
|
-
} & {
|
|
128
|
-
classId?: string;
|
|
129
|
-
id?: string;
|
|
130
|
-
owner?: string;
|
|
131
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventUnfrozen>]: never; }>(object: I_1): EventUnfrozen;
|
|
132
|
-
};
|
|
133
|
-
export declare const EventAddedToWhitelist: {
|
|
134
|
-
encode(message: EventAddedToWhitelist, writer?: _m0.Writer): _m0.Writer;
|
|
135
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventAddedToWhitelist;
|
|
136
|
-
fromJSON(object: any): EventAddedToWhitelist;
|
|
137
|
-
toJSON(message: EventAddedToWhitelist): unknown;
|
|
138
|
-
create<I extends {
|
|
139
|
-
classId?: string;
|
|
140
|
-
id?: string;
|
|
141
|
-
account?: string;
|
|
142
|
-
} & {
|
|
143
|
-
classId?: string;
|
|
144
|
-
id?: string;
|
|
145
|
-
account?: string;
|
|
146
|
-
} & { [K in Exclude<keyof I, keyof EventAddedToWhitelist>]: never; }>(base?: I): EventAddedToWhitelist;
|
|
147
|
-
fromPartial<I_1 extends {
|
|
148
|
-
classId?: string;
|
|
149
|
-
id?: string;
|
|
150
|
-
account?: string;
|
|
151
|
-
} & {
|
|
152
|
-
classId?: string;
|
|
153
|
-
id?: string;
|
|
154
|
-
account?: string;
|
|
155
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventAddedToWhitelist>]: never; }>(object: I_1): EventAddedToWhitelist;
|
|
156
|
-
};
|
|
157
|
-
export declare const EventRemovedFromWhitelist: {
|
|
158
|
-
encode(message: EventRemovedFromWhitelist, writer?: _m0.Writer): _m0.Writer;
|
|
159
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventRemovedFromWhitelist;
|
|
160
|
-
fromJSON(object: any): EventRemovedFromWhitelist;
|
|
161
|
-
toJSON(message: EventRemovedFromWhitelist): unknown;
|
|
162
|
-
create<I extends {
|
|
163
|
-
classId?: string;
|
|
164
|
-
id?: string;
|
|
165
|
-
account?: string;
|
|
166
|
-
} & {
|
|
167
|
-
classId?: string;
|
|
168
|
-
id?: string;
|
|
169
|
-
account?: string;
|
|
170
|
-
} & { [K in Exclude<keyof I, keyof EventRemovedFromWhitelist>]: never; }>(base?: I): EventRemovedFromWhitelist;
|
|
171
|
-
fromPartial<I_1 extends {
|
|
172
|
-
classId?: string;
|
|
173
|
-
id?: string;
|
|
174
|
-
account?: string;
|
|
175
|
-
} & {
|
|
176
|
-
classId?: string;
|
|
177
|
-
id?: string;
|
|
178
|
-
account?: string;
|
|
179
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventRemovedFromWhitelist>]: never; }>(object: I_1): EventRemovedFromWhitelist;
|
|
180
|
-
};
|
|
44
|
+
export interface EventAddedToClassWhitelist {
|
|
45
|
+
classId: string;
|
|
46
|
+
account: string;
|
|
47
|
+
}
|
|
48
|
+
export interface EventRemovedFromClassWhitelist {
|
|
49
|
+
classId: string;
|
|
50
|
+
account: string;
|
|
51
|
+
}
|
|
52
|
+
export declare const EventClassIssued: MessageFns<EventClassIssued>;
|
|
53
|
+
export declare const EventFrozen: MessageFns<EventFrozen>;
|
|
54
|
+
export declare const EventUnfrozen: MessageFns<EventUnfrozen>;
|
|
55
|
+
export declare const EventClassFrozen: MessageFns<EventClassFrozen>;
|
|
56
|
+
export declare const EventClassUnfrozen: MessageFns<EventClassUnfrozen>;
|
|
57
|
+
export declare const EventAddedToWhitelist: MessageFns<EventAddedToWhitelist>;
|
|
58
|
+
export declare const EventRemovedFromWhitelist: MessageFns<EventRemovedFromWhitelist>;
|
|
59
|
+
export declare const EventAddedToClassWhitelist: MessageFns<EventAddedToClassWhitelist>;
|
|
60
|
+
export declare const EventRemovedFromClassWhitelist: MessageFns<EventRemovedFromClassWhitelist>;
|
|
181
61
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
182
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
62
|
+
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 {} ? {
|
|
183
63
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
184
64
|
} : Partial<T>;
|
|
185
65
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -188,4 +68,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
188
68
|
} & {
|
|
189
69
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
190
70
|
};
|
|
71
|
+
export interface MessageFns<T> {
|
|
72
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
73
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
74
|
+
fromJSON(object: any): T;
|
|
75
|
+
toJSON(message: T): unknown;
|
|
76
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
77
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
78
|
+
}
|
|
191
79
|
export {};
|