@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.18
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +51 -50
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14912 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NameOperationalParams = exports.Params = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const duration_1 = require("../../../google/protobuf/duration");
|
|
6
|
-
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
7
6
|
const binary_1 = require("../../../binary");
|
|
8
7
|
function createBaseParams() {
|
|
9
8
|
return {
|
|
@@ -12,14 +11,16 @@ function createBaseParams() {
|
|
|
12
11
|
maxNameLength: BigInt(0),
|
|
13
12
|
maxNamesPerAddress: BigInt(0),
|
|
14
13
|
expirationDuration: duration_1.Duration.fromPartial({}),
|
|
15
|
-
|
|
14
|
+
registrationFeeAmount: "",
|
|
16
15
|
disputeStakeDream: "",
|
|
17
16
|
disputeTimeoutBlocks: BigInt(0),
|
|
18
17
|
contestStakeDream: ""
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
|
-
* Params defines the parameters for the module.
|
|
21
|
+
* Params defines the parameters for the module. Fee amounts are bare
|
|
22
|
+
* math.Int values in the chain's bond/dream denom — wrapped into sdk.Coin
|
|
23
|
+
* at the point of use via the identity keeper.
|
|
23
24
|
* @name Params
|
|
24
25
|
* @package sparkdream.name.v1
|
|
25
26
|
* @see proto type: sparkdream.name.v1.Params
|
|
@@ -43,8 +44,8 @@ exports.Params = {
|
|
|
43
44
|
if (message.expirationDuration !== undefined) {
|
|
44
45
|
duration_1.Duration.encode(message.expirationDuration, writer.uint32(42).fork()).ldelim();
|
|
45
46
|
}
|
|
46
|
-
if (message.
|
|
47
|
-
|
|
47
|
+
if (message.registrationFeeAmount !== "") {
|
|
48
|
+
writer.uint32(50).string(message.registrationFeeAmount);
|
|
48
49
|
}
|
|
49
50
|
if (message.disputeStakeDream !== "") {
|
|
50
51
|
writer.uint32(58).string(message.disputeStakeDream);
|
|
@@ -80,7 +81,7 @@ exports.Params = {
|
|
|
80
81
|
message.expirationDuration = duration_1.Duration.decode(reader, reader.uint32());
|
|
81
82
|
break;
|
|
82
83
|
case 6:
|
|
83
|
-
message.
|
|
84
|
+
message.registrationFeeAmount = reader.string();
|
|
84
85
|
break;
|
|
85
86
|
case 7:
|
|
86
87
|
message.disputeStakeDream = reader.string();
|
|
@@ -105,7 +106,7 @@ exports.Params = {
|
|
|
105
106
|
message.maxNameLength = object.maxNameLength !== undefined && object.maxNameLength !== null ? BigInt(object.maxNameLength.toString()) : BigInt(0);
|
|
106
107
|
message.maxNamesPerAddress = object.maxNamesPerAddress !== undefined && object.maxNamesPerAddress !== null ? BigInt(object.maxNamesPerAddress.toString()) : BigInt(0);
|
|
107
108
|
message.expirationDuration = object.expirationDuration !== undefined && object.expirationDuration !== null ? duration_1.Duration.fromPartial(object.expirationDuration) : undefined;
|
|
108
|
-
message.
|
|
109
|
+
message.registrationFeeAmount = object.registrationFeeAmount ?? "";
|
|
109
110
|
message.disputeStakeDream = object.disputeStakeDream ?? "";
|
|
110
111
|
message.disputeTimeoutBlocks = object.disputeTimeoutBlocks !== undefined && object.disputeTimeoutBlocks !== null ? BigInt(object.disputeTimeoutBlocks.toString()) : BigInt(0);
|
|
111
112
|
message.contestStakeDream = object.contestStakeDream ?? "";
|
|
@@ -126,8 +127,8 @@ exports.Params = {
|
|
|
126
127
|
if (object.expiration_duration !== undefined && object.expiration_duration !== null) {
|
|
127
128
|
message.expirationDuration = duration_1.Duration.fromAmino(object.expiration_duration);
|
|
128
129
|
}
|
|
129
|
-
if (object.
|
|
130
|
-
message.
|
|
130
|
+
if (object.registration_fee_amount !== undefined && object.registration_fee_amount !== null) {
|
|
131
|
+
message.registrationFeeAmount = object.registration_fee_amount;
|
|
131
132
|
}
|
|
132
133
|
if (object.dispute_stake_dream !== undefined && object.dispute_stake_dream !== null) {
|
|
133
134
|
message.disputeStakeDream = object.dispute_stake_dream;
|
|
@@ -152,7 +153,7 @@ exports.Params = {
|
|
|
152
153
|
obj.max_name_length = message.maxNameLength !== BigInt(0) ? message.maxNameLength?.toString() : undefined;
|
|
153
154
|
obj.max_names_per_address = message.maxNamesPerAddress !== BigInt(0) ? message.maxNamesPerAddress?.toString() : undefined;
|
|
154
155
|
obj.expiration_duration = message.expirationDuration ? duration_1.Duration.toAmino(message.expirationDuration) : undefined;
|
|
155
|
-
obj.
|
|
156
|
+
obj.registration_fee_amount = message.registrationFeeAmount === "" ? undefined : message.registrationFeeAmount;
|
|
156
157
|
obj.dispute_stake_dream = message.disputeStakeDream === "" ? undefined : message.disputeStakeDream;
|
|
157
158
|
obj.dispute_timeout_blocks = message.disputeTimeoutBlocks !== BigInt(0) ? message.disputeTimeoutBlocks?.toString() : undefined;
|
|
158
159
|
obj.contest_stake_dream = message.contestStakeDream === "" ? undefined : message.contestStakeDream;
|
|
@@ -183,7 +184,7 @@ exports.Params = {
|
|
|
183
184
|
function createBaseNameOperationalParams() {
|
|
184
185
|
return {
|
|
185
186
|
expirationDuration: duration_1.Duration.fromPartial({}),
|
|
186
|
-
|
|
187
|
+
registrationFeeAmount: "",
|
|
187
188
|
disputeStakeDream: "",
|
|
188
189
|
disputeTimeoutBlocks: BigInt(0),
|
|
189
190
|
contestStakeDream: ""
|
|
@@ -205,8 +206,8 @@ exports.NameOperationalParams = {
|
|
|
205
206
|
if (message.expirationDuration !== undefined) {
|
|
206
207
|
duration_1.Duration.encode(message.expirationDuration, writer.uint32(10).fork()).ldelim();
|
|
207
208
|
}
|
|
208
|
-
if (message.
|
|
209
|
-
|
|
209
|
+
if (message.registrationFeeAmount !== "") {
|
|
210
|
+
writer.uint32(18).string(message.registrationFeeAmount);
|
|
210
211
|
}
|
|
211
212
|
if (message.disputeStakeDream !== "") {
|
|
212
213
|
writer.uint32(26).string(message.disputeStakeDream);
|
|
@@ -230,7 +231,7 @@ exports.NameOperationalParams = {
|
|
|
230
231
|
message.expirationDuration = duration_1.Duration.decode(reader, reader.uint32());
|
|
231
232
|
break;
|
|
232
233
|
case 2:
|
|
233
|
-
message.
|
|
234
|
+
message.registrationFeeAmount = reader.string();
|
|
234
235
|
break;
|
|
235
236
|
case 3:
|
|
236
237
|
message.disputeStakeDream = reader.string();
|
|
@@ -251,7 +252,7 @@ exports.NameOperationalParams = {
|
|
|
251
252
|
fromPartial(object) {
|
|
252
253
|
const message = createBaseNameOperationalParams();
|
|
253
254
|
message.expirationDuration = object.expirationDuration !== undefined && object.expirationDuration !== null ? duration_1.Duration.fromPartial(object.expirationDuration) : undefined;
|
|
254
|
-
message.
|
|
255
|
+
message.registrationFeeAmount = object.registrationFeeAmount ?? "";
|
|
255
256
|
message.disputeStakeDream = object.disputeStakeDream ?? "";
|
|
256
257
|
message.disputeTimeoutBlocks = object.disputeTimeoutBlocks !== undefined && object.disputeTimeoutBlocks !== null ? BigInt(object.disputeTimeoutBlocks.toString()) : BigInt(0);
|
|
257
258
|
message.contestStakeDream = object.contestStakeDream ?? "";
|
|
@@ -262,8 +263,8 @@ exports.NameOperationalParams = {
|
|
|
262
263
|
if (object.expiration_duration !== undefined && object.expiration_duration !== null) {
|
|
263
264
|
message.expirationDuration = duration_1.Duration.fromAmino(object.expiration_duration);
|
|
264
265
|
}
|
|
265
|
-
if (object.
|
|
266
|
-
message.
|
|
266
|
+
if (object.registration_fee_amount !== undefined && object.registration_fee_amount !== null) {
|
|
267
|
+
message.registrationFeeAmount = object.registration_fee_amount;
|
|
267
268
|
}
|
|
268
269
|
if (object.dispute_stake_dream !== undefined && object.dispute_stake_dream !== null) {
|
|
269
270
|
message.disputeStakeDream = object.dispute_stake_dream;
|
|
@@ -279,7 +280,7 @@ exports.NameOperationalParams = {
|
|
|
279
280
|
toAmino(message) {
|
|
280
281
|
const obj = {};
|
|
281
282
|
obj.expiration_duration = message.expirationDuration ? duration_1.Duration.toAmino(message.expirationDuration) : undefined;
|
|
282
|
-
obj.
|
|
283
|
+
obj.registration_fee_amount = message.registrationFeeAmount === "" ? undefined : message.registrationFeeAmount;
|
|
283
284
|
obj.dispute_stake_dream = message.disputeStakeDream === "" ? undefined : message.disputeStakeDream;
|
|
284
285
|
obj.dispute_timeout_blocks = message.disputeTimeoutBlocks !== BigInt(0) ? message.disputeTimeoutBlocks?.toString() : undefined;
|
|
285
286
|
obj.contest_stake_dream = message.contestStakeDream === "" ? undefined : message.contestStakeDream;
|
|
@@ -25,12 +25,17 @@ export declare function roleTypeToJSON(object: RoleType): string;
|
|
|
25
25
|
* reduced privileges depending on role, rewards may auto-bond.
|
|
26
26
|
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
27
27
|
* enforced before re-bonding.
|
|
28
|
+
* UNBONDING: role-holder called MsgUnbondRole. DREAM remains locked and the
|
|
29
|
+
* bond remains slashable until unbond_completion_time. Action-time gates in
|
|
30
|
+
* owning modules must refuse on this status to contain new liability while
|
|
31
|
+
* the bond drains.
|
|
28
32
|
*/
|
|
29
33
|
export declare enum BondedRoleStatus {
|
|
30
34
|
BONDED_ROLE_STATUS_UNSPECIFIED = 0,
|
|
31
35
|
BONDED_ROLE_STATUS_NORMAL = 1,
|
|
32
36
|
BONDED_ROLE_STATUS_RECOVERY = 2,
|
|
33
37
|
BONDED_ROLE_STATUS_DEMOTED = 3,
|
|
38
|
+
BONDED_ROLE_STATUS_UNBONDING = 4,
|
|
34
39
|
UNRECOGNIZED = -1
|
|
35
40
|
}
|
|
36
41
|
export declare const BondedRoleStatusAmino: typeof BondedRoleStatus;
|
|
@@ -98,6 +103,21 @@ export interface BondedRole {
|
|
|
98
103
|
* this role.
|
|
99
104
|
*/
|
|
100
105
|
lastRewardEpoch: bigint;
|
|
106
|
+
/**
|
|
107
|
+
* pending_unbond_amount is DREAM queued for withdrawal via MsgUnbondRole and
|
|
108
|
+
* not yet released to the holder's available balance (math.Int string).
|
|
109
|
+
* Counts toward current_bond — i.e., slashes consume current_bond as a
|
|
110
|
+
* whole and the pending amount is reduced symmetrically on slash. Zero when
|
|
111
|
+
* no unbond is in flight.
|
|
112
|
+
*/
|
|
113
|
+
pendingUnbondAmount: string;
|
|
114
|
+
/**
|
|
115
|
+
* unbond_completion_time is the unix timestamp at which an in-flight unbond
|
|
116
|
+
* matures: the EndBlocker unlocks pending_unbond_amount, resets the field,
|
|
117
|
+
* and flips bond_status (typically to DEMOTED, starting demotion_cooldown).
|
|
118
|
+
* Zero when no unbond is in flight.
|
|
119
|
+
*/
|
|
120
|
+
unbondCompletionTime: bigint;
|
|
101
121
|
}
|
|
102
122
|
export interface BondedRoleProtoMsg {
|
|
103
123
|
typeUrl: "/sparkdream.rep.v1.BondedRole";
|
|
@@ -165,6 +185,21 @@ export interface BondedRoleAmino {
|
|
|
165
185
|
* this role.
|
|
166
186
|
*/
|
|
167
187
|
last_reward_epoch?: string;
|
|
188
|
+
/**
|
|
189
|
+
* pending_unbond_amount is DREAM queued for withdrawal via MsgUnbondRole and
|
|
190
|
+
* not yet released to the holder's available balance (math.Int string).
|
|
191
|
+
* Counts toward current_bond — i.e., slashes consume current_bond as a
|
|
192
|
+
* whole and the pending amount is reduced symmetrically on slash. Zero when
|
|
193
|
+
* no unbond is in flight.
|
|
194
|
+
*/
|
|
195
|
+
pending_unbond_amount?: string;
|
|
196
|
+
/**
|
|
197
|
+
* unbond_completion_time is the unix timestamp at which an in-flight unbond
|
|
198
|
+
* matures: the EndBlocker unlocks pending_unbond_amount, resets the field,
|
|
199
|
+
* and flips bond_status (typically to DEMOTED, starting demotion_cooldown).
|
|
200
|
+
* Zero when no unbond is in flight.
|
|
201
|
+
*/
|
|
202
|
+
unbond_completion_time?: string;
|
|
168
203
|
}
|
|
169
204
|
export interface BondedRoleAminoMsg {
|
|
170
205
|
type: "/sparkdream.rep.v1.BondedRole";
|
|
@@ -221,6 +256,14 @@ export interface BondedRoleConfig {
|
|
|
221
256
|
* from RECOVERY to DEMOTED (math.Int string).
|
|
222
257
|
*/
|
|
223
258
|
demotionThreshold: string;
|
|
259
|
+
/**
|
|
260
|
+
* unbond_cooldown is the number of seconds DREAM stays locked and slashable
|
|
261
|
+
* after MsgUnbondRole is called. While the cooldown is pending, the role's
|
|
262
|
+
* bond_status is UNBONDING and the owning module refuses authority. Zero =
|
|
263
|
+
* no cooldown (immediate withdrawal, legacy behavior). Source of truth is
|
|
264
|
+
* the owning module's operational params.
|
|
265
|
+
*/
|
|
266
|
+
unbondCooldown: bigint;
|
|
224
267
|
}
|
|
225
268
|
export interface BondedRoleConfigProtoMsg {
|
|
226
269
|
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig";
|
|
@@ -277,6 +320,14 @@ export interface BondedRoleConfigAmino {
|
|
|
277
320
|
* from RECOVERY to DEMOTED (math.Int string).
|
|
278
321
|
*/
|
|
279
322
|
demotion_threshold?: string;
|
|
323
|
+
/**
|
|
324
|
+
* unbond_cooldown is the number of seconds DREAM stays locked and slashable
|
|
325
|
+
* after MsgUnbondRole is called. While the cooldown is pending, the role's
|
|
326
|
+
* bond_status is UNBONDING and the owning module refuses authority. Zero =
|
|
327
|
+
* no cooldown (immediate withdrawal, legacy behavior). Source of truth is
|
|
328
|
+
* the owning module's operational params.
|
|
329
|
+
*/
|
|
330
|
+
unbond_cooldown?: string;
|
|
280
331
|
}
|
|
281
332
|
export interface BondedRoleConfigAminoMsg {
|
|
282
333
|
type: "/sparkdream.rep.v1.BondedRoleConfig";
|
|
@@ -66,6 +66,10 @@ function roleTypeToJSON(object) {
|
|
|
66
66
|
* reduced privileges depending on role, rewards may auto-bond.
|
|
67
67
|
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
68
68
|
* enforced before re-bonding.
|
|
69
|
+
* UNBONDING: role-holder called MsgUnbondRole. DREAM remains locked and the
|
|
70
|
+
* bond remains slashable until unbond_completion_time. Action-time gates in
|
|
71
|
+
* owning modules must refuse on this status to contain new liability while
|
|
72
|
+
* the bond drains.
|
|
69
73
|
*/
|
|
70
74
|
var BondedRoleStatus;
|
|
71
75
|
(function (BondedRoleStatus) {
|
|
@@ -73,6 +77,7 @@ var BondedRoleStatus;
|
|
|
73
77
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_NORMAL"] = 1] = "BONDED_ROLE_STATUS_NORMAL";
|
|
74
78
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_RECOVERY"] = 2] = "BONDED_ROLE_STATUS_RECOVERY";
|
|
75
79
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_DEMOTED"] = 3] = "BONDED_ROLE_STATUS_DEMOTED";
|
|
80
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_UNBONDING"] = 4] = "BONDED_ROLE_STATUS_UNBONDING";
|
|
76
81
|
BondedRoleStatus[BondedRoleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
77
82
|
})(BondedRoleStatus || (exports.BondedRoleStatus = BondedRoleStatus = {}));
|
|
78
83
|
exports.BondedRoleStatusAmino = BondedRoleStatus;
|
|
@@ -90,6 +95,9 @@ function bondedRoleStatusFromJSON(object) {
|
|
|
90
95
|
case 3:
|
|
91
96
|
case "BONDED_ROLE_STATUS_DEMOTED":
|
|
92
97
|
return BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED;
|
|
98
|
+
case 4:
|
|
99
|
+
case "BONDED_ROLE_STATUS_UNBONDING":
|
|
100
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_UNBONDING;
|
|
93
101
|
case -1:
|
|
94
102
|
case "UNRECOGNIZED":
|
|
95
103
|
default:
|
|
@@ -106,6 +114,8 @@ function bondedRoleStatusToJSON(object) {
|
|
|
106
114
|
return "BONDED_ROLE_STATUS_RECOVERY";
|
|
107
115
|
case BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED:
|
|
108
116
|
return "BONDED_ROLE_STATUS_DEMOTED";
|
|
117
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_UNBONDING:
|
|
118
|
+
return "BONDED_ROLE_STATUS_UNBONDING";
|
|
109
119
|
case BondedRoleStatus.UNRECOGNIZED:
|
|
110
120
|
default:
|
|
111
121
|
return "UNRECOGNIZED";
|
|
@@ -123,7 +133,9 @@ function createBaseBondedRole() {
|
|
|
123
133
|
consecutiveInactiveEpochs: BigInt(0),
|
|
124
134
|
demotionCooldownUntil: BigInt(0),
|
|
125
135
|
cumulativeRewards: "",
|
|
126
|
-
lastRewardEpoch: BigInt(0)
|
|
136
|
+
lastRewardEpoch: BigInt(0),
|
|
137
|
+
pendingUnbondAmount: "",
|
|
138
|
+
unbondCompletionTime: BigInt(0)
|
|
127
139
|
};
|
|
128
140
|
}
|
|
129
141
|
/**
|
|
@@ -171,6 +183,12 @@ exports.BondedRole = {
|
|
|
171
183
|
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
172
184
|
writer.uint32(88).int64(message.lastRewardEpoch);
|
|
173
185
|
}
|
|
186
|
+
if (message.pendingUnbondAmount !== "") {
|
|
187
|
+
writer.uint32(98).string(message.pendingUnbondAmount);
|
|
188
|
+
}
|
|
189
|
+
if (message.unbondCompletionTime !== BigInt(0)) {
|
|
190
|
+
writer.uint32(104).int64(message.unbondCompletionTime);
|
|
191
|
+
}
|
|
174
192
|
return writer;
|
|
175
193
|
},
|
|
176
194
|
decode(input, length) {
|
|
@@ -213,6 +231,12 @@ exports.BondedRole = {
|
|
|
213
231
|
case 11:
|
|
214
232
|
message.lastRewardEpoch = reader.int64();
|
|
215
233
|
break;
|
|
234
|
+
case 12:
|
|
235
|
+
message.pendingUnbondAmount = reader.string();
|
|
236
|
+
break;
|
|
237
|
+
case 13:
|
|
238
|
+
message.unbondCompletionTime = reader.int64();
|
|
239
|
+
break;
|
|
216
240
|
default:
|
|
217
241
|
reader.skipType(tag & 7);
|
|
218
242
|
break;
|
|
@@ -233,6 +257,8 @@ exports.BondedRole = {
|
|
|
233
257
|
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
234
258
|
message.cumulativeRewards = object.cumulativeRewards ?? "";
|
|
235
259
|
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
260
|
+
message.pendingUnbondAmount = object.pendingUnbondAmount ?? "";
|
|
261
|
+
message.unbondCompletionTime = object.unbondCompletionTime !== undefined && object.unbondCompletionTime !== null ? BigInt(object.unbondCompletionTime.toString()) : BigInt(0);
|
|
236
262
|
return message;
|
|
237
263
|
},
|
|
238
264
|
fromAmino(object) {
|
|
@@ -270,6 +296,12 @@ exports.BondedRole = {
|
|
|
270
296
|
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
271
297
|
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
272
298
|
}
|
|
299
|
+
if (object.pending_unbond_amount !== undefined && object.pending_unbond_amount !== null) {
|
|
300
|
+
message.pendingUnbondAmount = object.pending_unbond_amount;
|
|
301
|
+
}
|
|
302
|
+
if (object.unbond_completion_time !== undefined && object.unbond_completion_time !== null) {
|
|
303
|
+
message.unbondCompletionTime = BigInt(object.unbond_completion_time);
|
|
304
|
+
}
|
|
273
305
|
return message;
|
|
274
306
|
},
|
|
275
307
|
toAmino(message) {
|
|
@@ -285,6 +317,8 @@ exports.BondedRole = {
|
|
|
285
317
|
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
286
318
|
obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
|
|
287
319
|
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
320
|
+
obj.pending_unbond_amount = message.pendingUnbondAmount === "" ? undefined : message.pendingUnbondAmount;
|
|
321
|
+
obj.unbond_completion_time = message.unbondCompletionTime !== BigInt(0) ? message.unbondCompletionTime?.toString() : undefined;
|
|
288
322
|
return obj;
|
|
289
323
|
},
|
|
290
324
|
fromAminoMsg(object) {
|
|
@@ -311,7 +345,8 @@ function createBaseBondedRoleConfig() {
|
|
|
311
345
|
minTrustLevel: "",
|
|
312
346
|
minAgeBlocks: BigInt(0),
|
|
313
347
|
demotionCooldown: BigInt(0),
|
|
314
|
-
demotionThreshold: ""
|
|
348
|
+
demotionThreshold: "",
|
|
349
|
+
unbondCooldown: BigInt(0)
|
|
315
350
|
};
|
|
316
351
|
}
|
|
317
352
|
/**
|
|
@@ -351,6 +386,9 @@ exports.BondedRoleConfig = {
|
|
|
351
386
|
if (message.demotionThreshold !== "") {
|
|
352
387
|
writer.uint32(58).string(message.demotionThreshold);
|
|
353
388
|
}
|
|
389
|
+
if (message.unbondCooldown !== BigInt(0)) {
|
|
390
|
+
writer.uint32(64).int64(message.unbondCooldown);
|
|
391
|
+
}
|
|
354
392
|
return writer;
|
|
355
393
|
},
|
|
356
394
|
decode(input, length) {
|
|
@@ -381,6 +419,9 @@ exports.BondedRoleConfig = {
|
|
|
381
419
|
case 7:
|
|
382
420
|
message.demotionThreshold = reader.string();
|
|
383
421
|
break;
|
|
422
|
+
case 8:
|
|
423
|
+
message.unbondCooldown = reader.int64();
|
|
424
|
+
break;
|
|
384
425
|
default:
|
|
385
426
|
reader.skipType(tag & 7);
|
|
386
427
|
break;
|
|
@@ -397,6 +438,7 @@ exports.BondedRoleConfig = {
|
|
|
397
438
|
message.minAgeBlocks = object.minAgeBlocks !== undefined && object.minAgeBlocks !== null ? BigInt(object.minAgeBlocks.toString()) : BigInt(0);
|
|
398
439
|
message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
|
|
399
440
|
message.demotionThreshold = object.demotionThreshold ?? "";
|
|
441
|
+
message.unbondCooldown = object.unbondCooldown !== undefined && object.unbondCooldown !== null ? BigInt(object.unbondCooldown.toString()) : BigInt(0);
|
|
400
442
|
return message;
|
|
401
443
|
},
|
|
402
444
|
fromAmino(object) {
|
|
@@ -422,6 +464,9 @@ exports.BondedRoleConfig = {
|
|
|
422
464
|
if (object.demotion_threshold !== undefined && object.demotion_threshold !== null) {
|
|
423
465
|
message.demotionThreshold = object.demotion_threshold;
|
|
424
466
|
}
|
|
467
|
+
if (object.unbond_cooldown !== undefined && object.unbond_cooldown !== null) {
|
|
468
|
+
message.unbondCooldown = BigInt(object.unbond_cooldown);
|
|
469
|
+
}
|
|
425
470
|
return message;
|
|
426
471
|
},
|
|
427
472
|
toAmino(message) {
|
|
@@ -433,6 +478,7 @@ exports.BondedRoleConfig = {
|
|
|
433
478
|
obj.min_age_blocks = message.minAgeBlocks !== BigInt(0) ? message.minAgeBlocks?.toString() : undefined;
|
|
434
479
|
obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
|
|
435
480
|
obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
|
|
481
|
+
obj.unbond_cooldown = message.unbondCooldown !== BigInt(0) ? message.unbondCooldown?.toString() : undefined;
|
|
436
482
|
return obj;
|
|
437
483
|
},
|
|
438
484
|
fromAminoMsg(object) {
|
|
@@ -3,6 +3,11 @@ import { DeepPartial } from "../../../helpers";
|
|
|
3
3
|
/**
|
|
4
4
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
5
5
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
6
|
+
*
|
|
7
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
8
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
9
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
10
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
6
11
|
* @name Tag
|
|
7
12
|
* @package sparkdream.rep.v1
|
|
8
13
|
* @see proto type: sparkdream.rep.v1.Tag
|
|
@@ -12,7 +17,6 @@ export interface Tag {
|
|
|
12
17
|
usageCount: bigint;
|
|
13
18
|
createdAt: bigint;
|
|
14
19
|
lastUsedAt: bigint;
|
|
15
|
-
expirationIndex: bigint;
|
|
16
20
|
}
|
|
17
21
|
export interface TagProtoMsg {
|
|
18
22
|
typeUrl: "/sparkdream.rep.v1.Tag";
|
|
@@ -21,6 +25,11 @@ export interface TagProtoMsg {
|
|
|
21
25
|
/**
|
|
22
26
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
23
27
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
28
|
+
*
|
|
29
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
30
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
31
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
32
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
24
33
|
* @name TagAmino
|
|
25
34
|
* @package sparkdream.rep.v1
|
|
26
35
|
* @see proto type: sparkdream.rep.v1.Tag
|
|
@@ -30,7 +39,6 @@ export interface TagAmino {
|
|
|
30
39
|
usage_count?: string;
|
|
31
40
|
created_at?: string;
|
|
32
41
|
last_used_at?: string;
|
|
33
|
-
expiration_index?: string;
|
|
34
42
|
}
|
|
35
43
|
export interface TagAminoMsg {
|
|
36
44
|
type: "/sparkdream.rep.v1.Tag";
|
|
@@ -39,6 +47,11 @@ export interface TagAminoMsg {
|
|
|
39
47
|
/**
|
|
40
48
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
41
49
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
50
|
+
*
|
|
51
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
52
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
53
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
54
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
42
55
|
* @name Tag
|
|
43
56
|
* @package sparkdream.rep.v1
|
|
44
57
|
* @see proto type: sparkdream.rep.v1.Tag
|
package/sparkdream/rep/v1/tag.js
CHANGED
|
@@ -8,13 +8,17 @@ function createBaseTag() {
|
|
|
8
8
|
name: "",
|
|
9
9
|
usageCount: BigInt(0),
|
|
10
10
|
createdAt: BigInt(0),
|
|
11
|
-
lastUsedAt: BigInt(0)
|
|
12
|
-
expirationIndex: BigInt(0)
|
|
11
|
+
lastUsedAt: BigInt(0)
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
17
16
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
17
|
+
*
|
|
18
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
19
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
20
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
21
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
18
22
|
* @name Tag
|
|
19
23
|
* @package sparkdream.rep.v1
|
|
20
24
|
* @see proto type: sparkdream.rep.v1.Tag
|
|
@@ -34,9 +38,6 @@ exports.Tag = {
|
|
|
34
38
|
if (message.lastUsedAt !== BigInt(0)) {
|
|
35
39
|
writer.uint32(32).int64(message.lastUsedAt);
|
|
36
40
|
}
|
|
37
|
-
if (message.expirationIndex !== BigInt(0)) {
|
|
38
|
-
writer.uint32(40).int64(message.expirationIndex);
|
|
39
|
-
}
|
|
40
41
|
return writer;
|
|
41
42
|
},
|
|
42
43
|
decode(input, length) {
|
|
@@ -58,9 +59,6 @@ exports.Tag = {
|
|
|
58
59
|
case 4:
|
|
59
60
|
message.lastUsedAt = reader.int64();
|
|
60
61
|
break;
|
|
61
|
-
case 5:
|
|
62
|
-
message.expirationIndex = reader.int64();
|
|
63
|
-
break;
|
|
64
62
|
default:
|
|
65
63
|
reader.skipType(tag & 7);
|
|
66
64
|
break;
|
|
@@ -74,7 +72,6 @@ exports.Tag = {
|
|
|
74
72
|
message.usageCount = object.usageCount !== undefined && object.usageCount !== null ? BigInt(object.usageCount.toString()) : BigInt(0);
|
|
75
73
|
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
76
74
|
message.lastUsedAt = object.lastUsedAt !== undefined && object.lastUsedAt !== null ? BigInt(object.lastUsedAt.toString()) : BigInt(0);
|
|
77
|
-
message.expirationIndex = object.expirationIndex !== undefined && object.expirationIndex !== null ? BigInt(object.expirationIndex.toString()) : BigInt(0);
|
|
78
75
|
return message;
|
|
79
76
|
},
|
|
80
77
|
fromAmino(object) {
|
|
@@ -91,9 +88,6 @@ exports.Tag = {
|
|
|
91
88
|
if (object.last_used_at !== undefined && object.last_used_at !== null) {
|
|
92
89
|
message.lastUsedAt = BigInt(object.last_used_at);
|
|
93
90
|
}
|
|
94
|
-
if (object.expiration_index !== undefined && object.expiration_index !== null) {
|
|
95
|
-
message.expirationIndex = BigInt(object.expiration_index);
|
|
96
|
-
}
|
|
97
91
|
return message;
|
|
98
92
|
},
|
|
99
93
|
toAmino(message) {
|
|
@@ -102,7 +96,6 @@ exports.Tag = {
|
|
|
102
96
|
obj.usage_count = message.usageCount !== BigInt(0) ? message.usageCount?.toString() : undefined;
|
|
103
97
|
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
104
98
|
obj.last_used_at = message.lastUsedAt !== BigInt(0) ? message.lastUsedAt?.toString() : undefined;
|
|
105
|
-
obj.expiration_index = message.expirationIndex !== BigInt(0) ? message.expirationIndex?.toString() : undefined;
|
|
106
99
|
return obj;
|
|
107
100
|
},
|
|
108
101
|
fromAminoMsg(object) {
|
|
@@ -257,6 +257,8 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
257
257
|
getProposalVotes(request: import("./commons/v1/query").QueryGetProposalVotesRequest): Promise<import("./commons/v1/query").QueryGetProposalVotesResponse>;
|
|
258
258
|
getCategory(request: import("./commons/v1/query").QueryGetCategoryRequest): Promise<import("./commons/v1/query").QueryGetCategoryResponse>;
|
|
259
259
|
listCategory(request?: import("./commons/v1/query").QueryAllCategoryRequest): Promise<import("./commons/v1/query").QueryAllCategoryResponse>;
|
|
260
|
+
getRecurringSpend(request: import("./commons/v1/query").QueryGetRecurringSpendRequest): Promise<import("./commons/v1/query").QueryGetRecurringSpendResponse>;
|
|
261
|
+
listRecurringSpends(request: import("./commons/v1/query").QueryListRecurringSpendsRequest): Promise<import("./commons/v1/query").QueryListRecurringSpendsResponse>;
|
|
260
262
|
};
|
|
261
263
|
};
|
|
262
264
|
ecosystem: {
|
|
@@ -270,8 +272,8 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
270
272
|
getPeer(request: import("./federation/v1/query").QueryGetPeerRequest): Promise<import("./federation/v1/query").QueryGetPeerResponse>;
|
|
271
273
|
listPeers(request?: import("./federation/v1/query").QueryListPeersRequest): Promise<import("./federation/v1/query").QueryListPeersResponse>;
|
|
272
274
|
getPeerPolicy(request: import("./federation/v1/query").QueryGetPeerPolicyRequest): Promise<import("./federation/v1/query").QueryGetPeerPolicyResponse>;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
+
getBridgeBinding(request: import("./federation/v1/query").QueryGetBridgeBindingRequest): Promise<import("./federation/v1/query").QueryGetBridgeBindingResponse>;
|
|
276
|
+
listBridgeBindings(request?: import("./federation/v1/query").QueryListBridgeBindingsRequest): Promise<import("./federation/v1/query").QueryListBridgeBindingsResponse>;
|
|
275
277
|
getFederatedContent(request: import("./federation/v1/query").QueryGetFederatedContentRequest): Promise<import("./federation/v1/query").QueryGetFederatedContentResponse>;
|
|
276
278
|
listFederatedContent(request?: import("./federation/v1/query").QueryListFederatedContentRequest): Promise<import("./federation/v1/query").QueryListFederatedContentResponse>;
|
|
277
279
|
getIdentityLink(request: import("./federation/v1/query").QueryGetIdentityLinkRequest): Promise<import("./federation/v1/query").QueryGetIdentityLinkResponse>;
|
|
@@ -283,6 +285,7 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
283
285
|
listOutboundAttestations(request?: import("./federation/v1/query").QueryListOutboundAttestationsRequest): Promise<import("./federation/v1/query").QueryListOutboundAttestationsResponse>;
|
|
284
286
|
verifierActivity(request: import("./federation/v1/query").QueryVerifierActivityRequest): Promise<import("./federation/v1/query").QueryVerifierActivityResponse>;
|
|
285
287
|
getVerificationRecord(request: import("./federation/v1/query").QueryGetVerificationRecordRequest): Promise<import("./federation/v1/query").QueryGetVerificationRecordResponse>;
|
|
288
|
+
getEscalatedChallenge(request: import("./federation/v1/query").QueryGetEscalatedChallengeRequest): Promise<import("./federation/v1/query").QueryGetEscalatedChallengeResponse>;
|
|
286
289
|
};
|
|
287
290
|
};
|
|
288
291
|
forum: {
|
|
@@ -343,6 +346,18 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
343
346
|
getMarketPrice(request: import("./futarchy/v1/query").QueryGetMarketPriceRequest): Promise<import("./futarchy/v1/query").QueryGetMarketPriceResponse>;
|
|
344
347
|
};
|
|
345
348
|
};
|
|
349
|
+
guardian: {
|
|
350
|
+
v1: {
|
|
351
|
+
allowedMsgs(request?: import("./guardian/v1/query").QueryAllowedMsgsRequest): Promise<import("./guardian/v1/query").QueryAllowedMsgsResponse>;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
identity: {
|
|
355
|
+
v1: {
|
|
356
|
+
chainIdentity(request?: import("./identity/v1/query").QueryChainIdentityRequest): Promise<import("./identity/v1/query").QueryChainIdentityResponse>;
|
|
357
|
+
bondDenom(request?: import("./identity/v1/query").QueryBondDenomRequest): Promise<import("./identity/v1/query").QueryBondDenomResponse>;
|
|
358
|
+
dreamDenom(request?: import("./identity/v1/query").QueryDreamDenomRequest): Promise<import("./identity/v1/query").QueryDreamDenomResponse>;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
346
361
|
name: {
|
|
347
362
|
v1: {
|
|
348
363
|
params(request?: import("./name/v1/query").QueryParamsRequest): Promise<import("./name/v1/query").QueryParamsResponse>;
|
|
@@ -524,12 +539,29 @@ export declare const createRPCQueryClient: ({ rpcEndpoint }: {
|
|
|
524
539
|
listRetroRewardHistory(request: import("./season/v1/query").QueryListRetroRewardHistoryRequest): Promise<import("./season/v1/query").QueryListRetroRewardHistoryResponse>;
|
|
525
540
|
};
|
|
526
541
|
};
|
|
542
|
+
service: {
|
|
543
|
+
v1: {
|
|
544
|
+
params(request?: import("./service/v1/query").QueryParamsRequest): Promise<import("./service/v1/query").QueryParamsResponse>;
|
|
545
|
+
operator(request: import("./service/v1/query").QueryOperatorRequest): Promise<import("./service/v1/query").QueryOperatorResponse>;
|
|
546
|
+
serviceType(request: import("./service/v1/query").QueryServiceTypeRequest): Promise<import("./service/v1/query").QueryServiceTypeResponse>;
|
|
547
|
+
serviceTypes(request: import("./service/v1/query").QueryServiceTypesRequest): Promise<import("./service/v1/query").QueryServiceTypesResponse>;
|
|
548
|
+
operators(request: import("./service/v1/query").QueryOperatorsRequest): Promise<import("./service/v1/query").QueryOperatorsResponse>;
|
|
549
|
+
operatorsByController(request: import("./service/v1/query").QueryOperatorsByControllerRequest): Promise<import("./service/v1/query").QueryOperatorsByControllerResponse>;
|
|
550
|
+
operatorsByServiceType(request: import("./service/v1/query").QueryOperatorsByServiceTypeRequest): Promise<import("./service/v1/query").QueryOperatorsByServiceTypeResponse>;
|
|
551
|
+
report(request: import("./service/v1/query").QueryReportRequest): Promise<import("./service/v1/query").QueryReportResponse>;
|
|
552
|
+
reportsByOperator(request: import("./service/v1/query").QueryReportsByOperatorRequest): Promise<import("./service/v1/query").QueryReportsByOperatorResponse>;
|
|
553
|
+
operatorReputationSnapshot(request: import("./service/v1/query").QueryOperatorReputationSnapshotRequest): Promise<import("./service/v1/query").QueryOperatorReputationSnapshotResponse>;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
527
556
|
session: {
|
|
528
557
|
v1: {
|
|
529
558
|
params(request?: import("./session/v1/query").QueryParamsRequest): Promise<import("./session/v1/query").QueryParamsResponse>;
|
|
530
559
|
session(request: import("./session/v1/query").QuerySessionRequest): Promise<import("./session/v1/query").QuerySessionResponse>;
|
|
531
560
|
sessionsByGranter(request: import("./session/v1/query").QuerySessionsByGranterRequest): Promise<import("./session/v1/query").QuerySessionsByGranterResponse>;
|
|
532
561
|
sessionsByGrantee(request: import("./session/v1/query").QuerySessionsByGranteeRequest): Promise<import("./session/v1/query").QuerySessionsByGranteeResponse>;
|
|
562
|
+
grant(request: import("./session/v1/query").QueryGrantRequest): Promise<import("./session/v1/query").QueryGrantResponse>;
|
|
563
|
+
grantsByGranter(request: import("./session/v1/query").QueryGrantsByGranterRequest): Promise<import("./session/v1/query").QueryGrantsByGranterResponse>;
|
|
564
|
+
grantsByGrantee(request: import("./session/v1/query").QueryGrantsByGranteeRequest): Promise<import("./session/v1/query").QueryGrantsByGranteeResponse>;
|
|
533
565
|
allowedMsgTypes(request?: import("./session/v1/query").QueryAllowedMsgTypesRequest): Promise<import("./session/v1/query").QueryAllowedMsgTypesResponse>;
|
|
534
566
|
};
|
|
535
567
|
};
|
package/sparkdream/rpc.query.js
CHANGED
|
@@ -122,6 +122,12 @@ const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
122
122
|
futarchy: {
|
|
123
123
|
v1: (await Promise.resolve().then(() => __importStar(require("./futarchy/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
124
124
|
},
|
|
125
|
+
guardian: {
|
|
126
|
+
v1: (await Promise.resolve().then(() => __importStar(require("./guardian/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
127
|
+
},
|
|
128
|
+
identity: {
|
|
129
|
+
v1: (await Promise.resolve().then(() => __importStar(require("./identity/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
130
|
+
},
|
|
125
131
|
name: {
|
|
126
132
|
v1: (await Promise.resolve().then(() => __importStar(require("./name/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
127
133
|
},
|
|
@@ -134,6 +140,9 @@ const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
134
140
|
season: {
|
|
135
141
|
v1: (await Promise.resolve().then(() => __importStar(require("./season/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
136
142
|
},
|
|
143
|
+
service: {
|
|
144
|
+
v1: (await Promise.resolve().then(() => __importStar(require("./service/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
145
|
+
},
|
|
137
146
|
session: {
|
|
138
147
|
v1: (await Promise.resolve().then(() => __importStar(require("./session/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
139
148
|
},
|
package/sparkdream/rpc.tx.d.ts
CHANGED
|
@@ -75,6 +75,9 @@ export declare const createRPCMsgClient: ({ rpc }: {
|
|
|
75
75
|
futarchy: {
|
|
76
76
|
v1: import("./futarchy/v1/tx.rpc.msg").MsgClientImpl;
|
|
77
77
|
};
|
|
78
|
+
guardian: {
|
|
79
|
+
v1: import("./guardian/v1/tx.rpc.msg").MsgClientImpl;
|
|
80
|
+
};
|
|
78
81
|
name: {
|
|
79
82
|
v1: import("./name/v1/tx.rpc.msg").MsgClientImpl;
|
|
80
83
|
};
|
|
@@ -87,6 +90,9 @@ export declare const createRPCMsgClient: ({ rpc }: {
|
|
|
87
90
|
season: {
|
|
88
91
|
v1: import("./season/v1/tx.rpc.msg").MsgClientImpl;
|
|
89
92
|
};
|
|
93
|
+
service: {
|
|
94
|
+
v1: import("./service/v1/tx.rpc.msg").MsgClientImpl;
|
|
95
|
+
};
|
|
90
96
|
session: {
|
|
91
97
|
v1: import("./session/v1/tx.rpc.msg").MsgClientImpl;
|
|
92
98
|
};
|
package/sparkdream/rpc.tx.js
CHANGED
|
@@ -108,6 +108,9 @@ const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
108
108
|
futarchy: {
|
|
109
109
|
v1: new (await Promise.resolve().then(() => __importStar(require("./futarchy/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
110
110
|
},
|
|
111
|
+
guardian: {
|
|
112
|
+
v1: new (await Promise.resolve().then(() => __importStar(require("./guardian/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
113
|
+
},
|
|
111
114
|
name: {
|
|
112
115
|
v1: new (await Promise.resolve().then(() => __importStar(require("./name/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
113
116
|
},
|
|
@@ -120,6 +123,9 @@ const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
120
123
|
season: {
|
|
121
124
|
v1: new (await Promise.resolve().then(() => __importStar(require("./season/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
122
125
|
},
|
|
126
|
+
service: {
|
|
127
|
+
v1: new (await Promise.resolve().then(() => __importStar(require("./service/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
128
|
+
},
|
|
123
129
|
session: {
|
|
124
130
|
v1: new (await Promise.resolve().then(() => __importStar(require("./session/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
125
131
|
},
|