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