@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19
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 +113 -52
- package/esm/sparkdream/blog/v1/tx.js +583 -2
- package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
- package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +121 -1
- package/esm/sparkdream/collect/v1/tx.js +293 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
- package/esm/sparkdream/collect/v1/types.js +147 -3
- 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 +389 -148
- package/esm/sparkdream/forum/v1/post.js +25 -1
- package/esm/sparkdream/forum/v1/tx.js +460 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
- package/esm/sparkdream/forum/v1/types.js +355 -0
- package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
- 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/member.js +209 -1
- 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 +89 -28
- package/sparkdream/blog/v1/params.js +113 -52
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +385 -10
- package/sparkdream/blog/v1/tx.js +584 -3
- package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
- package/sparkdream/blog/v1/tx.registry.js +73 -1
- package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
- package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
- package/sparkdream/bundle.d.ts +15308 -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 +140 -0
- package/sparkdream/collect/v1/params.js +121 -1
- package/sparkdream/collect/v1/tx.d.ts +195 -3
- package/sparkdream/collect/v1/tx.js +294 -2
- package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
- package/sparkdream/collect/v1/tx.registry.js +37 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
- package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
- package/sparkdream/collect/v1/types.d.ts +114 -0
- package/sparkdream/collect/v1/types.js +147 -3
- 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 +309 -62
- package/sparkdream/forum/v1/params.js +389 -148
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- package/sparkdream/forum/v1/tx.d.ts +291 -0
- package/sparkdream/forum/v1/tx.js +462 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
- package/sparkdream/forum/v1/tx.registry.js +55 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/forum/v1/types.d.ts +247 -0
- package/sparkdream/forum/v1/types.js +356 -1
- package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
- package/sparkdream/forum/v1/user_rate_limit.js +41 -2
- 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/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Duration, DurationAmino } from "../../../google/protobuf/duration";
|
|
2
|
-
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
3
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
3
|
import { DeepPartial } from "../../../helpers";
|
|
5
4
|
/**
|
|
@@ -32,14 +31,145 @@ export interface Params {
|
|
|
32
31
|
*/
|
|
33
32
|
maxExpiration: Duration;
|
|
34
33
|
/**
|
|
35
|
-
* Maximum gas budget per session
|
|
34
|
+
* Maximum gas budget per session, in bond-denom micro-units (the chain's
|
|
35
|
+
* bond denom is resolved at runtime via x/identity).
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
maxSpendLimitAmount: string;
|
|
38
38
|
/**
|
|
39
39
|
* Maximum exec_count per session. Must be > 0; sessions must declare
|
|
40
40
|
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
41
41
|
*/
|
|
42
42
|
maxExecCount: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* --- RecurringPull (P3) ---
|
|
45
|
+
* Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
|
|
46
|
+
* prevents abusive sub-second polling.
|
|
47
|
+
*/
|
|
48
|
+
minRecurringPeriodSeconds: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum (expires_at - start_time) on a RECURRING_PULL grant. Default
|
|
51
|
+
* 31_536_000 (1 year); long-lived recurring authorizations need explicit
|
|
52
|
+
* re-issuance.
|
|
53
|
+
*/
|
|
54
|
+
maxRecurringDurationSeconds: bigint;
|
|
55
|
+
/**
|
|
56
|
+
* Maximum number of active RECURRING_PULL grants per granter. Default 50.
|
|
57
|
+
*/
|
|
58
|
+
maxRecurringPullsPerGranter: number;
|
|
59
|
+
/**
|
|
60
|
+
* --- SpendingAllowance (P4) ---
|
|
61
|
+
* Minimum period_seconds on a SPENDING_ALLOWANCE grant. Default 3_600
|
|
62
|
+
* (1 hour); finer-grained than RecurringPull to support rolling burst
|
|
63
|
+
* budgets.
|
|
64
|
+
*/
|
|
65
|
+
minAllowancePeriodSeconds: bigint;
|
|
66
|
+
/**
|
|
67
|
+
* Maximum number of active SPENDING_ALLOWANCE grants per granter.
|
|
68
|
+
* Default 20.
|
|
69
|
+
*/
|
|
70
|
+
maxAllowancesPerGranter: number;
|
|
71
|
+
/**
|
|
72
|
+
* Maximum size of an allowed_recipients whitelist. Default 50. Prevents
|
|
73
|
+
* state-bloat attacks by capping the per-grant list length.
|
|
74
|
+
*/
|
|
75
|
+
maxAllowanceRecipientList: number;
|
|
76
|
+
/**
|
|
77
|
+
* Minimum amount per MsgPullAllowance call, as sdk.Int (string). Default
|
|
78
|
+
* "1000" (1000 uspark / 0.001 SPARK). Closes the "1 utoken at a time to
|
|
79
|
+
* bloat events / drain state" griefing pattern.
|
|
80
|
+
*/
|
|
81
|
+
minPullAmount: string;
|
|
82
|
+
/**
|
|
83
|
+
* --- ScheduledOneshot (P5) ---
|
|
84
|
+
* Minimum (fire_at - block_time) at creation. Default 60s; closes
|
|
85
|
+
* front-running edge cases.
|
|
86
|
+
*/
|
|
87
|
+
minScheduleDelaySeconds: bigint;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum (fire_at - block_time) at creation. Default 31_536_000 (1 year).
|
|
90
|
+
* Applies to fire_at only; max_grant_lifetime_seconds applies to expires_at.
|
|
91
|
+
*/
|
|
92
|
+
maxScheduleHorizonSeconds: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* Required buffer between fire_at and expires_at. Default 3600 (1h);
|
|
95
|
+
* makes the EndBlocker fire-vs-expire race impossible.
|
|
96
|
+
*/
|
|
97
|
+
fireToExpiryBufferSeconds: bigint;
|
|
98
|
+
/**
|
|
99
|
+
* Maximum active (non-paused) ScheduledOneshot grants per granter. Default 100.
|
|
100
|
+
*/
|
|
101
|
+
maxPendingOneshotsPerGranter: number;
|
|
102
|
+
/**
|
|
103
|
+
* Maximum paused (PAUSED_INSUFFICIENT_FUNDS) ScheduledOneshot grants per
|
|
104
|
+
* granter. Default 20. Separate from active cap so paused grants don't
|
|
105
|
+
* pin slots indefinitely.
|
|
106
|
+
*/
|
|
107
|
+
maxPausedOneshotsPerGranter: number;
|
|
108
|
+
/**
|
|
109
|
+
* Auto-revoke a paused oneshot after this many seconds. Default 604_800
|
|
110
|
+
* (7 days). Deposit refunded on auto-revoke.
|
|
111
|
+
*/
|
|
112
|
+
pausedOneshotTtlSeconds: bigint;
|
|
113
|
+
/**
|
|
114
|
+
* Minimum gas_limit allowed on OneshotExec. Default 30_000.
|
|
115
|
+
*/
|
|
116
|
+
minOneshotExecGas: bigint;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum gas_limit allowed on OneshotExec. Default 200_000.
|
|
119
|
+
*/
|
|
120
|
+
maxOneshotExecGas: bigint;
|
|
121
|
+
/**
|
|
122
|
+
* Price per gas unit for OneshotExec deposit calculation, as sdk.Dec
|
|
123
|
+
* string. Default "0.0025" (100x typical min_gas_price). Floor must be
|
|
124
|
+
* >= chain's effective min_gas_price. Denominated in the chain's bond
|
|
125
|
+
* denom (resolved at runtime via x/identity).
|
|
126
|
+
*/
|
|
127
|
+
oneshotGasPrice: string;
|
|
128
|
+
/**
|
|
129
|
+
* Flat per-slot fee on every Oneshot grant creation (both Transfer and
|
|
130
|
+
* Exec variants), in bond-denom micro-units. Default 1000 (0.001 SPARK).
|
|
131
|
+
* Closes the "free state slot" hole.
|
|
132
|
+
*/
|
|
133
|
+
oneshotCreationFee: bigint;
|
|
134
|
+
/**
|
|
135
|
+
* Hard floor on total deposit, in bond-denom micro-units. Default 1000.
|
|
136
|
+
* Defeats `gas_limit=1` zero-deposit slot griefing.
|
|
137
|
+
*/
|
|
138
|
+
minOneshotDeposit: bigint;
|
|
139
|
+
/**
|
|
140
|
+
* Per-EndBlocker pass cap on dispatches (fire, auto-revoke, expire each
|
|
141
|
+
* get their own cap). Default 100.
|
|
142
|
+
*/
|
|
143
|
+
maxEndblockerDispatchesPerPass: number;
|
|
144
|
+
/**
|
|
145
|
+
* --- Cross-type (P3) ---
|
|
146
|
+
* Additional coins permitted as denom in RecurringPull / SpendingAllowance
|
|
147
|
+
* / Oneshot grants. Default empty — the chain's bond denom is ALWAYS
|
|
148
|
+
* allowed; this list adds additional permitted denoms (e.g. IBC vouchers).
|
|
149
|
+
* DREAM is permanently excluded at the handler level regardless of
|
|
150
|
+
* contents.
|
|
151
|
+
*/
|
|
152
|
+
allowedDenoms: string[];
|
|
153
|
+
/**
|
|
154
|
+
* General cap on `expires_at - created_at` across all grant types. Default
|
|
155
|
+
* 31_536_000 (1 year).
|
|
156
|
+
*/
|
|
157
|
+
maxGrantLifetimeSeconds: bigint;
|
|
158
|
+
/**
|
|
159
|
+
* --- Module-bypass (P8) ---
|
|
160
|
+
* Bech32 addresses of module accounts authorized to call
|
|
161
|
+
* `CreateGrantOnBehalfOf` (the signature-bypass keeper entrypoint).
|
|
162
|
+
* Default empty — no module may bypass signatures unless explicitly
|
|
163
|
+
* gov-allowlisted.
|
|
164
|
+
*
|
|
165
|
+
* The bypass exists to let trusted modules (e.g. x/commons for council
|
|
166
|
+
* recurring spends) create grants for module-account granters that
|
|
167
|
+
* can't sign a real tx. Each address listed here is a strict trust
|
|
168
|
+
* grant; the bypass skips signature + sequence verification, so a
|
|
169
|
+
* compromised or buggy allowlisted module could synthesize arbitrary
|
|
170
|
+
* grants. Add only after a security review.
|
|
171
|
+
*/
|
|
172
|
+
authorizedGrantCreators: string[];
|
|
43
173
|
}
|
|
44
174
|
export interface ParamsProtoMsg {
|
|
45
175
|
typeUrl: "/sparkdream.session.v1.Params";
|
|
@@ -75,14 +205,145 @@ export interface ParamsAmino {
|
|
|
75
205
|
*/
|
|
76
206
|
max_expiration?: DurationAmino;
|
|
77
207
|
/**
|
|
78
|
-
* Maximum gas budget per session
|
|
208
|
+
* Maximum gas budget per session, in bond-denom micro-units (the chain's
|
|
209
|
+
* bond denom is resolved at runtime via x/identity).
|
|
79
210
|
*/
|
|
80
|
-
|
|
211
|
+
max_spend_limit_amount?: string;
|
|
81
212
|
/**
|
|
82
213
|
* Maximum exec_count per session. Must be > 0; sessions must declare
|
|
83
214
|
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
84
215
|
*/
|
|
85
216
|
max_exec_count?: string;
|
|
217
|
+
/**
|
|
218
|
+
* --- RecurringPull (P3) ---
|
|
219
|
+
* Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
|
|
220
|
+
* prevents abusive sub-second polling.
|
|
221
|
+
*/
|
|
222
|
+
min_recurring_period_seconds?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Maximum (expires_at - start_time) on a RECURRING_PULL grant. Default
|
|
225
|
+
* 31_536_000 (1 year); long-lived recurring authorizations need explicit
|
|
226
|
+
* re-issuance.
|
|
227
|
+
*/
|
|
228
|
+
max_recurring_duration_seconds?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Maximum number of active RECURRING_PULL grants per granter. Default 50.
|
|
231
|
+
*/
|
|
232
|
+
max_recurring_pulls_per_granter?: number;
|
|
233
|
+
/**
|
|
234
|
+
* --- SpendingAllowance (P4) ---
|
|
235
|
+
* Minimum period_seconds on a SPENDING_ALLOWANCE grant. Default 3_600
|
|
236
|
+
* (1 hour); finer-grained than RecurringPull to support rolling burst
|
|
237
|
+
* budgets.
|
|
238
|
+
*/
|
|
239
|
+
min_allowance_period_seconds?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Maximum number of active SPENDING_ALLOWANCE grants per granter.
|
|
242
|
+
* Default 20.
|
|
243
|
+
*/
|
|
244
|
+
max_allowances_per_granter?: number;
|
|
245
|
+
/**
|
|
246
|
+
* Maximum size of an allowed_recipients whitelist. Default 50. Prevents
|
|
247
|
+
* state-bloat attacks by capping the per-grant list length.
|
|
248
|
+
*/
|
|
249
|
+
max_allowance_recipient_list?: number;
|
|
250
|
+
/**
|
|
251
|
+
* Minimum amount per MsgPullAllowance call, as sdk.Int (string). Default
|
|
252
|
+
* "1000" (1000 uspark / 0.001 SPARK). Closes the "1 utoken at a time to
|
|
253
|
+
* bloat events / drain state" griefing pattern.
|
|
254
|
+
*/
|
|
255
|
+
min_pull_amount?: string;
|
|
256
|
+
/**
|
|
257
|
+
* --- ScheduledOneshot (P5) ---
|
|
258
|
+
* Minimum (fire_at - block_time) at creation. Default 60s; closes
|
|
259
|
+
* front-running edge cases.
|
|
260
|
+
*/
|
|
261
|
+
min_schedule_delay_seconds?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Maximum (fire_at - block_time) at creation. Default 31_536_000 (1 year).
|
|
264
|
+
* Applies to fire_at only; max_grant_lifetime_seconds applies to expires_at.
|
|
265
|
+
*/
|
|
266
|
+
max_schedule_horizon_seconds?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Required buffer between fire_at and expires_at. Default 3600 (1h);
|
|
269
|
+
* makes the EndBlocker fire-vs-expire race impossible.
|
|
270
|
+
*/
|
|
271
|
+
fire_to_expiry_buffer_seconds?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Maximum active (non-paused) ScheduledOneshot grants per granter. Default 100.
|
|
274
|
+
*/
|
|
275
|
+
max_pending_oneshots_per_granter?: number;
|
|
276
|
+
/**
|
|
277
|
+
* Maximum paused (PAUSED_INSUFFICIENT_FUNDS) ScheduledOneshot grants per
|
|
278
|
+
* granter. Default 20. Separate from active cap so paused grants don't
|
|
279
|
+
* pin slots indefinitely.
|
|
280
|
+
*/
|
|
281
|
+
max_paused_oneshots_per_granter?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Auto-revoke a paused oneshot after this many seconds. Default 604_800
|
|
284
|
+
* (7 days). Deposit refunded on auto-revoke.
|
|
285
|
+
*/
|
|
286
|
+
paused_oneshot_ttl_seconds?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Minimum gas_limit allowed on OneshotExec. Default 30_000.
|
|
289
|
+
*/
|
|
290
|
+
min_oneshot_exec_gas?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Maximum gas_limit allowed on OneshotExec. Default 200_000.
|
|
293
|
+
*/
|
|
294
|
+
max_oneshot_exec_gas?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Price per gas unit for OneshotExec deposit calculation, as sdk.Dec
|
|
297
|
+
* string. Default "0.0025" (100x typical min_gas_price). Floor must be
|
|
298
|
+
* >= chain's effective min_gas_price. Denominated in the chain's bond
|
|
299
|
+
* denom (resolved at runtime via x/identity).
|
|
300
|
+
*/
|
|
301
|
+
oneshot_gas_price?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Flat per-slot fee on every Oneshot grant creation (both Transfer and
|
|
304
|
+
* Exec variants), in bond-denom micro-units. Default 1000 (0.001 SPARK).
|
|
305
|
+
* Closes the "free state slot" hole.
|
|
306
|
+
*/
|
|
307
|
+
oneshot_creation_fee?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Hard floor on total deposit, in bond-denom micro-units. Default 1000.
|
|
310
|
+
* Defeats `gas_limit=1` zero-deposit slot griefing.
|
|
311
|
+
*/
|
|
312
|
+
min_oneshot_deposit?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Per-EndBlocker pass cap on dispatches (fire, auto-revoke, expire each
|
|
315
|
+
* get their own cap). Default 100.
|
|
316
|
+
*/
|
|
317
|
+
max_endblocker_dispatches_per_pass?: number;
|
|
318
|
+
/**
|
|
319
|
+
* --- Cross-type (P3) ---
|
|
320
|
+
* Additional coins permitted as denom in RecurringPull / SpendingAllowance
|
|
321
|
+
* / Oneshot grants. Default empty — the chain's bond denom is ALWAYS
|
|
322
|
+
* allowed; this list adds additional permitted denoms (e.g. IBC vouchers).
|
|
323
|
+
* DREAM is permanently excluded at the handler level regardless of
|
|
324
|
+
* contents.
|
|
325
|
+
*/
|
|
326
|
+
allowed_denoms?: string[];
|
|
327
|
+
/**
|
|
328
|
+
* General cap on `expires_at - created_at` across all grant types. Default
|
|
329
|
+
* 31_536_000 (1 year).
|
|
330
|
+
*/
|
|
331
|
+
max_grant_lifetime_seconds?: string;
|
|
332
|
+
/**
|
|
333
|
+
* --- Module-bypass (P8) ---
|
|
334
|
+
* Bech32 addresses of module accounts authorized to call
|
|
335
|
+
* `CreateGrantOnBehalfOf` (the signature-bypass keeper entrypoint).
|
|
336
|
+
* Default empty — no module may bypass signatures unless explicitly
|
|
337
|
+
* gov-allowlisted.
|
|
338
|
+
*
|
|
339
|
+
* The bypass exists to let trusted modules (e.g. x/commons for council
|
|
340
|
+
* recurring spends) create grants for module-account granters that
|
|
341
|
+
* can't sign a real tx. Each address listed here is a strict trust
|
|
342
|
+
* grant; the bypass skips signature + sequence verification, so a
|
|
343
|
+
* compromised or buggy allowlisted module could synthesize arbitrary
|
|
344
|
+
* grants. Add only after a security review.
|
|
345
|
+
*/
|
|
346
|
+
authorized_grant_creators?: string[];
|
|
86
347
|
}
|
|
87
348
|
export interface ParamsAminoMsg {
|
|
88
349
|
type: "sparkdream/x/session/Params";
|
|
@@ -105,8 +366,43 @@ export interface SessionOperationalParams {
|
|
|
105
366
|
maxSessionsPerGranter: bigint;
|
|
106
367
|
maxMsgTypesPerSession: bigint;
|
|
107
368
|
maxExpiration: Duration;
|
|
108
|
-
|
|
369
|
+
maxSpendLimitAmount: string;
|
|
109
370
|
maxExecCount: bigint;
|
|
371
|
+
/**
|
|
372
|
+
* --- RecurringPull + cross-type (P3) ---
|
|
373
|
+
*/
|
|
374
|
+
minRecurringPeriodSeconds: bigint;
|
|
375
|
+
maxRecurringDurationSeconds: bigint;
|
|
376
|
+
maxRecurringPullsPerGranter: number;
|
|
377
|
+
/**
|
|
378
|
+
* --- SpendingAllowance (P4) ---
|
|
379
|
+
*/
|
|
380
|
+
minAllowancePeriodSeconds: bigint;
|
|
381
|
+
maxAllowancesPerGranter: number;
|
|
382
|
+
maxAllowanceRecipientList: number;
|
|
383
|
+
minPullAmount: string;
|
|
384
|
+
/**
|
|
385
|
+
* --- ScheduledOneshot (P5) ---
|
|
386
|
+
*/
|
|
387
|
+
minScheduleDelaySeconds: bigint;
|
|
388
|
+
maxScheduleHorizonSeconds: bigint;
|
|
389
|
+
fireToExpiryBufferSeconds: bigint;
|
|
390
|
+
maxPendingOneshotsPerGranter: number;
|
|
391
|
+
maxPausedOneshotsPerGranter: number;
|
|
392
|
+
pausedOneshotTtlSeconds: bigint;
|
|
393
|
+
minOneshotExecGas: bigint;
|
|
394
|
+
maxOneshotExecGas: bigint;
|
|
395
|
+
oneshotGasPrice: string;
|
|
396
|
+
oneshotCreationFee: bigint;
|
|
397
|
+
minOneshotDeposit: bigint;
|
|
398
|
+
maxEndblockerDispatchesPerPass: number;
|
|
399
|
+
/**
|
|
400
|
+
* Note: allowed_denoms is add-only by ops (removing a denom strands existing
|
|
401
|
+
* grants and is gov-only via MsgUpdateParams). Including it here so ops can
|
|
402
|
+
* widen the set.
|
|
403
|
+
*/
|
|
404
|
+
allowedDenoms: string[];
|
|
405
|
+
maxGrantLifetimeSeconds: bigint;
|
|
110
406
|
}
|
|
111
407
|
export interface SessionOperationalParamsProtoMsg {
|
|
112
408
|
typeUrl: "/sparkdream.session.v1.SessionOperationalParams";
|
|
@@ -129,8 +425,43 @@ export interface SessionOperationalParamsAmino {
|
|
|
129
425
|
max_sessions_per_granter?: string;
|
|
130
426
|
max_msg_types_per_session?: string;
|
|
131
427
|
max_expiration?: DurationAmino;
|
|
132
|
-
|
|
428
|
+
max_spend_limit_amount?: string;
|
|
133
429
|
max_exec_count?: string;
|
|
430
|
+
/**
|
|
431
|
+
* --- RecurringPull + cross-type (P3) ---
|
|
432
|
+
*/
|
|
433
|
+
min_recurring_period_seconds?: string;
|
|
434
|
+
max_recurring_duration_seconds?: string;
|
|
435
|
+
max_recurring_pulls_per_granter?: number;
|
|
436
|
+
/**
|
|
437
|
+
* --- SpendingAllowance (P4) ---
|
|
438
|
+
*/
|
|
439
|
+
min_allowance_period_seconds?: string;
|
|
440
|
+
max_allowances_per_granter?: number;
|
|
441
|
+
max_allowance_recipient_list?: number;
|
|
442
|
+
min_pull_amount?: string;
|
|
443
|
+
/**
|
|
444
|
+
* --- ScheduledOneshot (P5) ---
|
|
445
|
+
*/
|
|
446
|
+
min_schedule_delay_seconds?: string;
|
|
447
|
+
max_schedule_horizon_seconds?: string;
|
|
448
|
+
fire_to_expiry_buffer_seconds?: string;
|
|
449
|
+
max_pending_oneshots_per_granter?: number;
|
|
450
|
+
max_paused_oneshots_per_granter?: number;
|
|
451
|
+
paused_oneshot_ttl_seconds?: string;
|
|
452
|
+
min_oneshot_exec_gas?: string;
|
|
453
|
+
max_oneshot_exec_gas?: string;
|
|
454
|
+
oneshot_gas_price?: string;
|
|
455
|
+
oneshot_creation_fee?: string;
|
|
456
|
+
min_oneshot_deposit?: string;
|
|
457
|
+
max_endblocker_dispatches_per_pass?: number;
|
|
458
|
+
/**
|
|
459
|
+
* Note: allowed_denoms is add-only by ops (removing a denom strands existing
|
|
460
|
+
* grants and is gov-only via MsgUpdateParams). Including it here so ops can
|
|
461
|
+
* widen the set.
|
|
462
|
+
*/
|
|
463
|
+
allowed_denoms?: string[];
|
|
464
|
+
max_grant_lifetime_seconds?: string;
|
|
134
465
|
}
|
|
135
466
|
export interface SessionOperationalParamsAminoMsg {
|
|
136
467
|
type: "sparkdream/x/session/SessionOperationalParams";
|