coreum-js 2.3.1
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/README.md +18 -0
- package/dist/main/client/index.d.ts +48 -0
- package/dist/main/client/index.js +242 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +148 -0
- package/dist/main/coreum/asset/ft/v1/event.js +377 -0
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +415 -0
- package/dist/main/coreum/asset/ft/v1/genesis.js +197 -0
- package/dist/main/coreum/asset/ft/v1/params.d.ts +54 -0
- package/dist/main/coreum/asset/ft/v1/params.js +69 -0
- package/dist/main/coreum/asset/ft/v1/query.d.ts +1863 -0
- package/dist/main/coreum/asset/ft/v1/query.js +892 -0
- package/dist/main/coreum/asset/ft/v1/token.d.ts +145 -0
- package/dist/main/coreum/asset/ft/v1/token.js +361 -0
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +416 -0
- package/dist/main/coreum/asset/ft/v1/tx.js +760 -0
- package/dist/main/coreum/asset/index.d.ts +3 -0
- package/dist/main/coreum/asset/index.js +26 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +191 -0
- package/dist/main/coreum/asset/nft/v1/event.js +490 -0
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +321 -0
- package/dist/main/coreum/asset/nft/v1/genesis.js +362 -0
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +153 -0
- package/dist/main/coreum/asset/nft/v1/nft.js +361 -0
- package/dist/main/coreum/asset/nft/v1/params.d.ts +54 -0
- package/dist/main/coreum/asset/nft/v1/params.js +69 -0
- package/dist/main/coreum/asset/nft/v1/query.d.ts +785 -0
- package/dist/main/coreum/asset/nft/v1/query.js +627 -0
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +357 -0
- package/dist/main/coreum/asset/nft/v1/tx.js +806 -0
- package/dist/main/coreum/asset/nft/v1/types.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/types.js +108 -0
- package/dist/main/coreum/customparams/v1/genesis.d.ts +48 -0
- package/dist/main/coreum/customparams/v1/genesis.js +70 -0
- package/dist/main/coreum/customparams/v1/params.d.ts +35 -0
- package/dist/main/coreum/customparams/v1/params.js +67 -0
- package/dist/main/coreum/customparams/v1/query.d.ts +74 -0
- package/dist/main/coreum/customparams/v1/query.js +119 -0
- package/dist/main/coreum/extensions/ft.d.ts +13 -0
- package/dist/main/coreum/extensions/ft.js +36 -0
- package/dist/main/coreum/extensions/nft.d.ts +11 -0
- package/dist/main/coreum/extensions/nft.js +30 -0
- package/dist/main/coreum/extensions/nftbeta.d.ts +13 -0
- package/dist/main/coreum/extensions/nftbeta.js +36 -0
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +251 -0
- package/dist/main/coreum/feemodel/v1/genesis.js +87 -0
- package/dist/main/coreum/feemodel/v1/params.d.ts +384 -0
- package/dist/main/coreum/feemodel/v1/params.js +201 -0
- package/dist/main/coreum/feemodel/v1/query.d.ts +306 -0
- package/dist/main/coreum/feemodel/v1/query.js +214 -0
- package/dist/main/coreum/google/api/annotations.d.ts +1 -0
- package/dist/main/coreum/google/api/annotations.js +6 -0
- package/dist/main/coreum/google/api/http.d.ts +2953 -0
- package/dist/main/coreum/google/api/http.js +329 -0
- package/dist/main/coreum/google/protobuf/any.d.ts +148 -0
- package/dist/main/coreum/google/protobuf/any.js +122 -0
- package/dist/main/coreum/index.d.ts +291 -0
- package/dist/main/coreum/index.js +116 -0
- package/dist/main/coreum/nft/index.d.ts +2 -0
- package/dist/main/coreum/nft/index.js +9 -0
- package/dist/main/coreum/nft/v1beta1/event.d.ts +109 -0
- package/dist/main/coreum/nft/v1beta1/event.js +255 -0
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +460 -0
- package/dist/main/coreum/nft/v1beta1/genesis.js +160 -0
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +153 -0
- package/dist/main/coreum/nft/v1beta1/nft.js +258 -0
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1733 -0
- package/dist/main/coreum/nft/v1beta1/query.js +872 -0
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +80 -0
- package/dist/main/coreum/nft/v1beta1/tx.js +155 -0
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +470 -0
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +224 -0
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +114 -0
- package/dist/main/cosmos/base/v1beta1/coin.js +242 -0
- package/dist/main/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/main/cosmos/msg/v1/msg.js +6 -0
- package/dist/main/index.d.ts +5 -0
- package/dist/main/index.js +22 -0
- package/dist/main/services/cosmostation.d.ts +4 -0
- package/dist/main/services/cosmostation.js +47 -0
- package/dist/main/services/index.d.ts +2 -0
- package/dist/main/services/index.js +19 -0
- package/dist/main/services/keplr.d.ts +2 -0
- package/dist/main/services/keplr.js +119 -0
- package/dist/main/signers/dcent.d.ts +1 -0
- package/dist/main/signers/dcent.js +41 -0
- package/dist/main/signers/index.d.ts +3 -0
- package/dist/main/signers/index.js +20 -0
- package/dist/main/signers/offline.d.ts +4 -0
- package/dist/main/signers/offline.js +11 -0
- package/dist/main/signers/signer.d.ts +6 -0
- package/dist/main/signers/signer.js +17 -0
- package/dist/main/types/core.d.ts +24 -0
- package/dist/main/types/core.js +18 -0
- package/dist/main/types/coreum.d.ts +74 -0
- package/dist/main/types/coreum.js +80 -0
- package/dist/main/types/index.d.ts +3 -0
- package/dist/main/types/index.js +20 -0
- package/dist/main/types/signing.d.ts +20 -0
- package/dist/main/types/signing.js +17 -0
- package/dist/main/utils/calculations.d.ts +6 -0
- package/dist/main/utils/calculations.js +41 -0
- package/dist/main/utils/event.d.ts +5 -0
- package/dist/main/utils/event.js +22 -0
- package/dist/main/utils/index.d.ts +3 -0
- package/dist/main/utils/index.js +20 -0
- package/dist/main/utils/nft.d.ts +2 -0
- package/dist/main/utils/nft.js +9 -0
- package/dist/main/utils/wallet.d.ts +5 -0
- package/dist/main/utils/wallet.js +37 -0
- package/dist/module/client/index.d.ts +48 -0
- package/dist/module/client/index.js +241 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +148 -0
- package/dist/module/coreum/asset/ft/v1/event.js +368 -0
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +415 -0
- package/dist/module/coreum/asset/ft/v1/genesis.js +189 -0
- package/dist/module/coreum/asset/ft/v1/params.d.ts +54 -0
- package/dist/module/coreum/asset/ft/v1/params.js +63 -0
- package/dist/module/coreum/asset/ft/v1/query.d.ts +1863 -0
- package/dist/module/coreum/asset/ft/v1/query.js +878 -0
- package/dist/module/coreum/asset/ft/v1/token.d.ts +145 -0
- package/dist/module/coreum/asset/ft/v1/token.js +351 -0
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +416 -0
- package/dist/module/coreum/asset/ft/v1/tx.js +747 -0
- package/dist/module/coreum/asset/index.d.ts +3 -0
- package/dist/module/coreum/asset/index.js +23 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +191 -0
- package/dist/module/coreum/asset/nft/v1/event.js +479 -0
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +321 -0
- package/dist/module/coreum/asset/nft/v1/genesis.js +352 -0
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +153 -0
- package/dist/module/coreum/asset/nft/v1/nft.js +351 -0
- package/dist/module/coreum/asset/nft/v1/params.d.ts +54 -0
- package/dist/module/coreum/asset/nft/v1/params.js +63 -0
- package/dist/module/coreum/asset/nft/v1/query.d.ts +785 -0
- package/dist/module/coreum/asset/nft/v1/query.js +615 -0
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +357 -0
- package/dist/module/coreum/asset/nft/v1/tx.js +794 -0
- package/dist/module/coreum/asset/nft/v1/types.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/types.js +101 -0
- package/dist/module/coreum/customparams/v1/genesis.d.ts +48 -0
- package/dist/module/coreum/customparams/v1/genesis.js +64 -0
- package/dist/module/coreum/customparams/v1/params.d.ts +35 -0
- package/dist/module/coreum/customparams/v1/params.js +60 -0
- package/dist/module/coreum/customparams/v1/query.d.ts +74 -0
- package/dist/module/coreum/customparams/v1/query.js +114 -0
- package/dist/module/coreum/extensions/ft.d.ts +13 -0
- package/dist/module/coreum/extensions/ft.js +32 -0
- package/dist/module/coreum/extensions/nft.d.ts +11 -0
- package/dist/module/coreum/extensions/nft.js +26 -0
- package/dist/module/coreum/extensions/nftbeta.d.ts +13 -0
- package/dist/module/coreum/extensions/nftbeta.js +32 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +251 -0
- package/dist/module/coreum/feemodel/v1/genesis.js +81 -0
- package/dist/module/coreum/feemodel/v1/params.d.ts +384 -0
- package/dist/module/coreum/feemodel/v1/params.js +194 -0
- package/dist/module/coreum/feemodel/v1/query.d.ts +306 -0
- package/dist/module/coreum/feemodel/v1/query.js +209 -0
- package/dist/module/coreum/google/api/annotations.d.ts +1 -0
- package/dist/module/coreum/google/api/annotations.js +3 -0
- package/dist/module/coreum/google/api/http.d.ts +2953 -0
- package/dist/module/coreum/google/api/http.js +320 -0
- package/dist/module/coreum/google/protobuf/any.d.ts +148 -0
- package/dist/module/coreum/google/protobuf/any.js +115 -0
- package/dist/module/coreum/index.d.ts +291 -0
- package/dist/module/coreum/index.js +113 -0
- package/dist/module/coreum/nft/index.d.ts +2 -0
- package/dist/module/coreum/nft/index.js +6 -0
- package/dist/module/coreum/nft/v1beta1/event.d.ts +109 -0
- package/dist/module/coreum/nft/v1beta1/event.js +246 -0
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +460 -0
- package/dist/module/coreum/nft/v1beta1/genesis.js +152 -0
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +153 -0
- package/dist/module/coreum/nft/v1beta1/nft.js +250 -0
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1733 -0
- package/dist/module/coreum/nft/v1beta1/query.js +858 -0
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +80 -0
- package/dist/module/coreum/nft/v1beta1/tx.js +149 -0
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +470 -0
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +216 -0
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +114 -0
- package/dist/module/cosmos/base/v1beta1/coin.js +232 -0
- package/dist/module/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/module/cosmos/msg/v1/msg.js +3 -0
- package/dist/module/index.d.ts +5 -0
- package/dist/module/index.js +6 -0
- package/dist/module/services/cosmostation.d.ts +4 -0
- package/dist/module/services/cosmostation.js +42 -0
- package/dist/module/services/index.d.ts +2 -0
- package/dist/module/services/index.js +3 -0
- package/dist/module/services/keplr.d.ts +2 -0
- package/dist/module/services/keplr.js +115 -0
- package/dist/module/signers/dcent.d.ts +1 -0
- package/dist/module/signers/dcent.js +31 -0
- package/dist/module/signers/index.d.ts +3 -0
- package/dist/module/signers/index.js +4 -0
- package/dist/module/signers/offline.d.ts +4 -0
- package/dist/module/signers/offline.js +7 -0
- package/dist/module/signers/signer.d.ts +6 -0
- package/dist/module/signers/signer.js +11 -0
- package/dist/module/types/core.d.ts +24 -0
- package/dist/module/types/core.js +15 -0
- package/dist/module/types/coreum.d.ts +74 -0
- package/dist/module/types/coreum.js +77 -0
- package/dist/module/types/index.d.ts +3 -0
- package/dist/module/types/index.js +4 -0
- package/dist/module/types/signing.d.ts +20 -0
- package/dist/module/types/signing.js +14 -0
- package/dist/module/utils/calculations.d.ts +6 -0
- package/dist/module/utils/calculations.js +29 -0
- package/dist/module/utils/event.d.ts +5 -0
- package/dist/module/utils/event.js +18 -0
- package/dist/module/utils/index.d.ts +3 -0
- package/dist/module/utils/index.js +4 -0
- package/dist/module/utils/nft.d.ts +2 -0
- package/dist/module/utils/nft.js +5 -0
- package/dist/module/utils/wallet.d.ts +5 -0
- package/dist/module/utils/wallet.js +31 -0
- package/package.json +55 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "coreum.nft.v1beta1";
|
|
4
|
+
/** MsgSend represents a message to send a nft from one account to another account. */
|
|
5
|
+
export interface MsgSend {
|
|
6
|
+
/** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */
|
|
7
|
+
classId: string;
|
|
8
|
+
/** id defines the unique identification of nft */
|
|
9
|
+
id: string;
|
|
10
|
+
/** sender is the address of the owner of nft */
|
|
11
|
+
sender: string;
|
|
12
|
+
/** receiver is the receiver address of nft */
|
|
13
|
+
receiver: string;
|
|
14
|
+
}
|
|
15
|
+
/** MsgSendResponse defines the Msg/Send response type. */
|
|
16
|
+
export interface MsgSendResponse {
|
|
17
|
+
}
|
|
18
|
+
export declare const MsgSend: {
|
|
19
|
+
encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend;
|
|
21
|
+
fromJSON(object: any): MsgSend;
|
|
22
|
+
toJSON(message: MsgSend): unknown;
|
|
23
|
+
create<I extends {
|
|
24
|
+
classId?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
sender?: string;
|
|
27
|
+
receiver?: string;
|
|
28
|
+
} & {
|
|
29
|
+
classId?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
sender?: string;
|
|
32
|
+
receiver?: string;
|
|
33
|
+
} & { [K in Exclude<keyof I, keyof MsgSend>]: never; }>(base?: I): MsgSend;
|
|
34
|
+
fromPartial<I_1 extends {
|
|
35
|
+
classId?: string;
|
|
36
|
+
id?: string;
|
|
37
|
+
sender?: string;
|
|
38
|
+
receiver?: string;
|
|
39
|
+
} & {
|
|
40
|
+
classId?: string;
|
|
41
|
+
id?: string;
|
|
42
|
+
sender?: string;
|
|
43
|
+
receiver?: string;
|
|
44
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MsgSend>]: never; }>(object: I_1): MsgSend;
|
|
45
|
+
};
|
|
46
|
+
export declare const MsgSendResponse: {
|
|
47
|
+
encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse;
|
|
49
|
+
fromJSON(_: any): MsgSendResponse;
|
|
50
|
+
toJSON(_: MsgSendResponse): unknown;
|
|
51
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgSendResponse;
|
|
52
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgSendResponse;
|
|
53
|
+
};
|
|
54
|
+
/** Msg defines the nft Msg service. */
|
|
55
|
+
export interface Msg {
|
|
56
|
+
/** Send defines a method to send a nft from one account to another account. */
|
|
57
|
+
Send(request: MsgSend): Promise<MsgSendResponse>;
|
|
58
|
+
}
|
|
59
|
+
export declare class MsgClientImpl implements Msg {
|
|
60
|
+
private readonly rpc;
|
|
61
|
+
private readonly service;
|
|
62
|
+
constructor(rpc: Rpc, opts?: {
|
|
63
|
+
service?: string;
|
|
64
|
+
});
|
|
65
|
+
Send(request: MsgSend): Promise<MsgSendResponse>;
|
|
66
|
+
}
|
|
67
|
+
interface Rpc {
|
|
68
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
69
|
+
}
|
|
70
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
72
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
73
|
+
} : Partial<T>;
|
|
74
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
75
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
76
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
77
|
+
} & {
|
|
78
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export const protobufPackage = "coreum.nft.v1beta1";
|
|
5
|
+
function createBaseMsgSend() {
|
|
6
|
+
return { classId: "", id: "", sender: "", receiver: "" };
|
|
7
|
+
}
|
|
8
|
+
export const MsgSend = {
|
|
9
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
10
|
+
if (message.classId !== "") {
|
|
11
|
+
writer.uint32(10).string(message.classId);
|
|
12
|
+
}
|
|
13
|
+
if (message.id !== "") {
|
|
14
|
+
writer.uint32(18).string(message.id);
|
|
15
|
+
}
|
|
16
|
+
if (message.sender !== "") {
|
|
17
|
+
writer.uint32(26).string(message.sender);
|
|
18
|
+
}
|
|
19
|
+
if (message.receiver !== "") {
|
|
20
|
+
writer.uint32(34).string(message.receiver);
|
|
21
|
+
}
|
|
22
|
+
return writer;
|
|
23
|
+
},
|
|
24
|
+
decode(input, length) {
|
|
25
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
+
const message = createBaseMsgSend();
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
const tag = reader.uint32();
|
|
30
|
+
switch (tag >>> 3) {
|
|
31
|
+
case 1:
|
|
32
|
+
if (tag != 10) {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
message.classId = reader.string();
|
|
36
|
+
continue;
|
|
37
|
+
case 2:
|
|
38
|
+
if (tag != 18) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
message.id = reader.string();
|
|
42
|
+
continue;
|
|
43
|
+
case 3:
|
|
44
|
+
if (tag != 26) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.sender = reader.string();
|
|
48
|
+
continue;
|
|
49
|
+
case 4:
|
|
50
|
+
if (tag != 34) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.receiver = reader.string();
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
reader.skipType(tag & 7);
|
|
60
|
+
}
|
|
61
|
+
return message;
|
|
62
|
+
},
|
|
63
|
+
fromJSON(object) {
|
|
64
|
+
return {
|
|
65
|
+
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
66
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
67
|
+
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
68
|
+
receiver: isSet(object.receiver) ? String(object.receiver) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
message.classId !== undefined && (obj.classId = message.classId);
|
|
74
|
+
message.id !== undefined && (obj.id = message.id);
|
|
75
|
+
message.sender !== undefined && (obj.sender = message.sender);
|
|
76
|
+
message.receiver !== undefined && (obj.receiver = message.receiver);
|
|
77
|
+
return obj;
|
|
78
|
+
},
|
|
79
|
+
create(base) {
|
|
80
|
+
return MsgSend.fromPartial(base ?? {});
|
|
81
|
+
},
|
|
82
|
+
fromPartial(object) {
|
|
83
|
+
const message = createBaseMsgSend();
|
|
84
|
+
message.classId = object.classId ?? "";
|
|
85
|
+
message.id = object.id ?? "";
|
|
86
|
+
message.sender = object.sender ?? "";
|
|
87
|
+
message.receiver = object.receiver ?? "";
|
|
88
|
+
return message;
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
function createBaseMsgSendResponse() {
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
export const MsgSendResponse = {
|
|
95
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
96
|
+
return writer;
|
|
97
|
+
},
|
|
98
|
+
decode(input, length) {
|
|
99
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
100
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
+
const message = createBaseMsgSendResponse();
|
|
102
|
+
while (reader.pos < end) {
|
|
103
|
+
const tag = reader.uint32();
|
|
104
|
+
switch (tag >>> 3) {
|
|
105
|
+
}
|
|
106
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
reader.skipType(tag & 7);
|
|
110
|
+
}
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
fromJSON(_) {
|
|
114
|
+
return {};
|
|
115
|
+
},
|
|
116
|
+
toJSON(_) {
|
|
117
|
+
const obj = {};
|
|
118
|
+
return obj;
|
|
119
|
+
},
|
|
120
|
+
create(base) {
|
|
121
|
+
return MsgSendResponse.fromPartial(base ?? {});
|
|
122
|
+
},
|
|
123
|
+
fromPartial(_) {
|
|
124
|
+
const message = createBaseMsgSendResponse();
|
|
125
|
+
return message;
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
export class MsgClientImpl {
|
|
129
|
+
rpc;
|
|
130
|
+
service;
|
|
131
|
+
constructor(rpc, opts) {
|
|
132
|
+
this.service = opts?.service || "coreum.nft.v1beta1.Msg";
|
|
133
|
+
this.rpc = rpc;
|
|
134
|
+
this.Send = this.Send.bind(this);
|
|
135
|
+
}
|
|
136
|
+
Send(request) {
|
|
137
|
+
const data = MsgSend.encode(request).finish();
|
|
138
|
+
const promise = this.rpc.request(this.service, "Send", data);
|
|
139
|
+
return promise.then((data) => MsgSendResponse.decode(_m0.Reader.create(data)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (_m0.util.Long !== Long) {
|
|
143
|
+
_m0.util.Long = Long;
|
|
144
|
+
_m0.configure();
|
|
145
|
+
}
|
|
146
|
+
function isSet(value) {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
|
149
|
+
//#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