@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,2620 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SentinelDailyHideEntry = exports.QueueCursor = exports.PublicMintCountEntry = exports.ReceivePolicyEntry = exports.HideRecord = exports.PendingClassOwner = exports.Listing = exports.PendingMint = exports.PendingTransfer = exports.TokenRef = exports.Token = exports.TokenMetadata = exports.Attribute = exports.RoyaltyShare = exports.Class = exports.MintPolicy = exports.ClassFlags = exports.BurnAuthorizationAmino = exports.BurnAuthorization = exports.HideOutcomeAmino = exports.HideOutcome = exports.HideTargetKindAmino = exports.HideTargetKind = exports.InboxKindAmino = exports.InboxKind = exports.ReceivePolicyAmino = exports.ReceivePolicy = exports.TokenLockAmino = exports.TokenLock = exports.ContentStatusAmino = exports.ContentStatus = void 0;
|
|
4
|
+
exports.contentStatusFromJSON = contentStatusFromJSON;
|
|
5
|
+
exports.contentStatusToJSON = contentStatusToJSON;
|
|
6
|
+
exports.tokenLockFromJSON = tokenLockFromJSON;
|
|
7
|
+
exports.tokenLockToJSON = tokenLockToJSON;
|
|
8
|
+
exports.receivePolicyFromJSON = receivePolicyFromJSON;
|
|
9
|
+
exports.receivePolicyToJSON = receivePolicyToJSON;
|
|
10
|
+
exports.inboxKindFromJSON = inboxKindFromJSON;
|
|
11
|
+
exports.inboxKindToJSON = inboxKindToJSON;
|
|
12
|
+
exports.hideTargetKindFromJSON = hideTargetKindFromJSON;
|
|
13
|
+
exports.hideTargetKindToJSON = hideTargetKindToJSON;
|
|
14
|
+
exports.hideOutcomeFromJSON = hideOutcomeFromJSON;
|
|
15
|
+
exports.hideOutcomeToJSON = hideOutcomeToJSON;
|
|
16
|
+
exports.burnAuthorizationFromJSON = burnAuthorizationFromJSON;
|
|
17
|
+
exports.burnAuthorizationToJSON = burnAuthorizationToJSON;
|
|
18
|
+
//@ts-nocheck
|
|
19
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
20
|
+
const binary_1 = require("../../../binary");
|
|
21
|
+
/** ContentStatus is the moderation status of a class or token. */
|
|
22
|
+
var ContentStatus;
|
|
23
|
+
(function (ContentStatus) {
|
|
24
|
+
ContentStatus[ContentStatus["CONTENT_STATUS_UNSPECIFIED"] = 0] = "CONTENT_STATUS_UNSPECIFIED";
|
|
25
|
+
ContentStatus[ContentStatus["CONTENT_STATUS_ACTIVE"] = 1] = "CONTENT_STATUS_ACTIVE";
|
|
26
|
+
ContentStatus[ContentStatus["CONTENT_STATUS_HIDDEN"] = 2] = "CONTENT_STATUS_HIDDEN";
|
|
27
|
+
ContentStatus[ContentStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
28
|
+
})(ContentStatus || (exports.ContentStatus = ContentStatus = {}));
|
|
29
|
+
exports.ContentStatusAmino = ContentStatus;
|
|
30
|
+
function contentStatusFromJSON(object) {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "CONTENT_STATUS_UNSPECIFIED":
|
|
34
|
+
return ContentStatus.CONTENT_STATUS_UNSPECIFIED;
|
|
35
|
+
case 1:
|
|
36
|
+
case "CONTENT_STATUS_ACTIVE":
|
|
37
|
+
return ContentStatus.CONTENT_STATUS_ACTIVE;
|
|
38
|
+
case 2:
|
|
39
|
+
case "CONTENT_STATUS_HIDDEN":
|
|
40
|
+
return ContentStatus.CONTENT_STATUS_HIDDEN;
|
|
41
|
+
case -1:
|
|
42
|
+
case "UNRECOGNIZED":
|
|
43
|
+
default:
|
|
44
|
+
return ContentStatus.UNRECOGNIZED;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function contentStatusToJSON(object) {
|
|
48
|
+
switch (object) {
|
|
49
|
+
case ContentStatus.CONTENT_STATUS_UNSPECIFIED:
|
|
50
|
+
return "CONTENT_STATUS_UNSPECIFIED";
|
|
51
|
+
case ContentStatus.CONTENT_STATUS_ACTIVE:
|
|
52
|
+
return "CONTENT_STATUS_ACTIVE";
|
|
53
|
+
case ContentStatus.CONTENT_STATUS_HIDDEN:
|
|
54
|
+
return "CONTENT_STATUS_HIDDEN";
|
|
55
|
+
case ContentStatus.UNRECOGNIZED:
|
|
56
|
+
default:
|
|
57
|
+
return "UNRECOGNIZED";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* TokenLock is the single lock a token can hold at a time. Every lock is
|
|
62
|
+
* exclusive: a locked token cannot be transferred, listed, burned or take a
|
|
63
|
+
* second lock. Future locks (rentals, nesting) are appended here; see
|
|
64
|
+
* docs/x-artifact-spec.md §16.2.
|
|
65
|
+
*/
|
|
66
|
+
var TokenLock;
|
|
67
|
+
(function (TokenLock) {
|
|
68
|
+
TokenLock[TokenLock["TOKEN_LOCK_NONE"] = 0] = "TOKEN_LOCK_NONE";
|
|
69
|
+
TokenLock[TokenLock["TOKEN_LOCK_LISTED"] = 1] = "TOKEN_LOCK_LISTED";
|
|
70
|
+
TokenLock[TokenLock["TOKEN_LOCK_PENDING_TRANSFER"] = 2] = "TOKEN_LOCK_PENDING_TRANSFER";
|
|
71
|
+
TokenLock[TokenLock["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
72
|
+
})(TokenLock || (exports.TokenLock = TokenLock = {}));
|
|
73
|
+
exports.TokenLockAmino = TokenLock;
|
|
74
|
+
function tokenLockFromJSON(object) {
|
|
75
|
+
switch (object) {
|
|
76
|
+
case 0:
|
|
77
|
+
case "TOKEN_LOCK_NONE":
|
|
78
|
+
return TokenLock.TOKEN_LOCK_NONE;
|
|
79
|
+
case 1:
|
|
80
|
+
case "TOKEN_LOCK_LISTED":
|
|
81
|
+
return TokenLock.TOKEN_LOCK_LISTED;
|
|
82
|
+
case 2:
|
|
83
|
+
case "TOKEN_LOCK_PENDING_TRANSFER":
|
|
84
|
+
return TokenLock.TOKEN_LOCK_PENDING_TRANSFER;
|
|
85
|
+
case -1:
|
|
86
|
+
case "UNRECOGNIZED":
|
|
87
|
+
default:
|
|
88
|
+
return TokenLock.UNRECOGNIZED;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function tokenLockToJSON(object) {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case TokenLock.TOKEN_LOCK_NONE:
|
|
94
|
+
return "TOKEN_LOCK_NONE";
|
|
95
|
+
case TokenLock.TOKEN_LOCK_LISTED:
|
|
96
|
+
return "TOKEN_LOCK_LISTED";
|
|
97
|
+
case TokenLock.TOKEN_LOCK_PENDING_TRANSFER:
|
|
98
|
+
return "TOKEN_LOCK_PENDING_TRANSFER";
|
|
99
|
+
case TokenLock.UNRECOGNIZED:
|
|
100
|
+
default:
|
|
101
|
+
return "UNRECOGNIZED";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* ReceivePolicy controls whether incoming tokens are delivered directly or
|
|
106
|
+
* held in the recipient's inbox until accepted.
|
|
107
|
+
*/
|
|
108
|
+
var ReceivePolicy;
|
|
109
|
+
(function (ReceivePolicy) {
|
|
110
|
+
/** RECEIVE_POLICY_UNSPECIFIED - Use params.default_receive_policy. */
|
|
111
|
+
ReceivePolicy[ReceivePolicy["RECEIVE_POLICY_UNSPECIFIED"] = 0] = "RECEIVE_POLICY_UNSPECIFIED";
|
|
112
|
+
/** RECEIVE_POLICY_OPEN - Accept every incoming token immediately. */
|
|
113
|
+
ReceivePolicy[ReceivePolicy["RECEIVE_POLICY_OPEN"] = 1] = "RECEIVE_POLICY_OPEN";
|
|
114
|
+
/**
|
|
115
|
+
* RECEIVE_POLICY_MEMBERS - Accept immediately from trusted senders (active x/rep members and council
|
|
116
|
+
* bodies); everything else goes to the inbox.
|
|
117
|
+
*/
|
|
118
|
+
ReceivePolicy[ReceivePolicy["RECEIVE_POLICY_MEMBERS"] = 2] = "RECEIVE_POLICY_MEMBERS";
|
|
119
|
+
/** RECEIVE_POLICY_INBOX - Every incoming token goes to the inbox. */
|
|
120
|
+
ReceivePolicy[ReceivePolicy["RECEIVE_POLICY_INBOX"] = 3] = "RECEIVE_POLICY_INBOX";
|
|
121
|
+
ReceivePolicy[ReceivePolicy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
122
|
+
})(ReceivePolicy || (exports.ReceivePolicy = ReceivePolicy = {}));
|
|
123
|
+
exports.ReceivePolicyAmino = ReceivePolicy;
|
|
124
|
+
function receivePolicyFromJSON(object) {
|
|
125
|
+
switch (object) {
|
|
126
|
+
case 0:
|
|
127
|
+
case "RECEIVE_POLICY_UNSPECIFIED":
|
|
128
|
+
return ReceivePolicy.RECEIVE_POLICY_UNSPECIFIED;
|
|
129
|
+
case 1:
|
|
130
|
+
case "RECEIVE_POLICY_OPEN":
|
|
131
|
+
return ReceivePolicy.RECEIVE_POLICY_OPEN;
|
|
132
|
+
case 2:
|
|
133
|
+
case "RECEIVE_POLICY_MEMBERS":
|
|
134
|
+
return ReceivePolicy.RECEIVE_POLICY_MEMBERS;
|
|
135
|
+
case 3:
|
|
136
|
+
case "RECEIVE_POLICY_INBOX":
|
|
137
|
+
return ReceivePolicy.RECEIVE_POLICY_INBOX;
|
|
138
|
+
case -1:
|
|
139
|
+
case "UNRECOGNIZED":
|
|
140
|
+
default:
|
|
141
|
+
return ReceivePolicy.UNRECOGNIZED;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function receivePolicyToJSON(object) {
|
|
145
|
+
switch (object) {
|
|
146
|
+
case ReceivePolicy.RECEIVE_POLICY_UNSPECIFIED:
|
|
147
|
+
return "RECEIVE_POLICY_UNSPECIFIED";
|
|
148
|
+
case ReceivePolicy.RECEIVE_POLICY_OPEN:
|
|
149
|
+
return "RECEIVE_POLICY_OPEN";
|
|
150
|
+
case ReceivePolicy.RECEIVE_POLICY_MEMBERS:
|
|
151
|
+
return "RECEIVE_POLICY_MEMBERS";
|
|
152
|
+
case ReceivePolicy.RECEIVE_POLICY_INBOX:
|
|
153
|
+
return "RECEIVE_POLICY_INBOX";
|
|
154
|
+
case ReceivePolicy.UNRECOGNIZED:
|
|
155
|
+
default:
|
|
156
|
+
return "UNRECOGNIZED";
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/** InboxKind distinguishes the two kinds of pending inbox items. */
|
|
160
|
+
var InboxKind;
|
|
161
|
+
(function (InboxKind) {
|
|
162
|
+
InboxKind[InboxKind["INBOX_KIND_UNSPECIFIED"] = 0] = "INBOX_KIND_UNSPECIFIED";
|
|
163
|
+
InboxKind[InboxKind["INBOX_KIND_TRANSFER"] = 1] = "INBOX_KIND_TRANSFER";
|
|
164
|
+
InboxKind[InboxKind["INBOX_KIND_MINT"] = 2] = "INBOX_KIND_MINT";
|
|
165
|
+
InboxKind[InboxKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
166
|
+
})(InboxKind || (exports.InboxKind = InboxKind = {}));
|
|
167
|
+
exports.InboxKindAmino = InboxKind;
|
|
168
|
+
function inboxKindFromJSON(object) {
|
|
169
|
+
switch (object) {
|
|
170
|
+
case 0:
|
|
171
|
+
case "INBOX_KIND_UNSPECIFIED":
|
|
172
|
+
return InboxKind.INBOX_KIND_UNSPECIFIED;
|
|
173
|
+
case 1:
|
|
174
|
+
case "INBOX_KIND_TRANSFER":
|
|
175
|
+
return InboxKind.INBOX_KIND_TRANSFER;
|
|
176
|
+
case 2:
|
|
177
|
+
case "INBOX_KIND_MINT":
|
|
178
|
+
return InboxKind.INBOX_KIND_MINT;
|
|
179
|
+
case -1:
|
|
180
|
+
case "UNRECOGNIZED":
|
|
181
|
+
default:
|
|
182
|
+
return InboxKind.UNRECOGNIZED;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function inboxKindToJSON(object) {
|
|
186
|
+
switch (object) {
|
|
187
|
+
case InboxKind.INBOX_KIND_UNSPECIFIED:
|
|
188
|
+
return "INBOX_KIND_UNSPECIFIED";
|
|
189
|
+
case InboxKind.INBOX_KIND_TRANSFER:
|
|
190
|
+
return "INBOX_KIND_TRANSFER";
|
|
191
|
+
case InboxKind.INBOX_KIND_MINT:
|
|
192
|
+
return "INBOX_KIND_MINT";
|
|
193
|
+
case InboxKind.UNRECOGNIZED:
|
|
194
|
+
default:
|
|
195
|
+
return "UNRECOGNIZED";
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/** HideTargetKind is what a hide record targets. */
|
|
199
|
+
var HideTargetKind;
|
|
200
|
+
(function (HideTargetKind) {
|
|
201
|
+
HideTargetKind[HideTargetKind["HIDE_TARGET_KIND_UNSPECIFIED"] = 0] = "HIDE_TARGET_KIND_UNSPECIFIED";
|
|
202
|
+
HideTargetKind[HideTargetKind["HIDE_TARGET_KIND_CLASS"] = 1] = "HIDE_TARGET_KIND_CLASS";
|
|
203
|
+
HideTargetKind[HideTargetKind["HIDE_TARGET_KIND_TOKEN"] = 2] = "HIDE_TARGET_KIND_TOKEN";
|
|
204
|
+
HideTargetKind[HideTargetKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
205
|
+
})(HideTargetKind || (exports.HideTargetKind = HideTargetKind = {}));
|
|
206
|
+
exports.HideTargetKindAmino = HideTargetKind;
|
|
207
|
+
function hideTargetKindFromJSON(object) {
|
|
208
|
+
switch (object) {
|
|
209
|
+
case 0:
|
|
210
|
+
case "HIDE_TARGET_KIND_UNSPECIFIED":
|
|
211
|
+
return HideTargetKind.HIDE_TARGET_KIND_UNSPECIFIED;
|
|
212
|
+
case 1:
|
|
213
|
+
case "HIDE_TARGET_KIND_CLASS":
|
|
214
|
+
return HideTargetKind.HIDE_TARGET_KIND_CLASS;
|
|
215
|
+
case 2:
|
|
216
|
+
case "HIDE_TARGET_KIND_TOKEN":
|
|
217
|
+
return HideTargetKind.HIDE_TARGET_KIND_TOKEN;
|
|
218
|
+
case -1:
|
|
219
|
+
case "UNRECOGNIZED":
|
|
220
|
+
default:
|
|
221
|
+
return HideTargetKind.UNRECOGNIZED;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function hideTargetKindToJSON(object) {
|
|
225
|
+
switch (object) {
|
|
226
|
+
case HideTargetKind.HIDE_TARGET_KIND_UNSPECIFIED:
|
|
227
|
+
return "HIDE_TARGET_KIND_UNSPECIFIED";
|
|
228
|
+
case HideTargetKind.HIDE_TARGET_KIND_CLASS:
|
|
229
|
+
return "HIDE_TARGET_KIND_CLASS";
|
|
230
|
+
case HideTargetKind.HIDE_TARGET_KIND_TOKEN:
|
|
231
|
+
return "HIDE_TARGET_KIND_TOKEN";
|
|
232
|
+
case HideTargetKind.UNRECOGNIZED:
|
|
233
|
+
default:
|
|
234
|
+
return "UNRECOGNIZED";
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/** HideOutcome is the lifecycle state of a hide record. */
|
|
238
|
+
var HideOutcome;
|
|
239
|
+
(function (HideOutcome) {
|
|
240
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_UNSPECIFIED"] = 0] = "HIDE_OUTCOME_UNSPECIFIED";
|
|
241
|
+
/** HIDE_OUTCOME_PENDING - Hidden; awaiting self-correct, appeal or expiry. */
|
|
242
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_PENDING"] = 1] = "HIDE_OUTCOME_PENDING";
|
|
243
|
+
/** HIDE_OUTCOME_UNHIDDEN - Sentinel self-correct or council unhide. */
|
|
244
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_UNHIDDEN"] = 2] = "HIDE_OUTCOME_UNHIDDEN";
|
|
245
|
+
/** HIDE_OUTCOME_OVERTURNED - Appeal won (x/rep verdict OVERTURNED); content restored. */
|
|
246
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_OVERTURNED"] = 3] = "HIDE_OUTCOME_OVERTURNED";
|
|
247
|
+
/** HIDE_OUTCOME_UPHELD - Hide upheld on appeal (x/rep verdict UPHELD); metadata scrubbed. */
|
|
248
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_UPHELD"] = 4] = "HIDE_OUTCOME_UPHELD";
|
|
249
|
+
/** HIDE_OUTCOME_EXPIRED - No appeal before hide expiry; metadata scrubbed. */
|
|
250
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_EXPIRED"] = 5] = "HIDE_OUTCOME_EXPIRED";
|
|
251
|
+
/** HIDE_OUTCOME_APPEAL_TIMEOUT - x/rep appeal timed out without a verdict; content restored. */
|
|
252
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_APPEAL_TIMEOUT"] = 6] = "HIDE_OUTCOME_APPEAL_TIMEOUT";
|
|
253
|
+
/** HIDE_OUTCOME_TARGET_BURNED - The holder burned the token before resolution. */
|
|
254
|
+
HideOutcome[HideOutcome["HIDE_OUTCOME_TARGET_BURNED"] = 7] = "HIDE_OUTCOME_TARGET_BURNED";
|
|
255
|
+
HideOutcome[HideOutcome["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
256
|
+
})(HideOutcome || (exports.HideOutcome = HideOutcome = {}));
|
|
257
|
+
exports.HideOutcomeAmino = HideOutcome;
|
|
258
|
+
function hideOutcomeFromJSON(object) {
|
|
259
|
+
switch (object) {
|
|
260
|
+
case 0:
|
|
261
|
+
case "HIDE_OUTCOME_UNSPECIFIED":
|
|
262
|
+
return HideOutcome.HIDE_OUTCOME_UNSPECIFIED;
|
|
263
|
+
case 1:
|
|
264
|
+
case "HIDE_OUTCOME_PENDING":
|
|
265
|
+
return HideOutcome.HIDE_OUTCOME_PENDING;
|
|
266
|
+
case 2:
|
|
267
|
+
case "HIDE_OUTCOME_UNHIDDEN":
|
|
268
|
+
return HideOutcome.HIDE_OUTCOME_UNHIDDEN;
|
|
269
|
+
case 3:
|
|
270
|
+
case "HIDE_OUTCOME_OVERTURNED":
|
|
271
|
+
return HideOutcome.HIDE_OUTCOME_OVERTURNED;
|
|
272
|
+
case 4:
|
|
273
|
+
case "HIDE_OUTCOME_UPHELD":
|
|
274
|
+
return HideOutcome.HIDE_OUTCOME_UPHELD;
|
|
275
|
+
case 5:
|
|
276
|
+
case "HIDE_OUTCOME_EXPIRED":
|
|
277
|
+
return HideOutcome.HIDE_OUTCOME_EXPIRED;
|
|
278
|
+
case 6:
|
|
279
|
+
case "HIDE_OUTCOME_APPEAL_TIMEOUT":
|
|
280
|
+
return HideOutcome.HIDE_OUTCOME_APPEAL_TIMEOUT;
|
|
281
|
+
case 7:
|
|
282
|
+
case "HIDE_OUTCOME_TARGET_BURNED":
|
|
283
|
+
return HideOutcome.HIDE_OUTCOME_TARGET_BURNED;
|
|
284
|
+
case -1:
|
|
285
|
+
case "UNRECOGNIZED":
|
|
286
|
+
default:
|
|
287
|
+
return HideOutcome.UNRECOGNIZED;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function hideOutcomeToJSON(object) {
|
|
291
|
+
switch (object) {
|
|
292
|
+
case HideOutcome.HIDE_OUTCOME_UNSPECIFIED:
|
|
293
|
+
return "HIDE_OUTCOME_UNSPECIFIED";
|
|
294
|
+
case HideOutcome.HIDE_OUTCOME_PENDING:
|
|
295
|
+
return "HIDE_OUTCOME_PENDING";
|
|
296
|
+
case HideOutcome.HIDE_OUTCOME_UNHIDDEN:
|
|
297
|
+
return "HIDE_OUTCOME_UNHIDDEN";
|
|
298
|
+
case HideOutcome.HIDE_OUTCOME_OVERTURNED:
|
|
299
|
+
return "HIDE_OUTCOME_OVERTURNED";
|
|
300
|
+
case HideOutcome.HIDE_OUTCOME_UPHELD:
|
|
301
|
+
return "HIDE_OUTCOME_UPHELD";
|
|
302
|
+
case HideOutcome.HIDE_OUTCOME_EXPIRED:
|
|
303
|
+
return "HIDE_OUTCOME_EXPIRED";
|
|
304
|
+
case HideOutcome.HIDE_OUTCOME_APPEAL_TIMEOUT:
|
|
305
|
+
return "HIDE_OUTCOME_APPEAL_TIMEOUT";
|
|
306
|
+
case HideOutcome.HIDE_OUTCOME_TARGET_BURNED:
|
|
307
|
+
return "HIDE_OUTCOME_TARGET_BURNED";
|
|
308
|
+
case HideOutcome.UNRECOGNIZED:
|
|
309
|
+
default:
|
|
310
|
+
return "UNRECOGNIZED";
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* BurnAuthorization says who may burn a class's tokens. The zero value is
|
|
315
|
+
* holder-only, so a class that never sets it keeps the default behaviour.
|
|
316
|
+
*/
|
|
317
|
+
var BurnAuthorization;
|
|
318
|
+
(function (BurnAuthorization) {
|
|
319
|
+
/** BURN_AUTHORIZATION_HOLDER - Only the holder may burn (MsgBurn). The default. */
|
|
320
|
+
BurnAuthorization[BurnAuthorization["BURN_AUTHORIZATION_HOLDER"] = 0] = "BURN_AUTHORIZATION_HOLDER";
|
|
321
|
+
/** BURN_AUTHORIZATION_ISSUER - Only the class owner may burn (MsgRevoke); the holder cannot. */
|
|
322
|
+
BurnAuthorization[BurnAuthorization["BURN_AUTHORIZATION_ISSUER"] = 1] = "BURN_AUTHORIZATION_ISSUER";
|
|
323
|
+
/** BURN_AUTHORIZATION_HOLDER_OR_ISSUER - Either the holder (MsgBurn) or the class owner (MsgRevoke), alone. */
|
|
324
|
+
BurnAuthorization[BurnAuthorization["BURN_AUTHORIZATION_HOLDER_OR_ISSUER"] = 2] = "BURN_AUTHORIZATION_HOLDER_OR_ISSUER";
|
|
325
|
+
BurnAuthorization[BurnAuthorization["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
326
|
+
})(BurnAuthorization || (exports.BurnAuthorization = BurnAuthorization = {}));
|
|
327
|
+
exports.BurnAuthorizationAmino = BurnAuthorization;
|
|
328
|
+
function burnAuthorizationFromJSON(object) {
|
|
329
|
+
switch (object) {
|
|
330
|
+
case 0:
|
|
331
|
+
case "BURN_AUTHORIZATION_HOLDER":
|
|
332
|
+
return BurnAuthorization.BURN_AUTHORIZATION_HOLDER;
|
|
333
|
+
case 1:
|
|
334
|
+
case "BURN_AUTHORIZATION_ISSUER":
|
|
335
|
+
return BurnAuthorization.BURN_AUTHORIZATION_ISSUER;
|
|
336
|
+
case 2:
|
|
337
|
+
case "BURN_AUTHORIZATION_HOLDER_OR_ISSUER":
|
|
338
|
+
return BurnAuthorization.BURN_AUTHORIZATION_HOLDER_OR_ISSUER;
|
|
339
|
+
case -1:
|
|
340
|
+
case "UNRECOGNIZED":
|
|
341
|
+
default:
|
|
342
|
+
return BurnAuthorization.UNRECOGNIZED;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function burnAuthorizationToJSON(object) {
|
|
346
|
+
switch (object) {
|
|
347
|
+
case BurnAuthorization.BURN_AUTHORIZATION_HOLDER:
|
|
348
|
+
return "BURN_AUTHORIZATION_HOLDER";
|
|
349
|
+
case BurnAuthorization.BURN_AUTHORIZATION_ISSUER:
|
|
350
|
+
return "BURN_AUTHORIZATION_ISSUER";
|
|
351
|
+
case BurnAuthorization.BURN_AUTHORIZATION_HOLDER_OR_ISSUER:
|
|
352
|
+
return "BURN_AUTHORIZATION_HOLDER_OR_ISSUER";
|
|
353
|
+
case BurnAuthorization.UNRECOGNIZED:
|
|
354
|
+
default:
|
|
355
|
+
return "UNRECOGNIZED";
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function createBaseClassFlags() {
|
|
359
|
+
return {
|
|
360
|
+
transferable: false,
|
|
361
|
+
burnAuthorization: 0,
|
|
362
|
+
tokenMetadataMutable: false
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* ClassFlags are fixed at class creation and never change.
|
|
367
|
+
* @name ClassFlags
|
|
368
|
+
* @package sparkdream.artifact.v1
|
|
369
|
+
* @see proto type: sparkdream.artifact.v1.ClassFlags
|
|
370
|
+
*/
|
|
371
|
+
exports.ClassFlags = {
|
|
372
|
+
typeUrl: "/sparkdream.artifact.v1.ClassFlags",
|
|
373
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
374
|
+
if (message.transferable === true) {
|
|
375
|
+
writer.uint32(8).bool(message.transferable);
|
|
376
|
+
}
|
|
377
|
+
if (message.burnAuthorization !== 0) {
|
|
378
|
+
writer.uint32(16).int32(message.burnAuthorization);
|
|
379
|
+
}
|
|
380
|
+
if (message.tokenMetadataMutable === true) {
|
|
381
|
+
writer.uint32(24).bool(message.tokenMetadataMutable);
|
|
382
|
+
}
|
|
383
|
+
return writer;
|
|
384
|
+
},
|
|
385
|
+
decode(input, length) {
|
|
386
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
387
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
388
|
+
const message = createBaseClassFlags();
|
|
389
|
+
while (reader.pos < end) {
|
|
390
|
+
const tag = reader.uint32();
|
|
391
|
+
switch (tag >>> 3) {
|
|
392
|
+
case 1:
|
|
393
|
+
message.transferable = reader.bool();
|
|
394
|
+
break;
|
|
395
|
+
case 2:
|
|
396
|
+
message.burnAuthorization = reader.int32();
|
|
397
|
+
break;
|
|
398
|
+
case 3:
|
|
399
|
+
message.tokenMetadataMutable = reader.bool();
|
|
400
|
+
break;
|
|
401
|
+
default:
|
|
402
|
+
reader.skipType(tag & 7);
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return message;
|
|
407
|
+
},
|
|
408
|
+
fromPartial(object) {
|
|
409
|
+
const message = createBaseClassFlags();
|
|
410
|
+
message.transferable = object.transferable ?? false;
|
|
411
|
+
message.burnAuthorization = object.burnAuthorization ?? 0;
|
|
412
|
+
message.tokenMetadataMutable = object.tokenMetadataMutable ?? false;
|
|
413
|
+
return message;
|
|
414
|
+
},
|
|
415
|
+
fromAmino(object) {
|
|
416
|
+
const message = createBaseClassFlags();
|
|
417
|
+
if (object.transferable !== undefined && object.transferable !== null) {
|
|
418
|
+
message.transferable = object.transferable;
|
|
419
|
+
}
|
|
420
|
+
if (object.burn_authorization !== undefined && object.burn_authorization !== null) {
|
|
421
|
+
message.burnAuthorization = object.burn_authorization;
|
|
422
|
+
}
|
|
423
|
+
if (object.token_metadata_mutable !== undefined && object.token_metadata_mutable !== null) {
|
|
424
|
+
message.tokenMetadataMutable = object.token_metadata_mutable;
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
},
|
|
428
|
+
toAmino(message) {
|
|
429
|
+
const obj = {};
|
|
430
|
+
obj.transferable = message.transferable === false ? undefined : message.transferable;
|
|
431
|
+
obj.burn_authorization = message.burnAuthorization === 0 ? undefined : message.burnAuthorization;
|
|
432
|
+
obj.token_metadata_mutable = message.tokenMetadataMutable === false ? undefined : message.tokenMetadataMutable;
|
|
433
|
+
return obj;
|
|
434
|
+
},
|
|
435
|
+
fromAminoMsg(object) {
|
|
436
|
+
return exports.ClassFlags.fromAmino(object.value);
|
|
437
|
+
},
|
|
438
|
+
fromProtoMsg(message) {
|
|
439
|
+
return exports.ClassFlags.decode(message.value);
|
|
440
|
+
},
|
|
441
|
+
toProto(message) {
|
|
442
|
+
return exports.ClassFlags.encode(message).finish();
|
|
443
|
+
},
|
|
444
|
+
toProtoMsg(message) {
|
|
445
|
+
return {
|
|
446
|
+
typeUrl: "/sparkdream.artifact.v1.ClassFlags",
|
|
447
|
+
value: exports.ClassFlags.encode(message).finish()
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
function createBaseMintPolicy() {
|
|
452
|
+
return {
|
|
453
|
+
publicMintEnabled: false,
|
|
454
|
+
price: coin_1.Coin.fromPartial({}),
|
|
455
|
+
startTime: BigInt(0),
|
|
456
|
+
endTime: BigInt(0),
|
|
457
|
+
perAddressLimit: 0
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* MintPolicy configures public minting (MsgPublicMint).
|
|
462
|
+
* @name MintPolicy
|
|
463
|
+
* @package sparkdream.artifact.v1
|
|
464
|
+
* @see proto type: sparkdream.artifact.v1.MintPolicy
|
|
465
|
+
*/
|
|
466
|
+
exports.MintPolicy = {
|
|
467
|
+
typeUrl: "/sparkdream.artifact.v1.MintPolicy",
|
|
468
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
469
|
+
if (message.publicMintEnabled === true) {
|
|
470
|
+
writer.uint32(8).bool(message.publicMintEnabled);
|
|
471
|
+
}
|
|
472
|
+
if (message.price !== undefined) {
|
|
473
|
+
coin_1.Coin.encode(message.price, writer.uint32(18).fork()).ldelim();
|
|
474
|
+
}
|
|
475
|
+
if (message.startTime !== BigInt(0)) {
|
|
476
|
+
writer.uint32(24).int64(message.startTime);
|
|
477
|
+
}
|
|
478
|
+
if (message.endTime !== BigInt(0)) {
|
|
479
|
+
writer.uint32(32).int64(message.endTime);
|
|
480
|
+
}
|
|
481
|
+
if (message.perAddressLimit !== 0) {
|
|
482
|
+
writer.uint32(40).uint32(message.perAddressLimit);
|
|
483
|
+
}
|
|
484
|
+
return writer;
|
|
485
|
+
},
|
|
486
|
+
decode(input, length) {
|
|
487
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
488
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
489
|
+
const message = createBaseMintPolicy();
|
|
490
|
+
while (reader.pos < end) {
|
|
491
|
+
const tag = reader.uint32();
|
|
492
|
+
switch (tag >>> 3) {
|
|
493
|
+
case 1:
|
|
494
|
+
message.publicMintEnabled = reader.bool();
|
|
495
|
+
break;
|
|
496
|
+
case 2:
|
|
497
|
+
message.price = coin_1.Coin.decode(reader, reader.uint32());
|
|
498
|
+
break;
|
|
499
|
+
case 3:
|
|
500
|
+
message.startTime = reader.int64();
|
|
501
|
+
break;
|
|
502
|
+
case 4:
|
|
503
|
+
message.endTime = reader.int64();
|
|
504
|
+
break;
|
|
505
|
+
case 5:
|
|
506
|
+
message.perAddressLimit = reader.uint32();
|
|
507
|
+
break;
|
|
508
|
+
default:
|
|
509
|
+
reader.skipType(tag & 7);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
fromPartial(object) {
|
|
516
|
+
const message = createBaseMintPolicy();
|
|
517
|
+
message.publicMintEnabled = object.publicMintEnabled ?? false;
|
|
518
|
+
message.price = object.price !== undefined && object.price !== null ? coin_1.Coin.fromPartial(object.price) : undefined;
|
|
519
|
+
message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
|
|
520
|
+
message.endTime = object.endTime !== undefined && object.endTime !== null ? BigInt(object.endTime.toString()) : BigInt(0);
|
|
521
|
+
message.perAddressLimit = object.perAddressLimit ?? 0;
|
|
522
|
+
return message;
|
|
523
|
+
},
|
|
524
|
+
fromAmino(object) {
|
|
525
|
+
const message = createBaseMintPolicy();
|
|
526
|
+
if (object.public_mint_enabled !== undefined && object.public_mint_enabled !== null) {
|
|
527
|
+
message.publicMintEnabled = object.public_mint_enabled;
|
|
528
|
+
}
|
|
529
|
+
if (object.price !== undefined && object.price !== null) {
|
|
530
|
+
message.price = coin_1.Coin.fromAmino(object.price);
|
|
531
|
+
}
|
|
532
|
+
if (object.start_time !== undefined && object.start_time !== null) {
|
|
533
|
+
message.startTime = BigInt(object.start_time);
|
|
534
|
+
}
|
|
535
|
+
if (object.end_time !== undefined && object.end_time !== null) {
|
|
536
|
+
message.endTime = BigInt(object.end_time);
|
|
537
|
+
}
|
|
538
|
+
if (object.per_address_limit !== undefined && object.per_address_limit !== null) {
|
|
539
|
+
message.perAddressLimit = object.per_address_limit;
|
|
540
|
+
}
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
toAmino(message) {
|
|
544
|
+
const obj = {};
|
|
545
|
+
obj.public_mint_enabled = message.publicMintEnabled === false ? undefined : message.publicMintEnabled;
|
|
546
|
+
obj.price = message.price ? coin_1.Coin.toAmino(message.price) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
547
|
+
obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
|
|
548
|
+
obj.end_time = message.endTime !== BigInt(0) ? message.endTime?.toString() : undefined;
|
|
549
|
+
obj.per_address_limit = message.perAddressLimit === 0 ? undefined : message.perAddressLimit;
|
|
550
|
+
return obj;
|
|
551
|
+
},
|
|
552
|
+
fromAminoMsg(object) {
|
|
553
|
+
return exports.MintPolicy.fromAmino(object.value);
|
|
554
|
+
},
|
|
555
|
+
fromProtoMsg(message) {
|
|
556
|
+
return exports.MintPolicy.decode(message.value);
|
|
557
|
+
},
|
|
558
|
+
toProto(message) {
|
|
559
|
+
return exports.MintPolicy.encode(message).finish();
|
|
560
|
+
},
|
|
561
|
+
toProtoMsg(message) {
|
|
562
|
+
return {
|
|
563
|
+
typeUrl: "/sparkdream.artifact.v1.MintPolicy",
|
|
564
|
+
value: exports.MintPolicy.encode(message).finish()
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
function createBaseClass() {
|
|
569
|
+
return {
|
|
570
|
+
id: BigInt(0),
|
|
571
|
+
owner: "",
|
|
572
|
+
creator: "",
|
|
573
|
+
name: "",
|
|
574
|
+
symbol: "",
|
|
575
|
+
description: "",
|
|
576
|
+
uri: "",
|
|
577
|
+
uriHash: "",
|
|
578
|
+
tokenUriBase: "",
|
|
579
|
+
flags: exports.ClassFlags.fromPartial({}),
|
|
580
|
+
metadataFrozen: false,
|
|
581
|
+
maxSupply: BigInt(0),
|
|
582
|
+
mintingClosed: false,
|
|
583
|
+
nextTokenId: BigInt(0),
|
|
584
|
+
supply: BigInt(0),
|
|
585
|
+
reservedSupply: BigInt(0),
|
|
586
|
+
burned: BigInt(0),
|
|
587
|
+
minters: [],
|
|
588
|
+
mintPolicy: exports.MintPolicy.fromPartial({}),
|
|
589
|
+
payoutAddress: "",
|
|
590
|
+
royaltyBps: 0,
|
|
591
|
+
royaltyRecipients: [],
|
|
592
|
+
status: 0,
|
|
593
|
+
mediaFlags: 0,
|
|
594
|
+
mediaRulesVersion: 0,
|
|
595
|
+
createdAt: BigInt(0),
|
|
596
|
+
updatedAt: BigInt(0)
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Class groups tokens issued under one set of rules.
|
|
601
|
+
* @name Class
|
|
602
|
+
* @package sparkdream.artifact.v1
|
|
603
|
+
* @see proto type: sparkdream.artifact.v1.Class
|
|
604
|
+
*/
|
|
605
|
+
exports.Class = {
|
|
606
|
+
typeUrl: "/sparkdream.artifact.v1.Class",
|
|
607
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
608
|
+
if (message.id !== BigInt(0)) {
|
|
609
|
+
writer.uint32(8).uint64(message.id);
|
|
610
|
+
}
|
|
611
|
+
if (message.owner !== "") {
|
|
612
|
+
writer.uint32(18).string(message.owner);
|
|
613
|
+
}
|
|
614
|
+
if (message.creator !== "") {
|
|
615
|
+
writer.uint32(26).string(message.creator);
|
|
616
|
+
}
|
|
617
|
+
if (message.name !== "") {
|
|
618
|
+
writer.uint32(34).string(message.name);
|
|
619
|
+
}
|
|
620
|
+
if (message.symbol !== "") {
|
|
621
|
+
writer.uint32(42).string(message.symbol);
|
|
622
|
+
}
|
|
623
|
+
if (message.description !== "") {
|
|
624
|
+
writer.uint32(50).string(message.description);
|
|
625
|
+
}
|
|
626
|
+
if (message.uri !== "") {
|
|
627
|
+
writer.uint32(58).string(message.uri);
|
|
628
|
+
}
|
|
629
|
+
if (message.uriHash !== "") {
|
|
630
|
+
writer.uint32(66).string(message.uriHash);
|
|
631
|
+
}
|
|
632
|
+
if (message.tokenUriBase !== "") {
|
|
633
|
+
writer.uint32(74).string(message.tokenUriBase);
|
|
634
|
+
}
|
|
635
|
+
if (message.flags !== undefined) {
|
|
636
|
+
exports.ClassFlags.encode(message.flags, writer.uint32(82).fork()).ldelim();
|
|
637
|
+
}
|
|
638
|
+
if (message.metadataFrozen === true) {
|
|
639
|
+
writer.uint32(88).bool(message.metadataFrozen);
|
|
640
|
+
}
|
|
641
|
+
if (message.maxSupply !== BigInt(0)) {
|
|
642
|
+
writer.uint32(96).uint64(message.maxSupply);
|
|
643
|
+
}
|
|
644
|
+
if (message.mintingClosed === true) {
|
|
645
|
+
writer.uint32(104).bool(message.mintingClosed);
|
|
646
|
+
}
|
|
647
|
+
if (message.nextTokenId !== BigInt(0)) {
|
|
648
|
+
writer.uint32(112).uint64(message.nextTokenId);
|
|
649
|
+
}
|
|
650
|
+
if (message.supply !== BigInt(0)) {
|
|
651
|
+
writer.uint32(120).uint64(message.supply);
|
|
652
|
+
}
|
|
653
|
+
if (message.reservedSupply !== BigInt(0)) {
|
|
654
|
+
writer.uint32(128).uint64(message.reservedSupply);
|
|
655
|
+
}
|
|
656
|
+
if (message.burned !== BigInt(0)) {
|
|
657
|
+
writer.uint32(136).uint64(message.burned);
|
|
658
|
+
}
|
|
659
|
+
for (const v of message.minters) {
|
|
660
|
+
writer.uint32(146).string(v);
|
|
661
|
+
}
|
|
662
|
+
if (message.mintPolicy !== undefined) {
|
|
663
|
+
exports.MintPolicy.encode(message.mintPolicy, writer.uint32(154).fork()).ldelim();
|
|
664
|
+
}
|
|
665
|
+
if (message.payoutAddress !== "") {
|
|
666
|
+
writer.uint32(162).string(message.payoutAddress);
|
|
667
|
+
}
|
|
668
|
+
if (message.royaltyBps !== 0) {
|
|
669
|
+
writer.uint32(168).uint32(message.royaltyBps);
|
|
670
|
+
}
|
|
671
|
+
for (const v of message.royaltyRecipients) {
|
|
672
|
+
exports.RoyaltyShare.encode(v, writer.uint32(178).fork()).ldelim();
|
|
673
|
+
}
|
|
674
|
+
if (message.status !== 0) {
|
|
675
|
+
writer.uint32(184).int32(message.status);
|
|
676
|
+
}
|
|
677
|
+
if (message.mediaFlags !== 0) {
|
|
678
|
+
writer.uint32(192).uint32(message.mediaFlags);
|
|
679
|
+
}
|
|
680
|
+
if (message.mediaRulesVersion !== 0) {
|
|
681
|
+
writer.uint32(200).uint32(message.mediaRulesVersion);
|
|
682
|
+
}
|
|
683
|
+
if (message.createdAt !== BigInt(0)) {
|
|
684
|
+
writer.uint32(208).int64(message.createdAt);
|
|
685
|
+
}
|
|
686
|
+
if (message.updatedAt !== BigInt(0)) {
|
|
687
|
+
writer.uint32(216).int64(message.updatedAt);
|
|
688
|
+
}
|
|
689
|
+
return writer;
|
|
690
|
+
},
|
|
691
|
+
decode(input, length) {
|
|
692
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
693
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
694
|
+
const message = createBaseClass();
|
|
695
|
+
while (reader.pos < end) {
|
|
696
|
+
const tag = reader.uint32();
|
|
697
|
+
switch (tag >>> 3) {
|
|
698
|
+
case 1:
|
|
699
|
+
message.id = reader.uint64();
|
|
700
|
+
break;
|
|
701
|
+
case 2:
|
|
702
|
+
message.owner = reader.string();
|
|
703
|
+
break;
|
|
704
|
+
case 3:
|
|
705
|
+
message.creator = reader.string();
|
|
706
|
+
break;
|
|
707
|
+
case 4:
|
|
708
|
+
message.name = reader.string();
|
|
709
|
+
break;
|
|
710
|
+
case 5:
|
|
711
|
+
message.symbol = reader.string();
|
|
712
|
+
break;
|
|
713
|
+
case 6:
|
|
714
|
+
message.description = reader.string();
|
|
715
|
+
break;
|
|
716
|
+
case 7:
|
|
717
|
+
message.uri = reader.string();
|
|
718
|
+
break;
|
|
719
|
+
case 8:
|
|
720
|
+
message.uriHash = reader.string();
|
|
721
|
+
break;
|
|
722
|
+
case 9:
|
|
723
|
+
message.tokenUriBase = reader.string();
|
|
724
|
+
break;
|
|
725
|
+
case 10:
|
|
726
|
+
message.flags = exports.ClassFlags.decode(reader, reader.uint32());
|
|
727
|
+
break;
|
|
728
|
+
case 11:
|
|
729
|
+
message.metadataFrozen = reader.bool();
|
|
730
|
+
break;
|
|
731
|
+
case 12:
|
|
732
|
+
message.maxSupply = reader.uint64();
|
|
733
|
+
break;
|
|
734
|
+
case 13:
|
|
735
|
+
message.mintingClosed = reader.bool();
|
|
736
|
+
break;
|
|
737
|
+
case 14:
|
|
738
|
+
message.nextTokenId = reader.uint64();
|
|
739
|
+
break;
|
|
740
|
+
case 15:
|
|
741
|
+
message.supply = reader.uint64();
|
|
742
|
+
break;
|
|
743
|
+
case 16:
|
|
744
|
+
message.reservedSupply = reader.uint64();
|
|
745
|
+
break;
|
|
746
|
+
case 17:
|
|
747
|
+
message.burned = reader.uint64();
|
|
748
|
+
break;
|
|
749
|
+
case 18:
|
|
750
|
+
message.minters.push(reader.string());
|
|
751
|
+
break;
|
|
752
|
+
case 19:
|
|
753
|
+
message.mintPolicy = exports.MintPolicy.decode(reader, reader.uint32());
|
|
754
|
+
break;
|
|
755
|
+
case 20:
|
|
756
|
+
message.payoutAddress = reader.string();
|
|
757
|
+
break;
|
|
758
|
+
case 21:
|
|
759
|
+
message.royaltyBps = reader.uint32();
|
|
760
|
+
break;
|
|
761
|
+
case 22:
|
|
762
|
+
message.royaltyRecipients.push(exports.RoyaltyShare.decode(reader, reader.uint32()));
|
|
763
|
+
break;
|
|
764
|
+
case 23:
|
|
765
|
+
message.status = reader.int32();
|
|
766
|
+
break;
|
|
767
|
+
case 24:
|
|
768
|
+
message.mediaFlags = reader.uint32();
|
|
769
|
+
break;
|
|
770
|
+
case 25:
|
|
771
|
+
message.mediaRulesVersion = reader.uint32();
|
|
772
|
+
break;
|
|
773
|
+
case 26:
|
|
774
|
+
message.createdAt = reader.int64();
|
|
775
|
+
break;
|
|
776
|
+
case 27:
|
|
777
|
+
message.updatedAt = reader.int64();
|
|
778
|
+
break;
|
|
779
|
+
default:
|
|
780
|
+
reader.skipType(tag & 7);
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromPartial(object) {
|
|
787
|
+
const message = createBaseClass();
|
|
788
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
789
|
+
message.owner = object.owner ?? "";
|
|
790
|
+
message.creator = object.creator ?? "";
|
|
791
|
+
message.name = object.name ?? "";
|
|
792
|
+
message.symbol = object.symbol ?? "";
|
|
793
|
+
message.description = object.description ?? "";
|
|
794
|
+
message.uri = object.uri ?? "";
|
|
795
|
+
message.uriHash = object.uriHash ?? "";
|
|
796
|
+
message.tokenUriBase = object.tokenUriBase ?? "";
|
|
797
|
+
message.flags = object.flags !== undefined && object.flags !== null ? exports.ClassFlags.fromPartial(object.flags) : undefined;
|
|
798
|
+
message.metadataFrozen = object.metadataFrozen ?? false;
|
|
799
|
+
message.maxSupply = object.maxSupply !== undefined && object.maxSupply !== null ? BigInt(object.maxSupply.toString()) : BigInt(0);
|
|
800
|
+
message.mintingClosed = object.mintingClosed ?? false;
|
|
801
|
+
message.nextTokenId = object.nextTokenId !== undefined && object.nextTokenId !== null ? BigInt(object.nextTokenId.toString()) : BigInt(0);
|
|
802
|
+
message.supply = object.supply !== undefined && object.supply !== null ? BigInt(object.supply.toString()) : BigInt(0);
|
|
803
|
+
message.reservedSupply = object.reservedSupply !== undefined && object.reservedSupply !== null ? BigInt(object.reservedSupply.toString()) : BigInt(0);
|
|
804
|
+
message.burned = object.burned !== undefined && object.burned !== null ? BigInt(object.burned.toString()) : BigInt(0);
|
|
805
|
+
message.minters = object.minters?.map(e => e) || [];
|
|
806
|
+
message.mintPolicy = object.mintPolicy !== undefined && object.mintPolicy !== null ? exports.MintPolicy.fromPartial(object.mintPolicy) : undefined;
|
|
807
|
+
message.payoutAddress = object.payoutAddress ?? "";
|
|
808
|
+
message.royaltyBps = object.royaltyBps ?? 0;
|
|
809
|
+
message.royaltyRecipients = object.royaltyRecipients?.map(e => exports.RoyaltyShare.fromPartial(e)) || [];
|
|
810
|
+
message.status = object.status ?? 0;
|
|
811
|
+
message.mediaFlags = object.mediaFlags ?? 0;
|
|
812
|
+
message.mediaRulesVersion = object.mediaRulesVersion ?? 0;
|
|
813
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
814
|
+
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
815
|
+
return message;
|
|
816
|
+
},
|
|
817
|
+
fromAmino(object) {
|
|
818
|
+
const message = createBaseClass();
|
|
819
|
+
if (object.id !== undefined && object.id !== null) {
|
|
820
|
+
message.id = BigInt(object.id);
|
|
821
|
+
}
|
|
822
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
823
|
+
message.owner = object.owner;
|
|
824
|
+
}
|
|
825
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
826
|
+
message.creator = object.creator;
|
|
827
|
+
}
|
|
828
|
+
if (object.name !== undefined && object.name !== null) {
|
|
829
|
+
message.name = object.name;
|
|
830
|
+
}
|
|
831
|
+
if (object.symbol !== undefined && object.symbol !== null) {
|
|
832
|
+
message.symbol = object.symbol;
|
|
833
|
+
}
|
|
834
|
+
if (object.description !== undefined && object.description !== null) {
|
|
835
|
+
message.description = object.description;
|
|
836
|
+
}
|
|
837
|
+
if (object.uri !== undefined && object.uri !== null) {
|
|
838
|
+
message.uri = object.uri;
|
|
839
|
+
}
|
|
840
|
+
if (object.uri_hash !== undefined && object.uri_hash !== null) {
|
|
841
|
+
message.uriHash = object.uri_hash;
|
|
842
|
+
}
|
|
843
|
+
if (object.token_uri_base !== undefined && object.token_uri_base !== null) {
|
|
844
|
+
message.tokenUriBase = object.token_uri_base;
|
|
845
|
+
}
|
|
846
|
+
if (object.flags !== undefined && object.flags !== null) {
|
|
847
|
+
message.flags = exports.ClassFlags.fromAmino(object.flags);
|
|
848
|
+
}
|
|
849
|
+
if (object.metadata_frozen !== undefined && object.metadata_frozen !== null) {
|
|
850
|
+
message.metadataFrozen = object.metadata_frozen;
|
|
851
|
+
}
|
|
852
|
+
if (object.max_supply !== undefined && object.max_supply !== null) {
|
|
853
|
+
message.maxSupply = BigInt(object.max_supply);
|
|
854
|
+
}
|
|
855
|
+
if (object.minting_closed !== undefined && object.minting_closed !== null) {
|
|
856
|
+
message.mintingClosed = object.minting_closed;
|
|
857
|
+
}
|
|
858
|
+
if (object.next_token_id !== undefined && object.next_token_id !== null) {
|
|
859
|
+
message.nextTokenId = BigInt(object.next_token_id);
|
|
860
|
+
}
|
|
861
|
+
if (object.supply !== undefined && object.supply !== null) {
|
|
862
|
+
message.supply = BigInt(object.supply);
|
|
863
|
+
}
|
|
864
|
+
if (object.reserved_supply !== undefined && object.reserved_supply !== null) {
|
|
865
|
+
message.reservedSupply = BigInt(object.reserved_supply);
|
|
866
|
+
}
|
|
867
|
+
if (object.burned !== undefined && object.burned !== null) {
|
|
868
|
+
message.burned = BigInt(object.burned);
|
|
869
|
+
}
|
|
870
|
+
message.minters = object.minters?.map(e => e) || [];
|
|
871
|
+
if (object.mint_policy !== undefined && object.mint_policy !== null) {
|
|
872
|
+
message.mintPolicy = exports.MintPolicy.fromAmino(object.mint_policy);
|
|
873
|
+
}
|
|
874
|
+
if (object.payout_address !== undefined && object.payout_address !== null) {
|
|
875
|
+
message.payoutAddress = object.payout_address;
|
|
876
|
+
}
|
|
877
|
+
if (object.royalty_bps !== undefined && object.royalty_bps !== null) {
|
|
878
|
+
message.royaltyBps = object.royalty_bps;
|
|
879
|
+
}
|
|
880
|
+
message.royaltyRecipients = object.royalty_recipients?.map(e => exports.RoyaltyShare.fromAmino(e)) || [];
|
|
881
|
+
if (object.status !== undefined && object.status !== null) {
|
|
882
|
+
message.status = object.status;
|
|
883
|
+
}
|
|
884
|
+
if (object.media_flags !== undefined && object.media_flags !== null) {
|
|
885
|
+
message.mediaFlags = object.media_flags;
|
|
886
|
+
}
|
|
887
|
+
if (object.media_rules_version !== undefined && object.media_rules_version !== null) {
|
|
888
|
+
message.mediaRulesVersion = object.media_rules_version;
|
|
889
|
+
}
|
|
890
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
891
|
+
message.createdAt = BigInt(object.created_at);
|
|
892
|
+
}
|
|
893
|
+
if (object.updated_at !== undefined && object.updated_at !== null) {
|
|
894
|
+
message.updatedAt = BigInt(object.updated_at);
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
},
|
|
898
|
+
toAmino(message) {
|
|
899
|
+
const obj = {};
|
|
900
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
901
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
902
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
903
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
904
|
+
obj.symbol = message.symbol === "" ? undefined : message.symbol;
|
|
905
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
906
|
+
obj.uri = message.uri === "" ? undefined : message.uri;
|
|
907
|
+
obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
|
|
908
|
+
obj.token_uri_base = message.tokenUriBase === "" ? undefined : message.tokenUriBase;
|
|
909
|
+
obj.flags = message.flags ? exports.ClassFlags.toAmino(message.flags) : exports.ClassFlags.toAmino(exports.ClassFlags.fromPartial({}));
|
|
910
|
+
obj.metadata_frozen = message.metadataFrozen === false ? undefined : message.metadataFrozen;
|
|
911
|
+
obj.max_supply = message.maxSupply !== BigInt(0) ? message.maxSupply?.toString() : undefined;
|
|
912
|
+
obj.minting_closed = message.mintingClosed === false ? undefined : message.mintingClosed;
|
|
913
|
+
obj.next_token_id = message.nextTokenId !== BigInt(0) ? message.nextTokenId?.toString() : undefined;
|
|
914
|
+
obj.supply = message.supply !== BigInt(0) ? message.supply?.toString() : undefined;
|
|
915
|
+
obj.reserved_supply = message.reservedSupply !== BigInt(0) ? message.reservedSupply?.toString() : undefined;
|
|
916
|
+
obj.burned = message.burned !== BigInt(0) ? message.burned?.toString() : undefined;
|
|
917
|
+
if (message.minters) {
|
|
918
|
+
obj.minters = message.minters.map(e => e);
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
obj.minters = message.minters;
|
|
922
|
+
}
|
|
923
|
+
obj.mint_policy = message.mintPolicy ? exports.MintPolicy.toAmino(message.mintPolicy) : exports.MintPolicy.toAmino(exports.MintPolicy.fromPartial({}));
|
|
924
|
+
obj.payout_address = message.payoutAddress === "" ? undefined : message.payoutAddress;
|
|
925
|
+
obj.royalty_bps = message.royaltyBps === 0 ? undefined : message.royaltyBps;
|
|
926
|
+
if (message.royaltyRecipients) {
|
|
927
|
+
obj.royalty_recipients = message.royaltyRecipients.map(e => e ? exports.RoyaltyShare.toAmino(e) : undefined);
|
|
928
|
+
}
|
|
929
|
+
else {
|
|
930
|
+
obj.royalty_recipients = message.royaltyRecipients;
|
|
931
|
+
}
|
|
932
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
933
|
+
obj.media_flags = message.mediaFlags === 0 ? undefined : message.mediaFlags;
|
|
934
|
+
obj.media_rules_version = message.mediaRulesVersion === 0 ? undefined : message.mediaRulesVersion;
|
|
935
|
+
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
936
|
+
obj.updated_at = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
937
|
+
return obj;
|
|
938
|
+
},
|
|
939
|
+
fromAminoMsg(object) {
|
|
940
|
+
return exports.Class.fromAmino(object.value);
|
|
941
|
+
},
|
|
942
|
+
fromProtoMsg(message) {
|
|
943
|
+
return exports.Class.decode(message.value);
|
|
944
|
+
},
|
|
945
|
+
toProto(message) {
|
|
946
|
+
return exports.Class.encode(message).finish();
|
|
947
|
+
},
|
|
948
|
+
toProtoMsg(message) {
|
|
949
|
+
return {
|
|
950
|
+
typeUrl: "/sparkdream.artifact.v1.Class",
|
|
951
|
+
value: exports.Class.encode(message).finish()
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
function createBaseRoyaltyShare() {
|
|
956
|
+
return {
|
|
957
|
+
address: "",
|
|
958
|
+
weightBps: 0
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* RoyaltyShare is one recipient's part of a class royalty.
|
|
963
|
+
* @name RoyaltyShare
|
|
964
|
+
* @package sparkdream.artifact.v1
|
|
965
|
+
* @see proto type: sparkdream.artifact.v1.RoyaltyShare
|
|
966
|
+
*/
|
|
967
|
+
exports.RoyaltyShare = {
|
|
968
|
+
typeUrl: "/sparkdream.artifact.v1.RoyaltyShare",
|
|
969
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
970
|
+
if (message.address !== "") {
|
|
971
|
+
writer.uint32(10).string(message.address);
|
|
972
|
+
}
|
|
973
|
+
if (message.weightBps !== 0) {
|
|
974
|
+
writer.uint32(16).uint32(message.weightBps);
|
|
975
|
+
}
|
|
976
|
+
return writer;
|
|
977
|
+
},
|
|
978
|
+
decode(input, length) {
|
|
979
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
980
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
981
|
+
const message = createBaseRoyaltyShare();
|
|
982
|
+
while (reader.pos < end) {
|
|
983
|
+
const tag = reader.uint32();
|
|
984
|
+
switch (tag >>> 3) {
|
|
985
|
+
case 1:
|
|
986
|
+
message.address = reader.string();
|
|
987
|
+
break;
|
|
988
|
+
case 2:
|
|
989
|
+
message.weightBps = reader.uint32();
|
|
990
|
+
break;
|
|
991
|
+
default:
|
|
992
|
+
reader.skipType(tag & 7);
|
|
993
|
+
break;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
return message;
|
|
997
|
+
},
|
|
998
|
+
fromPartial(object) {
|
|
999
|
+
const message = createBaseRoyaltyShare();
|
|
1000
|
+
message.address = object.address ?? "";
|
|
1001
|
+
message.weightBps = object.weightBps ?? 0;
|
|
1002
|
+
return message;
|
|
1003
|
+
},
|
|
1004
|
+
fromAmino(object) {
|
|
1005
|
+
const message = createBaseRoyaltyShare();
|
|
1006
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1007
|
+
message.address = object.address;
|
|
1008
|
+
}
|
|
1009
|
+
if (object.weight_bps !== undefined && object.weight_bps !== null) {
|
|
1010
|
+
message.weightBps = object.weight_bps;
|
|
1011
|
+
}
|
|
1012
|
+
return message;
|
|
1013
|
+
},
|
|
1014
|
+
toAmino(message) {
|
|
1015
|
+
const obj = {};
|
|
1016
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1017
|
+
obj.weight_bps = message.weightBps === 0 ? undefined : message.weightBps;
|
|
1018
|
+
return obj;
|
|
1019
|
+
},
|
|
1020
|
+
fromAminoMsg(object) {
|
|
1021
|
+
return exports.RoyaltyShare.fromAmino(object.value);
|
|
1022
|
+
},
|
|
1023
|
+
fromProtoMsg(message) {
|
|
1024
|
+
return exports.RoyaltyShare.decode(message.value);
|
|
1025
|
+
},
|
|
1026
|
+
toProto(message) {
|
|
1027
|
+
return exports.RoyaltyShare.encode(message).finish();
|
|
1028
|
+
},
|
|
1029
|
+
toProtoMsg(message) {
|
|
1030
|
+
return {
|
|
1031
|
+
typeUrl: "/sparkdream.artifact.v1.RoyaltyShare",
|
|
1032
|
+
value: exports.RoyaltyShare.encode(message).finish()
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
function createBaseAttribute() {
|
|
1037
|
+
return {
|
|
1038
|
+
key: "",
|
|
1039
|
+
value: ""
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Attribute is one key/value trait of a token.
|
|
1044
|
+
* @name Attribute
|
|
1045
|
+
* @package sparkdream.artifact.v1
|
|
1046
|
+
* @see proto type: sparkdream.artifact.v1.Attribute
|
|
1047
|
+
*/
|
|
1048
|
+
exports.Attribute = {
|
|
1049
|
+
typeUrl: "/sparkdream.artifact.v1.Attribute",
|
|
1050
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1051
|
+
if (message.key !== "") {
|
|
1052
|
+
writer.uint32(10).string(message.key);
|
|
1053
|
+
}
|
|
1054
|
+
if (message.value !== "") {
|
|
1055
|
+
writer.uint32(18).string(message.value);
|
|
1056
|
+
}
|
|
1057
|
+
return writer;
|
|
1058
|
+
},
|
|
1059
|
+
decode(input, length) {
|
|
1060
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1061
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1062
|
+
const message = createBaseAttribute();
|
|
1063
|
+
while (reader.pos < end) {
|
|
1064
|
+
const tag = reader.uint32();
|
|
1065
|
+
switch (tag >>> 3) {
|
|
1066
|
+
case 1:
|
|
1067
|
+
message.key = reader.string();
|
|
1068
|
+
break;
|
|
1069
|
+
case 2:
|
|
1070
|
+
message.value = reader.string();
|
|
1071
|
+
break;
|
|
1072
|
+
default:
|
|
1073
|
+
reader.skipType(tag & 7);
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
return message;
|
|
1078
|
+
},
|
|
1079
|
+
fromPartial(object) {
|
|
1080
|
+
const message = createBaseAttribute();
|
|
1081
|
+
message.key = object.key ?? "";
|
|
1082
|
+
message.value = object.value ?? "";
|
|
1083
|
+
return message;
|
|
1084
|
+
},
|
|
1085
|
+
fromAmino(object) {
|
|
1086
|
+
const message = createBaseAttribute();
|
|
1087
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1088
|
+
message.key = object.key;
|
|
1089
|
+
}
|
|
1090
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1091
|
+
message.value = object.value;
|
|
1092
|
+
}
|
|
1093
|
+
return message;
|
|
1094
|
+
},
|
|
1095
|
+
toAmino(message) {
|
|
1096
|
+
const obj = {};
|
|
1097
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1098
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1099
|
+
return obj;
|
|
1100
|
+
},
|
|
1101
|
+
fromAminoMsg(object) {
|
|
1102
|
+
return exports.Attribute.fromAmino(object.value);
|
|
1103
|
+
},
|
|
1104
|
+
fromProtoMsg(message) {
|
|
1105
|
+
return exports.Attribute.decode(message.value);
|
|
1106
|
+
},
|
|
1107
|
+
toProto(message) {
|
|
1108
|
+
return exports.Attribute.encode(message).finish();
|
|
1109
|
+
},
|
|
1110
|
+
toProtoMsg(message) {
|
|
1111
|
+
return {
|
|
1112
|
+
typeUrl: "/sparkdream.artifact.v1.Attribute",
|
|
1113
|
+
value: exports.Attribute.encode(message).finish()
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
function createBaseTokenMetadata() {
|
|
1118
|
+
return {
|
|
1119
|
+
name: "",
|
|
1120
|
+
description: "",
|
|
1121
|
+
uri: "",
|
|
1122
|
+
uriHash: "",
|
|
1123
|
+
attributes: []
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* TokenMetadata is the editable on-chain content of a token.
|
|
1128
|
+
* @name TokenMetadata
|
|
1129
|
+
* @package sparkdream.artifact.v1
|
|
1130
|
+
* @see proto type: sparkdream.artifact.v1.TokenMetadata
|
|
1131
|
+
*/
|
|
1132
|
+
exports.TokenMetadata = {
|
|
1133
|
+
typeUrl: "/sparkdream.artifact.v1.TokenMetadata",
|
|
1134
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1135
|
+
if (message.name !== "") {
|
|
1136
|
+
writer.uint32(10).string(message.name);
|
|
1137
|
+
}
|
|
1138
|
+
if (message.description !== "") {
|
|
1139
|
+
writer.uint32(18).string(message.description);
|
|
1140
|
+
}
|
|
1141
|
+
if (message.uri !== "") {
|
|
1142
|
+
writer.uint32(26).string(message.uri);
|
|
1143
|
+
}
|
|
1144
|
+
if (message.uriHash !== "") {
|
|
1145
|
+
writer.uint32(34).string(message.uriHash);
|
|
1146
|
+
}
|
|
1147
|
+
for (const v of message.attributes) {
|
|
1148
|
+
exports.Attribute.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1149
|
+
}
|
|
1150
|
+
return writer;
|
|
1151
|
+
},
|
|
1152
|
+
decode(input, length) {
|
|
1153
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1155
|
+
const message = createBaseTokenMetadata();
|
|
1156
|
+
while (reader.pos < end) {
|
|
1157
|
+
const tag = reader.uint32();
|
|
1158
|
+
switch (tag >>> 3) {
|
|
1159
|
+
case 1:
|
|
1160
|
+
message.name = reader.string();
|
|
1161
|
+
break;
|
|
1162
|
+
case 2:
|
|
1163
|
+
message.description = reader.string();
|
|
1164
|
+
break;
|
|
1165
|
+
case 3:
|
|
1166
|
+
message.uri = reader.string();
|
|
1167
|
+
break;
|
|
1168
|
+
case 4:
|
|
1169
|
+
message.uriHash = reader.string();
|
|
1170
|
+
break;
|
|
1171
|
+
case 5:
|
|
1172
|
+
message.attributes.push(exports.Attribute.decode(reader, reader.uint32()));
|
|
1173
|
+
break;
|
|
1174
|
+
default:
|
|
1175
|
+
reader.skipType(tag & 7);
|
|
1176
|
+
break;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
return message;
|
|
1180
|
+
},
|
|
1181
|
+
fromPartial(object) {
|
|
1182
|
+
const message = createBaseTokenMetadata();
|
|
1183
|
+
message.name = object.name ?? "";
|
|
1184
|
+
message.description = object.description ?? "";
|
|
1185
|
+
message.uri = object.uri ?? "";
|
|
1186
|
+
message.uriHash = object.uriHash ?? "";
|
|
1187
|
+
message.attributes = object.attributes?.map(e => exports.Attribute.fromPartial(e)) || [];
|
|
1188
|
+
return message;
|
|
1189
|
+
},
|
|
1190
|
+
fromAmino(object) {
|
|
1191
|
+
const message = createBaseTokenMetadata();
|
|
1192
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1193
|
+
message.name = object.name;
|
|
1194
|
+
}
|
|
1195
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1196
|
+
message.description = object.description;
|
|
1197
|
+
}
|
|
1198
|
+
if (object.uri !== undefined && object.uri !== null) {
|
|
1199
|
+
message.uri = object.uri;
|
|
1200
|
+
}
|
|
1201
|
+
if (object.uri_hash !== undefined && object.uri_hash !== null) {
|
|
1202
|
+
message.uriHash = object.uri_hash;
|
|
1203
|
+
}
|
|
1204
|
+
message.attributes = object.attributes?.map(e => exports.Attribute.fromAmino(e)) || [];
|
|
1205
|
+
return message;
|
|
1206
|
+
},
|
|
1207
|
+
toAmino(message) {
|
|
1208
|
+
const obj = {};
|
|
1209
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1210
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1211
|
+
obj.uri = message.uri === "" ? undefined : message.uri;
|
|
1212
|
+
obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
|
|
1213
|
+
if (message.attributes) {
|
|
1214
|
+
obj.attributes = message.attributes.map(e => e ? exports.Attribute.toAmino(e) : undefined);
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
obj.attributes = message.attributes;
|
|
1218
|
+
}
|
|
1219
|
+
return obj;
|
|
1220
|
+
},
|
|
1221
|
+
fromAminoMsg(object) {
|
|
1222
|
+
return exports.TokenMetadata.fromAmino(object.value);
|
|
1223
|
+
},
|
|
1224
|
+
fromProtoMsg(message) {
|
|
1225
|
+
return exports.TokenMetadata.decode(message.value);
|
|
1226
|
+
},
|
|
1227
|
+
toProto(message) {
|
|
1228
|
+
return exports.TokenMetadata.encode(message).finish();
|
|
1229
|
+
},
|
|
1230
|
+
toProtoMsg(message) {
|
|
1231
|
+
return {
|
|
1232
|
+
typeUrl: "/sparkdream.artifact.v1.TokenMetadata",
|
|
1233
|
+
value: exports.TokenMetadata.encode(message).finish()
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
function createBaseToken() {
|
|
1238
|
+
return {
|
|
1239
|
+
classId: BigInt(0),
|
|
1240
|
+
id: BigInt(0),
|
|
1241
|
+
owner: "",
|
|
1242
|
+
minter: "",
|
|
1243
|
+
metadata: exports.TokenMetadata.fromPartial({}),
|
|
1244
|
+
metadataFrozen: false,
|
|
1245
|
+
lock: 0,
|
|
1246
|
+
listingSeq: BigInt(0),
|
|
1247
|
+
deposit: "",
|
|
1248
|
+
status: 0,
|
|
1249
|
+
mediaFlags: 0,
|
|
1250
|
+
mediaRulesVersion: 0,
|
|
1251
|
+
mintedAt: BigInt(0)
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Token is one non-fungible token.
|
|
1256
|
+
* @name Token
|
|
1257
|
+
* @package sparkdream.artifact.v1
|
|
1258
|
+
* @see proto type: sparkdream.artifact.v1.Token
|
|
1259
|
+
*/
|
|
1260
|
+
exports.Token = {
|
|
1261
|
+
typeUrl: "/sparkdream.artifact.v1.Token",
|
|
1262
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1263
|
+
if (message.classId !== BigInt(0)) {
|
|
1264
|
+
writer.uint32(8).uint64(message.classId);
|
|
1265
|
+
}
|
|
1266
|
+
if (message.id !== BigInt(0)) {
|
|
1267
|
+
writer.uint32(16).uint64(message.id);
|
|
1268
|
+
}
|
|
1269
|
+
if (message.owner !== "") {
|
|
1270
|
+
writer.uint32(26).string(message.owner);
|
|
1271
|
+
}
|
|
1272
|
+
if (message.minter !== "") {
|
|
1273
|
+
writer.uint32(34).string(message.minter);
|
|
1274
|
+
}
|
|
1275
|
+
if (message.metadata !== undefined) {
|
|
1276
|
+
exports.TokenMetadata.encode(message.metadata, writer.uint32(42).fork()).ldelim();
|
|
1277
|
+
}
|
|
1278
|
+
if (message.metadataFrozen === true) {
|
|
1279
|
+
writer.uint32(48).bool(message.metadataFrozen);
|
|
1280
|
+
}
|
|
1281
|
+
if (message.lock !== 0) {
|
|
1282
|
+
writer.uint32(56).int32(message.lock);
|
|
1283
|
+
}
|
|
1284
|
+
if (message.listingSeq !== BigInt(0)) {
|
|
1285
|
+
writer.uint32(64).uint64(message.listingSeq);
|
|
1286
|
+
}
|
|
1287
|
+
if (message.deposit !== "") {
|
|
1288
|
+
writer.uint32(74).string(message.deposit);
|
|
1289
|
+
}
|
|
1290
|
+
if (message.status !== 0) {
|
|
1291
|
+
writer.uint32(80).int32(message.status);
|
|
1292
|
+
}
|
|
1293
|
+
if (message.mediaFlags !== 0) {
|
|
1294
|
+
writer.uint32(88).uint32(message.mediaFlags);
|
|
1295
|
+
}
|
|
1296
|
+
if (message.mediaRulesVersion !== 0) {
|
|
1297
|
+
writer.uint32(96).uint32(message.mediaRulesVersion);
|
|
1298
|
+
}
|
|
1299
|
+
if (message.mintedAt !== BigInt(0)) {
|
|
1300
|
+
writer.uint32(104).int64(message.mintedAt);
|
|
1301
|
+
}
|
|
1302
|
+
return writer;
|
|
1303
|
+
},
|
|
1304
|
+
decode(input, length) {
|
|
1305
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1306
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1307
|
+
const message = createBaseToken();
|
|
1308
|
+
while (reader.pos < end) {
|
|
1309
|
+
const tag = reader.uint32();
|
|
1310
|
+
switch (tag >>> 3) {
|
|
1311
|
+
case 1:
|
|
1312
|
+
message.classId = reader.uint64();
|
|
1313
|
+
break;
|
|
1314
|
+
case 2:
|
|
1315
|
+
message.id = reader.uint64();
|
|
1316
|
+
break;
|
|
1317
|
+
case 3:
|
|
1318
|
+
message.owner = reader.string();
|
|
1319
|
+
break;
|
|
1320
|
+
case 4:
|
|
1321
|
+
message.minter = reader.string();
|
|
1322
|
+
break;
|
|
1323
|
+
case 5:
|
|
1324
|
+
message.metadata = exports.TokenMetadata.decode(reader, reader.uint32());
|
|
1325
|
+
break;
|
|
1326
|
+
case 6:
|
|
1327
|
+
message.metadataFrozen = reader.bool();
|
|
1328
|
+
break;
|
|
1329
|
+
case 7:
|
|
1330
|
+
message.lock = reader.int32();
|
|
1331
|
+
break;
|
|
1332
|
+
case 8:
|
|
1333
|
+
message.listingSeq = reader.uint64();
|
|
1334
|
+
break;
|
|
1335
|
+
case 9:
|
|
1336
|
+
message.deposit = reader.string();
|
|
1337
|
+
break;
|
|
1338
|
+
case 10:
|
|
1339
|
+
message.status = reader.int32();
|
|
1340
|
+
break;
|
|
1341
|
+
case 11:
|
|
1342
|
+
message.mediaFlags = reader.uint32();
|
|
1343
|
+
break;
|
|
1344
|
+
case 12:
|
|
1345
|
+
message.mediaRulesVersion = reader.uint32();
|
|
1346
|
+
break;
|
|
1347
|
+
case 13:
|
|
1348
|
+
message.mintedAt = reader.int64();
|
|
1349
|
+
break;
|
|
1350
|
+
default:
|
|
1351
|
+
reader.skipType(tag & 7);
|
|
1352
|
+
break;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
return message;
|
|
1356
|
+
},
|
|
1357
|
+
fromPartial(object) {
|
|
1358
|
+
const message = createBaseToken();
|
|
1359
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1360
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
1361
|
+
message.owner = object.owner ?? "";
|
|
1362
|
+
message.minter = object.minter ?? "";
|
|
1363
|
+
message.metadata = object.metadata !== undefined && object.metadata !== null ? exports.TokenMetadata.fromPartial(object.metadata) : undefined;
|
|
1364
|
+
message.metadataFrozen = object.metadataFrozen ?? false;
|
|
1365
|
+
message.lock = object.lock ?? 0;
|
|
1366
|
+
message.listingSeq = object.listingSeq !== undefined && object.listingSeq !== null ? BigInt(object.listingSeq.toString()) : BigInt(0);
|
|
1367
|
+
message.deposit = object.deposit ?? "";
|
|
1368
|
+
message.status = object.status ?? 0;
|
|
1369
|
+
message.mediaFlags = object.mediaFlags ?? 0;
|
|
1370
|
+
message.mediaRulesVersion = object.mediaRulesVersion ?? 0;
|
|
1371
|
+
message.mintedAt = object.mintedAt !== undefined && object.mintedAt !== null ? BigInt(object.mintedAt.toString()) : BigInt(0);
|
|
1372
|
+
return message;
|
|
1373
|
+
},
|
|
1374
|
+
fromAmino(object) {
|
|
1375
|
+
const message = createBaseToken();
|
|
1376
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1377
|
+
message.classId = BigInt(object.class_id);
|
|
1378
|
+
}
|
|
1379
|
+
if (object.id !== undefined && object.id !== null) {
|
|
1380
|
+
message.id = BigInt(object.id);
|
|
1381
|
+
}
|
|
1382
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
1383
|
+
message.owner = object.owner;
|
|
1384
|
+
}
|
|
1385
|
+
if (object.minter !== undefined && object.minter !== null) {
|
|
1386
|
+
message.minter = object.minter;
|
|
1387
|
+
}
|
|
1388
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1389
|
+
message.metadata = exports.TokenMetadata.fromAmino(object.metadata);
|
|
1390
|
+
}
|
|
1391
|
+
if (object.metadata_frozen !== undefined && object.metadata_frozen !== null) {
|
|
1392
|
+
message.metadataFrozen = object.metadata_frozen;
|
|
1393
|
+
}
|
|
1394
|
+
if (object.lock !== undefined && object.lock !== null) {
|
|
1395
|
+
message.lock = object.lock;
|
|
1396
|
+
}
|
|
1397
|
+
if (object.listing_seq !== undefined && object.listing_seq !== null) {
|
|
1398
|
+
message.listingSeq = BigInt(object.listing_seq);
|
|
1399
|
+
}
|
|
1400
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
1401
|
+
message.deposit = object.deposit;
|
|
1402
|
+
}
|
|
1403
|
+
if (object.status !== undefined && object.status !== null) {
|
|
1404
|
+
message.status = object.status;
|
|
1405
|
+
}
|
|
1406
|
+
if (object.media_flags !== undefined && object.media_flags !== null) {
|
|
1407
|
+
message.mediaFlags = object.media_flags;
|
|
1408
|
+
}
|
|
1409
|
+
if (object.media_rules_version !== undefined && object.media_rules_version !== null) {
|
|
1410
|
+
message.mediaRulesVersion = object.media_rules_version;
|
|
1411
|
+
}
|
|
1412
|
+
if (object.minted_at !== undefined && object.minted_at !== null) {
|
|
1413
|
+
message.mintedAt = BigInt(object.minted_at);
|
|
1414
|
+
}
|
|
1415
|
+
return message;
|
|
1416
|
+
},
|
|
1417
|
+
toAmino(message) {
|
|
1418
|
+
const obj = {};
|
|
1419
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1420
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
1421
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
1422
|
+
obj.minter = message.minter === "" ? undefined : message.minter;
|
|
1423
|
+
obj.metadata = message.metadata ? exports.TokenMetadata.toAmino(message.metadata) : exports.TokenMetadata.toAmino(exports.TokenMetadata.fromPartial({}));
|
|
1424
|
+
obj.metadata_frozen = message.metadataFrozen === false ? undefined : message.metadataFrozen;
|
|
1425
|
+
obj.lock = message.lock === 0 ? undefined : message.lock;
|
|
1426
|
+
obj.listing_seq = message.listingSeq !== BigInt(0) ? message.listingSeq?.toString() : undefined;
|
|
1427
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
1428
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
1429
|
+
obj.media_flags = message.mediaFlags === 0 ? undefined : message.mediaFlags;
|
|
1430
|
+
obj.media_rules_version = message.mediaRulesVersion === 0 ? undefined : message.mediaRulesVersion;
|
|
1431
|
+
obj.minted_at = message.mintedAt !== BigInt(0) ? message.mintedAt?.toString() : undefined;
|
|
1432
|
+
return obj;
|
|
1433
|
+
},
|
|
1434
|
+
fromAminoMsg(object) {
|
|
1435
|
+
return exports.Token.fromAmino(object.value);
|
|
1436
|
+
},
|
|
1437
|
+
fromProtoMsg(message) {
|
|
1438
|
+
return exports.Token.decode(message.value);
|
|
1439
|
+
},
|
|
1440
|
+
toProto(message) {
|
|
1441
|
+
return exports.Token.encode(message).finish();
|
|
1442
|
+
},
|
|
1443
|
+
toProtoMsg(message) {
|
|
1444
|
+
return {
|
|
1445
|
+
typeUrl: "/sparkdream.artifact.v1.Token",
|
|
1446
|
+
value: exports.Token.encode(message).finish()
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
function createBaseTokenRef() {
|
|
1451
|
+
return {
|
|
1452
|
+
classId: BigInt(0),
|
|
1453
|
+
tokenId: BigInt(0)
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* TokenRef addresses one token.
|
|
1458
|
+
* @name TokenRef
|
|
1459
|
+
* @package sparkdream.artifact.v1
|
|
1460
|
+
* @see proto type: sparkdream.artifact.v1.TokenRef
|
|
1461
|
+
*/
|
|
1462
|
+
exports.TokenRef = {
|
|
1463
|
+
typeUrl: "/sparkdream.artifact.v1.TokenRef",
|
|
1464
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1465
|
+
if (message.classId !== BigInt(0)) {
|
|
1466
|
+
writer.uint32(8).uint64(message.classId);
|
|
1467
|
+
}
|
|
1468
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1469
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1470
|
+
}
|
|
1471
|
+
return writer;
|
|
1472
|
+
},
|
|
1473
|
+
decode(input, length) {
|
|
1474
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1475
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1476
|
+
const message = createBaseTokenRef();
|
|
1477
|
+
while (reader.pos < end) {
|
|
1478
|
+
const tag = reader.uint32();
|
|
1479
|
+
switch (tag >>> 3) {
|
|
1480
|
+
case 1:
|
|
1481
|
+
message.classId = reader.uint64();
|
|
1482
|
+
break;
|
|
1483
|
+
case 2:
|
|
1484
|
+
message.tokenId = reader.uint64();
|
|
1485
|
+
break;
|
|
1486
|
+
default:
|
|
1487
|
+
reader.skipType(tag & 7);
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
return message;
|
|
1492
|
+
},
|
|
1493
|
+
fromPartial(object) {
|
|
1494
|
+
const message = createBaseTokenRef();
|
|
1495
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1496
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1497
|
+
return message;
|
|
1498
|
+
},
|
|
1499
|
+
fromAmino(object) {
|
|
1500
|
+
const message = createBaseTokenRef();
|
|
1501
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1502
|
+
message.classId = BigInt(object.class_id);
|
|
1503
|
+
}
|
|
1504
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1505
|
+
message.tokenId = BigInt(object.token_id);
|
|
1506
|
+
}
|
|
1507
|
+
return message;
|
|
1508
|
+
},
|
|
1509
|
+
toAmino(message) {
|
|
1510
|
+
const obj = {};
|
|
1511
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1512
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1513
|
+
return obj;
|
|
1514
|
+
},
|
|
1515
|
+
fromAminoMsg(object) {
|
|
1516
|
+
return exports.TokenRef.fromAmino(object.value);
|
|
1517
|
+
},
|
|
1518
|
+
fromProtoMsg(message) {
|
|
1519
|
+
return exports.TokenRef.decode(message.value);
|
|
1520
|
+
},
|
|
1521
|
+
toProto(message) {
|
|
1522
|
+
return exports.TokenRef.encode(message).finish();
|
|
1523
|
+
},
|
|
1524
|
+
toProtoMsg(message) {
|
|
1525
|
+
return {
|
|
1526
|
+
typeUrl: "/sparkdream.artifact.v1.TokenRef",
|
|
1527
|
+
value: exports.TokenRef.encode(message).finish()
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
function createBasePendingTransfer() {
|
|
1532
|
+
return {
|
|
1533
|
+
classId: BigInt(0),
|
|
1534
|
+
tokenId: BigInt(0),
|
|
1535
|
+
from: "",
|
|
1536
|
+
to: "",
|
|
1537
|
+
createdAt: BigInt(0),
|
|
1538
|
+
expiresAt: BigInt(0)
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* PendingTransfer is an existing token awaiting the recipient's acceptance.
|
|
1543
|
+
* @name PendingTransfer
|
|
1544
|
+
* @package sparkdream.artifact.v1
|
|
1545
|
+
* @see proto type: sparkdream.artifact.v1.PendingTransfer
|
|
1546
|
+
*/
|
|
1547
|
+
exports.PendingTransfer = {
|
|
1548
|
+
typeUrl: "/sparkdream.artifact.v1.PendingTransfer",
|
|
1549
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1550
|
+
if (message.classId !== BigInt(0)) {
|
|
1551
|
+
writer.uint32(8).uint64(message.classId);
|
|
1552
|
+
}
|
|
1553
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1554
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1555
|
+
}
|
|
1556
|
+
if (message.from !== "") {
|
|
1557
|
+
writer.uint32(26).string(message.from);
|
|
1558
|
+
}
|
|
1559
|
+
if (message.to !== "") {
|
|
1560
|
+
writer.uint32(34).string(message.to);
|
|
1561
|
+
}
|
|
1562
|
+
if (message.createdAt !== BigInt(0)) {
|
|
1563
|
+
writer.uint32(40).int64(message.createdAt);
|
|
1564
|
+
}
|
|
1565
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
1566
|
+
writer.uint32(48).int64(message.expiresAt);
|
|
1567
|
+
}
|
|
1568
|
+
return writer;
|
|
1569
|
+
},
|
|
1570
|
+
decode(input, length) {
|
|
1571
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1572
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1573
|
+
const message = createBasePendingTransfer();
|
|
1574
|
+
while (reader.pos < end) {
|
|
1575
|
+
const tag = reader.uint32();
|
|
1576
|
+
switch (tag >>> 3) {
|
|
1577
|
+
case 1:
|
|
1578
|
+
message.classId = reader.uint64();
|
|
1579
|
+
break;
|
|
1580
|
+
case 2:
|
|
1581
|
+
message.tokenId = reader.uint64();
|
|
1582
|
+
break;
|
|
1583
|
+
case 3:
|
|
1584
|
+
message.from = reader.string();
|
|
1585
|
+
break;
|
|
1586
|
+
case 4:
|
|
1587
|
+
message.to = reader.string();
|
|
1588
|
+
break;
|
|
1589
|
+
case 5:
|
|
1590
|
+
message.createdAt = reader.int64();
|
|
1591
|
+
break;
|
|
1592
|
+
case 6:
|
|
1593
|
+
message.expiresAt = reader.int64();
|
|
1594
|
+
break;
|
|
1595
|
+
default:
|
|
1596
|
+
reader.skipType(tag & 7);
|
|
1597
|
+
break;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
return message;
|
|
1601
|
+
},
|
|
1602
|
+
fromPartial(object) {
|
|
1603
|
+
const message = createBasePendingTransfer();
|
|
1604
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1605
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1606
|
+
message.from = object.from ?? "";
|
|
1607
|
+
message.to = object.to ?? "";
|
|
1608
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
1609
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
1610
|
+
return message;
|
|
1611
|
+
},
|
|
1612
|
+
fromAmino(object) {
|
|
1613
|
+
const message = createBasePendingTransfer();
|
|
1614
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1615
|
+
message.classId = BigInt(object.class_id);
|
|
1616
|
+
}
|
|
1617
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1618
|
+
message.tokenId = BigInt(object.token_id);
|
|
1619
|
+
}
|
|
1620
|
+
if (object.from !== undefined && object.from !== null) {
|
|
1621
|
+
message.from = object.from;
|
|
1622
|
+
}
|
|
1623
|
+
if (object.to !== undefined && object.to !== null) {
|
|
1624
|
+
message.to = object.to;
|
|
1625
|
+
}
|
|
1626
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
1627
|
+
message.createdAt = BigInt(object.created_at);
|
|
1628
|
+
}
|
|
1629
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
1630
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
1631
|
+
}
|
|
1632
|
+
return message;
|
|
1633
|
+
},
|
|
1634
|
+
toAmino(message) {
|
|
1635
|
+
const obj = {};
|
|
1636
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1637
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1638
|
+
obj.from = message.from === "" ? undefined : message.from;
|
|
1639
|
+
obj.to = message.to === "" ? undefined : message.to;
|
|
1640
|
+
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
1641
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
1642
|
+
return obj;
|
|
1643
|
+
},
|
|
1644
|
+
fromAminoMsg(object) {
|
|
1645
|
+
return exports.PendingTransfer.fromAmino(object.value);
|
|
1646
|
+
},
|
|
1647
|
+
fromProtoMsg(message) {
|
|
1648
|
+
return exports.PendingTransfer.decode(message.value);
|
|
1649
|
+
},
|
|
1650
|
+
toProto(message) {
|
|
1651
|
+
return exports.PendingTransfer.encode(message).finish();
|
|
1652
|
+
},
|
|
1653
|
+
toProtoMsg(message) {
|
|
1654
|
+
return {
|
|
1655
|
+
typeUrl: "/sparkdream.artifact.v1.PendingTransfer",
|
|
1656
|
+
value: exports.PendingTransfer.encode(message).finish()
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
};
|
|
1660
|
+
function createBasePendingMint() {
|
|
1661
|
+
return {
|
|
1662
|
+
classId: BigInt(0),
|
|
1663
|
+
tokenId: BigInt(0),
|
|
1664
|
+
minter: "",
|
|
1665
|
+
to: "",
|
|
1666
|
+
metadata: exports.TokenMetadata.fromPartial({}),
|
|
1667
|
+
deposit: "",
|
|
1668
|
+
createdAt: BigInt(0),
|
|
1669
|
+
expiresAt: BigInt(0)
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* PendingMint is a mint awaiting the recipient's acceptance. The token id is
|
|
1674
|
+
* reserved and the deposit escrowed; no Token exists until acceptance.
|
|
1675
|
+
* @name PendingMint
|
|
1676
|
+
* @package sparkdream.artifact.v1
|
|
1677
|
+
* @see proto type: sparkdream.artifact.v1.PendingMint
|
|
1678
|
+
*/
|
|
1679
|
+
exports.PendingMint = {
|
|
1680
|
+
typeUrl: "/sparkdream.artifact.v1.PendingMint",
|
|
1681
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1682
|
+
if (message.classId !== BigInt(0)) {
|
|
1683
|
+
writer.uint32(8).uint64(message.classId);
|
|
1684
|
+
}
|
|
1685
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1686
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1687
|
+
}
|
|
1688
|
+
if (message.minter !== "") {
|
|
1689
|
+
writer.uint32(26).string(message.minter);
|
|
1690
|
+
}
|
|
1691
|
+
if (message.to !== "") {
|
|
1692
|
+
writer.uint32(34).string(message.to);
|
|
1693
|
+
}
|
|
1694
|
+
if (message.metadata !== undefined) {
|
|
1695
|
+
exports.TokenMetadata.encode(message.metadata, writer.uint32(42).fork()).ldelim();
|
|
1696
|
+
}
|
|
1697
|
+
if (message.deposit !== "") {
|
|
1698
|
+
writer.uint32(50).string(message.deposit);
|
|
1699
|
+
}
|
|
1700
|
+
if (message.createdAt !== BigInt(0)) {
|
|
1701
|
+
writer.uint32(56).int64(message.createdAt);
|
|
1702
|
+
}
|
|
1703
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
1704
|
+
writer.uint32(64).int64(message.expiresAt);
|
|
1705
|
+
}
|
|
1706
|
+
return writer;
|
|
1707
|
+
},
|
|
1708
|
+
decode(input, length) {
|
|
1709
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1710
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1711
|
+
const message = createBasePendingMint();
|
|
1712
|
+
while (reader.pos < end) {
|
|
1713
|
+
const tag = reader.uint32();
|
|
1714
|
+
switch (tag >>> 3) {
|
|
1715
|
+
case 1:
|
|
1716
|
+
message.classId = reader.uint64();
|
|
1717
|
+
break;
|
|
1718
|
+
case 2:
|
|
1719
|
+
message.tokenId = reader.uint64();
|
|
1720
|
+
break;
|
|
1721
|
+
case 3:
|
|
1722
|
+
message.minter = reader.string();
|
|
1723
|
+
break;
|
|
1724
|
+
case 4:
|
|
1725
|
+
message.to = reader.string();
|
|
1726
|
+
break;
|
|
1727
|
+
case 5:
|
|
1728
|
+
message.metadata = exports.TokenMetadata.decode(reader, reader.uint32());
|
|
1729
|
+
break;
|
|
1730
|
+
case 6:
|
|
1731
|
+
message.deposit = reader.string();
|
|
1732
|
+
break;
|
|
1733
|
+
case 7:
|
|
1734
|
+
message.createdAt = reader.int64();
|
|
1735
|
+
break;
|
|
1736
|
+
case 8:
|
|
1737
|
+
message.expiresAt = reader.int64();
|
|
1738
|
+
break;
|
|
1739
|
+
default:
|
|
1740
|
+
reader.skipType(tag & 7);
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
return message;
|
|
1745
|
+
},
|
|
1746
|
+
fromPartial(object) {
|
|
1747
|
+
const message = createBasePendingMint();
|
|
1748
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1749
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1750
|
+
message.minter = object.minter ?? "";
|
|
1751
|
+
message.to = object.to ?? "";
|
|
1752
|
+
message.metadata = object.metadata !== undefined && object.metadata !== null ? exports.TokenMetadata.fromPartial(object.metadata) : undefined;
|
|
1753
|
+
message.deposit = object.deposit ?? "";
|
|
1754
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
1755
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
1756
|
+
return message;
|
|
1757
|
+
},
|
|
1758
|
+
fromAmino(object) {
|
|
1759
|
+
const message = createBasePendingMint();
|
|
1760
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1761
|
+
message.classId = BigInt(object.class_id);
|
|
1762
|
+
}
|
|
1763
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1764
|
+
message.tokenId = BigInt(object.token_id);
|
|
1765
|
+
}
|
|
1766
|
+
if (object.minter !== undefined && object.minter !== null) {
|
|
1767
|
+
message.minter = object.minter;
|
|
1768
|
+
}
|
|
1769
|
+
if (object.to !== undefined && object.to !== null) {
|
|
1770
|
+
message.to = object.to;
|
|
1771
|
+
}
|
|
1772
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
1773
|
+
message.metadata = exports.TokenMetadata.fromAmino(object.metadata);
|
|
1774
|
+
}
|
|
1775
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
1776
|
+
message.deposit = object.deposit;
|
|
1777
|
+
}
|
|
1778
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
1779
|
+
message.createdAt = BigInt(object.created_at);
|
|
1780
|
+
}
|
|
1781
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
1782
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
1783
|
+
}
|
|
1784
|
+
return message;
|
|
1785
|
+
},
|
|
1786
|
+
toAmino(message) {
|
|
1787
|
+
const obj = {};
|
|
1788
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1789
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1790
|
+
obj.minter = message.minter === "" ? undefined : message.minter;
|
|
1791
|
+
obj.to = message.to === "" ? undefined : message.to;
|
|
1792
|
+
obj.metadata = message.metadata ? exports.TokenMetadata.toAmino(message.metadata) : exports.TokenMetadata.toAmino(exports.TokenMetadata.fromPartial({}));
|
|
1793
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
1794
|
+
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
1795
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
1796
|
+
return obj;
|
|
1797
|
+
},
|
|
1798
|
+
fromAminoMsg(object) {
|
|
1799
|
+
return exports.PendingMint.fromAmino(object.value);
|
|
1800
|
+
},
|
|
1801
|
+
fromProtoMsg(message) {
|
|
1802
|
+
return exports.PendingMint.decode(message.value);
|
|
1803
|
+
},
|
|
1804
|
+
toProto(message) {
|
|
1805
|
+
return exports.PendingMint.encode(message).finish();
|
|
1806
|
+
},
|
|
1807
|
+
toProtoMsg(message) {
|
|
1808
|
+
return {
|
|
1809
|
+
typeUrl: "/sparkdream.artifact.v1.PendingMint",
|
|
1810
|
+
value: exports.PendingMint.encode(message).finish()
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
};
|
|
1814
|
+
function createBaseListing() {
|
|
1815
|
+
return {
|
|
1816
|
+
classId: BigInt(0),
|
|
1817
|
+
tokenId: BigInt(0),
|
|
1818
|
+
seller: "",
|
|
1819
|
+
price: coin_1.Coin.fromPartial({}),
|
|
1820
|
+
createdAt: BigInt(0),
|
|
1821
|
+
expiresAt: BigInt(0),
|
|
1822
|
+
nonce: BigInt(0)
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Listing is a fixed-price offer to sell. Nothing is escrowed.
|
|
1827
|
+
* @name Listing
|
|
1828
|
+
* @package sparkdream.artifact.v1
|
|
1829
|
+
* @see proto type: sparkdream.artifact.v1.Listing
|
|
1830
|
+
*/
|
|
1831
|
+
exports.Listing = {
|
|
1832
|
+
typeUrl: "/sparkdream.artifact.v1.Listing",
|
|
1833
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1834
|
+
if (message.classId !== BigInt(0)) {
|
|
1835
|
+
writer.uint32(8).uint64(message.classId);
|
|
1836
|
+
}
|
|
1837
|
+
if (message.tokenId !== BigInt(0)) {
|
|
1838
|
+
writer.uint32(16).uint64(message.tokenId);
|
|
1839
|
+
}
|
|
1840
|
+
if (message.seller !== "") {
|
|
1841
|
+
writer.uint32(26).string(message.seller);
|
|
1842
|
+
}
|
|
1843
|
+
if (message.price !== undefined) {
|
|
1844
|
+
coin_1.Coin.encode(message.price, writer.uint32(34).fork()).ldelim();
|
|
1845
|
+
}
|
|
1846
|
+
if (message.createdAt !== BigInt(0)) {
|
|
1847
|
+
writer.uint32(40).int64(message.createdAt);
|
|
1848
|
+
}
|
|
1849
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
1850
|
+
writer.uint32(48).int64(message.expiresAt);
|
|
1851
|
+
}
|
|
1852
|
+
if (message.nonce !== BigInt(0)) {
|
|
1853
|
+
writer.uint32(56).uint64(message.nonce);
|
|
1854
|
+
}
|
|
1855
|
+
return writer;
|
|
1856
|
+
},
|
|
1857
|
+
decode(input, length) {
|
|
1858
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1859
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1860
|
+
const message = createBaseListing();
|
|
1861
|
+
while (reader.pos < end) {
|
|
1862
|
+
const tag = reader.uint32();
|
|
1863
|
+
switch (tag >>> 3) {
|
|
1864
|
+
case 1:
|
|
1865
|
+
message.classId = reader.uint64();
|
|
1866
|
+
break;
|
|
1867
|
+
case 2:
|
|
1868
|
+
message.tokenId = reader.uint64();
|
|
1869
|
+
break;
|
|
1870
|
+
case 3:
|
|
1871
|
+
message.seller = reader.string();
|
|
1872
|
+
break;
|
|
1873
|
+
case 4:
|
|
1874
|
+
message.price = coin_1.Coin.decode(reader, reader.uint32());
|
|
1875
|
+
break;
|
|
1876
|
+
case 5:
|
|
1877
|
+
message.createdAt = reader.int64();
|
|
1878
|
+
break;
|
|
1879
|
+
case 6:
|
|
1880
|
+
message.expiresAt = reader.int64();
|
|
1881
|
+
break;
|
|
1882
|
+
case 7:
|
|
1883
|
+
message.nonce = reader.uint64();
|
|
1884
|
+
break;
|
|
1885
|
+
default:
|
|
1886
|
+
reader.skipType(tag & 7);
|
|
1887
|
+
break;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
return message;
|
|
1891
|
+
},
|
|
1892
|
+
fromPartial(object) {
|
|
1893
|
+
const message = createBaseListing();
|
|
1894
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
1895
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
1896
|
+
message.seller = object.seller ?? "";
|
|
1897
|
+
message.price = object.price !== undefined && object.price !== null ? coin_1.Coin.fromPartial(object.price) : undefined;
|
|
1898
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
1899
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
1900
|
+
message.nonce = object.nonce !== undefined && object.nonce !== null ? BigInt(object.nonce.toString()) : BigInt(0);
|
|
1901
|
+
return message;
|
|
1902
|
+
},
|
|
1903
|
+
fromAmino(object) {
|
|
1904
|
+
const message = createBaseListing();
|
|
1905
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1906
|
+
message.classId = BigInt(object.class_id);
|
|
1907
|
+
}
|
|
1908
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
1909
|
+
message.tokenId = BigInt(object.token_id);
|
|
1910
|
+
}
|
|
1911
|
+
if (object.seller !== undefined && object.seller !== null) {
|
|
1912
|
+
message.seller = object.seller;
|
|
1913
|
+
}
|
|
1914
|
+
if (object.price !== undefined && object.price !== null) {
|
|
1915
|
+
message.price = coin_1.Coin.fromAmino(object.price);
|
|
1916
|
+
}
|
|
1917
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
1918
|
+
message.createdAt = BigInt(object.created_at);
|
|
1919
|
+
}
|
|
1920
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
1921
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
1922
|
+
}
|
|
1923
|
+
if (object.nonce !== undefined && object.nonce !== null) {
|
|
1924
|
+
message.nonce = BigInt(object.nonce);
|
|
1925
|
+
}
|
|
1926
|
+
return message;
|
|
1927
|
+
},
|
|
1928
|
+
toAmino(message) {
|
|
1929
|
+
const obj = {};
|
|
1930
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
1931
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
1932
|
+
obj.seller = message.seller === "" ? undefined : message.seller;
|
|
1933
|
+
obj.price = message.price ? coin_1.Coin.toAmino(message.price) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
1934
|
+
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
1935
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
1936
|
+
obj.nonce = message.nonce !== BigInt(0) ? message.nonce?.toString() : undefined;
|
|
1937
|
+
return obj;
|
|
1938
|
+
},
|
|
1939
|
+
fromAminoMsg(object) {
|
|
1940
|
+
return exports.Listing.fromAmino(object.value);
|
|
1941
|
+
},
|
|
1942
|
+
fromProtoMsg(message) {
|
|
1943
|
+
return exports.Listing.decode(message.value);
|
|
1944
|
+
},
|
|
1945
|
+
toProto(message) {
|
|
1946
|
+
return exports.Listing.encode(message).finish();
|
|
1947
|
+
},
|
|
1948
|
+
toProtoMsg(message) {
|
|
1949
|
+
return {
|
|
1950
|
+
typeUrl: "/sparkdream.artifact.v1.Listing",
|
|
1951
|
+
value: exports.Listing.encode(message).finish()
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
function createBasePendingClassOwner() {
|
|
1956
|
+
return {
|
|
1957
|
+
classId: BigInt(0),
|
|
1958
|
+
proposedOwner: "",
|
|
1959
|
+
expiresAt: BigInt(0)
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* PendingClassOwner is a proposed class ownership handover.
|
|
1964
|
+
* @name PendingClassOwner
|
|
1965
|
+
* @package sparkdream.artifact.v1
|
|
1966
|
+
* @see proto type: sparkdream.artifact.v1.PendingClassOwner
|
|
1967
|
+
*/
|
|
1968
|
+
exports.PendingClassOwner = {
|
|
1969
|
+
typeUrl: "/sparkdream.artifact.v1.PendingClassOwner",
|
|
1970
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1971
|
+
if (message.classId !== BigInt(0)) {
|
|
1972
|
+
writer.uint32(8).uint64(message.classId);
|
|
1973
|
+
}
|
|
1974
|
+
if (message.proposedOwner !== "") {
|
|
1975
|
+
writer.uint32(18).string(message.proposedOwner);
|
|
1976
|
+
}
|
|
1977
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
1978
|
+
writer.uint32(24).int64(message.expiresAt);
|
|
1979
|
+
}
|
|
1980
|
+
return writer;
|
|
1981
|
+
},
|
|
1982
|
+
decode(input, length) {
|
|
1983
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1984
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1985
|
+
const message = createBasePendingClassOwner();
|
|
1986
|
+
while (reader.pos < end) {
|
|
1987
|
+
const tag = reader.uint32();
|
|
1988
|
+
switch (tag >>> 3) {
|
|
1989
|
+
case 1:
|
|
1990
|
+
message.classId = reader.uint64();
|
|
1991
|
+
break;
|
|
1992
|
+
case 2:
|
|
1993
|
+
message.proposedOwner = reader.string();
|
|
1994
|
+
break;
|
|
1995
|
+
case 3:
|
|
1996
|
+
message.expiresAt = reader.int64();
|
|
1997
|
+
break;
|
|
1998
|
+
default:
|
|
1999
|
+
reader.skipType(tag & 7);
|
|
2000
|
+
break;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
return message;
|
|
2004
|
+
},
|
|
2005
|
+
fromPartial(object) {
|
|
2006
|
+
const message = createBasePendingClassOwner();
|
|
2007
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
2008
|
+
message.proposedOwner = object.proposedOwner ?? "";
|
|
2009
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
2010
|
+
return message;
|
|
2011
|
+
},
|
|
2012
|
+
fromAmino(object) {
|
|
2013
|
+
const message = createBasePendingClassOwner();
|
|
2014
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
2015
|
+
message.classId = BigInt(object.class_id);
|
|
2016
|
+
}
|
|
2017
|
+
if (object.proposed_owner !== undefined && object.proposed_owner !== null) {
|
|
2018
|
+
message.proposedOwner = object.proposed_owner;
|
|
2019
|
+
}
|
|
2020
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
2021
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
2022
|
+
}
|
|
2023
|
+
return message;
|
|
2024
|
+
},
|
|
2025
|
+
toAmino(message) {
|
|
2026
|
+
const obj = {};
|
|
2027
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2028
|
+
obj.proposed_owner = message.proposedOwner === "" ? undefined : message.proposedOwner;
|
|
2029
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
2030
|
+
return obj;
|
|
2031
|
+
},
|
|
2032
|
+
fromAminoMsg(object) {
|
|
2033
|
+
return exports.PendingClassOwner.fromAmino(object.value);
|
|
2034
|
+
},
|
|
2035
|
+
fromProtoMsg(message) {
|
|
2036
|
+
return exports.PendingClassOwner.decode(message.value);
|
|
2037
|
+
},
|
|
2038
|
+
toProto(message) {
|
|
2039
|
+
return exports.PendingClassOwner.encode(message).finish();
|
|
2040
|
+
},
|
|
2041
|
+
toProtoMsg(message) {
|
|
2042
|
+
return {
|
|
2043
|
+
typeUrl: "/sparkdream.artifact.v1.PendingClassOwner",
|
|
2044
|
+
value: exports.PendingClassOwner.encode(message).finish()
|
|
2045
|
+
};
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
function createBaseHideRecord() {
|
|
2049
|
+
return {
|
|
2050
|
+
id: BigInt(0),
|
|
2051
|
+
targetKind: 0,
|
|
2052
|
+
classId: BigInt(0),
|
|
2053
|
+
tokenId: BigInt(0),
|
|
2054
|
+
sentinel: "",
|
|
2055
|
+
committedAmount: "",
|
|
2056
|
+
reason: 0,
|
|
2057
|
+
reasonText: "",
|
|
2058
|
+
hiddenAt: BigInt(0),
|
|
2059
|
+
appealDeadline: BigInt(0),
|
|
2060
|
+
appellant: "",
|
|
2061
|
+
appealed: false,
|
|
2062
|
+
appealId: BigInt(0),
|
|
2063
|
+
outcome: 0
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
/**
|
|
2067
|
+
* HideRecord is the moderation record for a hidden class or token.
|
|
2068
|
+
* @name HideRecord
|
|
2069
|
+
* @package sparkdream.artifact.v1
|
|
2070
|
+
* @see proto type: sparkdream.artifact.v1.HideRecord
|
|
2071
|
+
*/
|
|
2072
|
+
exports.HideRecord = {
|
|
2073
|
+
typeUrl: "/sparkdream.artifact.v1.HideRecord",
|
|
2074
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2075
|
+
if (message.id !== BigInt(0)) {
|
|
2076
|
+
writer.uint32(8).uint64(message.id);
|
|
2077
|
+
}
|
|
2078
|
+
if (message.targetKind !== 0) {
|
|
2079
|
+
writer.uint32(16).int32(message.targetKind);
|
|
2080
|
+
}
|
|
2081
|
+
if (message.classId !== BigInt(0)) {
|
|
2082
|
+
writer.uint32(24).uint64(message.classId);
|
|
2083
|
+
}
|
|
2084
|
+
if (message.tokenId !== BigInt(0)) {
|
|
2085
|
+
writer.uint32(32).uint64(message.tokenId);
|
|
2086
|
+
}
|
|
2087
|
+
if (message.sentinel !== "") {
|
|
2088
|
+
writer.uint32(42).string(message.sentinel);
|
|
2089
|
+
}
|
|
2090
|
+
if (message.committedAmount !== "") {
|
|
2091
|
+
writer.uint32(50).string(message.committedAmount);
|
|
2092
|
+
}
|
|
2093
|
+
if (message.reason !== 0) {
|
|
2094
|
+
writer.uint32(56).int32(message.reason);
|
|
2095
|
+
}
|
|
2096
|
+
if (message.reasonText !== "") {
|
|
2097
|
+
writer.uint32(66).string(message.reasonText);
|
|
2098
|
+
}
|
|
2099
|
+
if (message.hiddenAt !== BigInt(0)) {
|
|
2100
|
+
writer.uint32(72).int64(message.hiddenAt);
|
|
2101
|
+
}
|
|
2102
|
+
if (message.appealDeadline !== BigInt(0)) {
|
|
2103
|
+
writer.uint32(80).int64(message.appealDeadline);
|
|
2104
|
+
}
|
|
2105
|
+
if (message.appellant !== "") {
|
|
2106
|
+
writer.uint32(90).string(message.appellant);
|
|
2107
|
+
}
|
|
2108
|
+
if (message.appealed === true) {
|
|
2109
|
+
writer.uint32(96).bool(message.appealed);
|
|
2110
|
+
}
|
|
2111
|
+
if (message.appealId !== BigInt(0)) {
|
|
2112
|
+
writer.uint32(104).uint64(message.appealId);
|
|
2113
|
+
}
|
|
2114
|
+
if (message.outcome !== 0) {
|
|
2115
|
+
writer.uint32(112).int32(message.outcome);
|
|
2116
|
+
}
|
|
2117
|
+
return writer;
|
|
2118
|
+
},
|
|
2119
|
+
decode(input, length) {
|
|
2120
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2122
|
+
const message = createBaseHideRecord();
|
|
2123
|
+
while (reader.pos < end) {
|
|
2124
|
+
const tag = reader.uint32();
|
|
2125
|
+
switch (tag >>> 3) {
|
|
2126
|
+
case 1:
|
|
2127
|
+
message.id = reader.uint64();
|
|
2128
|
+
break;
|
|
2129
|
+
case 2:
|
|
2130
|
+
message.targetKind = reader.int32();
|
|
2131
|
+
break;
|
|
2132
|
+
case 3:
|
|
2133
|
+
message.classId = reader.uint64();
|
|
2134
|
+
break;
|
|
2135
|
+
case 4:
|
|
2136
|
+
message.tokenId = reader.uint64();
|
|
2137
|
+
break;
|
|
2138
|
+
case 5:
|
|
2139
|
+
message.sentinel = reader.string();
|
|
2140
|
+
break;
|
|
2141
|
+
case 6:
|
|
2142
|
+
message.committedAmount = reader.string();
|
|
2143
|
+
break;
|
|
2144
|
+
case 7:
|
|
2145
|
+
message.reason = reader.int32();
|
|
2146
|
+
break;
|
|
2147
|
+
case 8:
|
|
2148
|
+
message.reasonText = reader.string();
|
|
2149
|
+
break;
|
|
2150
|
+
case 9:
|
|
2151
|
+
message.hiddenAt = reader.int64();
|
|
2152
|
+
break;
|
|
2153
|
+
case 10:
|
|
2154
|
+
message.appealDeadline = reader.int64();
|
|
2155
|
+
break;
|
|
2156
|
+
case 11:
|
|
2157
|
+
message.appellant = reader.string();
|
|
2158
|
+
break;
|
|
2159
|
+
case 12:
|
|
2160
|
+
message.appealed = reader.bool();
|
|
2161
|
+
break;
|
|
2162
|
+
case 13:
|
|
2163
|
+
message.appealId = reader.uint64();
|
|
2164
|
+
break;
|
|
2165
|
+
case 14:
|
|
2166
|
+
message.outcome = reader.int32();
|
|
2167
|
+
break;
|
|
2168
|
+
default:
|
|
2169
|
+
reader.skipType(tag & 7);
|
|
2170
|
+
break;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
return message;
|
|
2174
|
+
},
|
|
2175
|
+
fromPartial(object) {
|
|
2176
|
+
const message = createBaseHideRecord();
|
|
2177
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
2178
|
+
message.targetKind = object.targetKind ?? 0;
|
|
2179
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
2180
|
+
message.tokenId = object.tokenId !== undefined && object.tokenId !== null ? BigInt(object.tokenId.toString()) : BigInt(0);
|
|
2181
|
+
message.sentinel = object.sentinel ?? "";
|
|
2182
|
+
message.committedAmount = object.committedAmount ?? "";
|
|
2183
|
+
message.reason = object.reason ?? 0;
|
|
2184
|
+
message.reasonText = object.reasonText ?? "";
|
|
2185
|
+
message.hiddenAt = object.hiddenAt !== undefined && object.hiddenAt !== null ? BigInt(object.hiddenAt.toString()) : BigInt(0);
|
|
2186
|
+
message.appealDeadline = object.appealDeadline !== undefined && object.appealDeadline !== null ? BigInt(object.appealDeadline.toString()) : BigInt(0);
|
|
2187
|
+
message.appellant = object.appellant ?? "";
|
|
2188
|
+
message.appealed = object.appealed ?? false;
|
|
2189
|
+
message.appealId = object.appealId !== undefined && object.appealId !== null ? BigInt(object.appealId.toString()) : BigInt(0);
|
|
2190
|
+
message.outcome = object.outcome ?? 0;
|
|
2191
|
+
return message;
|
|
2192
|
+
},
|
|
2193
|
+
fromAmino(object) {
|
|
2194
|
+
const message = createBaseHideRecord();
|
|
2195
|
+
if (object.id !== undefined && object.id !== null) {
|
|
2196
|
+
message.id = BigInt(object.id);
|
|
2197
|
+
}
|
|
2198
|
+
if (object.target_kind !== undefined && object.target_kind !== null) {
|
|
2199
|
+
message.targetKind = object.target_kind;
|
|
2200
|
+
}
|
|
2201
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
2202
|
+
message.classId = BigInt(object.class_id);
|
|
2203
|
+
}
|
|
2204
|
+
if (object.token_id !== undefined && object.token_id !== null) {
|
|
2205
|
+
message.tokenId = BigInt(object.token_id);
|
|
2206
|
+
}
|
|
2207
|
+
if (object.sentinel !== undefined && object.sentinel !== null) {
|
|
2208
|
+
message.sentinel = object.sentinel;
|
|
2209
|
+
}
|
|
2210
|
+
if (object.committed_amount !== undefined && object.committed_amount !== null) {
|
|
2211
|
+
message.committedAmount = object.committed_amount;
|
|
2212
|
+
}
|
|
2213
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
2214
|
+
message.reason = object.reason;
|
|
2215
|
+
}
|
|
2216
|
+
if (object.reason_text !== undefined && object.reason_text !== null) {
|
|
2217
|
+
message.reasonText = object.reason_text;
|
|
2218
|
+
}
|
|
2219
|
+
if (object.hidden_at !== undefined && object.hidden_at !== null) {
|
|
2220
|
+
message.hiddenAt = BigInt(object.hidden_at);
|
|
2221
|
+
}
|
|
2222
|
+
if (object.appeal_deadline !== undefined && object.appeal_deadline !== null) {
|
|
2223
|
+
message.appealDeadline = BigInt(object.appeal_deadline);
|
|
2224
|
+
}
|
|
2225
|
+
if (object.appellant !== undefined && object.appellant !== null) {
|
|
2226
|
+
message.appellant = object.appellant;
|
|
2227
|
+
}
|
|
2228
|
+
if (object.appealed !== undefined && object.appealed !== null) {
|
|
2229
|
+
message.appealed = object.appealed;
|
|
2230
|
+
}
|
|
2231
|
+
if (object.appeal_id !== undefined && object.appeal_id !== null) {
|
|
2232
|
+
message.appealId = BigInt(object.appeal_id);
|
|
2233
|
+
}
|
|
2234
|
+
if (object.outcome !== undefined && object.outcome !== null) {
|
|
2235
|
+
message.outcome = object.outcome;
|
|
2236
|
+
}
|
|
2237
|
+
return message;
|
|
2238
|
+
},
|
|
2239
|
+
toAmino(message) {
|
|
2240
|
+
const obj = {};
|
|
2241
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
2242
|
+
obj.target_kind = message.targetKind === 0 ? undefined : message.targetKind;
|
|
2243
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2244
|
+
obj.token_id = message.tokenId !== BigInt(0) ? message.tokenId?.toString() : undefined;
|
|
2245
|
+
obj.sentinel = message.sentinel === "" ? undefined : message.sentinel;
|
|
2246
|
+
obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
|
|
2247
|
+
obj.reason = message.reason === 0 ? undefined : message.reason;
|
|
2248
|
+
obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
|
|
2249
|
+
obj.hidden_at = message.hiddenAt !== BigInt(0) ? message.hiddenAt?.toString() : undefined;
|
|
2250
|
+
obj.appeal_deadline = message.appealDeadline !== BigInt(0) ? message.appealDeadline?.toString() : undefined;
|
|
2251
|
+
obj.appellant = message.appellant === "" ? undefined : message.appellant;
|
|
2252
|
+
obj.appealed = message.appealed === false ? undefined : message.appealed;
|
|
2253
|
+
obj.appeal_id = message.appealId !== BigInt(0) ? message.appealId?.toString() : undefined;
|
|
2254
|
+
obj.outcome = message.outcome === 0 ? undefined : message.outcome;
|
|
2255
|
+
return obj;
|
|
2256
|
+
},
|
|
2257
|
+
fromAminoMsg(object) {
|
|
2258
|
+
return exports.HideRecord.fromAmino(object.value);
|
|
2259
|
+
},
|
|
2260
|
+
fromProtoMsg(message) {
|
|
2261
|
+
return exports.HideRecord.decode(message.value);
|
|
2262
|
+
},
|
|
2263
|
+
toProto(message) {
|
|
2264
|
+
return exports.HideRecord.encode(message).finish();
|
|
2265
|
+
},
|
|
2266
|
+
toProtoMsg(message) {
|
|
2267
|
+
return {
|
|
2268
|
+
typeUrl: "/sparkdream.artifact.v1.HideRecord",
|
|
2269
|
+
value: exports.HideRecord.encode(message).finish()
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
function createBaseReceivePolicyEntry() {
|
|
2274
|
+
return {
|
|
2275
|
+
address: "",
|
|
2276
|
+
policy: 0
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* ReceivePolicyEntry is a genesis export entry.
|
|
2281
|
+
* @name ReceivePolicyEntry
|
|
2282
|
+
* @package sparkdream.artifact.v1
|
|
2283
|
+
* @see proto type: sparkdream.artifact.v1.ReceivePolicyEntry
|
|
2284
|
+
*/
|
|
2285
|
+
exports.ReceivePolicyEntry = {
|
|
2286
|
+
typeUrl: "/sparkdream.artifact.v1.ReceivePolicyEntry",
|
|
2287
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2288
|
+
if (message.address !== "") {
|
|
2289
|
+
writer.uint32(10).string(message.address);
|
|
2290
|
+
}
|
|
2291
|
+
if (message.policy !== 0) {
|
|
2292
|
+
writer.uint32(16).int32(message.policy);
|
|
2293
|
+
}
|
|
2294
|
+
return writer;
|
|
2295
|
+
},
|
|
2296
|
+
decode(input, length) {
|
|
2297
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2298
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2299
|
+
const message = createBaseReceivePolicyEntry();
|
|
2300
|
+
while (reader.pos < end) {
|
|
2301
|
+
const tag = reader.uint32();
|
|
2302
|
+
switch (tag >>> 3) {
|
|
2303
|
+
case 1:
|
|
2304
|
+
message.address = reader.string();
|
|
2305
|
+
break;
|
|
2306
|
+
case 2:
|
|
2307
|
+
message.policy = reader.int32();
|
|
2308
|
+
break;
|
|
2309
|
+
default:
|
|
2310
|
+
reader.skipType(tag & 7);
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
return message;
|
|
2315
|
+
},
|
|
2316
|
+
fromPartial(object) {
|
|
2317
|
+
const message = createBaseReceivePolicyEntry();
|
|
2318
|
+
message.address = object.address ?? "";
|
|
2319
|
+
message.policy = object.policy ?? 0;
|
|
2320
|
+
return message;
|
|
2321
|
+
},
|
|
2322
|
+
fromAmino(object) {
|
|
2323
|
+
const message = createBaseReceivePolicyEntry();
|
|
2324
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2325
|
+
message.address = object.address;
|
|
2326
|
+
}
|
|
2327
|
+
if (object.policy !== undefined && object.policy !== null) {
|
|
2328
|
+
message.policy = object.policy;
|
|
2329
|
+
}
|
|
2330
|
+
return message;
|
|
2331
|
+
},
|
|
2332
|
+
toAmino(message) {
|
|
2333
|
+
const obj = {};
|
|
2334
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2335
|
+
obj.policy = message.policy === 0 ? undefined : message.policy;
|
|
2336
|
+
return obj;
|
|
2337
|
+
},
|
|
2338
|
+
fromAminoMsg(object) {
|
|
2339
|
+
return exports.ReceivePolicyEntry.fromAmino(object.value);
|
|
2340
|
+
},
|
|
2341
|
+
fromProtoMsg(message) {
|
|
2342
|
+
return exports.ReceivePolicyEntry.decode(message.value);
|
|
2343
|
+
},
|
|
2344
|
+
toProto(message) {
|
|
2345
|
+
return exports.ReceivePolicyEntry.encode(message).finish();
|
|
2346
|
+
},
|
|
2347
|
+
toProtoMsg(message) {
|
|
2348
|
+
return {
|
|
2349
|
+
typeUrl: "/sparkdream.artifact.v1.ReceivePolicyEntry",
|
|
2350
|
+
value: exports.ReceivePolicyEntry.encode(message).finish()
|
|
2351
|
+
};
|
|
2352
|
+
}
|
|
2353
|
+
};
|
|
2354
|
+
function createBasePublicMintCountEntry() {
|
|
2355
|
+
return {
|
|
2356
|
+
classId: BigInt(0),
|
|
2357
|
+
address: "",
|
|
2358
|
+
count: 0
|
|
2359
|
+
};
|
|
2360
|
+
}
|
|
2361
|
+
/**
|
|
2362
|
+
* PublicMintCountEntry is a genesis export entry.
|
|
2363
|
+
* @name PublicMintCountEntry
|
|
2364
|
+
* @package sparkdream.artifact.v1
|
|
2365
|
+
* @see proto type: sparkdream.artifact.v1.PublicMintCountEntry
|
|
2366
|
+
*/
|
|
2367
|
+
exports.PublicMintCountEntry = {
|
|
2368
|
+
typeUrl: "/sparkdream.artifact.v1.PublicMintCountEntry",
|
|
2369
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2370
|
+
if (message.classId !== BigInt(0)) {
|
|
2371
|
+
writer.uint32(8).uint64(message.classId);
|
|
2372
|
+
}
|
|
2373
|
+
if (message.address !== "") {
|
|
2374
|
+
writer.uint32(18).string(message.address);
|
|
2375
|
+
}
|
|
2376
|
+
if (message.count !== 0) {
|
|
2377
|
+
writer.uint32(24).uint32(message.count);
|
|
2378
|
+
}
|
|
2379
|
+
return writer;
|
|
2380
|
+
},
|
|
2381
|
+
decode(input, length) {
|
|
2382
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2384
|
+
const message = createBasePublicMintCountEntry();
|
|
2385
|
+
while (reader.pos < end) {
|
|
2386
|
+
const tag = reader.uint32();
|
|
2387
|
+
switch (tag >>> 3) {
|
|
2388
|
+
case 1:
|
|
2389
|
+
message.classId = reader.uint64();
|
|
2390
|
+
break;
|
|
2391
|
+
case 2:
|
|
2392
|
+
message.address = reader.string();
|
|
2393
|
+
break;
|
|
2394
|
+
case 3:
|
|
2395
|
+
message.count = reader.uint32();
|
|
2396
|
+
break;
|
|
2397
|
+
default:
|
|
2398
|
+
reader.skipType(tag & 7);
|
|
2399
|
+
break;
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
return message;
|
|
2403
|
+
},
|
|
2404
|
+
fromPartial(object) {
|
|
2405
|
+
const message = createBasePublicMintCountEntry();
|
|
2406
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
2407
|
+
message.address = object.address ?? "";
|
|
2408
|
+
message.count = object.count ?? 0;
|
|
2409
|
+
return message;
|
|
2410
|
+
},
|
|
2411
|
+
fromAmino(object) {
|
|
2412
|
+
const message = createBasePublicMintCountEntry();
|
|
2413
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
2414
|
+
message.classId = BigInt(object.class_id);
|
|
2415
|
+
}
|
|
2416
|
+
if (object.address !== undefined && object.address !== null) {
|
|
2417
|
+
message.address = object.address;
|
|
2418
|
+
}
|
|
2419
|
+
if (object.count !== undefined && object.count !== null) {
|
|
2420
|
+
message.count = object.count;
|
|
2421
|
+
}
|
|
2422
|
+
return message;
|
|
2423
|
+
},
|
|
2424
|
+
toAmino(message) {
|
|
2425
|
+
const obj = {};
|
|
2426
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2427
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
2428
|
+
obj.count = message.count === 0 ? undefined : message.count;
|
|
2429
|
+
return obj;
|
|
2430
|
+
},
|
|
2431
|
+
fromAminoMsg(object) {
|
|
2432
|
+
return exports.PublicMintCountEntry.fromAmino(object.value);
|
|
2433
|
+
},
|
|
2434
|
+
fromProtoMsg(message) {
|
|
2435
|
+
return exports.PublicMintCountEntry.decode(message.value);
|
|
2436
|
+
},
|
|
2437
|
+
toProto(message) {
|
|
2438
|
+
return exports.PublicMintCountEntry.encode(message).finish();
|
|
2439
|
+
},
|
|
2440
|
+
toProtoMsg(message) {
|
|
2441
|
+
return {
|
|
2442
|
+
typeUrl: "/sparkdream.artifact.v1.PublicMintCountEntry",
|
|
2443
|
+
value: exports.PublicMintCountEntry.encode(message).finish()
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
};
|
|
2447
|
+
function createBaseQueueCursor() {
|
|
2448
|
+
return {
|
|
2449
|
+
classId: BigInt(0),
|
|
2450
|
+
cursor: BigInt(0)
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
/**
|
|
2454
|
+
* QueueCursor is a class drain-queue cursor (genesis export entry).
|
|
2455
|
+
* @name QueueCursor
|
|
2456
|
+
* @package sparkdream.artifact.v1
|
|
2457
|
+
* @see proto type: sparkdream.artifact.v1.QueueCursor
|
|
2458
|
+
*/
|
|
2459
|
+
exports.QueueCursor = {
|
|
2460
|
+
typeUrl: "/sparkdream.artifact.v1.QueueCursor",
|
|
2461
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2462
|
+
if (message.classId !== BigInt(0)) {
|
|
2463
|
+
writer.uint32(8).uint64(message.classId);
|
|
2464
|
+
}
|
|
2465
|
+
if (message.cursor !== BigInt(0)) {
|
|
2466
|
+
writer.uint32(16).uint64(message.cursor);
|
|
2467
|
+
}
|
|
2468
|
+
return writer;
|
|
2469
|
+
},
|
|
2470
|
+
decode(input, length) {
|
|
2471
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2472
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2473
|
+
const message = createBaseQueueCursor();
|
|
2474
|
+
while (reader.pos < end) {
|
|
2475
|
+
const tag = reader.uint32();
|
|
2476
|
+
switch (tag >>> 3) {
|
|
2477
|
+
case 1:
|
|
2478
|
+
message.classId = reader.uint64();
|
|
2479
|
+
break;
|
|
2480
|
+
case 2:
|
|
2481
|
+
message.cursor = reader.uint64();
|
|
2482
|
+
break;
|
|
2483
|
+
default:
|
|
2484
|
+
reader.skipType(tag & 7);
|
|
2485
|
+
break;
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
return message;
|
|
2489
|
+
},
|
|
2490
|
+
fromPartial(object) {
|
|
2491
|
+
const message = createBaseQueueCursor();
|
|
2492
|
+
message.classId = object.classId !== undefined && object.classId !== null ? BigInt(object.classId.toString()) : BigInt(0);
|
|
2493
|
+
message.cursor = object.cursor !== undefined && object.cursor !== null ? BigInt(object.cursor.toString()) : BigInt(0);
|
|
2494
|
+
return message;
|
|
2495
|
+
},
|
|
2496
|
+
fromAmino(object) {
|
|
2497
|
+
const message = createBaseQueueCursor();
|
|
2498
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
2499
|
+
message.classId = BigInt(object.class_id);
|
|
2500
|
+
}
|
|
2501
|
+
if (object.cursor !== undefined && object.cursor !== null) {
|
|
2502
|
+
message.cursor = BigInt(object.cursor);
|
|
2503
|
+
}
|
|
2504
|
+
return message;
|
|
2505
|
+
},
|
|
2506
|
+
toAmino(message) {
|
|
2507
|
+
const obj = {};
|
|
2508
|
+
obj.class_id = message.classId !== BigInt(0) ? message.classId?.toString() : undefined;
|
|
2509
|
+
obj.cursor = message.cursor !== BigInt(0) ? message.cursor?.toString() : undefined;
|
|
2510
|
+
return obj;
|
|
2511
|
+
},
|
|
2512
|
+
fromAminoMsg(object) {
|
|
2513
|
+
return exports.QueueCursor.fromAmino(object.value);
|
|
2514
|
+
},
|
|
2515
|
+
fromProtoMsg(message) {
|
|
2516
|
+
return exports.QueueCursor.decode(message.value);
|
|
2517
|
+
},
|
|
2518
|
+
toProto(message) {
|
|
2519
|
+
return exports.QueueCursor.encode(message).finish();
|
|
2520
|
+
},
|
|
2521
|
+
toProtoMsg(message) {
|
|
2522
|
+
return {
|
|
2523
|
+
typeUrl: "/sparkdream.artifact.v1.QueueCursor",
|
|
2524
|
+
value: exports.QueueCursor.encode(message).finish()
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
};
|
|
2528
|
+
function createBaseSentinelDailyHideEntry() {
|
|
2529
|
+
return {
|
|
2530
|
+
sentinel: "",
|
|
2531
|
+
day: BigInt(0),
|
|
2532
|
+
count: 0
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* SentinelDailyHideEntry is a genesis export entry.
|
|
2537
|
+
* @name SentinelDailyHideEntry
|
|
2538
|
+
* @package sparkdream.artifact.v1
|
|
2539
|
+
* @see proto type: sparkdream.artifact.v1.SentinelDailyHideEntry
|
|
2540
|
+
*/
|
|
2541
|
+
exports.SentinelDailyHideEntry = {
|
|
2542
|
+
typeUrl: "/sparkdream.artifact.v1.SentinelDailyHideEntry",
|
|
2543
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2544
|
+
if (message.sentinel !== "") {
|
|
2545
|
+
writer.uint32(10).string(message.sentinel);
|
|
2546
|
+
}
|
|
2547
|
+
if (message.day !== BigInt(0)) {
|
|
2548
|
+
writer.uint32(16).int64(message.day);
|
|
2549
|
+
}
|
|
2550
|
+
if (message.count !== 0) {
|
|
2551
|
+
writer.uint32(24).uint32(message.count);
|
|
2552
|
+
}
|
|
2553
|
+
return writer;
|
|
2554
|
+
},
|
|
2555
|
+
decode(input, length) {
|
|
2556
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2557
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2558
|
+
const message = createBaseSentinelDailyHideEntry();
|
|
2559
|
+
while (reader.pos < end) {
|
|
2560
|
+
const tag = reader.uint32();
|
|
2561
|
+
switch (tag >>> 3) {
|
|
2562
|
+
case 1:
|
|
2563
|
+
message.sentinel = reader.string();
|
|
2564
|
+
break;
|
|
2565
|
+
case 2:
|
|
2566
|
+
message.day = reader.int64();
|
|
2567
|
+
break;
|
|
2568
|
+
case 3:
|
|
2569
|
+
message.count = reader.uint32();
|
|
2570
|
+
break;
|
|
2571
|
+
default:
|
|
2572
|
+
reader.skipType(tag & 7);
|
|
2573
|
+
break;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
return message;
|
|
2577
|
+
},
|
|
2578
|
+
fromPartial(object) {
|
|
2579
|
+
const message = createBaseSentinelDailyHideEntry();
|
|
2580
|
+
message.sentinel = object.sentinel ?? "";
|
|
2581
|
+
message.day = object.day !== undefined && object.day !== null ? BigInt(object.day.toString()) : BigInt(0);
|
|
2582
|
+
message.count = object.count ?? 0;
|
|
2583
|
+
return message;
|
|
2584
|
+
},
|
|
2585
|
+
fromAmino(object) {
|
|
2586
|
+
const message = createBaseSentinelDailyHideEntry();
|
|
2587
|
+
if (object.sentinel !== undefined && object.sentinel !== null) {
|
|
2588
|
+
message.sentinel = object.sentinel;
|
|
2589
|
+
}
|
|
2590
|
+
if (object.day !== undefined && object.day !== null) {
|
|
2591
|
+
message.day = BigInt(object.day);
|
|
2592
|
+
}
|
|
2593
|
+
if (object.count !== undefined && object.count !== null) {
|
|
2594
|
+
message.count = object.count;
|
|
2595
|
+
}
|
|
2596
|
+
return message;
|
|
2597
|
+
},
|
|
2598
|
+
toAmino(message) {
|
|
2599
|
+
const obj = {};
|
|
2600
|
+
obj.sentinel = message.sentinel === "" ? undefined : message.sentinel;
|
|
2601
|
+
obj.day = message.day !== BigInt(0) ? message.day?.toString() : undefined;
|
|
2602
|
+
obj.count = message.count === 0 ? undefined : message.count;
|
|
2603
|
+
return obj;
|
|
2604
|
+
},
|
|
2605
|
+
fromAminoMsg(object) {
|
|
2606
|
+
return exports.SentinelDailyHideEntry.fromAmino(object.value);
|
|
2607
|
+
},
|
|
2608
|
+
fromProtoMsg(message) {
|
|
2609
|
+
return exports.SentinelDailyHideEntry.decode(message.value);
|
|
2610
|
+
},
|
|
2611
|
+
toProto(message) {
|
|
2612
|
+
return exports.SentinelDailyHideEntry.encode(message).finish();
|
|
2613
|
+
},
|
|
2614
|
+
toProtoMsg(message) {
|
|
2615
|
+
return {
|
|
2616
|
+
typeUrl: "/sparkdream.artifact.v1.SentinelDailyHideEntry",
|
|
2617
|
+
value: exports.SentinelDailyHideEntry.encode(message).finish()
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
};
|