@sparkdreamnft/sparkdreamjs 0.0.43 → 0.0.45
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +37 -1
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +198 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +499 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +56 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +21 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +11 -1
- package/esm/sparkdream/service/v1/tx.js +332 -0
- package/esm/sparkdream/service/v1/tx.registry.js +38 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +20 -1
- package/esm/sparkdream/session/v1/grant.js +98 -6
- package/esm/sparkdream/session/v1/tx.amino.js +3 -0
- package/esm/sparkdream/session/v1/tx.js +15 -3
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/esm/sparkdream/shield/v1/genesis.js +32 -2
- package/esm/sparkdream/shield/v1/params.js +25 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +480 -16
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20666 -17863
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +165 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +34 -0
- package/sparkdream/federation/v1/types.js +37 -1
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +144 -28
- package/sparkdream/rep/v1/params.js +198 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +338 -1
- package/sparkdream/rep/v1/tx.js +500 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +37 -1
- package/sparkdream/rep/v1/tx.registry.js +55 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +14 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +20 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +11 -1
- package/sparkdream/service/v1/tx.amino.js +10 -0
- package/sparkdream/service/v1/tx.d.ts +216 -0
- package/sparkdream/service/v1/tx.js +333 -1
- package/sparkdream/service/v1/tx.registry.d.ts +25 -1
- package/sparkdream/service/v1/tx.registry.js +37 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +18 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +19 -0
- package/sparkdream/session/v1/grant.d.ts +75 -7
- package/sparkdream/session/v1/grant.js +99 -7
- package/sparkdream/session/v1/tx.amino.js +3 -0
- package/sparkdream/session/v1/tx.d.ts +6 -4
- package/sparkdream/session/v1/tx.js +14 -2
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
- package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/sparkdream/shield/v1/genesis.d.ts +17 -1
- package/sparkdream/shield/v1/genesis.js +31 -1
- package/sparkdream/shield/v1/params.d.ts +32 -4
- package/sparkdream/shield/v1/params.js +25 -1
- package/sparkdream/shield/v1/query.d.ts +8 -0
- package/sparkdream/shield/v1/query.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +36 -10
- package/sparkdream/shield/v1/types.d.ts +337 -13
- package/sparkdream/shield/v1/types.js +483 -17
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,3415 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Params } from "./params";
|
|
4
|
+
import { Class, Token, TokenMetadata, Listing, PendingClassOwner, HideRecord } from "./types";
|
|
5
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
|
+
function createBaseQueryParamsRequest() {
|
|
8
|
+
return {};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* QueryParamsRequest is request type for the Query/Params RPC method.
|
|
12
|
+
* @name QueryParamsRequest
|
|
13
|
+
* @package sparkdream.artifact.v1
|
|
14
|
+
* @see proto type: sparkdream.artifact.v1.QueryParamsRequest
|
|
15
|
+
*/
|
|
16
|
+
export const QueryParamsRequest = {
|
|
17
|
+
typeUrl: "/sparkdream.artifact.v1.QueryParamsRequest",
|
|
18
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
19
|
+
return writer;
|
|
20
|
+
},
|
|
21
|
+
decode(input, length) {
|
|
22
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
|
+
const message = createBaseQueryParamsRequest();
|
|
25
|
+
while (reader.pos < end) {
|
|
26
|
+
const tag = reader.uint32();
|
|
27
|
+
switch (tag >>> 3) {
|
|
28
|
+
default:
|
|
29
|
+
reader.skipType(tag & 7);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
fromPartial(_) {
|
|
36
|
+
const message = createBaseQueryParamsRequest();
|
|
37
|
+
return message;
|
|
38
|
+
},
|
|
39
|
+
fromAmino(_) {
|
|
40
|
+
const message = createBaseQueryParamsRequest();
|
|
41
|
+
return message;
|
|
42
|
+
},
|
|
43
|
+
toAmino(_) {
|
|
44
|
+
const obj = {};
|
|
45
|
+
return obj;
|
|
46
|
+
},
|
|
47
|
+
fromAminoMsg(object) {
|
|
48
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
49
|
+
},
|
|
50
|
+
fromProtoMsg(message) {
|
|
51
|
+
return QueryParamsRequest.decode(message.value);
|
|
52
|
+
},
|
|
53
|
+
toProto(message) {
|
|
54
|
+
return QueryParamsRequest.encode(message).finish();
|
|
55
|
+
},
|
|
56
|
+
toProtoMsg(message) {
|
|
57
|
+
return {
|
|
58
|
+
typeUrl: "/sparkdream.artifact.v1.QueryParamsRequest",
|
|
59
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
function createBaseQueryParamsResponse() {
|
|
64
|
+
return {
|
|
65
|
+
params: Params.fromPartial({})
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
70
|
+
* @name QueryParamsResponse
|
|
71
|
+
* @package sparkdream.artifact.v1
|
|
72
|
+
* @see proto type: sparkdream.artifact.v1.QueryParamsResponse
|
|
73
|
+
*/
|
|
74
|
+
export const QueryParamsResponse = {
|
|
75
|
+
typeUrl: "/sparkdream.artifact.v1.QueryParamsResponse",
|
|
76
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
77
|
+
if (message.params !== undefined) {
|
|
78
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
79
|
+
}
|
|
80
|
+
return writer;
|
|
81
|
+
},
|
|
82
|
+
decode(input, length) {
|
|
83
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
84
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
+
const message = createBaseQueryParamsResponse();
|
|
86
|
+
while (reader.pos < end) {
|
|
87
|
+
const tag = reader.uint32();
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1:
|
|
90
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
91
|
+
break;
|
|
92
|
+
default:
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromPartial(object) {
|
|
100
|
+
const message = createBaseQueryParamsResponse();
|
|
101
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
fromAmino(object) {
|
|
105
|
+
const message = createBaseQueryParamsResponse();
|
|
106
|
+
if (object.params !== undefined && object.params !== null) {
|
|
107
|
+
message.params = Params.fromAmino(object.params);
|
|
108
|
+
}
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
toAmino(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
114
|
+
return obj;
|
|
115
|
+
},
|
|
116
|
+
fromAminoMsg(object) {
|
|
117
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
118
|
+
},
|
|
119
|
+
fromProtoMsg(message) {
|
|
120
|
+
return QueryParamsResponse.decode(message.value);
|
|
121
|
+
},
|
|
122
|
+
toProto(message) {
|
|
123
|
+
return QueryParamsResponse.encode(message).finish();
|
|
124
|
+
},
|
|
125
|
+
toProtoMsg(message) {
|
|
126
|
+
return {
|
|
127
|
+
typeUrl: "/sparkdream.artifact.v1.QueryParamsResponse",
|
|
128
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
function createBaseClassView() {
|
|
133
|
+
return {
|
|
134
|
+
class: Class.fromPartial({}),
|
|
135
|
+
withheld: false
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* ClassView is a class as served to clients. When withheld is true the
|
|
140
|
+
* content fields have been blanked because the class is hidden.
|
|
141
|
+
* @name ClassView
|
|
142
|
+
* @package sparkdream.artifact.v1
|
|
143
|
+
* @see proto type: sparkdream.artifact.v1.ClassView
|
|
144
|
+
*/
|
|
145
|
+
export const ClassView = {
|
|
146
|
+
typeUrl: "/sparkdream.artifact.v1.ClassView",
|
|
147
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
148
|
+
if (message.class !== undefined) {
|
|
149
|
+
Class.encode(message.class, writer.uint32(10).fork()).ldelim();
|
|
150
|
+
}
|
|
151
|
+
if (message.withheld === true) {
|
|
152
|
+
writer.uint32(16).bool(message.withheld);
|
|
153
|
+
}
|
|
154
|
+
return writer;
|
|
155
|
+
},
|
|
156
|
+
decode(input, length) {
|
|
157
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
158
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
+
const message = createBaseClassView();
|
|
160
|
+
while (reader.pos < end) {
|
|
161
|
+
const tag = reader.uint32();
|
|
162
|
+
switch (tag >>> 3) {
|
|
163
|
+
case 1:
|
|
164
|
+
message.class = Class.decode(reader, reader.uint32());
|
|
165
|
+
break;
|
|
166
|
+
case 2:
|
|
167
|
+
message.withheld = reader.bool();
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
reader.skipType(tag & 7);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
fromPartial(object) {
|
|
177
|
+
const message = createBaseClassView();
|
|
178
|
+
message.class = object.class !== undefined && object.class !== null ? Class.fromPartial(object.class) : undefined;
|
|
179
|
+
message.withheld = object.withheld ?? false;
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
fromAmino(object) {
|
|
183
|
+
const message = createBaseClassView();
|
|
184
|
+
if (object.class !== undefined && object.class !== null) {
|
|
185
|
+
message.class = Class.fromAmino(object.class);
|
|
186
|
+
}
|
|
187
|
+
if (object.withheld !== undefined && object.withheld !== null) {
|
|
188
|
+
message.withheld = object.withheld;
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
toAmino(message) {
|
|
193
|
+
const obj = {};
|
|
194
|
+
obj.class = message.class ? Class.toAmino(message.class) : undefined;
|
|
195
|
+
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
196
|
+
return obj;
|
|
197
|
+
},
|
|
198
|
+
fromAminoMsg(object) {
|
|
199
|
+
return ClassView.fromAmino(object.value);
|
|
200
|
+
},
|
|
201
|
+
fromProtoMsg(message) {
|
|
202
|
+
return ClassView.decode(message.value);
|
|
203
|
+
},
|
|
204
|
+
toProto(message) {
|
|
205
|
+
return ClassView.encode(message).finish();
|
|
206
|
+
},
|
|
207
|
+
toProtoMsg(message) {
|
|
208
|
+
return {
|
|
209
|
+
typeUrl: "/sparkdream.artifact.v1.ClassView",
|
|
210
|
+
value: ClassView.encode(message).finish()
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
function createBaseTokenView() {
|
|
215
|
+
return {
|
|
216
|
+
token: Token.fromPartial({}),
|
|
217
|
+
withheld: false,
|
|
218
|
+
metadataHash: "",
|
|
219
|
+
classStatus: 0
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* TokenView is a token as served to clients. When withheld is true the
|
|
224
|
+
* metadata has been blanked because the token or its class is hidden.
|
|
225
|
+
* @name TokenView
|
|
226
|
+
* @package sparkdream.artifact.v1
|
|
227
|
+
* @see proto type: sparkdream.artifact.v1.TokenView
|
|
228
|
+
*/
|
|
229
|
+
export const TokenView = {
|
|
230
|
+
typeUrl: "/sparkdream.artifact.v1.TokenView",
|
|
231
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
232
|
+
if (message.token !== undefined) {
|
|
233
|
+
Token.encode(message.token, writer.uint32(10).fork()).ldelim();
|
|
234
|
+
}
|
|
235
|
+
if (message.withheld === true) {
|
|
236
|
+
writer.uint32(16).bool(message.withheld);
|
|
237
|
+
}
|
|
238
|
+
if (message.metadataHash !== "") {
|
|
239
|
+
writer.uint32(26).string(message.metadataHash);
|
|
240
|
+
}
|
|
241
|
+
if (message.classStatus !== 0) {
|
|
242
|
+
writer.uint32(32).int32(message.classStatus);
|
|
243
|
+
}
|
|
244
|
+
return writer;
|
|
245
|
+
},
|
|
246
|
+
decode(input, length) {
|
|
247
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
248
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
249
|
+
const message = createBaseTokenView();
|
|
250
|
+
while (reader.pos < end) {
|
|
251
|
+
const tag = reader.uint32();
|
|
252
|
+
switch (tag >>> 3) {
|
|
253
|
+
case 1:
|
|
254
|
+
message.token = Token.decode(reader, reader.uint32());
|
|
255
|
+
break;
|
|
256
|
+
case 2:
|
|
257
|
+
message.withheld = reader.bool();
|
|
258
|
+
break;
|
|
259
|
+
case 3:
|
|
260
|
+
message.metadataHash = reader.string();
|
|
261
|
+
break;
|
|
262
|
+
case 4:
|
|
263
|
+
message.classStatus = reader.int32();
|
|
264
|
+
break;
|
|
265
|
+
default:
|
|
266
|
+
reader.skipType(tag & 7);
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return message;
|
|
271
|
+
},
|
|
272
|
+
fromPartial(object) {
|
|
273
|
+
const message = createBaseTokenView();
|
|
274
|
+
message.token = object.token !== undefined && object.token !== null ? Token.fromPartial(object.token) : undefined;
|
|
275
|
+
message.withheld = object.withheld ?? false;
|
|
276
|
+
message.metadataHash = object.metadataHash ?? "";
|
|
277
|
+
message.classStatus = object.classStatus ?? 0;
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
fromAmino(object) {
|
|
281
|
+
const message = createBaseTokenView();
|
|
282
|
+
if (object.token !== undefined && object.token !== null) {
|
|
283
|
+
message.token = Token.fromAmino(object.token);
|
|
284
|
+
}
|
|
285
|
+
if (object.withheld !== undefined && object.withheld !== null) {
|
|
286
|
+
message.withheld = object.withheld;
|
|
287
|
+
}
|
|
288
|
+
if (object.metadata_hash !== undefined && object.metadata_hash !== null) {
|
|
289
|
+
message.metadataHash = object.metadata_hash;
|
|
290
|
+
}
|
|
291
|
+
if (object.class_status !== undefined && object.class_status !== null) {
|
|
292
|
+
message.classStatus = object.class_status;
|
|
293
|
+
}
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
toAmino(message) {
|
|
297
|
+
const obj = {};
|
|
298
|
+
obj.token = message.token ? Token.toAmino(message.token) : undefined;
|
|
299
|
+
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
300
|
+
obj.metadata_hash = message.metadataHash === "" ? undefined : message.metadataHash;
|
|
301
|
+
obj.class_status = message.classStatus === 0 ? undefined : message.classStatus;
|
|
302
|
+
return obj;
|
|
303
|
+
},
|
|
304
|
+
fromAminoMsg(object) {
|
|
305
|
+
return TokenView.fromAmino(object.value);
|
|
306
|
+
},
|
|
307
|
+
fromProtoMsg(message) {
|
|
308
|
+
return TokenView.decode(message.value);
|
|
309
|
+
},
|
|
310
|
+
toProto(message) {
|
|
311
|
+
return TokenView.encode(message).finish();
|
|
312
|
+
},
|
|
313
|
+
toProtoMsg(message) {
|
|
314
|
+
return {
|
|
315
|
+
typeUrl: "/sparkdream.artifact.v1.TokenView",
|
|
316
|
+
value: TokenView.encode(message).finish()
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
function createBaseInboxItem() {
|
|
321
|
+
return {
|
|
322
|
+
kind: 0,
|
|
323
|
+
classId: BigInt(0),
|
|
324
|
+
tokenId: BigInt(0),
|
|
325
|
+
from: "",
|
|
326
|
+
to: "",
|
|
327
|
+
createdAt: BigInt(0),
|
|
328
|
+
expiresAt: BigInt(0),
|
|
329
|
+
metadata: TokenMetadata.fromPartial({}),
|
|
330
|
+
metadataHash: "",
|
|
331
|
+
withheld: false
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* InboxItem is one open pending transfer or pending mint.
|
|
336
|
+
* @name InboxItem
|
|
337
|
+
* @package sparkdream.artifact.v1
|
|
338
|
+
* @see proto type: sparkdream.artifact.v1.InboxItem
|
|
339
|
+
*/
|
|
340
|
+
export const InboxItem = {
|
|
341
|
+
typeUrl: "/sparkdream.artifact.v1.InboxItem",
|
|
342
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
343
|
+
if (message.kind !== 0) {
|
|
344
|
+
writer.uint32(8).int32(message.kind);
|
|
345
|
+
}
|
|
346
|
+
if (message.classId !== BigInt(0)) {
|
|
347
|
+
writer.uint32(16).uint64(message.classId);
|
|
348
|
+
}
|
|
349
|
+
if (message.tokenId !== BigInt(0)) {
|
|
350
|
+
writer.uint32(24).uint64(message.tokenId);
|
|
351
|
+
}
|
|
352
|
+
if (message.from !== "") {
|
|
353
|
+
writer.uint32(34).string(message.from);
|
|
354
|
+
}
|
|
355
|
+
if (message.to !== "") {
|
|
356
|
+
writer.uint32(42).string(message.to);
|
|
357
|
+
}
|
|
358
|
+
if (message.createdAt !== BigInt(0)) {
|
|
359
|
+
writer.uint32(48).int64(message.createdAt);
|
|
360
|
+
}
|
|
361
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
362
|
+
writer.uint32(56).int64(message.expiresAt);
|
|
363
|
+
}
|
|
364
|
+
if (message.metadata !== undefined) {
|
|
365
|
+
TokenMetadata.encode(message.metadata, writer.uint32(66).fork()).ldelim();
|
|
366
|
+
}
|
|
367
|
+
if (message.metadataHash !== "") {
|
|
368
|
+
writer.uint32(74).string(message.metadataHash);
|
|
369
|
+
}
|
|
370
|
+
if (message.withheld === true) {
|
|
371
|
+
writer.uint32(80).bool(message.withheld);
|
|
372
|
+
}
|
|
373
|
+
return writer;
|
|
374
|
+
},
|
|
375
|
+
decode(input, length) {
|
|
376
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
378
|
+
const message = createBaseInboxItem();
|
|
379
|
+
while (reader.pos < end) {
|
|
380
|
+
const tag = reader.uint32();
|
|
381
|
+
switch (tag >>> 3) {
|
|
382
|
+
case 1:
|
|
383
|
+
message.kind = reader.int32();
|
|
384
|
+
break;
|
|
385
|
+
case 2:
|
|
386
|
+
message.classId = reader.uint64();
|
|
387
|
+
break;
|
|
388
|
+
case 3:
|
|
389
|
+
message.tokenId = reader.uint64();
|
|
390
|
+
break;
|
|
391
|
+
case 4:
|
|
392
|
+
message.from = reader.string();
|
|
393
|
+
break;
|
|
394
|
+
case 5:
|
|
395
|
+
message.to = reader.string();
|
|
396
|
+
break;
|
|
397
|
+
case 6:
|
|
398
|
+
message.createdAt = reader.int64();
|
|
399
|
+
break;
|
|
400
|
+
case 7:
|
|
401
|
+
message.expiresAt = reader.int64();
|
|
402
|
+
break;
|
|
403
|
+
case 8:
|
|
404
|
+
message.metadata = TokenMetadata.decode(reader, reader.uint32());
|
|
405
|
+
break;
|
|
406
|
+
case 9:
|
|
407
|
+
message.metadataHash = reader.string();
|
|
408
|
+
break;
|
|
409
|
+
case 10:
|
|
410
|
+
message.withheld = reader.bool();
|
|
411
|
+
break;
|
|
412
|
+
default:
|
|
413
|
+
reader.skipType(tag & 7);
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return message;
|
|
418
|
+
},
|
|
419
|
+
fromPartial(object) {
|
|
420
|
+
const message = createBaseInboxItem();
|
|
421
|
+
message.kind = object.kind ?? 0;
|
|
422
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
423
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
424
|
+
message.from = object.from ?? "";
|
|
425
|
+
message.to = object.to ?? "";
|
|
426
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
427
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
428
|
+
message.metadata = object.metadata !== undefined && object.metadata !== null ? TokenMetadata.fromPartial(object.metadata) : undefined;
|
|
429
|
+
message.metadataHash = object.metadataHash ?? "";
|
|
430
|
+
message.withheld = object.withheld ?? false;
|
|
431
|
+
return message;
|
|
432
|
+
},
|
|
433
|
+
fromAmino(object) {
|
|
434
|
+
const message = createBaseInboxItem();
|
|
435
|
+
if (object.kind !== undefined && object.kind !== null) {
|
|
436
|
+
message.kind = object.kind;
|
|
437
|
+
}
|
|
438
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
439
|
+
message.classId = BigInt(object.class_id);
|
|
440
|
+
}
|
|
441
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
442
|
+
message.tokenId = BigInt(object.token_id);
|
|
443
|
+
}
|
|
444
|
+
if (object.from !== undefined && object.from !== null) {
|
|
445
|
+
message.from = object.from;
|
|
446
|
+
}
|
|
447
|
+
if (object.to !== undefined && object.to !== null) {
|
|
448
|
+
message.to = object.to;
|
|
449
|
+
}
|
|
450
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
451
|
+
message.createdAt = BigInt(object.created_at);
|
|
452
|
+
}
|
|
453
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
454
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
455
|
+
}
|
|
456
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
457
|
+
message.metadata = TokenMetadata.fromAmino(object.metadata);
|
|
458
|
+
}
|
|
459
|
+
if (object.metadata_hash !== undefined && object.metadata_hash !== null) {
|
|
460
|
+
message.metadataHash = object.metadata_hash;
|
|
461
|
+
}
|
|
462
|
+
if (object.withheld !== undefined && object.withheld !== null) {
|
|
463
|
+
message.withheld = object.withheld;
|
|
464
|
+
}
|
|
465
|
+
return message;
|
|
466
|
+
},
|
|
467
|
+
toAmino(message) {
|
|
468
|
+
const obj = {};
|
|
469
|
+
obj.kind = message.kind === 0 ? undefined : message.kind;
|
|
470
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
471
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
472
|
+
obj.from = message.from === "" ? undefined : message.from;
|
|
473
|
+
obj.to = message.to === "" ? undefined : message.to;
|
|
474
|
+
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
475
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
476
|
+
obj.metadata = message.metadata ? TokenMetadata.toAmino(message.metadata) : undefined;
|
|
477
|
+
obj.metadata_hash = message.metadataHash === "" ? undefined : message.metadataHash;
|
|
478
|
+
obj.withheld = message.withheld === false ? undefined : message.withheld;
|
|
479
|
+
return obj;
|
|
480
|
+
},
|
|
481
|
+
fromAminoMsg(object) {
|
|
482
|
+
return InboxItem.fromAmino(object.value);
|
|
483
|
+
},
|
|
484
|
+
fromProtoMsg(message) {
|
|
485
|
+
return InboxItem.decode(message.value);
|
|
486
|
+
},
|
|
487
|
+
toProto(message) {
|
|
488
|
+
return InboxItem.encode(message).finish();
|
|
489
|
+
},
|
|
490
|
+
toProtoMsg(message) {
|
|
491
|
+
return {
|
|
492
|
+
typeUrl: "/sparkdream.artifact.v1.InboxItem",
|
|
493
|
+
value: InboxItem.encode(message).finish()
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
function createBaseQueryClassRequest() {
|
|
498
|
+
return {
|
|
499
|
+
classId: BigInt(0)
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* QueryClassRequest defines the QueryClassRequest message.
|
|
504
|
+
* @name QueryClassRequest
|
|
505
|
+
* @package sparkdream.artifact.v1
|
|
506
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassRequest
|
|
507
|
+
*/
|
|
508
|
+
export const QueryClassRequest = {
|
|
509
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassRequest",
|
|
510
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
511
|
+
if (message.classId !== BigInt(0)) {
|
|
512
|
+
writer.uint32(8).uint64(message.classId);
|
|
513
|
+
}
|
|
514
|
+
return writer;
|
|
515
|
+
},
|
|
516
|
+
decode(input, length) {
|
|
517
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
518
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
519
|
+
const message = createBaseQueryClassRequest();
|
|
520
|
+
while (reader.pos < end) {
|
|
521
|
+
const tag = reader.uint32();
|
|
522
|
+
switch (tag >>> 3) {
|
|
523
|
+
case 1:
|
|
524
|
+
message.classId = reader.uint64();
|
|
525
|
+
break;
|
|
526
|
+
default:
|
|
527
|
+
reader.skipType(tag & 7);
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return message;
|
|
532
|
+
},
|
|
533
|
+
fromPartial(object) {
|
|
534
|
+
const message = createBaseQueryClassRequest();
|
|
535
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
536
|
+
return message;
|
|
537
|
+
},
|
|
538
|
+
fromAmino(object) {
|
|
539
|
+
const message = createBaseQueryClassRequest();
|
|
540
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
541
|
+
message.classId = BigInt(object.class_id);
|
|
542
|
+
}
|
|
543
|
+
return message;
|
|
544
|
+
},
|
|
545
|
+
toAmino(message) {
|
|
546
|
+
const obj = {};
|
|
547
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
548
|
+
return obj;
|
|
549
|
+
},
|
|
550
|
+
fromAminoMsg(object) {
|
|
551
|
+
return QueryClassRequest.fromAmino(object.value);
|
|
552
|
+
},
|
|
553
|
+
fromProtoMsg(message) {
|
|
554
|
+
return QueryClassRequest.decode(message.value);
|
|
555
|
+
},
|
|
556
|
+
toProto(message) {
|
|
557
|
+
return QueryClassRequest.encode(message).finish();
|
|
558
|
+
},
|
|
559
|
+
toProtoMsg(message) {
|
|
560
|
+
return {
|
|
561
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassRequest",
|
|
562
|
+
value: QueryClassRequest.encode(message).finish()
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
function createBaseQueryClassResponse() {
|
|
567
|
+
return {
|
|
568
|
+
class: ClassView.fromPartial({})
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* QueryClassResponse defines the QueryClassResponse message.
|
|
573
|
+
* @name QueryClassResponse
|
|
574
|
+
* @package sparkdream.artifact.v1
|
|
575
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassResponse
|
|
576
|
+
*/
|
|
577
|
+
export const QueryClassResponse = {
|
|
578
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassResponse",
|
|
579
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
580
|
+
if (message.class !== undefined) {
|
|
581
|
+
ClassView.encode(message.class, writer.uint32(10).fork()).ldelim();
|
|
582
|
+
}
|
|
583
|
+
return writer;
|
|
584
|
+
},
|
|
585
|
+
decode(input, length) {
|
|
586
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
587
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
588
|
+
const message = createBaseQueryClassResponse();
|
|
589
|
+
while (reader.pos < end) {
|
|
590
|
+
const tag = reader.uint32();
|
|
591
|
+
switch (tag >>> 3) {
|
|
592
|
+
case 1:
|
|
593
|
+
message.class = ClassView.decode(reader, reader.uint32());
|
|
594
|
+
break;
|
|
595
|
+
default:
|
|
596
|
+
reader.skipType(tag & 7);
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
fromPartial(object) {
|
|
603
|
+
const message = createBaseQueryClassResponse();
|
|
604
|
+
message.class = object.class !== undefined && object.class !== null ? ClassView.fromPartial(object.class) : undefined;
|
|
605
|
+
return message;
|
|
606
|
+
},
|
|
607
|
+
fromAmino(object) {
|
|
608
|
+
const message = createBaseQueryClassResponse();
|
|
609
|
+
if (object.class !== undefined && object.class !== null) {
|
|
610
|
+
message.class = ClassView.fromAmino(object.class);
|
|
611
|
+
}
|
|
612
|
+
return message;
|
|
613
|
+
},
|
|
614
|
+
toAmino(message) {
|
|
615
|
+
const obj = {};
|
|
616
|
+
obj.class = message.class ? ClassView.toAmino(message.class) : undefined;
|
|
617
|
+
return obj;
|
|
618
|
+
},
|
|
619
|
+
fromAminoMsg(object) {
|
|
620
|
+
return QueryClassResponse.fromAmino(object.value);
|
|
621
|
+
},
|
|
622
|
+
fromProtoMsg(message) {
|
|
623
|
+
return QueryClassResponse.decode(message.value);
|
|
624
|
+
},
|
|
625
|
+
toProto(message) {
|
|
626
|
+
return QueryClassResponse.encode(message).finish();
|
|
627
|
+
},
|
|
628
|
+
toProtoMsg(message) {
|
|
629
|
+
return {
|
|
630
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassResponse",
|
|
631
|
+
value: QueryClassResponse.encode(message).finish()
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
function createBaseQueryClassesRequest() {
|
|
636
|
+
return {
|
|
637
|
+
pagination: undefined
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* QueryClassesRequest defines the QueryClassesRequest message.
|
|
642
|
+
* @name QueryClassesRequest
|
|
643
|
+
* @package sparkdream.artifact.v1
|
|
644
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassesRequest
|
|
645
|
+
*/
|
|
646
|
+
export const QueryClassesRequest = {
|
|
647
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesRequest",
|
|
648
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
649
|
+
if (message.pagination !== undefined) {
|
|
650
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
651
|
+
}
|
|
652
|
+
return writer;
|
|
653
|
+
},
|
|
654
|
+
decode(input, length) {
|
|
655
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
656
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
657
|
+
const message = createBaseQueryClassesRequest();
|
|
658
|
+
while (reader.pos < end) {
|
|
659
|
+
const tag = reader.uint32();
|
|
660
|
+
switch (tag >>> 3) {
|
|
661
|
+
case 1:
|
|
662
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
663
|
+
break;
|
|
664
|
+
default:
|
|
665
|
+
reader.skipType(tag & 7);
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return message;
|
|
670
|
+
},
|
|
671
|
+
fromPartial(object) {
|
|
672
|
+
const message = createBaseQueryClassesRequest();
|
|
673
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
674
|
+
return message;
|
|
675
|
+
},
|
|
676
|
+
fromAmino(object) {
|
|
677
|
+
const message = createBaseQueryClassesRequest();
|
|
678
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
679
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
680
|
+
}
|
|
681
|
+
return message;
|
|
682
|
+
},
|
|
683
|
+
toAmino(message) {
|
|
684
|
+
const obj = {};
|
|
685
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
686
|
+
return obj;
|
|
687
|
+
},
|
|
688
|
+
fromAminoMsg(object) {
|
|
689
|
+
return QueryClassesRequest.fromAmino(object.value);
|
|
690
|
+
},
|
|
691
|
+
fromProtoMsg(message) {
|
|
692
|
+
return QueryClassesRequest.decode(message.value);
|
|
693
|
+
},
|
|
694
|
+
toProto(message) {
|
|
695
|
+
return QueryClassesRequest.encode(message).finish();
|
|
696
|
+
},
|
|
697
|
+
toProtoMsg(message) {
|
|
698
|
+
return {
|
|
699
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesRequest",
|
|
700
|
+
value: QueryClassesRequest.encode(message).finish()
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
function createBaseQueryClassesResponse() {
|
|
705
|
+
return {
|
|
706
|
+
classes: [],
|
|
707
|
+
pagination: undefined
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* QueryClassesResponse defines the QueryClassesResponse message.
|
|
712
|
+
* @name QueryClassesResponse
|
|
713
|
+
* @package sparkdream.artifact.v1
|
|
714
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassesResponse
|
|
715
|
+
*/
|
|
716
|
+
export const QueryClassesResponse = {
|
|
717
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesResponse",
|
|
718
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
719
|
+
for (const v of message.classes) {
|
|
720
|
+
ClassView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
721
|
+
}
|
|
722
|
+
if (message.pagination !== undefined) {
|
|
723
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
724
|
+
}
|
|
725
|
+
return writer;
|
|
726
|
+
},
|
|
727
|
+
decode(input, length) {
|
|
728
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
729
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
730
|
+
const message = createBaseQueryClassesResponse();
|
|
731
|
+
while (reader.pos < end) {
|
|
732
|
+
const tag = reader.uint32();
|
|
733
|
+
switch (tag >>> 3) {
|
|
734
|
+
case 1:
|
|
735
|
+
message.classes.push(ClassView.decode(reader, reader.uint32()));
|
|
736
|
+
break;
|
|
737
|
+
case 2:
|
|
738
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
739
|
+
break;
|
|
740
|
+
default:
|
|
741
|
+
reader.skipType(tag & 7);
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return message;
|
|
746
|
+
},
|
|
747
|
+
fromPartial(object) {
|
|
748
|
+
const message = createBaseQueryClassesResponse();
|
|
749
|
+
message.classes = object.classes?.map(e => ClassView.fromPartial(e)) || [];
|
|
750
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
751
|
+
return message;
|
|
752
|
+
},
|
|
753
|
+
fromAmino(object) {
|
|
754
|
+
const message = createBaseQueryClassesResponse();
|
|
755
|
+
message.classes = object.classes?.map(e => ClassView.fromAmino(e)) || [];
|
|
756
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
757
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
758
|
+
}
|
|
759
|
+
return message;
|
|
760
|
+
},
|
|
761
|
+
toAmino(message) {
|
|
762
|
+
const obj = {};
|
|
763
|
+
if (message.classes) {
|
|
764
|
+
obj.classes = message.classes.map(e => e ? ClassView.toAmino(e) : undefined);
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
obj.classes = message.classes;
|
|
768
|
+
}
|
|
769
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
770
|
+
return obj;
|
|
771
|
+
},
|
|
772
|
+
fromAminoMsg(object) {
|
|
773
|
+
return QueryClassesResponse.fromAmino(object.value);
|
|
774
|
+
},
|
|
775
|
+
fromProtoMsg(message) {
|
|
776
|
+
return QueryClassesResponse.decode(message.value);
|
|
777
|
+
},
|
|
778
|
+
toProto(message) {
|
|
779
|
+
return QueryClassesResponse.encode(message).finish();
|
|
780
|
+
},
|
|
781
|
+
toProtoMsg(message) {
|
|
782
|
+
return {
|
|
783
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesResponse",
|
|
784
|
+
value: QueryClassesResponse.encode(message).finish()
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
function createBaseQueryClassesByOwnerRequest() {
|
|
789
|
+
return {
|
|
790
|
+
owner: "",
|
|
791
|
+
pagination: undefined
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* QueryClassesByOwnerRequest defines the QueryClassesByOwnerRequest message.
|
|
796
|
+
* @name QueryClassesByOwnerRequest
|
|
797
|
+
* @package sparkdream.artifact.v1
|
|
798
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassesByOwnerRequest
|
|
799
|
+
*/
|
|
800
|
+
export const QueryClassesByOwnerRequest = {
|
|
801
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesByOwnerRequest",
|
|
802
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
803
|
+
if (message.owner !== "") {
|
|
804
|
+
writer.uint32(10).string(message.owner);
|
|
805
|
+
}
|
|
806
|
+
if (message.pagination !== undefined) {
|
|
807
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
808
|
+
}
|
|
809
|
+
return writer;
|
|
810
|
+
},
|
|
811
|
+
decode(input, length) {
|
|
812
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
813
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
814
|
+
const message = createBaseQueryClassesByOwnerRequest();
|
|
815
|
+
while (reader.pos < end) {
|
|
816
|
+
const tag = reader.uint32();
|
|
817
|
+
switch (tag >>> 3) {
|
|
818
|
+
case 1:
|
|
819
|
+
message.owner = reader.string();
|
|
820
|
+
break;
|
|
821
|
+
case 2:
|
|
822
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
823
|
+
break;
|
|
824
|
+
default:
|
|
825
|
+
reader.skipType(tag & 7);
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return message;
|
|
830
|
+
},
|
|
831
|
+
fromPartial(object) {
|
|
832
|
+
const message = createBaseQueryClassesByOwnerRequest();
|
|
833
|
+
message.owner = object.owner ?? "";
|
|
834
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
835
|
+
return message;
|
|
836
|
+
},
|
|
837
|
+
fromAmino(object) {
|
|
838
|
+
const message = createBaseQueryClassesByOwnerRequest();
|
|
839
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
840
|
+
message.owner = object.owner;
|
|
841
|
+
}
|
|
842
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
843
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
844
|
+
}
|
|
845
|
+
return message;
|
|
846
|
+
},
|
|
847
|
+
toAmino(message) {
|
|
848
|
+
const obj = {};
|
|
849
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
850
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
851
|
+
return obj;
|
|
852
|
+
},
|
|
853
|
+
fromAminoMsg(object) {
|
|
854
|
+
return QueryClassesByOwnerRequest.fromAmino(object.value);
|
|
855
|
+
},
|
|
856
|
+
fromProtoMsg(message) {
|
|
857
|
+
return QueryClassesByOwnerRequest.decode(message.value);
|
|
858
|
+
},
|
|
859
|
+
toProto(message) {
|
|
860
|
+
return QueryClassesByOwnerRequest.encode(message).finish();
|
|
861
|
+
},
|
|
862
|
+
toProtoMsg(message) {
|
|
863
|
+
return {
|
|
864
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesByOwnerRequest",
|
|
865
|
+
value: QueryClassesByOwnerRequest.encode(message).finish()
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
function createBaseQueryClassesByOwnerResponse() {
|
|
870
|
+
return {
|
|
871
|
+
classes: [],
|
|
872
|
+
pagination: undefined
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* QueryClassesByOwnerResponse defines the QueryClassesByOwnerResponse message.
|
|
877
|
+
* @name QueryClassesByOwnerResponse
|
|
878
|
+
* @package sparkdream.artifact.v1
|
|
879
|
+
* @see proto type: sparkdream.artifact.v1.QueryClassesByOwnerResponse
|
|
880
|
+
*/
|
|
881
|
+
export const QueryClassesByOwnerResponse = {
|
|
882
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesByOwnerResponse",
|
|
883
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
884
|
+
for (const v of message.classes) {
|
|
885
|
+
ClassView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
886
|
+
}
|
|
887
|
+
if (message.pagination !== undefined) {
|
|
888
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
889
|
+
}
|
|
890
|
+
return writer;
|
|
891
|
+
},
|
|
892
|
+
decode(input, length) {
|
|
893
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
894
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
895
|
+
const message = createBaseQueryClassesByOwnerResponse();
|
|
896
|
+
while (reader.pos < end) {
|
|
897
|
+
const tag = reader.uint32();
|
|
898
|
+
switch (tag >>> 3) {
|
|
899
|
+
case 1:
|
|
900
|
+
message.classes.push(ClassView.decode(reader, reader.uint32()));
|
|
901
|
+
break;
|
|
902
|
+
case 2:
|
|
903
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
904
|
+
break;
|
|
905
|
+
default:
|
|
906
|
+
reader.skipType(tag & 7);
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return message;
|
|
911
|
+
},
|
|
912
|
+
fromPartial(object) {
|
|
913
|
+
const message = createBaseQueryClassesByOwnerResponse();
|
|
914
|
+
message.classes = object.classes?.map(e => ClassView.fromPartial(e)) || [];
|
|
915
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
916
|
+
return message;
|
|
917
|
+
},
|
|
918
|
+
fromAmino(object) {
|
|
919
|
+
const message = createBaseQueryClassesByOwnerResponse();
|
|
920
|
+
message.classes = object.classes?.map(e => ClassView.fromAmino(e)) || [];
|
|
921
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
922
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
923
|
+
}
|
|
924
|
+
return message;
|
|
925
|
+
},
|
|
926
|
+
toAmino(message) {
|
|
927
|
+
const obj = {};
|
|
928
|
+
if (message.classes) {
|
|
929
|
+
obj.classes = message.classes.map(e => e ? ClassView.toAmino(e) : undefined);
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
obj.classes = message.classes;
|
|
933
|
+
}
|
|
934
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
935
|
+
return obj;
|
|
936
|
+
},
|
|
937
|
+
fromAminoMsg(object) {
|
|
938
|
+
return QueryClassesByOwnerResponse.fromAmino(object.value);
|
|
939
|
+
},
|
|
940
|
+
fromProtoMsg(message) {
|
|
941
|
+
return QueryClassesByOwnerResponse.decode(message.value);
|
|
942
|
+
},
|
|
943
|
+
toProto(message) {
|
|
944
|
+
return QueryClassesByOwnerResponse.encode(message).finish();
|
|
945
|
+
},
|
|
946
|
+
toProtoMsg(message) {
|
|
947
|
+
return {
|
|
948
|
+
typeUrl: "/sparkdream.artifact.v1.QueryClassesByOwnerResponse",
|
|
949
|
+
value: QueryClassesByOwnerResponse.encode(message).finish()
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
function createBaseQueryTokenRequest() {
|
|
954
|
+
return {
|
|
955
|
+
classId: BigInt(0),
|
|
956
|
+
tokenId: BigInt(0)
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* QueryTokenRequest defines the QueryTokenRequest message.
|
|
961
|
+
* @name QueryTokenRequest
|
|
962
|
+
* @package sparkdream.artifact.v1
|
|
963
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokenRequest
|
|
964
|
+
*/
|
|
965
|
+
export const QueryTokenRequest = {
|
|
966
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokenRequest",
|
|
967
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
968
|
+
if (message.classId !== BigInt(0)) {
|
|
969
|
+
writer.uint32(8).uint64(message.classId);
|
|
970
|
+
}
|
|
971
|
+
if (message.tokenId !== BigInt(0)) {
|
|
972
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
973
|
+
}
|
|
974
|
+
return writer;
|
|
975
|
+
},
|
|
976
|
+
decode(input, length) {
|
|
977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
978
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
979
|
+
const message = createBaseQueryTokenRequest();
|
|
980
|
+
while (reader.pos < end) {
|
|
981
|
+
const tag = reader.uint32();
|
|
982
|
+
switch (tag >>> 3) {
|
|
983
|
+
case 1:
|
|
984
|
+
message.classId = reader.uint64();
|
|
985
|
+
break;
|
|
986
|
+
case 2:
|
|
987
|
+
message.tokenId = reader.uint64();
|
|
988
|
+
break;
|
|
989
|
+
default:
|
|
990
|
+
reader.skipType(tag & 7);
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return message;
|
|
995
|
+
},
|
|
996
|
+
fromPartial(object) {
|
|
997
|
+
const message = createBaseQueryTokenRequest();
|
|
998
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
999
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1000
|
+
return message;
|
|
1001
|
+
},
|
|
1002
|
+
fromAmino(object) {
|
|
1003
|
+
const message = createBaseQueryTokenRequest();
|
|
1004
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1005
|
+
message.classId = BigInt(object.class_id);
|
|
1006
|
+
}
|
|
1007
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1008
|
+
message.tokenId = BigInt(object.token_id);
|
|
1009
|
+
}
|
|
1010
|
+
return message;
|
|
1011
|
+
},
|
|
1012
|
+
toAmino(message) {
|
|
1013
|
+
const obj = {};
|
|
1014
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1015
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1016
|
+
return obj;
|
|
1017
|
+
},
|
|
1018
|
+
fromAminoMsg(object) {
|
|
1019
|
+
return QueryTokenRequest.fromAmino(object.value);
|
|
1020
|
+
},
|
|
1021
|
+
fromProtoMsg(message) {
|
|
1022
|
+
return QueryTokenRequest.decode(message.value);
|
|
1023
|
+
},
|
|
1024
|
+
toProto(message) {
|
|
1025
|
+
return QueryTokenRequest.encode(message).finish();
|
|
1026
|
+
},
|
|
1027
|
+
toProtoMsg(message) {
|
|
1028
|
+
return {
|
|
1029
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokenRequest",
|
|
1030
|
+
value: QueryTokenRequest.encode(message).finish()
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
function createBaseQueryTokenResponse() {
|
|
1035
|
+
return {
|
|
1036
|
+
token: TokenView.fromPartial({}),
|
|
1037
|
+
listing: undefined
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* QueryTokenResponse defines the QueryTokenResponse message.
|
|
1042
|
+
* @name QueryTokenResponse
|
|
1043
|
+
* @package sparkdream.artifact.v1
|
|
1044
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokenResponse
|
|
1045
|
+
*/
|
|
1046
|
+
export const QueryTokenResponse = {
|
|
1047
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokenResponse",
|
|
1048
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1049
|
+
if (message.token !== undefined) {
|
|
1050
|
+
TokenView.encode(message.token, writer.uint32(10).fork()).ldelim();
|
|
1051
|
+
}
|
|
1052
|
+
if (message.listing !== undefined) {
|
|
1053
|
+
Listing.encode(message.listing, writer.uint32(18).fork()).ldelim();
|
|
1054
|
+
}
|
|
1055
|
+
return writer;
|
|
1056
|
+
},
|
|
1057
|
+
decode(input, length) {
|
|
1058
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1059
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1060
|
+
const message = createBaseQueryTokenResponse();
|
|
1061
|
+
while (reader.pos < end) {
|
|
1062
|
+
const tag = reader.uint32();
|
|
1063
|
+
switch (tag >>> 3) {
|
|
1064
|
+
case 1:
|
|
1065
|
+
message.token = TokenView.decode(reader, reader.uint32());
|
|
1066
|
+
break;
|
|
1067
|
+
case 2:
|
|
1068
|
+
message.listing = Listing.decode(reader, reader.uint32());
|
|
1069
|
+
break;
|
|
1070
|
+
default:
|
|
1071
|
+
reader.skipType(tag & 7);
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return message;
|
|
1076
|
+
},
|
|
1077
|
+
fromPartial(object) {
|
|
1078
|
+
const message = createBaseQueryTokenResponse();
|
|
1079
|
+
message.token = object.token !== undefined && object.token !== null ? TokenView.fromPartial(object.token) : undefined;
|
|
1080
|
+
message.listing = object.listing !== undefined && object.listing !== null ? Listing.fromPartial(object.listing) : undefined;
|
|
1081
|
+
return message;
|
|
1082
|
+
},
|
|
1083
|
+
fromAmino(object) {
|
|
1084
|
+
const message = createBaseQueryTokenResponse();
|
|
1085
|
+
if (object.token !== undefined && object.token !== null) {
|
|
1086
|
+
message.token = TokenView.fromAmino(object.token);
|
|
1087
|
+
}
|
|
1088
|
+
if (object.listing !== undefined && object.listing !== null) {
|
|
1089
|
+
message.listing = Listing.fromAmino(object.listing);
|
|
1090
|
+
}
|
|
1091
|
+
return message;
|
|
1092
|
+
},
|
|
1093
|
+
toAmino(message) {
|
|
1094
|
+
const obj = {};
|
|
1095
|
+
obj.token = message.token ? TokenView.toAmino(message.token) : undefined;
|
|
1096
|
+
obj.listing = message.listing ? Listing.toAmino(message.listing) : undefined;
|
|
1097
|
+
return obj;
|
|
1098
|
+
},
|
|
1099
|
+
fromAminoMsg(object) {
|
|
1100
|
+
return QueryTokenResponse.fromAmino(object.value);
|
|
1101
|
+
},
|
|
1102
|
+
fromProtoMsg(message) {
|
|
1103
|
+
return QueryTokenResponse.decode(message.value);
|
|
1104
|
+
},
|
|
1105
|
+
toProto(message) {
|
|
1106
|
+
return QueryTokenResponse.encode(message).finish();
|
|
1107
|
+
},
|
|
1108
|
+
toProtoMsg(message) {
|
|
1109
|
+
return {
|
|
1110
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokenResponse",
|
|
1111
|
+
value: QueryTokenResponse.encode(message).finish()
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
function createBaseQueryTokensRequest() {
|
|
1116
|
+
return {
|
|
1117
|
+
classId: BigInt(0),
|
|
1118
|
+
pagination: undefined
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* QueryTokensRequest defines the QueryTokensRequest message.
|
|
1123
|
+
* @name QueryTokensRequest
|
|
1124
|
+
* @package sparkdream.artifact.v1
|
|
1125
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokensRequest
|
|
1126
|
+
*/
|
|
1127
|
+
export const QueryTokensRequest = {
|
|
1128
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensRequest",
|
|
1129
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1130
|
+
if (message.classId !== BigInt(0)) {
|
|
1131
|
+
writer.uint32(8).uint64(message.classId);
|
|
1132
|
+
}
|
|
1133
|
+
if (message.pagination !== undefined) {
|
|
1134
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1135
|
+
}
|
|
1136
|
+
return writer;
|
|
1137
|
+
},
|
|
1138
|
+
decode(input, length) {
|
|
1139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1140
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1141
|
+
const message = createBaseQueryTokensRequest();
|
|
1142
|
+
while (reader.pos < end) {
|
|
1143
|
+
const tag = reader.uint32();
|
|
1144
|
+
switch (tag >>> 3) {
|
|
1145
|
+
case 1:
|
|
1146
|
+
message.classId = reader.uint64();
|
|
1147
|
+
break;
|
|
1148
|
+
case 2:
|
|
1149
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1150
|
+
break;
|
|
1151
|
+
default:
|
|
1152
|
+
reader.skipType(tag & 7);
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
return message;
|
|
1157
|
+
},
|
|
1158
|
+
fromPartial(object) {
|
|
1159
|
+
const message = createBaseQueryTokensRequest();
|
|
1160
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1161
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1162
|
+
return message;
|
|
1163
|
+
},
|
|
1164
|
+
fromAmino(object) {
|
|
1165
|
+
const message = createBaseQueryTokensRequest();
|
|
1166
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1167
|
+
message.classId = BigInt(object.class_id);
|
|
1168
|
+
}
|
|
1169
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1170
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1171
|
+
}
|
|
1172
|
+
return message;
|
|
1173
|
+
},
|
|
1174
|
+
toAmino(message) {
|
|
1175
|
+
const obj = {};
|
|
1176
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1177
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1178
|
+
return obj;
|
|
1179
|
+
},
|
|
1180
|
+
fromAminoMsg(object) {
|
|
1181
|
+
return QueryTokensRequest.fromAmino(object.value);
|
|
1182
|
+
},
|
|
1183
|
+
fromProtoMsg(message) {
|
|
1184
|
+
return QueryTokensRequest.decode(message.value);
|
|
1185
|
+
},
|
|
1186
|
+
toProto(message) {
|
|
1187
|
+
return QueryTokensRequest.encode(message).finish();
|
|
1188
|
+
},
|
|
1189
|
+
toProtoMsg(message) {
|
|
1190
|
+
return {
|
|
1191
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensRequest",
|
|
1192
|
+
value: QueryTokensRequest.encode(message).finish()
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
function createBaseQueryTokensResponse() {
|
|
1197
|
+
return {
|
|
1198
|
+
tokens: [],
|
|
1199
|
+
pagination: undefined
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* QueryTokensResponse defines the QueryTokensResponse message.
|
|
1204
|
+
* @name QueryTokensResponse
|
|
1205
|
+
* @package sparkdream.artifact.v1
|
|
1206
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokensResponse
|
|
1207
|
+
*/
|
|
1208
|
+
export const QueryTokensResponse = {
|
|
1209
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensResponse",
|
|
1210
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1211
|
+
for (const v of message.tokens) {
|
|
1212
|
+
TokenView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1213
|
+
}
|
|
1214
|
+
if (message.pagination !== undefined) {
|
|
1215
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1216
|
+
}
|
|
1217
|
+
return writer;
|
|
1218
|
+
},
|
|
1219
|
+
decode(input, length) {
|
|
1220
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1221
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1222
|
+
const message = createBaseQueryTokensResponse();
|
|
1223
|
+
while (reader.pos < end) {
|
|
1224
|
+
const tag = reader.uint32();
|
|
1225
|
+
switch (tag >>> 3) {
|
|
1226
|
+
case 1:
|
|
1227
|
+
message.tokens.push(TokenView.decode(reader, reader.uint32()));
|
|
1228
|
+
break;
|
|
1229
|
+
case 2:
|
|
1230
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1231
|
+
break;
|
|
1232
|
+
default:
|
|
1233
|
+
reader.skipType(tag & 7);
|
|
1234
|
+
break;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
return message;
|
|
1238
|
+
},
|
|
1239
|
+
fromPartial(object) {
|
|
1240
|
+
const message = createBaseQueryTokensResponse();
|
|
1241
|
+
message.tokens = object.tokens?.map(e => TokenView.fromPartial(e)) || [];
|
|
1242
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1243
|
+
return message;
|
|
1244
|
+
},
|
|
1245
|
+
fromAmino(object) {
|
|
1246
|
+
const message = createBaseQueryTokensResponse();
|
|
1247
|
+
message.tokens = object.tokens?.map(e => TokenView.fromAmino(e)) || [];
|
|
1248
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1249
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1250
|
+
}
|
|
1251
|
+
return message;
|
|
1252
|
+
},
|
|
1253
|
+
toAmino(message) {
|
|
1254
|
+
const obj = {};
|
|
1255
|
+
if (message.tokens) {
|
|
1256
|
+
obj.tokens = message.tokens.map(e => e ? TokenView.toAmino(e) : undefined);
|
|
1257
|
+
}
|
|
1258
|
+
else {
|
|
1259
|
+
obj.tokens = message.tokens;
|
|
1260
|
+
}
|
|
1261
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1262
|
+
return obj;
|
|
1263
|
+
},
|
|
1264
|
+
fromAminoMsg(object) {
|
|
1265
|
+
return QueryTokensResponse.fromAmino(object.value);
|
|
1266
|
+
},
|
|
1267
|
+
fromProtoMsg(message) {
|
|
1268
|
+
return QueryTokensResponse.decode(message.value);
|
|
1269
|
+
},
|
|
1270
|
+
toProto(message) {
|
|
1271
|
+
return QueryTokensResponse.encode(message).finish();
|
|
1272
|
+
},
|
|
1273
|
+
toProtoMsg(message) {
|
|
1274
|
+
return {
|
|
1275
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensResponse",
|
|
1276
|
+
value: QueryTokensResponse.encode(message).finish()
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
function createBaseQueryTokensByOwnerRequest() {
|
|
1281
|
+
return {
|
|
1282
|
+
owner: "",
|
|
1283
|
+
classId: BigInt(0),
|
|
1284
|
+
pagination: undefined
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* QueryTokensByOwnerRequest defines the QueryTokensByOwnerRequest message.
|
|
1289
|
+
* @name QueryTokensByOwnerRequest
|
|
1290
|
+
* @package sparkdream.artifact.v1
|
|
1291
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokensByOwnerRequest
|
|
1292
|
+
*/
|
|
1293
|
+
export const QueryTokensByOwnerRequest = {
|
|
1294
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensByOwnerRequest",
|
|
1295
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1296
|
+
if (message.owner !== "") {
|
|
1297
|
+
writer.uint32(10).string(message.owner);
|
|
1298
|
+
}
|
|
1299
|
+
if (message.classId !== BigInt(0)) {
|
|
1300
|
+
writer.uint32(16).uint64(message.classId);
|
|
1301
|
+
}
|
|
1302
|
+
if (message.pagination !== undefined) {
|
|
1303
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
1304
|
+
}
|
|
1305
|
+
return writer;
|
|
1306
|
+
},
|
|
1307
|
+
decode(input, length) {
|
|
1308
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1309
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1310
|
+
const message = createBaseQueryTokensByOwnerRequest();
|
|
1311
|
+
while (reader.pos < end) {
|
|
1312
|
+
const tag = reader.uint32();
|
|
1313
|
+
switch (tag >>> 3) {
|
|
1314
|
+
case 1:
|
|
1315
|
+
message.owner = reader.string();
|
|
1316
|
+
break;
|
|
1317
|
+
case 2:
|
|
1318
|
+
message.classId = reader.uint64();
|
|
1319
|
+
break;
|
|
1320
|
+
case 3:
|
|
1321
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1322
|
+
break;
|
|
1323
|
+
default:
|
|
1324
|
+
reader.skipType(tag & 7);
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
return message;
|
|
1329
|
+
},
|
|
1330
|
+
fromPartial(object) {
|
|
1331
|
+
const message = createBaseQueryTokensByOwnerRequest();
|
|
1332
|
+
message.owner = object.owner ?? "";
|
|
1333
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1334
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1335
|
+
return message;
|
|
1336
|
+
},
|
|
1337
|
+
fromAmino(object) {
|
|
1338
|
+
const message = createBaseQueryTokensByOwnerRequest();
|
|
1339
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
1340
|
+
message.owner = object.owner;
|
|
1341
|
+
}
|
|
1342
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1343
|
+
message.classId = BigInt(object.class_id);
|
|
1344
|
+
}
|
|
1345
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1346
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1347
|
+
}
|
|
1348
|
+
return message;
|
|
1349
|
+
},
|
|
1350
|
+
toAmino(message) {
|
|
1351
|
+
const obj = {};
|
|
1352
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
1353
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1354
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1355
|
+
return obj;
|
|
1356
|
+
},
|
|
1357
|
+
fromAminoMsg(object) {
|
|
1358
|
+
return QueryTokensByOwnerRequest.fromAmino(object.value);
|
|
1359
|
+
},
|
|
1360
|
+
fromProtoMsg(message) {
|
|
1361
|
+
return QueryTokensByOwnerRequest.decode(message.value);
|
|
1362
|
+
},
|
|
1363
|
+
toProto(message) {
|
|
1364
|
+
return QueryTokensByOwnerRequest.encode(message).finish();
|
|
1365
|
+
},
|
|
1366
|
+
toProtoMsg(message) {
|
|
1367
|
+
return {
|
|
1368
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensByOwnerRequest",
|
|
1369
|
+
value: QueryTokensByOwnerRequest.encode(message).finish()
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
function createBaseQueryTokensByOwnerResponse() {
|
|
1374
|
+
return {
|
|
1375
|
+
tokens: [],
|
|
1376
|
+
pagination: undefined
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* QueryTokensByOwnerResponse defines the QueryTokensByOwnerResponse message.
|
|
1381
|
+
* @name QueryTokensByOwnerResponse
|
|
1382
|
+
* @package sparkdream.artifact.v1
|
|
1383
|
+
* @see proto type: sparkdream.artifact.v1.QueryTokensByOwnerResponse
|
|
1384
|
+
*/
|
|
1385
|
+
export const QueryTokensByOwnerResponse = {
|
|
1386
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensByOwnerResponse",
|
|
1387
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1388
|
+
for (const v of message.tokens) {
|
|
1389
|
+
TokenView.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1390
|
+
}
|
|
1391
|
+
if (message.pagination !== undefined) {
|
|
1392
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1393
|
+
}
|
|
1394
|
+
return writer;
|
|
1395
|
+
},
|
|
1396
|
+
decode(input, length) {
|
|
1397
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1398
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1399
|
+
const message = createBaseQueryTokensByOwnerResponse();
|
|
1400
|
+
while (reader.pos < end) {
|
|
1401
|
+
const tag = reader.uint32();
|
|
1402
|
+
switch (tag >>> 3) {
|
|
1403
|
+
case 1:
|
|
1404
|
+
message.tokens.push(TokenView.decode(reader, reader.uint32()));
|
|
1405
|
+
break;
|
|
1406
|
+
case 2:
|
|
1407
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1408
|
+
break;
|
|
1409
|
+
default:
|
|
1410
|
+
reader.skipType(tag & 7);
|
|
1411
|
+
break;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
return message;
|
|
1415
|
+
},
|
|
1416
|
+
fromPartial(object) {
|
|
1417
|
+
const message = createBaseQueryTokensByOwnerResponse();
|
|
1418
|
+
message.tokens = object.tokens?.map(e => TokenView.fromPartial(e)) || [];
|
|
1419
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1420
|
+
return message;
|
|
1421
|
+
},
|
|
1422
|
+
fromAmino(object) {
|
|
1423
|
+
const message = createBaseQueryTokensByOwnerResponse();
|
|
1424
|
+
message.tokens = object.tokens?.map(e => TokenView.fromAmino(e)) || [];
|
|
1425
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1426
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1427
|
+
}
|
|
1428
|
+
return message;
|
|
1429
|
+
},
|
|
1430
|
+
toAmino(message) {
|
|
1431
|
+
const obj = {};
|
|
1432
|
+
if (message.tokens) {
|
|
1433
|
+
obj.tokens = message.tokens.map(e => e ? TokenView.toAmino(e) : undefined);
|
|
1434
|
+
}
|
|
1435
|
+
else {
|
|
1436
|
+
obj.tokens = message.tokens;
|
|
1437
|
+
}
|
|
1438
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1439
|
+
return obj;
|
|
1440
|
+
},
|
|
1441
|
+
fromAminoMsg(object) {
|
|
1442
|
+
return QueryTokensByOwnerResponse.fromAmino(object.value);
|
|
1443
|
+
},
|
|
1444
|
+
fromProtoMsg(message) {
|
|
1445
|
+
return QueryTokensByOwnerResponse.decode(message.value);
|
|
1446
|
+
},
|
|
1447
|
+
toProto(message) {
|
|
1448
|
+
return QueryTokensByOwnerResponse.encode(message).finish();
|
|
1449
|
+
},
|
|
1450
|
+
toProtoMsg(message) {
|
|
1451
|
+
return {
|
|
1452
|
+
typeUrl: "/sparkdream.artifact.v1.QueryTokensByOwnerResponse",
|
|
1453
|
+
value: QueryTokensByOwnerResponse.encode(message).finish()
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
};
|
|
1457
|
+
function createBaseQueryOwnerRequest() {
|
|
1458
|
+
return {
|
|
1459
|
+
classId: BigInt(0),
|
|
1460
|
+
tokenId: BigInt(0)
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* QueryOwnerRequest defines the QueryOwnerRequest message.
|
|
1465
|
+
* @name QueryOwnerRequest
|
|
1466
|
+
* @package sparkdream.artifact.v1
|
|
1467
|
+
* @see proto type: sparkdream.artifact.v1.QueryOwnerRequest
|
|
1468
|
+
*/
|
|
1469
|
+
export const QueryOwnerRequest = {
|
|
1470
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOwnerRequest",
|
|
1471
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1472
|
+
if (message.classId !== BigInt(0)) {
|
|
1473
|
+
writer.uint32(8).uint64(message.classId);
|
|
1474
|
+
}
|
|
1475
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1476
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1477
|
+
}
|
|
1478
|
+
return writer;
|
|
1479
|
+
},
|
|
1480
|
+
decode(input, length) {
|
|
1481
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1482
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1483
|
+
const message = createBaseQueryOwnerRequest();
|
|
1484
|
+
while (reader.pos < end) {
|
|
1485
|
+
const tag = reader.uint32();
|
|
1486
|
+
switch (tag >>> 3) {
|
|
1487
|
+
case 1:
|
|
1488
|
+
message.classId = reader.uint64();
|
|
1489
|
+
break;
|
|
1490
|
+
case 2:
|
|
1491
|
+
message.tokenId = reader.uint64();
|
|
1492
|
+
break;
|
|
1493
|
+
default:
|
|
1494
|
+
reader.skipType(tag & 7);
|
|
1495
|
+
break;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
return message;
|
|
1499
|
+
},
|
|
1500
|
+
fromPartial(object) {
|
|
1501
|
+
const message = createBaseQueryOwnerRequest();
|
|
1502
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1503
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1504
|
+
return message;
|
|
1505
|
+
},
|
|
1506
|
+
fromAmino(object) {
|
|
1507
|
+
const message = createBaseQueryOwnerRequest();
|
|
1508
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1509
|
+
message.classId = BigInt(object.class_id);
|
|
1510
|
+
}
|
|
1511
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1512
|
+
message.tokenId = BigInt(object.token_id);
|
|
1513
|
+
}
|
|
1514
|
+
return message;
|
|
1515
|
+
},
|
|
1516
|
+
toAmino(message) {
|
|
1517
|
+
const obj = {};
|
|
1518
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1519
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1520
|
+
return obj;
|
|
1521
|
+
},
|
|
1522
|
+
fromAminoMsg(object) {
|
|
1523
|
+
return QueryOwnerRequest.fromAmino(object.value);
|
|
1524
|
+
},
|
|
1525
|
+
fromProtoMsg(message) {
|
|
1526
|
+
return QueryOwnerRequest.decode(message.value);
|
|
1527
|
+
},
|
|
1528
|
+
toProto(message) {
|
|
1529
|
+
return QueryOwnerRequest.encode(message).finish();
|
|
1530
|
+
},
|
|
1531
|
+
toProtoMsg(message) {
|
|
1532
|
+
return {
|
|
1533
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOwnerRequest",
|
|
1534
|
+
value: QueryOwnerRequest.encode(message).finish()
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
function createBaseQueryOwnerResponse() {
|
|
1539
|
+
return {
|
|
1540
|
+
owner: ""
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* QueryOwnerResponse defines the QueryOwnerResponse message.
|
|
1545
|
+
* @name QueryOwnerResponse
|
|
1546
|
+
* @package sparkdream.artifact.v1
|
|
1547
|
+
* @see proto type: sparkdream.artifact.v1.QueryOwnerResponse
|
|
1548
|
+
*/
|
|
1549
|
+
export const QueryOwnerResponse = {
|
|
1550
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOwnerResponse",
|
|
1551
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1552
|
+
if (message.owner !== "") {
|
|
1553
|
+
writer.uint32(10).string(message.owner);
|
|
1554
|
+
}
|
|
1555
|
+
return writer;
|
|
1556
|
+
},
|
|
1557
|
+
decode(input, length) {
|
|
1558
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1559
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1560
|
+
const message = createBaseQueryOwnerResponse();
|
|
1561
|
+
while (reader.pos < end) {
|
|
1562
|
+
const tag = reader.uint32();
|
|
1563
|
+
switch (tag >>> 3) {
|
|
1564
|
+
case 1:
|
|
1565
|
+
message.owner = reader.string();
|
|
1566
|
+
break;
|
|
1567
|
+
default:
|
|
1568
|
+
reader.skipType(tag & 7);
|
|
1569
|
+
break;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
return message;
|
|
1573
|
+
},
|
|
1574
|
+
fromPartial(object) {
|
|
1575
|
+
const message = createBaseQueryOwnerResponse();
|
|
1576
|
+
message.owner = object.owner ?? "";
|
|
1577
|
+
return message;
|
|
1578
|
+
},
|
|
1579
|
+
fromAmino(object) {
|
|
1580
|
+
const message = createBaseQueryOwnerResponse();
|
|
1581
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
1582
|
+
message.owner = object.owner;
|
|
1583
|
+
}
|
|
1584
|
+
return message;
|
|
1585
|
+
},
|
|
1586
|
+
toAmino(message) {
|
|
1587
|
+
const obj = {};
|
|
1588
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
1589
|
+
return obj;
|
|
1590
|
+
},
|
|
1591
|
+
fromAminoMsg(object) {
|
|
1592
|
+
return QueryOwnerResponse.fromAmino(object.value);
|
|
1593
|
+
},
|
|
1594
|
+
fromProtoMsg(message) {
|
|
1595
|
+
return QueryOwnerResponse.decode(message.value);
|
|
1596
|
+
},
|
|
1597
|
+
toProto(message) {
|
|
1598
|
+
return QueryOwnerResponse.encode(message).finish();
|
|
1599
|
+
},
|
|
1600
|
+
toProtoMsg(message) {
|
|
1601
|
+
return {
|
|
1602
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOwnerResponse",
|
|
1603
|
+
value: QueryOwnerResponse.encode(message).finish()
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
};
|
|
1607
|
+
function createBaseQuerySupplyRequest() {
|
|
1608
|
+
return {
|
|
1609
|
+
classId: BigInt(0)
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* QuerySupplyRequest defines the QuerySupplyRequest message.
|
|
1614
|
+
* @name QuerySupplyRequest
|
|
1615
|
+
* @package sparkdream.artifact.v1
|
|
1616
|
+
* @see proto type: sparkdream.artifact.v1.QuerySupplyRequest
|
|
1617
|
+
*/
|
|
1618
|
+
export const QuerySupplyRequest = {
|
|
1619
|
+
typeUrl: "/sparkdream.artifact.v1.QuerySupplyRequest",
|
|
1620
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1621
|
+
if (message.classId !== BigInt(0)) {
|
|
1622
|
+
writer.uint32(8).uint64(message.classId);
|
|
1623
|
+
}
|
|
1624
|
+
return writer;
|
|
1625
|
+
},
|
|
1626
|
+
decode(input, length) {
|
|
1627
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1628
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1629
|
+
const message = createBaseQuerySupplyRequest();
|
|
1630
|
+
while (reader.pos < end) {
|
|
1631
|
+
const tag = reader.uint32();
|
|
1632
|
+
switch (tag >>> 3) {
|
|
1633
|
+
case 1:
|
|
1634
|
+
message.classId = reader.uint64();
|
|
1635
|
+
break;
|
|
1636
|
+
default:
|
|
1637
|
+
reader.skipType(tag & 7);
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
return message;
|
|
1642
|
+
},
|
|
1643
|
+
fromPartial(object) {
|
|
1644
|
+
const message = createBaseQuerySupplyRequest();
|
|
1645
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1646
|
+
return message;
|
|
1647
|
+
},
|
|
1648
|
+
fromAmino(object) {
|
|
1649
|
+
const message = createBaseQuerySupplyRequest();
|
|
1650
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1651
|
+
message.classId = BigInt(object.class_id);
|
|
1652
|
+
}
|
|
1653
|
+
return message;
|
|
1654
|
+
},
|
|
1655
|
+
toAmino(message) {
|
|
1656
|
+
const obj = {};
|
|
1657
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1658
|
+
return obj;
|
|
1659
|
+
},
|
|
1660
|
+
fromAminoMsg(object) {
|
|
1661
|
+
return QuerySupplyRequest.fromAmino(object.value);
|
|
1662
|
+
},
|
|
1663
|
+
fromProtoMsg(message) {
|
|
1664
|
+
return QuerySupplyRequest.decode(message.value);
|
|
1665
|
+
},
|
|
1666
|
+
toProto(message) {
|
|
1667
|
+
return QuerySupplyRequest.encode(message).finish();
|
|
1668
|
+
},
|
|
1669
|
+
toProtoMsg(message) {
|
|
1670
|
+
return {
|
|
1671
|
+
typeUrl: "/sparkdream.artifact.v1.QuerySupplyRequest",
|
|
1672
|
+
value: QuerySupplyRequest.encode(message).finish()
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
function createBaseQuerySupplyResponse() {
|
|
1677
|
+
return {
|
|
1678
|
+
supply: BigInt(0),
|
|
1679
|
+
burned: BigInt(0),
|
|
1680
|
+
reservedSupply: BigInt(0),
|
|
1681
|
+
maxSupply: BigInt(0),
|
|
1682
|
+
mintingClosed: false
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* QuerySupplyResponse defines the QuerySupplyResponse message.
|
|
1687
|
+
* @name QuerySupplyResponse
|
|
1688
|
+
* @package sparkdream.artifact.v1
|
|
1689
|
+
* @see proto type: sparkdream.artifact.v1.QuerySupplyResponse
|
|
1690
|
+
*/
|
|
1691
|
+
export const QuerySupplyResponse = {
|
|
1692
|
+
typeUrl: "/sparkdream.artifact.v1.QuerySupplyResponse",
|
|
1693
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1694
|
+
if (message.supply !== BigInt(0)) {
|
|
1695
|
+
writer.uint32(8).uint64(message.supply);
|
|
1696
|
+
}
|
|
1697
|
+
if (message.burned !== BigInt(0)) {
|
|
1698
|
+
writer.uint32(16).uint64(message.burned);
|
|
1699
|
+
}
|
|
1700
|
+
if (message.reservedSupply !== BigInt(0)) {
|
|
1701
|
+
writer.uint32(24).uint64(message.reservedSupply);
|
|
1702
|
+
}
|
|
1703
|
+
if (message.maxSupply !== BigInt(0)) {
|
|
1704
|
+
writer.uint32(32).uint64(message.maxSupply);
|
|
1705
|
+
}
|
|
1706
|
+
if (message.mintingClosed === true) {
|
|
1707
|
+
writer.uint32(40).bool(message.mintingClosed);
|
|
1708
|
+
}
|
|
1709
|
+
return writer;
|
|
1710
|
+
},
|
|
1711
|
+
decode(input, length) {
|
|
1712
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1713
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1714
|
+
const message = createBaseQuerySupplyResponse();
|
|
1715
|
+
while (reader.pos < end) {
|
|
1716
|
+
const tag = reader.uint32();
|
|
1717
|
+
switch (tag >>> 3) {
|
|
1718
|
+
case 1:
|
|
1719
|
+
message.supply = reader.uint64();
|
|
1720
|
+
break;
|
|
1721
|
+
case 2:
|
|
1722
|
+
message.burned = reader.uint64();
|
|
1723
|
+
break;
|
|
1724
|
+
case 3:
|
|
1725
|
+
message.reservedSupply = reader.uint64();
|
|
1726
|
+
break;
|
|
1727
|
+
case 4:
|
|
1728
|
+
message.maxSupply = reader.uint64();
|
|
1729
|
+
break;
|
|
1730
|
+
case 5:
|
|
1731
|
+
message.mintingClosed = reader.bool();
|
|
1732
|
+
break;
|
|
1733
|
+
default:
|
|
1734
|
+
reader.skipType(tag & 7);
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
return message;
|
|
1739
|
+
},
|
|
1740
|
+
fromPartial(object) {
|
|
1741
|
+
const message = createBaseQuerySupplyResponse();
|
|
1742
|
+
message.supply = object.supply !== undefined && object.supply !== null ? BigInt(object.supply.toString()) : BigInt(0);
|
|
1743
|
+
message.burned = object.burned !== undefined && object.burned !== null ? BigInt(object.burned.toString()) : BigInt(0);
|
|
1744
|
+
message.reservedSupply = object.reservedSupply !== undefined && object.reservedSupply !== null ? BigInt(object.reservedSupply.toString()) : BigInt(0);
|
|
1745
|
+
message.maxSupply = object.maxSupply !== undefined && object.maxSupply !== null ? BigInt(object.maxSupply.toString()) : BigInt(0);
|
|
1746
|
+
message.mintingClosed = object.mintingClosed ?? false;
|
|
1747
|
+
return message;
|
|
1748
|
+
},
|
|
1749
|
+
fromAmino(object) {
|
|
1750
|
+
const message = createBaseQuerySupplyResponse();
|
|
1751
|
+
if (object.supply !== undefined && object.supply !== null) {
|
|
1752
|
+
message.supply = BigInt(object.supply);
|
|
1753
|
+
}
|
|
1754
|
+
if (object.burned !== undefined && object.burned !== null) {
|
|
1755
|
+
message.burned = BigInt(object.burned);
|
|
1756
|
+
}
|
|
1757
|
+
if (object.reserved_supply !== undefined && object.reserved_supply !== null) {
|
|
1758
|
+
message.reservedSupply = BigInt(object.reserved_supply);
|
|
1759
|
+
}
|
|
1760
|
+
if (object.max_supply !== undefined && object.max_supply !== null) {
|
|
1761
|
+
message.maxSupply = BigInt(object.max_supply);
|
|
1762
|
+
}
|
|
1763
|
+
if (object.minting_closed !== undefined && object.minting_closed !== null) {
|
|
1764
|
+
message.mintingClosed = object.minting_closed;
|
|
1765
|
+
}
|
|
1766
|
+
return message;
|
|
1767
|
+
},
|
|
1768
|
+
toAmino(message) {
|
|
1769
|
+
const obj = {};
|
|
1770
|
+
obj.supply = message.supply !== BigInt(0) ? message.supply?.toString() : undefined;
|
|
1771
|
+
obj.burned = message.burned !== BigInt(0) ? message.burned?.toString() : undefined;
|
|
1772
|
+
obj.reserved_supply = message.reservedSupply !== BigInt(0) ? message.reservedSupply?.toString() : undefined;
|
|
1773
|
+
obj.max_supply = message.maxSupply !== BigInt(0) ? message.maxSupply?.toString() : undefined;
|
|
1774
|
+
obj.minting_closed = message.mintingClosed === false ? undefined : message.mintingClosed;
|
|
1775
|
+
return obj;
|
|
1776
|
+
},
|
|
1777
|
+
fromAminoMsg(object) {
|
|
1778
|
+
return QuerySupplyResponse.fromAmino(object.value);
|
|
1779
|
+
},
|
|
1780
|
+
fromProtoMsg(message) {
|
|
1781
|
+
return QuerySupplyResponse.decode(message.value);
|
|
1782
|
+
},
|
|
1783
|
+
toProto(message) {
|
|
1784
|
+
return QuerySupplyResponse.encode(message).finish();
|
|
1785
|
+
},
|
|
1786
|
+
toProtoMsg(message) {
|
|
1787
|
+
return {
|
|
1788
|
+
typeUrl: "/sparkdream.artifact.v1.QuerySupplyResponse",
|
|
1789
|
+
value: QuerySupplyResponse.encode(message).finish()
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
function createBaseQueryListingRequest() {
|
|
1794
|
+
return {
|
|
1795
|
+
classId: BigInt(0),
|
|
1796
|
+
tokenId: BigInt(0)
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* QueryListingRequest defines the QueryListingRequest message.
|
|
1801
|
+
* @name QueryListingRequest
|
|
1802
|
+
* @package sparkdream.artifact.v1
|
|
1803
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingRequest
|
|
1804
|
+
*/
|
|
1805
|
+
export const QueryListingRequest = {
|
|
1806
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingRequest",
|
|
1807
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1808
|
+
if (message.classId !== BigInt(0)) {
|
|
1809
|
+
writer.uint32(8).uint64(message.classId);
|
|
1810
|
+
}
|
|
1811
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1812
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1813
|
+
}
|
|
1814
|
+
return writer;
|
|
1815
|
+
},
|
|
1816
|
+
decode(input, length) {
|
|
1817
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1818
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1819
|
+
const message = createBaseQueryListingRequest();
|
|
1820
|
+
while (reader.pos < end) {
|
|
1821
|
+
const tag = reader.uint32();
|
|
1822
|
+
switch (tag >>> 3) {
|
|
1823
|
+
case 1:
|
|
1824
|
+
message.classId = reader.uint64();
|
|
1825
|
+
break;
|
|
1826
|
+
case 2:
|
|
1827
|
+
message.tokenId = reader.uint64();
|
|
1828
|
+
break;
|
|
1829
|
+
default:
|
|
1830
|
+
reader.skipType(tag & 7);
|
|
1831
|
+
break;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
return message;
|
|
1835
|
+
},
|
|
1836
|
+
fromPartial(object) {
|
|
1837
|
+
const message = createBaseQueryListingRequest();
|
|
1838
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1839
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1840
|
+
return message;
|
|
1841
|
+
},
|
|
1842
|
+
fromAmino(object) {
|
|
1843
|
+
const message = createBaseQueryListingRequest();
|
|
1844
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1845
|
+
message.classId = BigInt(object.class_id);
|
|
1846
|
+
}
|
|
1847
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1848
|
+
message.tokenId = BigInt(object.token_id);
|
|
1849
|
+
}
|
|
1850
|
+
return message;
|
|
1851
|
+
},
|
|
1852
|
+
toAmino(message) {
|
|
1853
|
+
const obj = {};
|
|
1854
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1855
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1856
|
+
return obj;
|
|
1857
|
+
},
|
|
1858
|
+
fromAminoMsg(object) {
|
|
1859
|
+
return QueryListingRequest.fromAmino(object.value);
|
|
1860
|
+
},
|
|
1861
|
+
fromProtoMsg(message) {
|
|
1862
|
+
return QueryListingRequest.decode(message.value);
|
|
1863
|
+
},
|
|
1864
|
+
toProto(message) {
|
|
1865
|
+
return QueryListingRequest.encode(message).finish();
|
|
1866
|
+
},
|
|
1867
|
+
toProtoMsg(message) {
|
|
1868
|
+
return {
|
|
1869
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingRequest",
|
|
1870
|
+
value: QueryListingRequest.encode(message).finish()
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
function createBaseQueryListingResponse() {
|
|
1875
|
+
return {
|
|
1876
|
+
listing: Listing.fromPartial({})
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* QueryListingResponse defines the QueryListingResponse message.
|
|
1881
|
+
* @name QueryListingResponse
|
|
1882
|
+
* @package sparkdream.artifact.v1
|
|
1883
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingResponse
|
|
1884
|
+
*/
|
|
1885
|
+
export const QueryListingResponse = {
|
|
1886
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingResponse",
|
|
1887
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1888
|
+
if (message.listing !== undefined) {
|
|
1889
|
+
Listing.encode(message.listing, writer.uint32(10).fork()).ldelim();
|
|
1890
|
+
}
|
|
1891
|
+
return writer;
|
|
1892
|
+
},
|
|
1893
|
+
decode(input, length) {
|
|
1894
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1895
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1896
|
+
const message = createBaseQueryListingResponse();
|
|
1897
|
+
while (reader.pos < end) {
|
|
1898
|
+
const tag = reader.uint32();
|
|
1899
|
+
switch (tag >>> 3) {
|
|
1900
|
+
case 1:
|
|
1901
|
+
message.listing = Listing.decode(reader, reader.uint32());
|
|
1902
|
+
break;
|
|
1903
|
+
default:
|
|
1904
|
+
reader.skipType(tag & 7);
|
|
1905
|
+
break;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
return message;
|
|
1909
|
+
},
|
|
1910
|
+
fromPartial(object) {
|
|
1911
|
+
const message = createBaseQueryListingResponse();
|
|
1912
|
+
message.listing = object.listing !== undefined && object.listing !== null ? Listing.fromPartial(object.listing) : undefined;
|
|
1913
|
+
return message;
|
|
1914
|
+
},
|
|
1915
|
+
fromAmino(object) {
|
|
1916
|
+
const message = createBaseQueryListingResponse();
|
|
1917
|
+
if (object.listing !== undefined && object.listing !== null) {
|
|
1918
|
+
message.listing = Listing.fromAmino(object.listing);
|
|
1919
|
+
}
|
|
1920
|
+
return message;
|
|
1921
|
+
},
|
|
1922
|
+
toAmino(message) {
|
|
1923
|
+
const obj = {};
|
|
1924
|
+
obj.listing = message.listing ? Listing.toAmino(message.listing) : undefined;
|
|
1925
|
+
return obj;
|
|
1926
|
+
},
|
|
1927
|
+
fromAminoMsg(object) {
|
|
1928
|
+
return QueryListingResponse.fromAmino(object.value);
|
|
1929
|
+
},
|
|
1930
|
+
fromProtoMsg(message) {
|
|
1931
|
+
return QueryListingResponse.decode(message.value);
|
|
1932
|
+
},
|
|
1933
|
+
toProto(message) {
|
|
1934
|
+
return QueryListingResponse.encode(message).finish();
|
|
1935
|
+
},
|
|
1936
|
+
toProtoMsg(message) {
|
|
1937
|
+
return {
|
|
1938
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingResponse",
|
|
1939
|
+
value: QueryListingResponse.encode(message).finish()
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
};
|
|
1943
|
+
function createBaseQueryListingsRequest() {
|
|
1944
|
+
return {
|
|
1945
|
+
classId: BigInt(0),
|
|
1946
|
+
pagination: undefined
|
|
1947
|
+
};
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* QueryListingsRequest defines the QueryListingsRequest message.
|
|
1951
|
+
* @name QueryListingsRequest
|
|
1952
|
+
* @package sparkdream.artifact.v1
|
|
1953
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingsRequest
|
|
1954
|
+
*/
|
|
1955
|
+
export const QueryListingsRequest = {
|
|
1956
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsRequest",
|
|
1957
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1958
|
+
if (message.classId !== BigInt(0)) {
|
|
1959
|
+
writer.uint32(8).uint64(message.classId);
|
|
1960
|
+
}
|
|
1961
|
+
if (message.pagination !== undefined) {
|
|
1962
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1963
|
+
}
|
|
1964
|
+
return writer;
|
|
1965
|
+
},
|
|
1966
|
+
decode(input, length) {
|
|
1967
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1968
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1969
|
+
const message = createBaseQueryListingsRequest();
|
|
1970
|
+
while (reader.pos < end) {
|
|
1971
|
+
const tag = reader.uint32();
|
|
1972
|
+
switch (tag >>> 3) {
|
|
1973
|
+
case 1:
|
|
1974
|
+
message.classId = reader.uint64();
|
|
1975
|
+
break;
|
|
1976
|
+
case 2:
|
|
1977
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1978
|
+
break;
|
|
1979
|
+
default:
|
|
1980
|
+
reader.skipType(tag & 7);
|
|
1981
|
+
break;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
return message;
|
|
1985
|
+
},
|
|
1986
|
+
fromPartial(object) {
|
|
1987
|
+
const message = createBaseQueryListingsRequest();
|
|
1988
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1989
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1990
|
+
return message;
|
|
1991
|
+
},
|
|
1992
|
+
fromAmino(object) {
|
|
1993
|
+
const message = createBaseQueryListingsRequest();
|
|
1994
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1995
|
+
message.classId = BigInt(object.class_id);
|
|
1996
|
+
}
|
|
1997
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1998
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1999
|
+
}
|
|
2000
|
+
return message;
|
|
2001
|
+
},
|
|
2002
|
+
toAmino(message) {
|
|
2003
|
+
const obj = {};
|
|
2004
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2005
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2006
|
+
return obj;
|
|
2007
|
+
},
|
|
2008
|
+
fromAminoMsg(object) {
|
|
2009
|
+
return QueryListingsRequest.fromAmino(object.value);
|
|
2010
|
+
},
|
|
2011
|
+
fromProtoMsg(message) {
|
|
2012
|
+
return QueryListingsRequest.decode(message.value);
|
|
2013
|
+
},
|
|
2014
|
+
toProto(message) {
|
|
2015
|
+
return QueryListingsRequest.encode(message).finish();
|
|
2016
|
+
},
|
|
2017
|
+
toProtoMsg(message) {
|
|
2018
|
+
return {
|
|
2019
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsRequest",
|
|
2020
|
+
value: QueryListingsRequest.encode(message).finish()
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
function createBaseQueryListingsResponse() {
|
|
2025
|
+
return {
|
|
2026
|
+
listings: [],
|
|
2027
|
+
pagination: undefined
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* QueryListingsResponse defines the QueryListingsResponse message.
|
|
2032
|
+
* @name QueryListingsResponse
|
|
2033
|
+
* @package sparkdream.artifact.v1
|
|
2034
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingsResponse
|
|
2035
|
+
*/
|
|
2036
|
+
export const QueryListingsResponse = {
|
|
2037
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsResponse",
|
|
2038
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2039
|
+
for (const v of message.listings) {
|
|
2040
|
+
Listing.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2041
|
+
}
|
|
2042
|
+
if (message.pagination !== undefined) {
|
|
2043
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2044
|
+
}
|
|
2045
|
+
return writer;
|
|
2046
|
+
},
|
|
2047
|
+
decode(input, length) {
|
|
2048
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2049
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2050
|
+
const message = createBaseQueryListingsResponse();
|
|
2051
|
+
while (reader.pos < end) {
|
|
2052
|
+
const tag = reader.uint32();
|
|
2053
|
+
switch (tag >>> 3) {
|
|
2054
|
+
case 1:
|
|
2055
|
+
message.listings.push(Listing.decode(reader, reader.uint32()));
|
|
2056
|
+
break;
|
|
2057
|
+
case 2:
|
|
2058
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2059
|
+
break;
|
|
2060
|
+
default:
|
|
2061
|
+
reader.skipType(tag & 7);
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
return message;
|
|
2066
|
+
},
|
|
2067
|
+
fromPartial(object) {
|
|
2068
|
+
const message = createBaseQueryListingsResponse();
|
|
2069
|
+
message.listings = object.listings?.map(e => Listing.fromPartial(e)) || [];
|
|
2070
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2071
|
+
return message;
|
|
2072
|
+
},
|
|
2073
|
+
fromAmino(object) {
|
|
2074
|
+
const message = createBaseQueryListingsResponse();
|
|
2075
|
+
message.listings = object.listings?.map(e => Listing.fromAmino(e)) || [];
|
|
2076
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2077
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2078
|
+
}
|
|
2079
|
+
return message;
|
|
2080
|
+
},
|
|
2081
|
+
toAmino(message) {
|
|
2082
|
+
const obj = {};
|
|
2083
|
+
if (message.listings) {
|
|
2084
|
+
obj.listings = message.listings.map(e => e ? Listing.toAmino(e) : undefined);
|
|
2085
|
+
}
|
|
2086
|
+
else {
|
|
2087
|
+
obj.listings = message.listings;
|
|
2088
|
+
}
|
|
2089
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2090
|
+
return obj;
|
|
2091
|
+
},
|
|
2092
|
+
fromAminoMsg(object) {
|
|
2093
|
+
return QueryListingsResponse.fromAmino(object.value);
|
|
2094
|
+
},
|
|
2095
|
+
fromProtoMsg(message) {
|
|
2096
|
+
return QueryListingsResponse.decode(message.value);
|
|
2097
|
+
},
|
|
2098
|
+
toProto(message) {
|
|
2099
|
+
return QueryListingsResponse.encode(message).finish();
|
|
2100
|
+
},
|
|
2101
|
+
toProtoMsg(message) {
|
|
2102
|
+
return {
|
|
2103
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsResponse",
|
|
2104
|
+
value: QueryListingsResponse.encode(message).finish()
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
};
|
|
2108
|
+
function createBaseQueryListingsBySellerRequest() {
|
|
2109
|
+
return {
|
|
2110
|
+
seller: "",
|
|
2111
|
+
pagination: undefined
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* QueryListingsBySellerRequest defines the QueryListingsBySellerRequest message.
|
|
2116
|
+
* @name QueryListingsBySellerRequest
|
|
2117
|
+
* @package sparkdream.artifact.v1
|
|
2118
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingsBySellerRequest
|
|
2119
|
+
*/
|
|
2120
|
+
export const QueryListingsBySellerRequest = {
|
|
2121
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsBySellerRequest",
|
|
2122
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2123
|
+
if (message.seller !== "") {
|
|
2124
|
+
writer.uint32(10).string(message.seller);
|
|
2125
|
+
}
|
|
2126
|
+
if (message.pagination !== undefined) {
|
|
2127
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2128
|
+
}
|
|
2129
|
+
return writer;
|
|
2130
|
+
},
|
|
2131
|
+
decode(input, length) {
|
|
2132
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2133
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2134
|
+
const message = createBaseQueryListingsBySellerRequest();
|
|
2135
|
+
while (reader.pos < end) {
|
|
2136
|
+
const tag = reader.uint32();
|
|
2137
|
+
switch (tag >>> 3) {
|
|
2138
|
+
case 1:
|
|
2139
|
+
message.seller = reader.string();
|
|
2140
|
+
break;
|
|
2141
|
+
case 2:
|
|
2142
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2143
|
+
break;
|
|
2144
|
+
default:
|
|
2145
|
+
reader.skipType(tag & 7);
|
|
2146
|
+
break;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
return message;
|
|
2150
|
+
},
|
|
2151
|
+
fromPartial(object) {
|
|
2152
|
+
const message = createBaseQueryListingsBySellerRequest();
|
|
2153
|
+
message.seller = object.seller ?? "";
|
|
2154
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2155
|
+
return message;
|
|
2156
|
+
},
|
|
2157
|
+
fromAmino(object) {
|
|
2158
|
+
const message = createBaseQueryListingsBySellerRequest();
|
|
2159
|
+
if (object.seller !== undefined && object.seller !== null) {
|
|
2160
|
+
message.seller = object.seller;
|
|
2161
|
+
}
|
|
2162
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2163
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2164
|
+
}
|
|
2165
|
+
return message;
|
|
2166
|
+
},
|
|
2167
|
+
toAmino(message) {
|
|
2168
|
+
const obj = {};
|
|
2169
|
+
obj.seller = message.seller === "" ? undefined : message.seller;
|
|
2170
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2171
|
+
return obj;
|
|
2172
|
+
},
|
|
2173
|
+
fromAminoMsg(object) {
|
|
2174
|
+
return QueryListingsBySellerRequest.fromAmino(object.value);
|
|
2175
|
+
},
|
|
2176
|
+
fromProtoMsg(message) {
|
|
2177
|
+
return QueryListingsBySellerRequest.decode(message.value);
|
|
2178
|
+
},
|
|
2179
|
+
toProto(message) {
|
|
2180
|
+
return QueryListingsBySellerRequest.encode(message).finish();
|
|
2181
|
+
},
|
|
2182
|
+
toProtoMsg(message) {
|
|
2183
|
+
return {
|
|
2184
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsBySellerRequest",
|
|
2185
|
+
value: QueryListingsBySellerRequest.encode(message).finish()
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
};
|
|
2189
|
+
function createBaseQueryListingsBySellerResponse() {
|
|
2190
|
+
return {
|
|
2191
|
+
listings: [],
|
|
2192
|
+
pagination: undefined
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
/**
|
|
2196
|
+
* QueryListingsBySellerResponse defines the QueryListingsBySellerResponse message.
|
|
2197
|
+
* @name QueryListingsBySellerResponse
|
|
2198
|
+
* @package sparkdream.artifact.v1
|
|
2199
|
+
* @see proto type: sparkdream.artifact.v1.QueryListingsBySellerResponse
|
|
2200
|
+
*/
|
|
2201
|
+
export const QueryListingsBySellerResponse = {
|
|
2202
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsBySellerResponse",
|
|
2203
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2204
|
+
for (const v of message.listings) {
|
|
2205
|
+
Listing.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2206
|
+
}
|
|
2207
|
+
if (message.pagination !== undefined) {
|
|
2208
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2209
|
+
}
|
|
2210
|
+
return writer;
|
|
2211
|
+
},
|
|
2212
|
+
decode(input, length) {
|
|
2213
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2214
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2215
|
+
const message = createBaseQueryListingsBySellerResponse();
|
|
2216
|
+
while (reader.pos < end) {
|
|
2217
|
+
const tag = reader.uint32();
|
|
2218
|
+
switch (tag >>> 3) {
|
|
2219
|
+
case 1:
|
|
2220
|
+
message.listings.push(Listing.decode(reader, reader.uint32()));
|
|
2221
|
+
break;
|
|
2222
|
+
case 2:
|
|
2223
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2224
|
+
break;
|
|
2225
|
+
default:
|
|
2226
|
+
reader.skipType(tag & 7);
|
|
2227
|
+
break;
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
return message;
|
|
2231
|
+
},
|
|
2232
|
+
fromPartial(object) {
|
|
2233
|
+
const message = createBaseQueryListingsBySellerResponse();
|
|
2234
|
+
message.listings = object.listings?.map(e => Listing.fromPartial(e)) || [];
|
|
2235
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2236
|
+
return message;
|
|
2237
|
+
},
|
|
2238
|
+
fromAmino(object) {
|
|
2239
|
+
const message = createBaseQueryListingsBySellerResponse();
|
|
2240
|
+
message.listings = object.listings?.map(e => Listing.fromAmino(e)) || [];
|
|
2241
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2242
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2243
|
+
}
|
|
2244
|
+
return message;
|
|
2245
|
+
},
|
|
2246
|
+
toAmino(message) {
|
|
2247
|
+
const obj = {};
|
|
2248
|
+
if (message.listings) {
|
|
2249
|
+
obj.listings = message.listings.map(e => e ? Listing.toAmino(e) : undefined);
|
|
2250
|
+
}
|
|
2251
|
+
else {
|
|
2252
|
+
obj.listings = message.listings;
|
|
2253
|
+
}
|
|
2254
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2255
|
+
return obj;
|
|
2256
|
+
},
|
|
2257
|
+
fromAminoMsg(object) {
|
|
2258
|
+
return QueryListingsBySellerResponse.fromAmino(object.value);
|
|
2259
|
+
},
|
|
2260
|
+
fromProtoMsg(message) {
|
|
2261
|
+
return QueryListingsBySellerResponse.decode(message.value);
|
|
2262
|
+
},
|
|
2263
|
+
toProto(message) {
|
|
2264
|
+
return QueryListingsBySellerResponse.encode(message).finish();
|
|
2265
|
+
},
|
|
2266
|
+
toProtoMsg(message) {
|
|
2267
|
+
return {
|
|
2268
|
+
typeUrl: "/sparkdream.artifact.v1.QueryListingsBySellerResponse",
|
|
2269
|
+
value: QueryListingsBySellerResponse.encode(message).finish()
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
function createBaseQueryInboxRequest() {
|
|
2274
|
+
return {
|
|
2275
|
+
address: "",
|
|
2276
|
+
pagination: undefined
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* QueryInboxRequest defines the QueryInboxRequest message.
|
|
2281
|
+
* @name QueryInboxRequest
|
|
2282
|
+
* @package sparkdream.artifact.v1
|
|
2283
|
+
* @see proto type: sparkdream.artifact.v1.QueryInboxRequest
|
|
2284
|
+
*/
|
|
2285
|
+
export const QueryInboxRequest = {
|
|
2286
|
+
typeUrl: "/sparkdream.artifact.v1.QueryInboxRequest",
|
|
2287
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2288
|
+
if (message.address !== "") {
|
|
2289
|
+
writer.uint32(10).string(message.address);
|
|
2290
|
+
}
|
|
2291
|
+
if (message.pagination !== undefined) {
|
|
2292
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2293
|
+
}
|
|
2294
|
+
return writer;
|
|
2295
|
+
},
|
|
2296
|
+
decode(input, length) {
|
|
2297
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2298
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2299
|
+
const message = createBaseQueryInboxRequest();
|
|
2300
|
+
while (reader.pos < end) {
|
|
2301
|
+
const tag = reader.uint32();
|
|
2302
|
+
switch (tag >>> 3) {
|
|
2303
|
+
case 1:
|
|
2304
|
+
message.address = reader.string();
|
|
2305
|
+
break;
|
|
2306
|
+
case 2:
|
|
2307
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2308
|
+
break;
|
|
2309
|
+
default:
|
|
2310
|
+
reader.skipType(tag & 7);
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
return message;
|
|
2315
|
+
},
|
|
2316
|
+
fromPartial(object) {
|
|
2317
|
+
const message = createBaseQueryInboxRequest();
|
|
2318
|
+
message.address = object.address ?? "";
|
|
2319
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2320
|
+
return message;
|
|
2321
|
+
},
|
|
2322
|
+
fromAmino(object) {
|
|
2323
|
+
const message = createBaseQueryInboxRequest();
|
|
2324
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2325
|
+
message.address = object.address;
|
|
2326
|
+
}
|
|
2327
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2328
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2329
|
+
}
|
|
2330
|
+
return message;
|
|
2331
|
+
},
|
|
2332
|
+
toAmino(message) {
|
|
2333
|
+
const obj = {};
|
|
2334
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2335
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2336
|
+
return obj;
|
|
2337
|
+
},
|
|
2338
|
+
fromAminoMsg(object) {
|
|
2339
|
+
return QueryInboxRequest.fromAmino(object.value);
|
|
2340
|
+
},
|
|
2341
|
+
fromProtoMsg(message) {
|
|
2342
|
+
return QueryInboxRequest.decode(message.value);
|
|
2343
|
+
},
|
|
2344
|
+
toProto(message) {
|
|
2345
|
+
return QueryInboxRequest.encode(message).finish();
|
|
2346
|
+
},
|
|
2347
|
+
toProtoMsg(message) {
|
|
2348
|
+
return {
|
|
2349
|
+
typeUrl: "/sparkdream.artifact.v1.QueryInboxRequest",
|
|
2350
|
+
value: QueryInboxRequest.encode(message).finish()
|
|
2351
|
+
};
|
|
2352
|
+
}
|
|
2353
|
+
};
|
|
2354
|
+
function createBaseQueryInboxResponse() {
|
|
2355
|
+
return {
|
|
2356
|
+
items: [],
|
|
2357
|
+
inboxCount: 0,
|
|
2358
|
+
pagination: undefined
|
|
2359
|
+
};
|
|
2360
|
+
}
|
|
2361
|
+
/**
|
|
2362
|
+
* QueryInboxResponse defines the QueryInboxResponse message.
|
|
2363
|
+
* @name QueryInboxResponse
|
|
2364
|
+
* @package sparkdream.artifact.v1
|
|
2365
|
+
* @see proto type: sparkdream.artifact.v1.QueryInboxResponse
|
|
2366
|
+
*/
|
|
2367
|
+
export const QueryInboxResponse = {
|
|
2368
|
+
typeUrl: "/sparkdream.artifact.v1.QueryInboxResponse",
|
|
2369
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2370
|
+
for (const v of message.items) {
|
|
2371
|
+
InboxItem.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2372
|
+
}
|
|
2373
|
+
if (message.inboxCount !== 0) {
|
|
2374
|
+
writer.uint32(16).uint32(message.inboxCount);
|
|
2375
|
+
}
|
|
2376
|
+
if (message.pagination !== undefined) {
|
|
2377
|
+
PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
2378
|
+
}
|
|
2379
|
+
return writer;
|
|
2380
|
+
},
|
|
2381
|
+
decode(input, length) {
|
|
2382
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2384
|
+
const message = createBaseQueryInboxResponse();
|
|
2385
|
+
while (reader.pos < end) {
|
|
2386
|
+
const tag = reader.uint32();
|
|
2387
|
+
switch (tag >>> 3) {
|
|
2388
|
+
case 1:
|
|
2389
|
+
message.items.push(InboxItem.decode(reader, reader.uint32()));
|
|
2390
|
+
break;
|
|
2391
|
+
case 2:
|
|
2392
|
+
message.inboxCount = reader.uint32();
|
|
2393
|
+
break;
|
|
2394
|
+
case 3:
|
|
2395
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2396
|
+
break;
|
|
2397
|
+
default:
|
|
2398
|
+
reader.skipType(tag & 7);
|
|
2399
|
+
break;
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
return message;
|
|
2403
|
+
},
|
|
2404
|
+
fromPartial(object) {
|
|
2405
|
+
const message = createBaseQueryInboxResponse();
|
|
2406
|
+
message.items = object.items?.map(e => InboxItem.fromPartial(e)) || [];
|
|
2407
|
+
message.inboxCount = object.inboxCount ?? 0;
|
|
2408
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2409
|
+
return message;
|
|
2410
|
+
},
|
|
2411
|
+
fromAmino(object) {
|
|
2412
|
+
const message = createBaseQueryInboxResponse();
|
|
2413
|
+
message.items = object.items?.map(e => InboxItem.fromAmino(e)) || [];
|
|
2414
|
+
if (object.inbox_count !== undefined && object.inbox_count !== null) {
|
|
2415
|
+
message.inboxCount = object.inbox_count;
|
|
2416
|
+
}
|
|
2417
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2418
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2419
|
+
}
|
|
2420
|
+
return message;
|
|
2421
|
+
},
|
|
2422
|
+
toAmino(message) {
|
|
2423
|
+
const obj = {};
|
|
2424
|
+
if (message.items) {
|
|
2425
|
+
obj.items = message.items.map(e => e ? InboxItem.toAmino(e) : undefined);
|
|
2426
|
+
}
|
|
2427
|
+
else {
|
|
2428
|
+
obj.items = message.items;
|
|
2429
|
+
}
|
|
2430
|
+
obj.inbox_count = message.inboxCount === 0 ? undefined : message.inboxCount;
|
|
2431
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2432
|
+
return obj;
|
|
2433
|
+
},
|
|
2434
|
+
fromAminoMsg(object) {
|
|
2435
|
+
return QueryInboxResponse.fromAmino(object.value);
|
|
2436
|
+
},
|
|
2437
|
+
fromProtoMsg(message) {
|
|
2438
|
+
return QueryInboxResponse.decode(message.value);
|
|
2439
|
+
},
|
|
2440
|
+
toProto(message) {
|
|
2441
|
+
return QueryInboxResponse.encode(message).finish();
|
|
2442
|
+
},
|
|
2443
|
+
toProtoMsg(message) {
|
|
2444
|
+
return {
|
|
2445
|
+
typeUrl: "/sparkdream.artifact.v1.QueryInboxResponse",
|
|
2446
|
+
value: QueryInboxResponse.encode(message).finish()
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
};
|
|
2450
|
+
function createBaseQueryOutboxRequest() {
|
|
2451
|
+
return {
|
|
2452
|
+
address: "",
|
|
2453
|
+
pagination: undefined
|
|
2454
|
+
};
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* QueryOutboxRequest defines the QueryOutboxRequest message.
|
|
2458
|
+
* @name QueryOutboxRequest
|
|
2459
|
+
* @package sparkdream.artifact.v1
|
|
2460
|
+
* @see proto type: sparkdream.artifact.v1.QueryOutboxRequest
|
|
2461
|
+
*/
|
|
2462
|
+
export const QueryOutboxRequest = {
|
|
2463
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOutboxRequest",
|
|
2464
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2465
|
+
if (message.address !== "") {
|
|
2466
|
+
writer.uint32(10).string(message.address);
|
|
2467
|
+
}
|
|
2468
|
+
if (message.pagination !== undefined) {
|
|
2469
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2470
|
+
}
|
|
2471
|
+
return writer;
|
|
2472
|
+
},
|
|
2473
|
+
decode(input, length) {
|
|
2474
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2475
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2476
|
+
const message = createBaseQueryOutboxRequest();
|
|
2477
|
+
while (reader.pos < end) {
|
|
2478
|
+
const tag = reader.uint32();
|
|
2479
|
+
switch (tag >>> 3) {
|
|
2480
|
+
case 1:
|
|
2481
|
+
message.address = reader.string();
|
|
2482
|
+
break;
|
|
2483
|
+
case 2:
|
|
2484
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2485
|
+
break;
|
|
2486
|
+
default:
|
|
2487
|
+
reader.skipType(tag & 7);
|
|
2488
|
+
break;
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
return message;
|
|
2492
|
+
},
|
|
2493
|
+
fromPartial(object) {
|
|
2494
|
+
const message = createBaseQueryOutboxRequest();
|
|
2495
|
+
message.address = object.address ?? "";
|
|
2496
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2497
|
+
return message;
|
|
2498
|
+
},
|
|
2499
|
+
fromAmino(object) {
|
|
2500
|
+
const message = createBaseQueryOutboxRequest();
|
|
2501
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2502
|
+
message.address = object.address;
|
|
2503
|
+
}
|
|
2504
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2505
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2506
|
+
}
|
|
2507
|
+
return message;
|
|
2508
|
+
},
|
|
2509
|
+
toAmino(message) {
|
|
2510
|
+
const obj = {};
|
|
2511
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2512
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2513
|
+
return obj;
|
|
2514
|
+
},
|
|
2515
|
+
fromAminoMsg(object) {
|
|
2516
|
+
return QueryOutboxRequest.fromAmino(object.value);
|
|
2517
|
+
},
|
|
2518
|
+
fromProtoMsg(message) {
|
|
2519
|
+
return QueryOutboxRequest.decode(message.value);
|
|
2520
|
+
},
|
|
2521
|
+
toProto(message) {
|
|
2522
|
+
return QueryOutboxRequest.encode(message).finish();
|
|
2523
|
+
},
|
|
2524
|
+
toProtoMsg(message) {
|
|
2525
|
+
return {
|
|
2526
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOutboxRequest",
|
|
2527
|
+
value: QueryOutboxRequest.encode(message).finish()
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
};
|
|
2531
|
+
function createBaseQueryOutboxResponse() {
|
|
2532
|
+
return {
|
|
2533
|
+
items: [],
|
|
2534
|
+
pagination: undefined
|
|
2535
|
+
};
|
|
2536
|
+
}
|
|
2537
|
+
/**
|
|
2538
|
+
* QueryOutboxResponse defines the QueryOutboxResponse message.
|
|
2539
|
+
* @name QueryOutboxResponse
|
|
2540
|
+
* @package sparkdream.artifact.v1
|
|
2541
|
+
* @see proto type: sparkdream.artifact.v1.QueryOutboxResponse
|
|
2542
|
+
*/
|
|
2543
|
+
export const QueryOutboxResponse = {
|
|
2544
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOutboxResponse",
|
|
2545
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2546
|
+
for (const v of message.items) {
|
|
2547
|
+
InboxItem.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2548
|
+
}
|
|
2549
|
+
if (message.pagination !== undefined) {
|
|
2550
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2551
|
+
}
|
|
2552
|
+
return writer;
|
|
2553
|
+
},
|
|
2554
|
+
decode(input, length) {
|
|
2555
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2556
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2557
|
+
const message = createBaseQueryOutboxResponse();
|
|
2558
|
+
while (reader.pos < end) {
|
|
2559
|
+
const tag = reader.uint32();
|
|
2560
|
+
switch (tag >>> 3) {
|
|
2561
|
+
case 1:
|
|
2562
|
+
message.items.push(InboxItem.decode(reader, reader.uint32()));
|
|
2563
|
+
break;
|
|
2564
|
+
case 2:
|
|
2565
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2566
|
+
break;
|
|
2567
|
+
default:
|
|
2568
|
+
reader.skipType(tag & 7);
|
|
2569
|
+
break;
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
return message;
|
|
2573
|
+
},
|
|
2574
|
+
fromPartial(object) {
|
|
2575
|
+
const message = createBaseQueryOutboxResponse();
|
|
2576
|
+
message.items = object.items?.map(e => InboxItem.fromPartial(e)) || [];
|
|
2577
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2578
|
+
return message;
|
|
2579
|
+
},
|
|
2580
|
+
fromAmino(object) {
|
|
2581
|
+
const message = createBaseQueryOutboxResponse();
|
|
2582
|
+
message.items = object.items?.map(e => InboxItem.fromAmino(e)) || [];
|
|
2583
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2584
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2585
|
+
}
|
|
2586
|
+
return message;
|
|
2587
|
+
},
|
|
2588
|
+
toAmino(message) {
|
|
2589
|
+
const obj = {};
|
|
2590
|
+
if (message.items) {
|
|
2591
|
+
obj.items = message.items.map(e => e ? InboxItem.toAmino(e) : undefined);
|
|
2592
|
+
}
|
|
2593
|
+
else {
|
|
2594
|
+
obj.items = message.items;
|
|
2595
|
+
}
|
|
2596
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2597
|
+
return obj;
|
|
2598
|
+
},
|
|
2599
|
+
fromAminoMsg(object) {
|
|
2600
|
+
return QueryOutboxResponse.fromAmino(object.value);
|
|
2601
|
+
},
|
|
2602
|
+
fromProtoMsg(message) {
|
|
2603
|
+
return QueryOutboxResponse.decode(message.value);
|
|
2604
|
+
},
|
|
2605
|
+
toProto(message) {
|
|
2606
|
+
return QueryOutboxResponse.encode(message).finish();
|
|
2607
|
+
},
|
|
2608
|
+
toProtoMsg(message) {
|
|
2609
|
+
return {
|
|
2610
|
+
typeUrl: "/sparkdream.artifact.v1.QueryOutboxResponse",
|
|
2611
|
+
value: QueryOutboxResponse.encode(message).finish()
|
|
2612
|
+
};
|
|
2613
|
+
}
|
|
2614
|
+
};
|
|
2615
|
+
function createBaseQueryReceivePolicyRequest() {
|
|
2616
|
+
return {
|
|
2617
|
+
address: ""
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* QueryReceivePolicyRequest defines the QueryReceivePolicyRequest message.
|
|
2622
|
+
* @name QueryReceivePolicyRequest
|
|
2623
|
+
* @package sparkdream.artifact.v1
|
|
2624
|
+
* @see proto type: sparkdream.artifact.v1.QueryReceivePolicyRequest
|
|
2625
|
+
*/
|
|
2626
|
+
export const QueryReceivePolicyRequest = {
|
|
2627
|
+
typeUrl: "/sparkdream.artifact.v1.QueryReceivePolicyRequest",
|
|
2628
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2629
|
+
if (message.address !== "") {
|
|
2630
|
+
writer.uint32(10).string(message.address);
|
|
2631
|
+
}
|
|
2632
|
+
return writer;
|
|
2633
|
+
},
|
|
2634
|
+
decode(input, length) {
|
|
2635
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2636
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2637
|
+
const message = createBaseQueryReceivePolicyRequest();
|
|
2638
|
+
while (reader.pos < end) {
|
|
2639
|
+
const tag = reader.uint32();
|
|
2640
|
+
switch (tag >>> 3) {
|
|
2641
|
+
case 1:
|
|
2642
|
+
message.address = reader.string();
|
|
2643
|
+
break;
|
|
2644
|
+
default:
|
|
2645
|
+
reader.skipType(tag & 7);
|
|
2646
|
+
break;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
return message;
|
|
2650
|
+
},
|
|
2651
|
+
fromPartial(object) {
|
|
2652
|
+
const message = createBaseQueryReceivePolicyRequest();
|
|
2653
|
+
message.address = object.address ?? "";
|
|
2654
|
+
return message;
|
|
2655
|
+
},
|
|
2656
|
+
fromAmino(object) {
|
|
2657
|
+
const message = createBaseQueryReceivePolicyRequest();
|
|
2658
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2659
|
+
message.address = object.address;
|
|
2660
|
+
}
|
|
2661
|
+
return message;
|
|
2662
|
+
},
|
|
2663
|
+
toAmino(message) {
|
|
2664
|
+
const obj = {};
|
|
2665
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2666
|
+
return obj;
|
|
2667
|
+
},
|
|
2668
|
+
fromAminoMsg(object) {
|
|
2669
|
+
return QueryReceivePolicyRequest.fromAmino(object.value);
|
|
2670
|
+
},
|
|
2671
|
+
fromProtoMsg(message) {
|
|
2672
|
+
return QueryReceivePolicyRequest.decode(message.value);
|
|
2673
|
+
},
|
|
2674
|
+
toProto(message) {
|
|
2675
|
+
return QueryReceivePolicyRequest.encode(message).finish();
|
|
2676
|
+
},
|
|
2677
|
+
toProtoMsg(message) {
|
|
2678
|
+
return {
|
|
2679
|
+
typeUrl: "/sparkdream.artifact.v1.QueryReceivePolicyRequest",
|
|
2680
|
+
value: QueryReceivePolicyRequest.encode(message).finish()
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
};
|
|
2684
|
+
function createBaseQueryReceivePolicyResponse() {
|
|
2685
|
+
return {
|
|
2686
|
+
policy: 0,
|
|
2687
|
+
isDefault: false
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* QueryReceivePolicyResponse defines the QueryReceivePolicyResponse message.
|
|
2692
|
+
* @name QueryReceivePolicyResponse
|
|
2693
|
+
* @package sparkdream.artifact.v1
|
|
2694
|
+
* @see proto type: sparkdream.artifact.v1.QueryReceivePolicyResponse
|
|
2695
|
+
*/
|
|
2696
|
+
export const QueryReceivePolicyResponse = {
|
|
2697
|
+
typeUrl: "/sparkdream.artifact.v1.QueryReceivePolicyResponse",
|
|
2698
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2699
|
+
if (message.policy !== 0) {
|
|
2700
|
+
writer.uint32(8).int32(message.policy);
|
|
2701
|
+
}
|
|
2702
|
+
if (message.isDefault === true) {
|
|
2703
|
+
writer.uint32(16).bool(message.isDefault);
|
|
2704
|
+
}
|
|
2705
|
+
return writer;
|
|
2706
|
+
},
|
|
2707
|
+
decode(input, length) {
|
|
2708
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2709
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2710
|
+
const message = createBaseQueryReceivePolicyResponse();
|
|
2711
|
+
while (reader.pos < end) {
|
|
2712
|
+
const tag = reader.uint32();
|
|
2713
|
+
switch (tag >>> 3) {
|
|
2714
|
+
case 1:
|
|
2715
|
+
message.policy = reader.int32();
|
|
2716
|
+
break;
|
|
2717
|
+
case 2:
|
|
2718
|
+
message.isDefault = reader.bool();
|
|
2719
|
+
break;
|
|
2720
|
+
default:
|
|
2721
|
+
reader.skipType(tag & 7);
|
|
2722
|
+
break;
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
return message;
|
|
2726
|
+
},
|
|
2727
|
+
fromPartial(object) {
|
|
2728
|
+
const message = createBaseQueryReceivePolicyResponse();
|
|
2729
|
+
message.policy = object.policy ?? 0;
|
|
2730
|
+
message.isDefault = object.isDefault ?? false;
|
|
2731
|
+
return message;
|
|
2732
|
+
},
|
|
2733
|
+
fromAmino(object) {
|
|
2734
|
+
const message = createBaseQueryReceivePolicyResponse();
|
|
2735
|
+
if (object.policy !== undefined && object.policy !== null) {
|
|
2736
|
+
message.policy = object.policy;
|
|
2737
|
+
}
|
|
2738
|
+
if (object.is_default !== undefined && object.is_default !== null) {
|
|
2739
|
+
message.isDefault = object.is_default;
|
|
2740
|
+
}
|
|
2741
|
+
return message;
|
|
2742
|
+
},
|
|
2743
|
+
toAmino(message) {
|
|
2744
|
+
const obj = {};
|
|
2745
|
+
obj.policy = message.policy === 0 ? undefined : message.policy;
|
|
2746
|
+
obj.is_default = message.isDefault === false ? undefined : message.isDefault;
|
|
2747
|
+
return obj;
|
|
2748
|
+
},
|
|
2749
|
+
fromAminoMsg(object) {
|
|
2750
|
+
return QueryReceivePolicyResponse.fromAmino(object.value);
|
|
2751
|
+
},
|
|
2752
|
+
fromProtoMsg(message) {
|
|
2753
|
+
return QueryReceivePolicyResponse.decode(message.value);
|
|
2754
|
+
},
|
|
2755
|
+
toProto(message) {
|
|
2756
|
+
return QueryReceivePolicyResponse.encode(message).finish();
|
|
2757
|
+
},
|
|
2758
|
+
toProtoMsg(message) {
|
|
2759
|
+
return {
|
|
2760
|
+
typeUrl: "/sparkdream.artifact.v1.QueryReceivePolicyResponse",
|
|
2761
|
+
value: QueryReceivePolicyResponse.encode(message).finish()
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
};
|
|
2765
|
+
function createBaseQueryPendingClassOwnerRequest() {
|
|
2766
|
+
return {
|
|
2767
|
+
classId: BigInt(0)
|
|
2768
|
+
};
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* QueryPendingClassOwnerRequest defines the QueryPendingClassOwnerRequest message.
|
|
2772
|
+
* @name QueryPendingClassOwnerRequest
|
|
2773
|
+
* @package sparkdream.artifact.v1
|
|
2774
|
+
* @see proto type: sparkdream.artifact.v1.QueryPendingClassOwnerRequest
|
|
2775
|
+
*/
|
|
2776
|
+
export const QueryPendingClassOwnerRequest = {
|
|
2777
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPendingClassOwnerRequest",
|
|
2778
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2779
|
+
if (message.classId !== BigInt(0)) {
|
|
2780
|
+
writer.uint32(8).uint64(message.classId);
|
|
2781
|
+
}
|
|
2782
|
+
return writer;
|
|
2783
|
+
},
|
|
2784
|
+
decode(input, length) {
|
|
2785
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2786
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2787
|
+
const message = createBaseQueryPendingClassOwnerRequest();
|
|
2788
|
+
while (reader.pos < end) {
|
|
2789
|
+
const tag = reader.uint32();
|
|
2790
|
+
switch (tag >>> 3) {
|
|
2791
|
+
case 1:
|
|
2792
|
+
message.classId = reader.uint64();
|
|
2793
|
+
break;
|
|
2794
|
+
default:
|
|
2795
|
+
reader.skipType(tag & 7);
|
|
2796
|
+
break;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
return message;
|
|
2800
|
+
},
|
|
2801
|
+
fromPartial(object) {
|
|
2802
|
+
const message = createBaseQueryPendingClassOwnerRequest();
|
|
2803
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
2804
|
+
return message;
|
|
2805
|
+
},
|
|
2806
|
+
fromAmino(object) {
|
|
2807
|
+
const message = createBaseQueryPendingClassOwnerRequest();
|
|
2808
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
2809
|
+
message.classId = BigInt(object.class_id);
|
|
2810
|
+
}
|
|
2811
|
+
return message;
|
|
2812
|
+
},
|
|
2813
|
+
toAmino(message) {
|
|
2814
|
+
const obj = {};
|
|
2815
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2816
|
+
return obj;
|
|
2817
|
+
},
|
|
2818
|
+
fromAminoMsg(object) {
|
|
2819
|
+
return QueryPendingClassOwnerRequest.fromAmino(object.value);
|
|
2820
|
+
},
|
|
2821
|
+
fromProtoMsg(message) {
|
|
2822
|
+
return QueryPendingClassOwnerRequest.decode(message.value);
|
|
2823
|
+
},
|
|
2824
|
+
toProto(message) {
|
|
2825
|
+
return QueryPendingClassOwnerRequest.encode(message).finish();
|
|
2826
|
+
},
|
|
2827
|
+
toProtoMsg(message) {
|
|
2828
|
+
return {
|
|
2829
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPendingClassOwnerRequest",
|
|
2830
|
+
value: QueryPendingClassOwnerRequest.encode(message).finish()
|
|
2831
|
+
};
|
|
2832
|
+
}
|
|
2833
|
+
};
|
|
2834
|
+
function createBaseQueryPendingClassOwnerResponse() {
|
|
2835
|
+
return {
|
|
2836
|
+
pending: PendingClassOwner.fromPartial({})
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* QueryPendingClassOwnerResponse defines the QueryPendingClassOwnerResponse message.
|
|
2841
|
+
* @name QueryPendingClassOwnerResponse
|
|
2842
|
+
* @package sparkdream.artifact.v1
|
|
2843
|
+
* @see proto type: sparkdream.artifact.v1.QueryPendingClassOwnerResponse
|
|
2844
|
+
*/
|
|
2845
|
+
export const QueryPendingClassOwnerResponse = {
|
|
2846
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPendingClassOwnerResponse",
|
|
2847
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2848
|
+
if (message.pending !== undefined) {
|
|
2849
|
+
PendingClassOwner.encode(message.pending, writer.uint32(10).fork()).ldelim();
|
|
2850
|
+
}
|
|
2851
|
+
return writer;
|
|
2852
|
+
},
|
|
2853
|
+
decode(input, length) {
|
|
2854
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2856
|
+
const message = createBaseQueryPendingClassOwnerResponse();
|
|
2857
|
+
while (reader.pos < end) {
|
|
2858
|
+
const tag = reader.uint32();
|
|
2859
|
+
switch (tag >>> 3) {
|
|
2860
|
+
case 1:
|
|
2861
|
+
message.pending = PendingClassOwner.decode(reader, reader.uint32());
|
|
2862
|
+
break;
|
|
2863
|
+
default:
|
|
2864
|
+
reader.skipType(tag & 7);
|
|
2865
|
+
break;
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
return message;
|
|
2869
|
+
},
|
|
2870
|
+
fromPartial(object) {
|
|
2871
|
+
const message = createBaseQueryPendingClassOwnerResponse();
|
|
2872
|
+
message.pending = object.pending !== undefined && object.pending !== null ? PendingClassOwner.fromPartial(object.pending) : undefined;
|
|
2873
|
+
return message;
|
|
2874
|
+
},
|
|
2875
|
+
fromAmino(object) {
|
|
2876
|
+
const message = createBaseQueryPendingClassOwnerResponse();
|
|
2877
|
+
if (object.pending !== undefined && object.pending !== null) {
|
|
2878
|
+
message.pending = PendingClassOwner.fromAmino(object.pending);
|
|
2879
|
+
}
|
|
2880
|
+
return message;
|
|
2881
|
+
},
|
|
2882
|
+
toAmino(message) {
|
|
2883
|
+
const obj = {};
|
|
2884
|
+
obj.pending = message.pending ? PendingClassOwner.toAmino(message.pending) : undefined;
|
|
2885
|
+
return obj;
|
|
2886
|
+
},
|
|
2887
|
+
fromAminoMsg(object) {
|
|
2888
|
+
return QueryPendingClassOwnerResponse.fromAmino(object.value);
|
|
2889
|
+
},
|
|
2890
|
+
fromProtoMsg(message) {
|
|
2891
|
+
return QueryPendingClassOwnerResponse.decode(message.value);
|
|
2892
|
+
},
|
|
2893
|
+
toProto(message) {
|
|
2894
|
+
return QueryPendingClassOwnerResponse.encode(message).finish();
|
|
2895
|
+
},
|
|
2896
|
+
toProtoMsg(message) {
|
|
2897
|
+
return {
|
|
2898
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPendingClassOwnerResponse",
|
|
2899
|
+
value: QueryPendingClassOwnerResponse.encode(message).finish()
|
|
2900
|
+
};
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
function createBaseQueryHideRecordRequest() {
|
|
2904
|
+
return {
|
|
2905
|
+
hideId: BigInt(0)
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
/**
|
|
2909
|
+
* QueryHideRecordRequest defines the QueryHideRecordRequest message.
|
|
2910
|
+
* @name QueryHideRecordRequest
|
|
2911
|
+
* @package sparkdream.artifact.v1
|
|
2912
|
+
* @see proto type: sparkdream.artifact.v1.QueryHideRecordRequest
|
|
2913
|
+
*/
|
|
2914
|
+
export const QueryHideRecordRequest = {
|
|
2915
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordRequest",
|
|
2916
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2917
|
+
if (message.hideId !== BigInt(0)) {
|
|
2918
|
+
writer.uint32(8).uint64(message.hideId);
|
|
2919
|
+
}
|
|
2920
|
+
return writer;
|
|
2921
|
+
},
|
|
2922
|
+
decode(input, length) {
|
|
2923
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2924
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2925
|
+
const message = createBaseQueryHideRecordRequest();
|
|
2926
|
+
while (reader.pos < end) {
|
|
2927
|
+
const tag = reader.uint32();
|
|
2928
|
+
switch (tag >>> 3) {
|
|
2929
|
+
case 1:
|
|
2930
|
+
message.hideId = reader.uint64();
|
|
2931
|
+
break;
|
|
2932
|
+
default:
|
|
2933
|
+
reader.skipType(tag & 7);
|
|
2934
|
+
break;
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
return message;
|
|
2938
|
+
},
|
|
2939
|
+
fromPartial(object) {
|
|
2940
|
+
const message = createBaseQueryHideRecordRequest();
|
|
2941
|
+
message.hideId = object.hideId !== undefined && object.hideId !== null ? BigInt(object.hideId.toString()) : BigInt(0);
|
|
2942
|
+
return message;
|
|
2943
|
+
},
|
|
2944
|
+
fromAmino(object) {
|
|
2945
|
+
const message = createBaseQueryHideRecordRequest();
|
|
2946
|
+
if (object.hide_id !== undefined && object.hide_id !== null) {
|
|
2947
|
+
message.hideId = BigInt(object.hide_id);
|
|
2948
|
+
}
|
|
2949
|
+
return message;
|
|
2950
|
+
},
|
|
2951
|
+
toAmino(message) {
|
|
2952
|
+
const obj = {};
|
|
2953
|
+
obj.hide_id = message.hideId !== BigInt(0) ? message.hideId?.toString() : undefined;
|
|
2954
|
+
return obj;
|
|
2955
|
+
},
|
|
2956
|
+
fromAminoMsg(object) {
|
|
2957
|
+
return QueryHideRecordRequest.fromAmino(object.value);
|
|
2958
|
+
},
|
|
2959
|
+
fromProtoMsg(message) {
|
|
2960
|
+
return QueryHideRecordRequest.decode(message.value);
|
|
2961
|
+
},
|
|
2962
|
+
toProto(message) {
|
|
2963
|
+
return QueryHideRecordRequest.encode(message).finish();
|
|
2964
|
+
},
|
|
2965
|
+
toProtoMsg(message) {
|
|
2966
|
+
return {
|
|
2967
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordRequest",
|
|
2968
|
+
value: QueryHideRecordRequest.encode(message).finish()
|
|
2969
|
+
};
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
function createBaseQueryHideRecordResponse() {
|
|
2973
|
+
return {
|
|
2974
|
+
record: HideRecord.fromPartial({})
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
/**
|
|
2978
|
+
* QueryHideRecordResponse defines the QueryHideRecordResponse message.
|
|
2979
|
+
* @name QueryHideRecordResponse
|
|
2980
|
+
* @package sparkdream.artifact.v1
|
|
2981
|
+
* @see proto type: sparkdream.artifact.v1.QueryHideRecordResponse
|
|
2982
|
+
*/
|
|
2983
|
+
export const QueryHideRecordResponse = {
|
|
2984
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordResponse",
|
|
2985
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2986
|
+
if (message.record !== undefined) {
|
|
2987
|
+
HideRecord.encode(message.record, writer.uint32(10).fork()).ldelim();
|
|
2988
|
+
}
|
|
2989
|
+
return writer;
|
|
2990
|
+
},
|
|
2991
|
+
decode(input, length) {
|
|
2992
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2993
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2994
|
+
const message = createBaseQueryHideRecordResponse();
|
|
2995
|
+
while (reader.pos < end) {
|
|
2996
|
+
const tag = reader.uint32();
|
|
2997
|
+
switch (tag >>> 3) {
|
|
2998
|
+
case 1:
|
|
2999
|
+
message.record = HideRecord.decode(reader, reader.uint32());
|
|
3000
|
+
break;
|
|
3001
|
+
default:
|
|
3002
|
+
reader.skipType(tag & 7);
|
|
3003
|
+
break;
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
return message;
|
|
3007
|
+
},
|
|
3008
|
+
fromPartial(object) {
|
|
3009
|
+
const message = createBaseQueryHideRecordResponse();
|
|
3010
|
+
message.record = object.record !== undefined && object.record !== null ? HideRecord.fromPartial(object.record) : undefined;
|
|
3011
|
+
return message;
|
|
3012
|
+
},
|
|
3013
|
+
fromAmino(object) {
|
|
3014
|
+
const message = createBaseQueryHideRecordResponse();
|
|
3015
|
+
if (object.record !== undefined && object.record !== null) {
|
|
3016
|
+
message.record = HideRecord.fromAmino(object.record);
|
|
3017
|
+
}
|
|
3018
|
+
return message;
|
|
3019
|
+
},
|
|
3020
|
+
toAmino(message) {
|
|
3021
|
+
const obj = {};
|
|
3022
|
+
obj.record = message.record ? HideRecord.toAmino(message.record) : undefined;
|
|
3023
|
+
return obj;
|
|
3024
|
+
},
|
|
3025
|
+
fromAminoMsg(object) {
|
|
3026
|
+
return QueryHideRecordResponse.fromAmino(object.value);
|
|
3027
|
+
},
|
|
3028
|
+
fromProtoMsg(message) {
|
|
3029
|
+
return QueryHideRecordResponse.decode(message.value);
|
|
3030
|
+
},
|
|
3031
|
+
toProto(message) {
|
|
3032
|
+
return QueryHideRecordResponse.encode(message).finish();
|
|
3033
|
+
},
|
|
3034
|
+
toProtoMsg(message) {
|
|
3035
|
+
return {
|
|
3036
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordResponse",
|
|
3037
|
+
value: QueryHideRecordResponse.encode(message).finish()
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3040
|
+
};
|
|
3041
|
+
function createBaseQueryHideRecordsByTargetRequest() {
|
|
3042
|
+
return {
|
|
3043
|
+
classId: BigInt(0),
|
|
3044
|
+
tokenId: BigInt(0)
|
|
3045
|
+
};
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* QueryHideRecordsByTargetRequest defines the QueryHideRecordsByTargetRequest message.
|
|
3049
|
+
* @name QueryHideRecordsByTargetRequest
|
|
3050
|
+
* @package sparkdream.artifact.v1
|
|
3051
|
+
* @see proto type: sparkdream.artifact.v1.QueryHideRecordsByTargetRequest
|
|
3052
|
+
*/
|
|
3053
|
+
export const QueryHideRecordsByTargetRequest = {
|
|
3054
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordsByTargetRequest",
|
|
3055
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3056
|
+
if (message.classId !== BigInt(0)) {
|
|
3057
|
+
writer.uint32(8).uint64(message.classId);
|
|
3058
|
+
}
|
|
3059
|
+
if (message.tokenId !== BigInt(0)) {
|
|
3060
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
3061
|
+
}
|
|
3062
|
+
return writer;
|
|
3063
|
+
},
|
|
3064
|
+
decode(input, length) {
|
|
3065
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3066
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3067
|
+
const message = createBaseQueryHideRecordsByTargetRequest();
|
|
3068
|
+
while (reader.pos < end) {
|
|
3069
|
+
const tag = reader.uint32();
|
|
3070
|
+
switch (tag >>> 3) {
|
|
3071
|
+
case 1:
|
|
3072
|
+
message.classId = reader.uint64();
|
|
3073
|
+
break;
|
|
3074
|
+
case 2:
|
|
3075
|
+
message.tokenId = reader.uint64();
|
|
3076
|
+
break;
|
|
3077
|
+
default:
|
|
3078
|
+
reader.skipType(tag & 7);
|
|
3079
|
+
break;
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
return message;
|
|
3083
|
+
},
|
|
3084
|
+
fromPartial(object) {
|
|
3085
|
+
const message = createBaseQueryHideRecordsByTargetRequest();
|
|
3086
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
3087
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
3088
|
+
return message;
|
|
3089
|
+
},
|
|
3090
|
+
fromAmino(object) {
|
|
3091
|
+
const message = createBaseQueryHideRecordsByTargetRequest();
|
|
3092
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
3093
|
+
message.classId = BigInt(object.class_id);
|
|
3094
|
+
}
|
|
3095
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
3096
|
+
message.tokenId = BigInt(object.token_id);
|
|
3097
|
+
}
|
|
3098
|
+
return message;
|
|
3099
|
+
},
|
|
3100
|
+
toAmino(message) {
|
|
3101
|
+
const obj = {};
|
|
3102
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
3103
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
3104
|
+
return obj;
|
|
3105
|
+
},
|
|
3106
|
+
fromAminoMsg(object) {
|
|
3107
|
+
return QueryHideRecordsByTargetRequest.fromAmino(object.value);
|
|
3108
|
+
},
|
|
3109
|
+
fromProtoMsg(message) {
|
|
3110
|
+
return QueryHideRecordsByTargetRequest.decode(message.value);
|
|
3111
|
+
},
|
|
3112
|
+
toProto(message) {
|
|
3113
|
+
return QueryHideRecordsByTargetRequest.encode(message).finish();
|
|
3114
|
+
},
|
|
3115
|
+
toProtoMsg(message) {
|
|
3116
|
+
return {
|
|
3117
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordsByTargetRequest",
|
|
3118
|
+
value: QueryHideRecordsByTargetRequest.encode(message).finish()
|
|
3119
|
+
};
|
|
3120
|
+
}
|
|
3121
|
+
};
|
|
3122
|
+
function createBaseQueryHideRecordsByTargetResponse() {
|
|
3123
|
+
return {
|
|
3124
|
+
records: []
|
|
3125
|
+
};
|
|
3126
|
+
}
|
|
3127
|
+
/**
|
|
3128
|
+
* QueryHideRecordsByTargetResponse defines the QueryHideRecordsByTargetResponse message.
|
|
3129
|
+
* @name QueryHideRecordsByTargetResponse
|
|
3130
|
+
* @package sparkdream.artifact.v1
|
|
3131
|
+
* @see proto type: sparkdream.artifact.v1.QueryHideRecordsByTargetResponse
|
|
3132
|
+
*/
|
|
3133
|
+
export const QueryHideRecordsByTargetResponse = {
|
|
3134
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordsByTargetResponse",
|
|
3135
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3136
|
+
for (const v of message.records) {
|
|
3137
|
+
HideRecord.encode(v, writer.uint32(10).fork()).ldelim();
|
|
3138
|
+
}
|
|
3139
|
+
return writer;
|
|
3140
|
+
},
|
|
3141
|
+
decode(input, length) {
|
|
3142
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3144
|
+
const message = createBaseQueryHideRecordsByTargetResponse();
|
|
3145
|
+
while (reader.pos < end) {
|
|
3146
|
+
const tag = reader.uint32();
|
|
3147
|
+
switch (tag >>> 3) {
|
|
3148
|
+
case 1:
|
|
3149
|
+
message.records.push(HideRecord.decode(reader, reader.uint32()));
|
|
3150
|
+
break;
|
|
3151
|
+
default:
|
|
3152
|
+
reader.skipType(tag & 7);
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
return message;
|
|
3157
|
+
},
|
|
3158
|
+
fromPartial(object) {
|
|
3159
|
+
const message = createBaseQueryHideRecordsByTargetResponse();
|
|
3160
|
+
message.records = object.records?.map(e => HideRecord.fromPartial(e)) || [];
|
|
3161
|
+
return message;
|
|
3162
|
+
},
|
|
3163
|
+
fromAmino(object) {
|
|
3164
|
+
const message = createBaseQueryHideRecordsByTargetResponse();
|
|
3165
|
+
message.records = object.records?.map(e => HideRecord.fromAmino(e)) || [];
|
|
3166
|
+
return message;
|
|
3167
|
+
},
|
|
3168
|
+
toAmino(message) {
|
|
3169
|
+
const obj = {};
|
|
3170
|
+
if (message.records) {
|
|
3171
|
+
obj.records = message.records.map(e => e ? HideRecord.toAmino(e) : undefined);
|
|
3172
|
+
}
|
|
3173
|
+
else {
|
|
3174
|
+
obj.records = message.records;
|
|
3175
|
+
}
|
|
3176
|
+
return obj;
|
|
3177
|
+
},
|
|
3178
|
+
fromAminoMsg(object) {
|
|
3179
|
+
return QueryHideRecordsByTargetResponse.fromAmino(object.value);
|
|
3180
|
+
},
|
|
3181
|
+
fromProtoMsg(message) {
|
|
3182
|
+
return QueryHideRecordsByTargetResponse.decode(message.value);
|
|
3183
|
+
},
|
|
3184
|
+
toProto(message) {
|
|
3185
|
+
return QueryHideRecordsByTargetResponse.encode(message).finish();
|
|
3186
|
+
},
|
|
3187
|
+
toProtoMsg(message) {
|
|
3188
|
+
return {
|
|
3189
|
+
typeUrl: "/sparkdream.artifact.v1.QueryHideRecordsByTargetResponse",
|
|
3190
|
+
value: QueryHideRecordsByTargetResponse.encode(message).finish()
|
|
3191
|
+
};
|
|
3192
|
+
}
|
|
3193
|
+
};
|
|
3194
|
+
function createBaseQueryPublicMintQuoteRequest() {
|
|
3195
|
+
return {
|
|
3196
|
+
classId: BigInt(0),
|
|
3197
|
+
buyer: "",
|
|
3198
|
+
quantity: 0
|
|
3199
|
+
};
|
|
3200
|
+
}
|
|
3201
|
+
/**
|
|
3202
|
+
* QueryPublicMintQuoteRequest defines the QueryPublicMintQuoteRequest message.
|
|
3203
|
+
* @name QueryPublicMintQuoteRequest
|
|
3204
|
+
* @package sparkdream.artifact.v1
|
|
3205
|
+
* @see proto type: sparkdream.artifact.v1.QueryPublicMintQuoteRequest
|
|
3206
|
+
*/
|
|
3207
|
+
export const QueryPublicMintQuoteRequest = {
|
|
3208
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPublicMintQuoteRequest",
|
|
3209
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3210
|
+
if (message.classId !== BigInt(0)) {
|
|
3211
|
+
writer.uint32(8).uint64(message.classId);
|
|
3212
|
+
}
|
|
3213
|
+
if (message.buyer !== "") {
|
|
3214
|
+
writer.uint32(18).string(message.buyer);
|
|
3215
|
+
}
|
|
3216
|
+
if (message.quantity !== 0) {
|
|
3217
|
+
writer.uint32(24).uint32(message.quantity);
|
|
3218
|
+
}
|
|
3219
|
+
return writer;
|
|
3220
|
+
},
|
|
3221
|
+
decode(input, length) {
|
|
3222
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3223
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3224
|
+
const message = createBaseQueryPublicMintQuoteRequest();
|
|
3225
|
+
while (reader.pos < end) {
|
|
3226
|
+
const tag = reader.uint32();
|
|
3227
|
+
switch (tag >>> 3) {
|
|
3228
|
+
case 1:
|
|
3229
|
+
message.classId = reader.uint64();
|
|
3230
|
+
break;
|
|
3231
|
+
case 2:
|
|
3232
|
+
message.buyer = reader.string();
|
|
3233
|
+
break;
|
|
3234
|
+
case 3:
|
|
3235
|
+
message.quantity = reader.uint32();
|
|
3236
|
+
break;
|
|
3237
|
+
default:
|
|
3238
|
+
reader.skipType(tag & 7);
|
|
3239
|
+
break;
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
return message;
|
|
3243
|
+
},
|
|
3244
|
+
fromPartial(object) {
|
|
3245
|
+
const message = createBaseQueryPublicMintQuoteRequest();
|
|
3246
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
3247
|
+
message.buyer = object.buyer ?? "";
|
|
3248
|
+
message.quantity = object.quantity ?? 0;
|
|
3249
|
+
return message;
|
|
3250
|
+
},
|
|
3251
|
+
fromAmino(object) {
|
|
3252
|
+
const message = createBaseQueryPublicMintQuoteRequest();
|
|
3253
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
3254
|
+
message.classId = BigInt(object.class_id);
|
|
3255
|
+
}
|
|
3256
|
+
if (object.buyer !== undefined && object.buyer !== null) {
|
|
3257
|
+
message.buyer = object.buyer;
|
|
3258
|
+
}
|
|
3259
|
+
if (object.quantity !== undefined && object.quantity !== null) {
|
|
3260
|
+
message.quantity = object.quantity;
|
|
3261
|
+
}
|
|
3262
|
+
return message;
|
|
3263
|
+
},
|
|
3264
|
+
toAmino(message) {
|
|
3265
|
+
const obj = {};
|
|
3266
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
3267
|
+
obj.buyer = message.buyer === "" ? undefined : message.buyer;
|
|
3268
|
+
obj.quantity = message.quantity === 0 ? undefined : message.quantity;
|
|
3269
|
+
return obj;
|
|
3270
|
+
},
|
|
3271
|
+
fromAminoMsg(object) {
|
|
3272
|
+
return QueryPublicMintQuoteRequest.fromAmino(object.value);
|
|
3273
|
+
},
|
|
3274
|
+
fromProtoMsg(message) {
|
|
3275
|
+
return QueryPublicMintQuoteRequest.decode(message.value);
|
|
3276
|
+
},
|
|
3277
|
+
toProto(message) {
|
|
3278
|
+
return QueryPublicMintQuoteRequest.encode(message).finish();
|
|
3279
|
+
},
|
|
3280
|
+
toProtoMsg(message) {
|
|
3281
|
+
return {
|
|
3282
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPublicMintQuoteRequest",
|
|
3283
|
+
value: QueryPublicMintQuoteRequest.encode(message).finish()
|
|
3284
|
+
};
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
function createBaseQueryPublicMintQuoteResponse() {
|
|
3288
|
+
return {
|
|
3289
|
+
totalPrice: Coin.fromPartial({}),
|
|
3290
|
+
fee: Coin.fromPartial({}),
|
|
3291
|
+
deposit: Coin.fromPartial({}),
|
|
3292
|
+
remainingAllowance: BigInt(0),
|
|
3293
|
+
available: false,
|
|
3294
|
+
reason: ""
|
|
3295
|
+
};
|
|
3296
|
+
}
|
|
3297
|
+
/**
|
|
3298
|
+
* QueryPublicMintQuoteResponse defines the QueryPublicMintQuoteResponse message.
|
|
3299
|
+
* @name QueryPublicMintQuoteResponse
|
|
3300
|
+
* @package sparkdream.artifact.v1
|
|
3301
|
+
* @see proto type: sparkdream.artifact.v1.QueryPublicMintQuoteResponse
|
|
3302
|
+
*/
|
|
3303
|
+
export const QueryPublicMintQuoteResponse = {
|
|
3304
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPublicMintQuoteResponse",
|
|
3305
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3306
|
+
if (message.totalPrice !== undefined) {
|
|
3307
|
+
Coin.encode(message.totalPrice, writer.uint32(10).fork()).ldelim();
|
|
3308
|
+
}
|
|
3309
|
+
if (message.fee !== undefined) {
|
|
3310
|
+
Coin.encode(message.fee, writer.uint32(18).fork()).ldelim();
|
|
3311
|
+
}
|
|
3312
|
+
if (message.deposit !== undefined) {
|
|
3313
|
+
Coin.encode(message.deposit, writer.uint32(26).fork()).ldelim();
|
|
3314
|
+
}
|
|
3315
|
+
if (message.remainingAllowance !== BigInt(0)) {
|
|
3316
|
+
writer.uint32(32).int64(message.remainingAllowance);
|
|
3317
|
+
}
|
|
3318
|
+
if (message.available === true) {
|
|
3319
|
+
writer.uint32(40).bool(message.available);
|
|
3320
|
+
}
|
|
3321
|
+
if (message.reason !== "") {
|
|
3322
|
+
writer.uint32(50).string(message.reason);
|
|
3323
|
+
}
|
|
3324
|
+
return writer;
|
|
3325
|
+
},
|
|
3326
|
+
decode(input, length) {
|
|
3327
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3328
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3329
|
+
const message = createBaseQueryPublicMintQuoteResponse();
|
|
3330
|
+
while (reader.pos < end) {
|
|
3331
|
+
const tag = reader.uint32();
|
|
3332
|
+
switch (tag >>> 3) {
|
|
3333
|
+
case 1:
|
|
3334
|
+
message.totalPrice = Coin.decode(reader, reader.uint32());
|
|
3335
|
+
break;
|
|
3336
|
+
case 2:
|
|
3337
|
+
message.fee = Coin.decode(reader, reader.uint32());
|
|
3338
|
+
break;
|
|
3339
|
+
case 3:
|
|
3340
|
+
message.deposit = Coin.decode(reader, reader.uint32());
|
|
3341
|
+
break;
|
|
3342
|
+
case 4:
|
|
3343
|
+
message.remainingAllowance = reader.int64();
|
|
3344
|
+
break;
|
|
3345
|
+
case 5:
|
|
3346
|
+
message.available = reader.bool();
|
|
3347
|
+
break;
|
|
3348
|
+
case 6:
|
|
3349
|
+
message.reason = reader.string();
|
|
3350
|
+
break;
|
|
3351
|
+
default:
|
|
3352
|
+
reader.skipType(tag & 7);
|
|
3353
|
+
break;
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
return message;
|
|
3357
|
+
},
|
|
3358
|
+
fromPartial(object) {
|
|
3359
|
+
const message = createBaseQueryPublicMintQuoteResponse();
|
|
3360
|
+
message.totalPrice = object.totalPrice !== undefined && object.totalPrice !== null ? Coin.fromPartial(object.totalPrice) : undefined;
|
|
3361
|
+
message.fee = object.fee !== undefined && object.fee !== null ? Coin.fromPartial(object.fee) : undefined;
|
|
3362
|
+
message.deposit = object.deposit !== undefined && object.deposit !== null ? Coin.fromPartial(object.deposit) : undefined;
|
|
3363
|
+
message.remainingAllowance = object.remainingAllowance !== undefined && object.remainingAllowance !== null ? BigInt(object.remainingAllowance.toString()) : BigInt(0);
|
|
3364
|
+
message.available = object.available ?? false;
|
|
3365
|
+
message.reason = object.reason ?? "";
|
|
3366
|
+
return message;
|
|
3367
|
+
},
|
|
3368
|
+
fromAmino(object) {
|
|
3369
|
+
const message = createBaseQueryPublicMintQuoteResponse();
|
|
3370
|
+
if (object.total_price !== undefined && object.total_price !== null) {
|
|
3371
|
+
message.totalPrice = Coin.fromAmino(object.total_price);
|
|
3372
|
+
}
|
|
3373
|
+
if (object.fee !== undefined && object.fee !== null) {
|
|
3374
|
+
message.fee = Coin.fromAmino(object.fee);
|
|
3375
|
+
}
|
|
3376
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
3377
|
+
message.deposit = Coin.fromAmino(object.deposit);
|
|
3378
|
+
}
|
|
3379
|
+
if (object.remaining_allowance !== undefined && object.remaining_allowance !== null) {
|
|
3380
|
+
message.remainingAllowance = BigInt(object.remaining_allowance);
|
|
3381
|
+
}
|
|
3382
|
+
if (object.available !== undefined && object.available !== null) {
|
|
3383
|
+
message.available = object.available;
|
|
3384
|
+
}
|
|
3385
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
3386
|
+
message.reason = object.reason;
|
|
3387
|
+
}
|
|
3388
|
+
return message;
|
|
3389
|
+
},
|
|
3390
|
+
toAmino(message) {
|
|
3391
|
+
const obj = {};
|
|
3392
|
+
obj.total_price = message.totalPrice ? Coin.toAmino(message.totalPrice) : undefined;
|
|
3393
|
+
obj.fee = message.fee ? Coin.toAmino(message.fee) : undefined;
|
|
3394
|
+
obj.deposit = message.deposit ? Coin.toAmino(message.deposit) : undefined;
|
|
3395
|
+
obj.remaining_allowance = message.remainingAllowance !== BigInt(0) ? message.remainingAllowance?.toString() : undefined;
|
|
3396
|
+
obj.available = message.available === false ? undefined : message.available;
|
|
3397
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
3398
|
+
return obj;
|
|
3399
|
+
},
|
|
3400
|
+
fromAminoMsg(object) {
|
|
3401
|
+
return QueryPublicMintQuoteResponse.fromAmino(object.value);
|
|
3402
|
+
},
|
|
3403
|
+
fromProtoMsg(message) {
|
|
3404
|
+
return QueryPublicMintQuoteResponse.decode(message.value);
|
|
3405
|
+
},
|
|
3406
|
+
toProto(message) {
|
|
3407
|
+
return QueryPublicMintQuoteResponse.encode(message).finish();
|
|
3408
|
+
},
|
|
3409
|
+
toProtoMsg(message) {
|
|
3410
|
+
return {
|
|
3411
|
+
typeUrl: "/sparkdream.artifact.v1.QueryPublicMintQuoteResponse",
|
|
3412
|
+
value: QueryPublicMintQuoteResponse.encode(message).finish()
|
|
3413
|
+
};
|
|
3414
|
+
}
|
|
3415
|
+
};
|