@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
package/esm/sparkdream/client.js
CHANGED
|
@@ -8,10 +8,12 @@ import * as sparkdreamEcosystemV1TxRegistry from "./ecosystem/v1/tx.registry";
|
|
|
8
8
|
import * as sparkdreamFederationV1TxRegistry from "./federation/v1/tx.registry";
|
|
9
9
|
import * as sparkdreamForumV1TxRegistry from "./forum/v1/tx.registry";
|
|
10
10
|
import * as sparkdreamFutarchyV1TxRegistry from "./futarchy/v1/tx.registry";
|
|
11
|
+
import * as sparkdreamGuardianV1TxRegistry from "./guardian/v1/tx.registry";
|
|
11
12
|
import * as sparkdreamNameV1TxRegistry from "./name/v1/tx.registry";
|
|
12
13
|
import * as sparkdreamRepV1TxRegistry from "./rep/v1/tx.registry";
|
|
13
14
|
import * as sparkdreamRevealV1TxRegistry from "./reveal/v1/tx.registry";
|
|
14
15
|
import * as sparkdreamSeasonV1TxRegistry from "./season/v1/tx.registry";
|
|
16
|
+
import * as sparkdreamServiceV1TxRegistry from "./service/v1/tx.registry";
|
|
15
17
|
import * as sparkdreamSessionV1TxRegistry from "./session/v1/tx.registry";
|
|
16
18
|
import * as sparkdreamShieldV1TxRegistry from "./shield/v1/tx.registry";
|
|
17
19
|
import * as sparkdreamSparkdreamV1TxRegistry from "./sparkdream/v1/tx.registry";
|
|
@@ -23,10 +25,12 @@ import * as sparkdreamEcosystemV1TxAmino from "./ecosystem/v1/tx.amino";
|
|
|
23
25
|
import * as sparkdreamFederationV1TxAmino from "./federation/v1/tx.amino";
|
|
24
26
|
import * as sparkdreamForumV1TxAmino from "./forum/v1/tx.amino";
|
|
25
27
|
import * as sparkdreamFutarchyV1TxAmino from "./futarchy/v1/tx.amino";
|
|
28
|
+
import * as sparkdreamGuardianV1TxAmino from "./guardian/v1/tx.amino";
|
|
26
29
|
import * as sparkdreamNameV1TxAmino from "./name/v1/tx.amino";
|
|
27
30
|
import * as sparkdreamRepV1TxAmino from "./rep/v1/tx.amino";
|
|
28
31
|
import * as sparkdreamRevealV1TxAmino from "./reveal/v1/tx.amino";
|
|
29
32
|
import * as sparkdreamSeasonV1TxAmino from "./season/v1/tx.amino";
|
|
33
|
+
import * as sparkdreamServiceV1TxAmino from "./service/v1/tx.amino";
|
|
30
34
|
import * as sparkdreamSessionV1TxAmino from "./session/v1/tx.amino";
|
|
31
35
|
import * as sparkdreamShieldV1TxAmino from "./shield/v1/tx.amino";
|
|
32
36
|
import * as sparkdreamSparkdreamV1TxAmino from "./sparkdream/v1/tx.amino";
|
|
@@ -39,16 +43,18 @@ export const sparkdreamAminoConverters = {
|
|
|
39
43
|
...sparkdreamFederationV1TxAmino.AminoConverter,
|
|
40
44
|
...sparkdreamForumV1TxAmino.AminoConverter,
|
|
41
45
|
...sparkdreamFutarchyV1TxAmino.AminoConverter,
|
|
46
|
+
...sparkdreamGuardianV1TxAmino.AminoConverter,
|
|
42
47
|
...sparkdreamNameV1TxAmino.AminoConverter,
|
|
43
48
|
...sparkdreamRepV1TxAmino.AminoConverter,
|
|
44
49
|
...sparkdreamRevealV1TxAmino.AminoConverter,
|
|
45
50
|
...sparkdreamSeasonV1TxAmino.AminoConverter,
|
|
51
|
+
...sparkdreamServiceV1TxAmino.AminoConverter,
|
|
46
52
|
...sparkdreamSessionV1TxAmino.AminoConverter,
|
|
47
53
|
...sparkdreamShieldV1TxAmino.AminoConverter,
|
|
48
54
|
...sparkdreamSparkdreamV1TxAmino.AminoConverter,
|
|
49
55
|
...sparkdreamSplitV1TxAmino.AminoConverter
|
|
50
56
|
};
|
|
51
|
-
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
57
|
+
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
52
58
|
export const getSigningSparkdreamClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
53
59
|
const registry = new Registry([...defaultTypes, ...sparkdreamProtoRegistry]);
|
|
54
60
|
const aminoTypes = new AminoTypes({
|
|
@@ -63,7 +63,8 @@ function createBaseParams() {
|
|
|
63
63
|
maxPinsPerDay: 0,
|
|
64
64
|
curatorDemotionCooldown: BigInt(0),
|
|
65
65
|
curatorDemotionThreshold: "",
|
|
66
|
-
curatorOverturnDemotionStreak: BigInt(0)
|
|
66
|
+
curatorOverturnDemotionStreak: BigInt(0),
|
|
67
|
+
curatorUnbondCooldown: BigInt(0)
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
@@ -259,6 +260,9 @@ export const Params = {
|
|
|
259
260
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
260
261
|
writer.uint32(520).uint64(message.curatorOverturnDemotionStreak);
|
|
261
262
|
}
|
|
263
|
+
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
264
|
+
writer.uint32(528).int64(message.curatorUnbondCooldown);
|
|
265
|
+
}
|
|
262
266
|
return writer;
|
|
263
267
|
},
|
|
264
268
|
decode(input, length) {
|
|
@@ -451,6 +455,9 @@ export const Params = {
|
|
|
451
455
|
case 65:
|
|
452
456
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
453
457
|
break;
|
|
458
|
+
case 66:
|
|
459
|
+
message.curatorUnbondCooldown = reader.int64();
|
|
460
|
+
break;
|
|
454
461
|
default:
|
|
455
462
|
reader.skipType(tag & 7);
|
|
456
463
|
break;
|
|
@@ -521,6 +528,7 @@ export const Params = {
|
|
|
521
528
|
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
522
529
|
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
523
530
|
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
531
|
+
message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
|
|
524
532
|
return message;
|
|
525
533
|
},
|
|
526
534
|
fromAmino(object) {
|
|
@@ -708,6 +716,9 @@ export const Params = {
|
|
|
708
716
|
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
709
717
|
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
710
718
|
}
|
|
719
|
+
if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
|
|
720
|
+
message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
|
|
721
|
+
}
|
|
711
722
|
return message;
|
|
712
723
|
},
|
|
713
724
|
toAmino(message) {
|
|
@@ -773,6 +784,7 @@ export const Params = {
|
|
|
773
784
|
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
774
785
|
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
775
786
|
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
787
|
+
obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
|
|
776
788
|
return obj;
|
|
777
789
|
},
|
|
778
790
|
fromAminoMsg(object) {
|
|
@@ -2348,7 +2348,8 @@ function createBaseCollectOperationalParams() {
|
|
|
2348
2348
|
maxPinsPerDay: 0,
|
|
2349
2349
|
curatorDemotionCooldown: BigInt(0),
|
|
2350
2350
|
curatorDemotionThreshold: "",
|
|
2351
|
-
curatorOverturnDemotionStreak: BigInt(0)
|
|
2351
|
+
curatorOverturnDemotionStreak: BigInt(0),
|
|
2352
|
+
curatorUnbondCooldown: BigInt(0)
|
|
2352
2353
|
};
|
|
2353
2354
|
}
|
|
2354
2355
|
/**
|
|
@@ -2489,6 +2490,9 @@ export const CollectOperationalParams = {
|
|
|
2489
2490
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
2490
2491
|
writer.uint32(376).uint64(message.curatorOverturnDemotionStreak);
|
|
2491
2492
|
}
|
|
2493
|
+
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
2494
|
+
writer.uint32(384).int64(message.curatorUnbondCooldown);
|
|
2495
|
+
}
|
|
2492
2496
|
return writer;
|
|
2493
2497
|
},
|
|
2494
2498
|
decode(input, length) {
|
|
@@ -2627,6 +2631,9 @@ export const CollectOperationalParams = {
|
|
|
2627
2631
|
case 47:
|
|
2628
2632
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
2629
2633
|
break;
|
|
2634
|
+
case 48:
|
|
2635
|
+
message.curatorUnbondCooldown = reader.int64();
|
|
2636
|
+
break;
|
|
2630
2637
|
default:
|
|
2631
2638
|
reader.skipType(tag & 7);
|
|
2632
2639
|
break;
|
|
@@ -2679,6 +2686,7 @@ export const CollectOperationalParams = {
|
|
|
2679
2686
|
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
2680
2687
|
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
2681
2688
|
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
2689
|
+
message.curatorUnbondCooldown = object.curatorUnbondCooldown !== undefined && object.curatorUnbondCooldown !== null ? BigInt(object.curatorUnbondCooldown.toString()) : BigInt(0);
|
|
2682
2690
|
return message;
|
|
2683
2691
|
},
|
|
2684
2692
|
fromAmino(object) {
|
|
@@ -2812,6 +2820,9 @@ export const CollectOperationalParams = {
|
|
|
2812
2820
|
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
2813
2821
|
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
2814
2822
|
}
|
|
2823
|
+
if (object.curator_unbond_cooldown !== undefined && object.curator_unbond_cooldown !== null) {
|
|
2824
|
+
message.curatorUnbondCooldown = BigInt(object.curator_unbond_cooldown);
|
|
2825
|
+
}
|
|
2815
2826
|
return message;
|
|
2816
2827
|
},
|
|
2817
2828
|
toAmino(message) {
|
|
@@ -2859,6 +2870,7 @@ export const CollectOperationalParams = {
|
|
|
2859
2870
|
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
2860
2871
|
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
2861
2872
|
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
2873
|
+
obj.curator_unbond_cooldown = message.curatorUnbondCooldown !== BigInt(0) ? message.curatorUnbondCooldown?.toString() : undefined;
|
|
2862
2874
|
return obj;
|
|
2863
2875
|
},
|
|
2864
2876
|
fromAminoMsg(object) {
|
|
@@ -3,6 +3,7 @@ import { Params } from "./params";
|
|
|
3
3
|
import { PolicyPermissions } from "./policy_permissions";
|
|
4
4
|
import { Group, Proposal, Member, DecisionPolicy, Vote } from "./group";
|
|
5
5
|
import { Category } from "./category";
|
|
6
|
+
import { RecurringSpend } from "./recurring_spend";
|
|
6
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
8
|
function createBaseGenesisState() {
|
|
8
9
|
return {
|
|
@@ -17,7 +18,9 @@ function createBaseGenesisState() {
|
|
|
17
18
|
policyVersions: [],
|
|
18
19
|
proposalVotes: [],
|
|
19
20
|
categoryMap: [],
|
|
20
|
-
nextCategoryId: BigInt(0)
|
|
21
|
+
nextCategoryId: BigInt(0),
|
|
22
|
+
recurringSpends: [],
|
|
23
|
+
nextRecurringSpendId: BigInt(0)
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
@@ -65,6 +68,12 @@ export const GenesisState = {
|
|
|
65
68
|
if (message.nextCategoryId !== BigInt(0)) {
|
|
66
69
|
writer.uint32(96).uint64(message.nextCategoryId);
|
|
67
70
|
}
|
|
71
|
+
for (const v of message.recurringSpends) {
|
|
72
|
+
RecurringSpend.encode(v, writer.uint32(106).fork()).ldelim();
|
|
73
|
+
}
|
|
74
|
+
if (message.nextRecurringSpendId !== BigInt(0)) {
|
|
75
|
+
writer.uint32(112).uint64(message.nextRecurringSpendId);
|
|
76
|
+
}
|
|
68
77
|
return writer;
|
|
69
78
|
},
|
|
70
79
|
decode(input, length) {
|
|
@@ -110,6 +119,12 @@ export const GenesisState = {
|
|
|
110
119
|
case 12:
|
|
111
120
|
message.nextCategoryId = reader.uint64();
|
|
112
121
|
break;
|
|
122
|
+
case 13:
|
|
123
|
+
message.recurringSpends.push(RecurringSpend.decode(reader, reader.uint32()));
|
|
124
|
+
break;
|
|
125
|
+
case 14:
|
|
126
|
+
message.nextRecurringSpendId = reader.uint64();
|
|
127
|
+
break;
|
|
113
128
|
default:
|
|
114
129
|
reader.skipType(tag & 7);
|
|
115
130
|
break;
|
|
@@ -131,6 +146,8 @@ export const GenesisState = {
|
|
|
131
146
|
message.proposalVotes = object.proposalVotes?.map(e => ProposalVotes.fromPartial(e)) || [];
|
|
132
147
|
message.categoryMap = object.categoryMap?.map(e => Category.fromPartial(e)) || [];
|
|
133
148
|
message.nextCategoryId = object.nextCategoryId !== undefined && object.nextCategoryId !== null ? BigInt(object.nextCategoryId.toString()) : BigInt(0);
|
|
149
|
+
message.recurringSpends = object.recurringSpends?.map(e => RecurringSpend.fromPartial(e)) || [];
|
|
150
|
+
message.nextRecurringSpendId = object.nextRecurringSpendId !== undefined && object.nextRecurringSpendId !== null ? BigInt(object.nextRecurringSpendId.toString()) : BigInt(0);
|
|
134
151
|
return message;
|
|
135
152
|
},
|
|
136
153
|
fromAmino(object) {
|
|
@@ -155,6 +172,10 @@ export const GenesisState = {
|
|
|
155
172
|
if (object.next_category_id !== undefined && object.next_category_id !== null) {
|
|
156
173
|
message.nextCategoryId = BigInt(object.next_category_id);
|
|
157
174
|
}
|
|
175
|
+
message.recurringSpends = object.recurring_spends?.map(e => RecurringSpend.fromAmino(e)) || [];
|
|
176
|
+
if (object.next_recurring_spend_id !== undefined && object.next_recurring_spend_id !== null) {
|
|
177
|
+
message.nextRecurringSpendId = BigInt(object.next_recurring_spend_id);
|
|
178
|
+
}
|
|
158
179
|
return message;
|
|
159
180
|
},
|
|
160
181
|
toAmino(message) {
|
|
@@ -211,6 +232,13 @@ export const GenesisState = {
|
|
|
211
232
|
obj.category_map = message.categoryMap;
|
|
212
233
|
}
|
|
213
234
|
obj.next_category_id = message.nextCategoryId !== BigInt(0) ? message.nextCategoryId?.toString() : undefined;
|
|
235
|
+
if (message.recurringSpends) {
|
|
236
|
+
obj.recurring_spends = message.recurringSpends.map(e => e ? RecurringSpend.toAmino(e) : undefined);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
obj.recurring_spends = message.recurringSpends;
|
|
240
|
+
}
|
|
241
|
+
obj.next_recurring_spend_id = message.nextRecurringSpendId !== BigInt(0) ? message.nextRecurringSpendId?.toString() : undefined;
|
|
214
242
|
return obj;
|
|
215
243
|
},
|
|
216
244
|
fromAminoMsg(object) {
|
|
@@ -4,6 +4,7 @@ import { Params } from "./params";
|
|
|
4
4
|
import { PolicyPermissions } from "./policy_permissions";
|
|
5
5
|
import { DecisionPolicy, Group, Member, Proposal, Vote, TallyResult } from "./group";
|
|
6
6
|
import { Category } from "./category";
|
|
7
|
+
import { RecurringSpend } from "./recurring_spend";
|
|
7
8
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
8
9
|
function createBaseQueryParamsRequest() {
|
|
9
10
|
return {};
|
|
@@ -2005,3 +2006,319 @@ export const QueryAllCategoryResponse = {
|
|
|
2005
2006
|
};
|
|
2006
2007
|
}
|
|
2007
2008
|
};
|
|
2009
|
+
function createBaseQueryGetRecurringSpendRequest() {
|
|
2010
|
+
return {
|
|
2011
|
+
id: BigInt(0)
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* QueryGetRecurringSpendRequest fetches a single schedule by id.
|
|
2016
|
+
* @name QueryGetRecurringSpendRequest
|
|
2017
|
+
* @package sparkdream.commons.v1
|
|
2018
|
+
* @see proto type: sparkdream.commons.v1.QueryGetRecurringSpendRequest
|
|
2019
|
+
*/
|
|
2020
|
+
export const QueryGetRecurringSpendRequest = {
|
|
2021
|
+
typeUrl: "/sparkdream.commons.v1.QueryGetRecurringSpendRequest",
|
|
2022
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2023
|
+
if (message.id !== BigInt(0)) {
|
|
2024
|
+
writer.uint32(8).uint64(message.id);
|
|
2025
|
+
}
|
|
2026
|
+
return writer;
|
|
2027
|
+
},
|
|
2028
|
+
decode(input, length) {
|
|
2029
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2030
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2031
|
+
const message = createBaseQueryGetRecurringSpendRequest();
|
|
2032
|
+
while (reader.pos < end) {
|
|
2033
|
+
const tag = reader.uint32();
|
|
2034
|
+
switch (tag >>> 3) {
|
|
2035
|
+
case 1:
|
|
2036
|
+
message.id = reader.uint64();
|
|
2037
|
+
break;
|
|
2038
|
+
default:
|
|
2039
|
+
reader.skipType(tag & 7);
|
|
2040
|
+
break;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
return message;
|
|
2044
|
+
},
|
|
2045
|
+
fromPartial(object) {
|
|
2046
|
+
const message = createBaseQueryGetRecurringSpendRequest();
|
|
2047
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
2048
|
+
return message;
|
|
2049
|
+
},
|
|
2050
|
+
fromAmino(object) {
|
|
2051
|
+
const message = createBaseQueryGetRecurringSpendRequest();
|
|
2052
|
+
if (object.id !== undefined && object.id !== null) {
|
|
2053
|
+
message.id = BigInt(object.id);
|
|
2054
|
+
}
|
|
2055
|
+
return message;
|
|
2056
|
+
},
|
|
2057
|
+
toAmino(message) {
|
|
2058
|
+
const obj = {};
|
|
2059
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
2060
|
+
return obj;
|
|
2061
|
+
},
|
|
2062
|
+
fromAminoMsg(object) {
|
|
2063
|
+
return QueryGetRecurringSpendRequest.fromAmino(object.value);
|
|
2064
|
+
},
|
|
2065
|
+
fromProtoMsg(message) {
|
|
2066
|
+
return QueryGetRecurringSpendRequest.decode(message.value);
|
|
2067
|
+
},
|
|
2068
|
+
toProto(message) {
|
|
2069
|
+
return QueryGetRecurringSpendRequest.encode(message).finish();
|
|
2070
|
+
},
|
|
2071
|
+
toProtoMsg(message) {
|
|
2072
|
+
return {
|
|
2073
|
+
typeUrl: "/sparkdream.commons.v1.QueryGetRecurringSpendRequest",
|
|
2074
|
+
value: QueryGetRecurringSpendRequest.encode(message).finish()
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
function createBaseQueryGetRecurringSpendResponse() {
|
|
2079
|
+
return {
|
|
2080
|
+
recurringSpend: RecurringSpend.fromPartial({})
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* QueryGetRecurringSpendResponse returns the schedule.
|
|
2085
|
+
* @name QueryGetRecurringSpendResponse
|
|
2086
|
+
* @package sparkdream.commons.v1
|
|
2087
|
+
* @see proto type: sparkdream.commons.v1.QueryGetRecurringSpendResponse
|
|
2088
|
+
*/
|
|
2089
|
+
export const QueryGetRecurringSpendResponse = {
|
|
2090
|
+
typeUrl: "/sparkdream.commons.v1.QueryGetRecurringSpendResponse",
|
|
2091
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2092
|
+
if (message.recurringSpend !== undefined) {
|
|
2093
|
+
RecurringSpend.encode(message.recurringSpend, writer.uint32(10).fork()).ldelim();
|
|
2094
|
+
}
|
|
2095
|
+
return writer;
|
|
2096
|
+
},
|
|
2097
|
+
decode(input, length) {
|
|
2098
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2099
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2100
|
+
const message = createBaseQueryGetRecurringSpendResponse();
|
|
2101
|
+
while (reader.pos < end) {
|
|
2102
|
+
const tag = reader.uint32();
|
|
2103
|
+
switch (tag >>> 3) {
|
|
2104
|
+
case 1:
|
|
2105
|
+
message.recurringSpend = RecurringSpend.decode(reader, reader.uint32());
|
|
2106
|
+
break;
|
|
2107
|
+
default:
|
|
2108
|
+
reader.skipType(tag & 7);
|
|
2109
|
+
break;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
return message;
|
|
2113
|
+
},
|
|
2114
|
+
fromPartial(object) {
|
|
2115
|
+
const message = createBaseQueryGetRecurringSpendResponse();
|
|
2116
|
+
message.recurringSpend = object.recurringSpend !== undefined && object.recurringSpend !== null ? RecurringSpend.fromPartial(object.recurringSpend) : undefined;
|
|
2117
|
+
return message;
|
|
2118
|
+
},
|
|
2119
|
+
fromAmino(object) {
|
|
2120
|
+
const message = createBaseQueryGetRecurringSpendResponse();
|
|
2121
|
+
if (object.recurring_spend !== undefined && object.recurring_spend !== null) {
|
|
2122
|
+
message.recurringSpend = RecurringSpend.fromAmino(object.recurring_spend);
|
|
2123
|
+
}
|
|
2124
|
+
return message;
|
|
2125
|
+
},
|
|
2126
|
+
toAmino(message) {
|
|
2127
|
+
const obj = {};
|
|
2128
|
+
obj.recurring_spend = message.recurringSpend ? RecurringSpend.toAmino(message.recurringSpend) : undefined;
|
|
2129
|
+
return obj;
|
|
2130
|
+
},
|
|
2131
|
+
fromAminoMsg(object) {
|
|
2132
|
+
return QueryGetRecurringSpendResponse.fromAmino(object.value);
|
|
2133
|
+
},
|
|
2134
|
+
fromProtoMsg(message) {
|
|
2135
|
+
return QueryGetRecurringSpendResponse.decode(message.value);
|
|
2136
|
+
},
|
|
2137
|
+
toProto(message) {
|
|
2138
|
+
return QueryGetRecurringSpendResponse.encode(message).finish();
|
|
2139
|
+
},
|
|
2140
|
+
toProtoMsg(message) {
|
|
2141
|
+
return {
|
|
2142
|
+
typeUrl: "/sparkdream.commons.v1.QueryGetRecurringSpendResponse",
|
|
2143
|
+
value: QueryGetRecurringSpendResponse.encode(message).finish()
|
|
2144
|
+
};
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
function createBaseQueryListRecurringSpendsRequest() {
|
|
2148
|
+
return {
|
|
2149
|
+
authority: "",
|
|
2150
|
+
recipient: "",
|
|
2151
|
+
pagination: undefined
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
/**
|
|
2155
|
+
* QueryListRecurringSpendsRequest lists schedules. authority and recipient
|
|
2156
|
+
* are optional filters; if both are empty, every schedule is returned.
|
|
2157
|
+
* @name QueryListRecurringSpendsRequest
|
|
2158
|
+
* @package sparkdream.commons.v1
|
|
2159
|
+
* @see proto type: sparkdream.commons.v1.QueryListRecurringSpendsRequest
|
|
2160
|
+
*/
|
|
2161
|
+
export const QueryListRecurringSpendsRequest = {
|
|
2162
|
+
typeUrl: "/sparkdream.commons.v1.QueryListRecurringSpendsRequest",
|
|
2163
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2164
|
+
if (message.authority !== "") {
|
|
2165
|
+
writer.uint32(10).string(message.authority);
|
|
2166
|
+
}
|
|
2167
|
+
if (message.recipient !== "") {
|
|
2168
|
+
writer.uint32(18).string(message.recipient);
|
|
2169
|
+
}
|
|
2170
|
+
if (message.pagination !== undefined) {
|
|
2171
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
2172
|
+
}
|
|
2173
|
+
return writer;
|
|
2174
|
+
},
|
|
2175
|
+
decode(input, length) {
|
|
2176
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2177
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2178
|
+
const message = createBaseQueryListRecurringSpendsRequest();
|
|
2179
|
+
while (reader.pos < end) {
|
|
2180
|
+
const tag = reader.uint32();
|
|
2181
|
+
switch (tag >>> 3) {
|
|
2182
|
+
case 1:
|
|
2183
|
+
message.authority = reader.string();
|
|
2184
|
+
break;
|
|
2185
|
+
case 2:
|
|
2186
|
+
message.recipient = reader.string();
|
|
2187
|
+
break;
|
|
2188
|
+
case 3:
|
|
2189
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
2190
|
+
break;
|
|
2191
|
+
default:
|
|
2192
|
+
reader.skipType(tag & 7);
|
|
2193
|
+
break;
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
return message;
|
|
2197
|
+
},
|
|
2198
|
+
fromPartial(object) {
|
|
2199
|
+
const message = createBaseQueryListRecurringSpendsRequest();
|
|
2200
|
+
message.authority = object.authority ?? "";
|
|
2201
|
+
message.recipient = object.recipient ?? "";
|
|
2202
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
2203
|
+
return message;
|
|
2204
|
+
},
|
|
2205
|
+
fromAmino(object) {
|
|
2206
|
+
const message = createBaseQueryListRecurringSpendsRequest();
|
|
2207
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
2208
|
+
message.authority = object.authority;
|
|
2209
|
+
}
|
|
2210
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
2211
|
+
message.recipient = object.recipient;
|
|
2212
|
+
}
|
|
2213
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2214
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
2215
|
+
}
|
|
2216
|
+
return message;
|
|
2217
|
+
},
|
|
2218
|
+
toAmino(message) {
|
|
2219
|
+
const obj = {};
|
|
2220
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
2221
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
2222
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
2223
|
+
return obj;
|
|
2224
|
+
},
|
|
2225
|
+
fromAminoMsg(object) {
|
|
2226
|
+
return QueryListRecurringSpendsRequest.fromAmino(object.value);
|
|
2227
|
+
},
|
|
2228
|
+
fromProtoMsg(message) {
|
|
2229
|
+
return QueryListRecurringSpendsRequest.decode(message.value);
|
|
2230
|
+
},
|
|
2231
|
+
toProto(message) {
|
|
2232
|
+
return QueryListRecurringSpendsRequest.encode(message).finish();
|
|
2233
|
+
},
|
|
2234
|
+
toProtoMsg(message) {
|
|
2235
|
+
return {
|
|
2236
|
+
typeUrl: "/sparkdream.commons.v1.QueryListRecurringSpendsRequest",
|
|
2237
|
+
value: QueryListRecurringSpendsRequest.encode(message).finish()
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
2240
|
+
};
|
|
2241
|
+
function createBaseQueryListRecurringSpendsResponse() {
|
|
2242
|
+
return {
|
|
2243
|
+
recurringSpends: [],
|
|
2244
|
+
pagination: undefined
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* QueryListRecurringSpendsResponse returns the matching schedules.
|
|
2249
|
+
* @name QueryListRecurringSpendsResponse
|
|
2250
|
+
* @package sparkdream.commons.v1
|
|
2251
|
+
* @see proto type: sparkdream.commons.v1.QueryListRecurringSpendsResponse
|
|
2252
|
+
*/
|
|
2253
|
+
export const QueryListRecurringSpendsResponse = {
|
|
2254
|
+
typeUrl: "/sparkdream.commons.v1.QueryListRecurringSpendsResponse",
|
|
2255
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2256
|
+
for (const v of message.recurringSpends) {
|
|
2257
|
+
RecurringSpend.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2258
|
+
}
|
|
2259
|
+
if (message.pagination !== undefined) {
|
|
2260
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
2261
|
+
}
|
|
2262
|
+
return writer;
|
|
2263
|
+
},
|
|
2264
|
+
decode(input, length) {
|
|
2265
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2266
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2267
|
+
const message = createBaseQueryListRecurringSpendsResponse();
|
|
2268
|
+
while (reader.pos < end) {
|
|
2269
|
+
const tag = reader.uint32();
|
|
2270
|
+
switch (tag >>> 3) {
|
|
2271
|
+
case 1:
|
|
2272
|
+
message.recurringSpends.push(RecurringSpend.decode(reader, reader.uint32()));
|
|
2273
|
+
break;
|
|
2274
|
+
case 2:
|
|
2275
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
2276
|
+
break;
|
|
2277
|
+
default:
|
|
2278
|
+
reader.skipType(tag & 7);
|
|
2279
|
+
break;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
return message;
|
|
2283
|
+
},
|
|
2284
|
+
fromPartial(object) {
|
|
2285
|
+
const message = createBaseQueryListRecurringSpendsResponse();
|
|
2286
|
+
message.recurringSpends = object.recurringSpends?.map(e => RecurringSpend.fromPartial(e)) || [];
|
|
2287
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
2288
|
+
return message;
|
|
2289
|
+
},
|
|
2290
|
+
fromAmino(object) {
|
|
2291
|
+
const message = createBaseQueryListRecurringSpendsResponse();
|
|
2292
|
+
message.recurringSpends = object.recurring_spends?.map(e => RecurringSpend.fromAmino(e)) || [];
|
|
2293
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
2294
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
2295
|
+
}
|
|
2296
|
+
return message;
|
|
2297
|
+
},
|
|
2298
|
+
toAmino(message) {
|
|
2299
|
+
const obj = {};
|
|
2300
|
+
if (message.recurringSpends) {
|
|
2301
|
+
obj.recurring_spends = message.recurringSpends.map(e => e ? RecurringSpend.toAmino(e) : undefined);
|
|
2302
|
+
}
|
|
2303
|
+
else {
|
|
2304
|
+
obj.recurring_spends = message.recurringSpends;
|
|
2305
|
+
}
|
|
2306
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
2307
|
+
return obj;
|
|
2308
|
+
},
|
|
2309
|
+
fromAminoMsg(object) {
|
|
2310
|
+
return QueryListRecurringSpendsResponse.fromAmino(object.value);
|
|
2311
|
+
},
|
|
2312
|
+
fromProtoMsg(message) {
|
|
2313
|
+
return QueryListRecurringSpendsResponse.decode(message.value);
|
|
2314
|
+
},
|
|
2315
|
+
toProto(message) {
|
|
2316
|
+
return QueryListRecurringSpendsResponse.encode(message).finish();
|
|
2317
|
+
},
|
|
2318
|
+
toProtoMsg(message) {
|
|
2319
|
+
return {
|
|
2320
|
+
typeUrl: "/sparkdream.commons.v1.QueryListRecurringSpendsResponse",
|
|
2321
|
+
value: QueryListRecurringSpendsResponse.encode(message).finish()
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
};
|
|
@@ -114,4 +114,27 @@ export class LCDQueryClient {
|
|
|
114
114
|
const endpoint = `sparkdream/commons/v1/category`;
|
|
115
115
|
return await this.req.get(endpoint, options);
|
|
116
116
|
};
|
|
117
|
+
/* GetRecurringSpend queries a single recurring spend schedule by id. */
|
|
118
|
+
getRecurringSpend = async (params) => {
|
|
119
|
+
const endpoint = `sparkdream/commons/v1/recurring_spend/${params.id}`;
|
|
120
|
+
return await this.req.get(endpoint);
|
|
121
|
+
};
|
|
122
|
+
/* ListRecurringSpends queries recurring spend schedules, optionally
|
|
123
|
+
filtered by authority (council policy address) or recipient. */
|
|
124
|
+
listRecurringSpends = async (params) => {
|
|
125
|
+
const options = {
|
|
126
|
+
params: {}
|
|
127
|
+
};
|
|
128
|
+
if (typeof params?.authority !== "undefined") {
|
|
129
|
+
options.params.authority = params.authority;
|
|
130
|
+
}
|
|
131
|
+
if (typeof params?.recipient !== "undefined") {
|
|
132
|
+
options.params.recipient = params.recipient;
|
|
133
|
+
}
|
|
134
|
+
if (typeof params?.pagination !== "undefined") {
|
|
135
|
+
setPaginationParams(options, params.pagination);
|
|
136
|
+
}
|
|
137
|
+
const endpoint = `sparkdream/commons/v1/recurring_spends`;
|
|
138
|
+
return await this.req.get(endpoint, options);
|
|
139
|
+
};
|
|
117
140
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
2
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryGetPolicyPermissionsRequest, QueryGetPolicyPermissionsResponse, QueryAllPolicyPermissionsRequest, QueryAllPolicyPermissionsResponse, QueryGetDecisionPolicyRequest, QueryGetDecisionPolicyResponse, QueryAllDecisionPoliciesRequest, QueryAllDecisionPoliciesResponse, QueryGetGroupRequest, QueryGetGroupResponse, QueryAllGroupRequest, QueryAllGroupResponse, QueryGetCouncilMembersRequest, QueryGetCouncilMembersResponse, QueryGetProposalRequest, QueryGetProposalResponse, QueryListProposalsRequest, QueryListProposalsResponse, QueryGetProposalVotesRequest, QueryGetProposalVotesResponse, QueryGetCategoryRequest, QueryGetCategoryResponse, QueryAllCategoryRequest, QueryAllCategoryResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryGetPolicyPermissionsRequest, QueryGetPolicyPermissionsResponse, QueryAllPolicyPermissionsRequest, QueryAllPolicyPermissionsResponse, QueryGetDecisionPolicyRequest, QueryGetDecisionPolicyResponse, QueryAllDecisionPoliciesRequest, QueryAllDecisionPoliciesResponse, QueryGetGroupRequest, QueryGetGroupResponse, QueryAllGroupRequest, QueryAllGroupResponse, QueryGetCouncilMembersRequest, QueryGetCouncilMembersResponse, QueryGetProposalRequest, QueryGetProposalResponse, QueryListProposalsRequest, QueryListProposalsResponse, QueryGetProposalVotesRequest, QueryGetProposalVotesResponse, QueryGetCategoryRequest, QueryGetCategoryResponse, QueryAllCategoryRequest, QueryAllCategoryResponse, QueryGetRecurringSpendRequest, QueryGetRecurringSpendResponse, QueryListRecurringSpendsRequest, QueryListRecurringSpendsResponse } from "./query";
|
|
4
4
|
export class QueryClientImpl {
|
|
5
5
|
rpc;
|
|
6
6
|
constructor(rpc) {
|
|
@@ -95,6 +95,19 @@ export class QueryClientImpl {
|
|
|
95
95
|
const promise = this.rpc.request("sparkdream.commons.v1.Query", "ListCategory", data);
|
|
96
96
|
return promise.then(data => QueryAllCategoryResponse.decode(new BinaryReader(data)));
|
|
97
97
|
};
|
|
98
|
+
/* GetRecurringSpend queries a single recurring spend schedule by id. */
|
|
99
|
+
getRecurringSpend = async (request) => {
|
|
100
|
+
const data = QueryGetRecurringSpendRequest.encode(request).finish();
|
|
101
|
+
const promise = this.rpc.request("sparkdream.commons.v1.Query", "GetRecurringSpend", data);
|
|
102
|
+
return promise.then(data => QueryGetRecurringSpendResponse.decode(new BinaryReader(data)));
|
|
103
|
+
};
|
|
104
|
+
/* ListRecurringSpends queries recurring spend schedules, optionally
|
|
105
|
+
filtered by authority (council policy address) or recipient. */
|
|
106
|
+
listRecurringSpends = async (request) => {
|
|
107
|
+
const data = QueryListRecurringSpendsRequest.encode(request).finish();
|
|
108
|
+
const promise = this.rpc.request("sparkdream.commons.v1.Query", "ListRecurringSpends", data);
|
|
109
|
+
return promise.then(data => QueryListRecurringSpendsResponse.decode(new BinaryReader(data)));
|
|
110
|
+
};
|
|
98
111
|
}
|
|
99
112
|
export const createRpcQueryExtension = (base) => {
|
|
100
113
|
const rpc = createProtobufRpcClient(base);
|
|
@@ -138,6 +151,12 @@ export const createRpcQueryExtension = (base) => {
|
|
|
138
151
|
},
|
|
139
152
|
listCategory(request) {
|
|
140
153
|
return queryService.listCategory(request);
|
|
154
|
+
},
|
|
155
|
+
getRecurringSpend(request) {
|
|
156
|
+
return queryService.getRecurringSpend(request);
|
|
157
|
+
},
|
|
158
|
+
listRecurringSpends(request) {
|
|
159
|
+
return queryService.listRecurringSpends(request);
|
|
141
160
|
}
|
|
142
161
|
};
|
|
143
162
|
};
|