@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/amino-schema.d.ts +94 -0
- package/amino-schema.js +1 -1
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +365 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16171
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- 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 +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +235 -0
- package/sparkdream/federation/v1/tx.js +367 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
- package/sparkdream/federation/v1/tx.registry.js +37 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +5 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./params";
|
|
2
2
|
import { Grant, GrantAmino, GrantType } from "./grant";
|
|
3
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
3
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
5
|
import { DeepPartial } from "../../../helpers";
|
|
5
6
|
/**
|
|
@@ -31,6 +32,23 @@ export interface GenesisState {
|
|
|
31
32
|
* active grants.
|
|
32
33
|
*/
|
|
33
34
|
activeGrantCounts: ActiveGrantCount[];
|
|
35
|
+
/**
|
|
36
|
+
* SPARK gas deposits escrowed in the session module account for
|
|
37
|
+
* SCHEDULED_ONESHOT grants. Exported so an export/import round-trip never
|
|
38
|
+
* strands escrow with no claimant.
|
|
39
|
+
*/
|
|
40
|
+
oneshotGasDeposits: OneshotDeposit[];
|
|
41
|
+
/**
|
|
42
|
+
* Per-UTC-day spend buckets backing RECURRING_PULL max_per_epoch_uspark.
|
|
43
|
+
* Exported so a round-trip does not reset the per-day throttle.
|
|
44
|
+
*/
|
|
45
|
+
epochSpends: EpochSpendEntry[];
|
|
46
|
+
/**
|
|
47
|
+
* Module that created each grant through the module-bypass entrypoint
|
|
48
|
+
* (CreateGrantOnBehalfOf). Binds the bypass decline and claim paths to
|
|
49
|
+
* the creating module.
|
|
50
|
+
*/
|
|
51
|
+
grantCreators: GrantCreator[];
|
|
34
52
|
}
|
|
35
53
|
export interface GenesisStateProtoMsg {
|
|
36
54
|
typeUrl: "/sparkdream.session.v1.GenesisState";
|
|
@@ -65,11 +83,128 @@ export interface GenesisStateAmino {
|
|
|
65
83
|
* active grants.
|
|
66
84
|
*/
|
|
67
85
|
active_grant_counts?: ActiveGrantCountAmino[];
|
|
86
|
+
/**
|
|
87
|
+
* SPARK gas deposits escrowed in the session module account for
|
|
88
|
+
* SCHEDULED_ONESHOT grants. Exported so an export/import round-trip never
|
|
89
|
+
* strands escrow with no claimant.
|
|
90
|
+
*/
|
|
91
|
+
oneshot_gas_deposits?: OneshotDepositAmino[];
|
|
92
|
+
/**
|
|
93
|
+
* Per-UTC-day spend buckets backing RECURRING_PULL max_per_epoch_uspark.
|
|
94
|
+
* Exported so a round-trip does not reset the per-day throttle.
|
|
95
|
+
*/
|
|
96
|
+
epoch_spends?: EpochSpendEntryAmino[];
|
|
97
|
+
/**
|
|
98
|
+
* Module that created each grant through the module-bypass entrypoint
|
|
99
|
+
* (CreateGrantOnBehalfOf). Binds the bypass decline and claim paths to
|
|
100
|
+
* the creating module.
|
|
101
|
+
*/
|
|
102
|
+
grant_creators?: GrantCreatorAmino[];
|
|
68
103
|
}
|
|
69
104
|
export interface GenesisStateAminoMsg {
|
|
70
105
|
type: "/sparkdream.session.v1.GenesisState";
|
|
71
106
|
value: GenesisStateAmino;
|
|
72
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* OneshotDeposit is one escrowed ScheduledOneshot gas deposit.
|
|
110
|
+
* @name OneshotDeposit
|
|
111
|
+
* @package sparkdream.session.v1
|
|
112
|
+
* @see proto type: sparkdream.session.v1.OneshotDeposit
|
|
113
|
+
*/
|
|
114
|
+
export interface OneshotDeposit {
|
|
115
|
+
grantId: bigint;
|
|
116
|
+
amount: Coin;
|
|
117
|
+
}
|
|
118
|
+
export interface OneshotDepositProtoMsg {
|
|
119
|
+
typeUrl: "/sparkdream.session.v1.OneshotDeposit";
|
|
120
|
+
value: Uint8Array;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* OneshotDeposit is one escrowed ScheduledOneshot gas deposit.
|
|
124
|
+
* @name OneshotDepositAmino
|
|
125
|
+
* @package sparkdream.session.v1
|
|
126
|
+
* @see proto type: sparkdream.session.v1.OneshotDeposit
|
|
127
|
+
*/
|
|
128
|
+
export interface OneshotDepositAmino {
|
|
129
|
+
grant_id?: string;
|
|
130
|
+
amount: CoinAmino;
|
|
131
|
+
}
|
|
132
|
+
export interface OneshotDepositAminoMsg {
|
|
133
|
+
type: "/sparkdream.session.v1.OneshotDeposit";
|
|
134
|
+
value: OneshotDepositAmino;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* EpochSpendEntry is one (grant, UTC day) spend bucket.
|
|
138
|
+
* @name EpochSpendEntry
|
|
139
|
+
* @package sparkdream.session.v1
|
|
140
|
+
* @see proto type: sparkdream.session.v1.EpochSpendEntry
|
|
141
|
+
*/
|
|
142
|
+
export interface EpochSpendEntry {
|
|
143
|
+
grantId: bigint;
|
|
144
|
+
/**
|
|
145
|
+
* UTC day index (unix seconds / 86400).
|
|
146
|
+
*/
|
|
147
|
+
day: bigint;
|
|
148
|
+
/**
|
|
149
|
+
* Amount spent in that day, base units (sdk.Int string).
|
|
150
|
+
*/
|
|
151
|
+
amount: string;
|
|
152
|
+
}
|
|
153
|
+
export interface EpochSpendEntryProtoMsg {
|
|
154
|
+
typeUrl: "/sparkdream.session.v1.EpochSpendEntry";
|
|
155
|
+
value: Uint8Array;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* EpochSpendEntry is one (grant, UTC day) spend bucket.
|
|
159
|
+
* @name EpochSpendEntryAmino
|
|
160
|
+
* @package sparkdream.session.v1
|
|
161
|
+
* @see proto type: sparkdream.session.v1.EpochSpendEntry
|
|
162
|
+
*/
|
|
163
|
+
export interface EpochSpendEntryAmino {
|
|
164
|
+
grant_id?: string;
|
|
165
|
+
/**
|
|
166
|
+
* UTC day index (unix seconds / 86400).
|
|
167
|
+
*/
|
|
168
|
+
day?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Amount spent in that day, base units (sdk.Int string).
|
|
171
|
+
*/
|
|
172
|
+
amount?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface EpochSpendEntryAminoMsg {
|
|
175
|
+
type: "/sparkdream.session.v1.EpochSpendEntry";
|
|
176
|
+
value: EpochSpendEntryAmino;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* GrantCreator records the module address that created a grant through
|
|
180
|
+
* the module-bypass entrypoint.
|
|
181
|
+
* @name GrantCreator
|
|
182
|
+
* @package sparkdream.session.v1
|
|
183
|
+
* @see proto type: sparkdream.session.v1.GrantCreator
|
|
184
|
+
*/
|
|
185
|
+
export interface GrantCreator {
|
|
186
|
+
grantId: bigint;
|
|
187
|
+
moduleAddress: string;
|
|
188
|
+
}
|
|
189
|
+
export interface GrantCreatorProtoMsg {
|
|
190
|
+
typeUrl: "/sparkdream.session.v1.GrantCreator";
|
|
191
|
+
value: Uint8Array;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* GrantCreator records the module address that created a grant through
|
|
195
|
+
* the module-bypass entrypoint.
|
|
196
|
+
* @name GrantCreatorAmino
|
|
197
|
+
* @package sparkdream.session.v1
|
|
198
|
+
* @see proto type: sparkdream.session.v1.GrantCreator
|
|
199
|
+
*/
|
|
200
|
+
export interface GrantCreatorAmino {
|
|
201
|
+
grant_id?: string;
|
|
202
|
+
module_address?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface GrantCreatorAminoMsg {
|
|
205
|
+
type: "/sparkdream.session.v1.GrantCreator";
|
|
206
|
+
value: GrantCreatorAmino;
|
|
207
|
+
}
|
|
73
208
|
/**
|
|
74
209
|
* ActiveGrantCount carries one (granter, type) -> active count entry for
|
|
75
210
|
* the genesis export round-trip.
|
|
@@ -125,6 +260,61 @@ export declare const GenesisState: {
|
|
|
125
260
|
toProto(message: GenesisState): Uint8Array;
|
|
126
261
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
127
262
|
};
|
|
263
|
+
/**
|
|
264
|
+
* OneshotDeposit is one escrowed ScheduledOneshot gas deposit.
|
|
265
|
+
* @name OneshotDeposit
|
|
266
|
+
* @package sparkdream.session.v1
|
|
267
|
+
* @see proto type: sparkdream.session.v1.OneshotDeposit
|
|
268
|
+
*/
|
|
269
|
+
export declare const OneshotDeposit: {
|
|
270
|
+
typeUrl: string;
|
|
271
|
+
encode(message: OneshotDeposit, writer?: BinaryWriter): BinaryWriter;
|
|
272
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OneshotDeposit;
|
|
273
|
+
fromPartial(object: DeepPartial<OneshotDeposit>): OneshotDeposit;
|
|
274
|
+
fromAmino(object: OneshotDepositAmino): OneshotDeposit;
|
|
275
|
+
toAmino(message: OneshotDeposit): OneshotDepositAmino;
|
|
276
|
+
fromAminoMsg(object: OneshotDepositAminoMsg): OneshotDeposit;
|
|
277
|
+
fromProtoMsg(message: OneshotDepositProtoMsg): OneshotDeposit;
|
|
278
|
+
toProto(message: OneshotDeposit): Uint8Array;
|
|
279
|
+
toProtoMsg(message: OneshotDeposit): OneshotDepositProtoMsg;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* EpochSpendEntry is one (grant, UTC day) spend bucket.
|
|
283
|
+
* @name EpochSpendEntry
|
|
284
|
+
* @package sparkdream.session.v1
|
|
285
|
+
* @see proto type: sparkdream.session.v1.EpochSpendEntry
|
|
286
|
+
*/
|
|
287
|
+
export declare const EpochSpendEntry: {
|
|
288
|
+
typeUrl: string;
|
|
289
|
+
encode(message: EpochSpendEntry, writer?: BinaryWriter): BinaryWriter;
|
|
290
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EpochSpendEntry;
|
|
291
|
+
fromPartial(object: DeepPartial<EpochSpendEntry>): EpochSpendEntry;
|
|
292
|
+
fromAmino(object: EpochSpendEntryAmino): EpochSpendEntry;
|
|
293
|
+
toAmino(message: EpochSpendEntry): EpochSpendEntryAmino;
|
|
294
|
+
fromAminoMsg(object: EpochSpendEntryAminoMsg): EpochSpendEntry;
|
|
295
|
+
fromProtoMsg(message: EpochSpendEntryProtoMsg): EpochSpendEntry;
|
|
296
|
+
toProto(message: EpochSpendEntry): Uint8Array;
|
|
297
|
+
toProtoMsg(message: EpochSpendEntry): EpochSpendEntryProtoMsg;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* GrantCreator records the module address that created a grant through
|
|
301
|
+
* the module-bypass entrypoint.
|
|
302
|
+
* @name GrantCreator
|
|
303
|
+
* @package sparkdream.session.v1
|
|
304
|
+
* @see proto type: sparkdream.session.v1.GrantCreator
|
|
305
|
+
*/
|
|
306
|
+
export declare const GrantCreator: {
|
|
307
|
+
typeUrl: string;
|
|
308
|
+
encode(message: GrantCreator, writer?: BinaryWriter): BinaryWriter;
|
|
309
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GrantCreator;
|
|
310
|
+
fromPartial(object: DeepPartial<GrantCreator>): GrantCreator;
|
|
311
|
+
fromAmino(object: GrantCreatorAmino): GrantCreator;
|
|
312
|
+
toAmino(message: GrantCreator): GrantCreatorAmino;
|
|
313
|
+
fromAminoMsg(object: GrantCreatorAminoMsg): GrantCreator;
|
|
314
|
+
fromProtoMsg(message: GrantCreatorProtoMsg): GrantCreator;
|
|
315
|
+
toProto(message: GrantCreator): Uint8Array;
|
|
316
|
+
toProtoMsg(message: GrantCreator): GrantCreatorProtoMsg;
|
|
317
|
+
};
|
|
128
318
|
/**
|
|
129
319
|
* ActiveGrantCount carries one (granter, type) -> active count entry for
|
|
130
320
|
* the genesis export round-trip.
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActiveGrantCount = exports.GenesisState = void 0;
|
|
3
|
+
exports.ActiveGrantCount = exports.GrantCreator = exports.EpochSpendEntry = exports.OneshotDeposit = exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const grant_1 = require("./grant");
|
|
7
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
7
8
|
const binary_1 = require("../../../binary");
|
|
8
9
|
function createBaseGenesisState() {
|
|
9
10
|
return {
|
|
10
11
|
params: params_1.Params.fromPartial({}),
|
|
11
12
|
grants: [],
|
|
12
13
|
grantSeq: BigInt(0),
|
|
13
|
-
activeGrantCounts: []
|
|
14
|
+
activeGrantCounts: [],
|
|
15
|
+
oneshotGasDeposits: [],
|
|
16
|
+
epochSpends: [],
|
|
17
|
+
grantCreators: []
|
|
14
18
|
};
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
@@ -39,6 +43,15 @@ exports.GenesisState = {
|
|
|
39
43
|
for (const v of message.activeGrantCounts) {
|
|
40
44
|
exports.ActiveGrantCount.encode(v, writer.uint32(34).fork()).ldelim();
|
|
41
45
|
}
|
|
46
|
+
for (const v of message.oneshotGasDeposits) {
|
|
47
|
+
exports.OneshotDeposit.encode(v, writer.uint32(42).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
for (const v of message.epochSpends) {
|
|
50
|
+
exports.EpochSpendEntry.encode(v, writer.uint32(50).fork()).ldelim();
|
|
51
|
+
}
|
|
52
|
+
for (const v of message.grantCreators) {
|
|
53
|
+
exports.GrantCreator.encode(v, writer.uint32(58).fork()).ldelim();
|
|
54
|
+
}
|
|
42
55
|
return writer;
|
|
43
56
|
},
|
|
44
57
|
decode(input, length) {
|
|
@@ -60,6 +73,15 @@ exports.GenesisState = {
|
|
|
60
73
|
case 4:
|
|
61
74
|
message.activeGrantCounts.push(exports.ActiveGrantCount.decode(reader, reader.uint32()));
|
|
62
75
|
break;
|
|
76
|
+
case 5:
|
|
77
|
+
message.oneshotGasDeposits.push(exports.OneshotDeposit.decode(reader, reader.uint32()));
|
|
78
|
+
break;
|
|
79
|
+
case 6:
|
|
80
|
+
message.epochSpends.push(exports.EpochSpendEntry.decode(reader, reader.uint32()));
|
|
81
|
+
break;
|
|
82
|
+
case 7:
|
|
83
|
+
message.grantCreators.push(exports.GrantCreator.decode(reader, reader.uint32()));
|
|
84
|
+
break;
|
|
63
85
|
default:
|
|
64
86
|
reader.skipType(tag & 7);
|
|
65
87
|
break;
|
|
@@ -73,6 +95,9 @@ exports.GenesisState = {
|
|
|
73
95
|
message.grants = object.grants?.map(e => grant_1.Grant.fromPartial(e)) || [];
|
|
74
96
|
message.grantSeq = object.grantSeq !== undefined && object.grantSeq !== null ? BigInt(object.grantSeq.toString()) : BigInt(0);
|
|
75
97
|
message.activeGrantCounts = object.activeGrantCounts?.map(e => exports.ActiveGrantCount.fromPartial(e)) || [];
|
|
98
|
+
message.oneshotGasDeposits = object.oneshotGasDeposits?.map(e => exports.OneshotDeposit.fromPartial(e)) || [];
|
|
99
|
+
message.epochSpends = object.epochSpends?.map(e => exports.EpochSpendEntry.fromPartial(e)) || [];
|
|
100
|
+
message.grantCreators = object.grantCreators?.map(e => exports.GrantCreator.fromPartial(e)) || [];
|
|
76
101
|
return message;
|
|
77
102
|
},
|
|
78
103
|
fromAmino(object) {
|
|
@@ -85,6 +110,9 @@ exports.GenesisState = {
|
|
|
85
110
|
message.grantSeq = BigInt(object.grant_seq);
|
|
86
111
|
}
|
|
87
112
|
message.activeGrantCounts = object.active_grant_counts?.map(e => exports.ActiveGrantCount.fromAmino(e)) || [];
|
|
113
|
+
message.oneshotGasDeposits = object.oneshot_gas_deposits?.map(e => exports.OneshotDeposit.fromAmino(e)) || [];
|
|
114
|
+
message.epochSpends = object.epoch_spends?.map(e => exports.EpochSpendEntry.fromAmino(e)) || [];
|
|
115
|
+
message.grantCreators = object.grant_creators?.map(e => exports.GrantCreator.fromAmino(e)) || [];
|
|
88
116
|
return message;
|
|
89
117
|
},
|
|
90
118
|
toAmino(message) {
|
|
@@ -103,6 +131,24 @@ exports.GenesisState = {
|
|
|
103
131
|
else {
|
|
104
132
|
obj.active_grant_counts = message.activeGrantCounts;
|
|
105
133
|
}
|
|
134
|
+
if (message.oneshotGasDeposits) {
|
|
135
|
+
obj.oneshot_gas_deposits = message.oneshotGasDeposits.map(e => e ? exports.OneshotDeposit.toAmino(e) : undefined);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
obj.oneshot_gas_deposits = message.oneshotGasDeposits;
|
|
139
|
+
}
|
|
140
|
+
if (message.epochSpends) {
|
|
141
|
+
obj.epoch_spends = message.epochSpends.map(e => e ? exports.EpochSpendEntry.toAmino(e) : undefined);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
obj.epoch_spends = message.epochSpends;
|
|
145
|
+
}
|
|
146
|
+
if (message.grantCreators) {
|
|
147
|
+
obj.grant_creators = message.grantCreators.map(e => e ? exports.GrantCreator.toAmino(e) : undefined);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
obj.grant_creators = message.grantCreators;
|
|
151
|
+
}
|
|
106
152
|
return obj;
|
|
107
153
|
},
|
|
108
154
|
fromAminoMsg(object) {
|
|
@@ -121,6 +167,262 @@ exports.GenesisState = {
|
|
|
121
167
|
};
|
|
122
168
|
}
|
|
123
169
|
};
|
|
170
|
+
function createBaseOneshotDeposit() {
|
|
171
|
+
return {
|
|
172
|
+
grantId: BigInt(0),
|
|
173
|
+
amount: coin_1.Coin.fromPartial({})
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* OneshotDeposit is one escrowed ScheduledOneshot gas deposit.
|
|
178
|
+
* @name OneshotDeposit
|
|
179
|
+
* @package sparkdream.session.v1
|
|
180
|
+
* @see proto type: sparkdream.session.v1.OneshotDeposit
|
|
181
|
+
*/
|
|
182
|
+
exports.OneshotDeposit = {
|
|
183
|
+
typeUrl: "/sparkdream.session.v1.OneshotDeposit",
|
|
184
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
185
|
+
if (message.grantId !== BigInt(0)) {
|
|
186
|
+
writer.uint32(8).uint64(message.grantId);
|
|
187
|
+
}
|
|
188
|
+
if (message.amount !== undefined) {
|
|
189
|
+
coin_1.Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
|
|
190
|
+
}
|
|
191
|
+
return writer;
|
|
192
|
+
},
|
|
193
|
+
decode(input, length) {
|
|
194
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
195
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
196
|
+
const message = createBaseOneshotDeposit();
|
|
197
|
+
while (reader.pos < end) {
|
|
198
|
+
const tag = reader.uint32();
|
|
199
|
+
switch (tag >>> 3) {
|
|
200
|
+
case 1:
|
|
201
|
+
message.grantId = reader.uint64();
|
|
202
|
+
break;
|
|
203
|
+
case 2:
|
|
204
|
+
message.amount = coin_1.Coin.decode(reader, reader.uint32());
|
|
205
|
+
break;
|
|
206
|
+
default:
|
|
207
|
+
reader.skipType(tag & 7);
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
fromPartial(object) {
|
|
214
|
+
const message = createBaseOneshotDeposit();
|
|
215
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
216
|
+
message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined;
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
fromAmino(object) {
|
|
220
|
+
const message = createBaseOneshotDeposit();
|
|
221
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
222
|
+
message.grantId = BigInt(object.grant_id);
|
|
223
|
+
}
|
|
224
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
225
|
+
message.amount = coin_1.Coin.fromAmino(object.amount);
|
|
226
|
+
}
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
toAmino(message) {
|
|
230
|
+
const obj = {};
|
|
231
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
232
|
+
obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
233
|
+
return obj;
|
|
234
|
+
},
|
|
235
|
+
fromAminoMsg(object) {
|
|
236
|
+
return exports.OneshotDeposit.fromAmino(object.value);
|
|
237
|
+
},
|
|
238
|
+
fromProtoMsg(message) {
|
|
239
|
+
return exports.OneshotDeposit.decode(message.value);
|
|
240
|
+
},
|
|
241
|
+
toProto(message) {
|
|
242
|
+
return exports.OneshotDeposit.encode(message).finish();
|
|
243
|
+
},
|
|
244
|
+
toProtoMsg(message) {
|
|
245
|
+
return {
|
|
246
|
+
typeUrl: "/sparkdream.session.v1.OneshotDeposit",
|
|
247
|
+
value: exports.OneshotDeposit.encode(message).finish()
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
function createBaseEpochSpendEntry() {
|
|
252
|
+
return {
|
|
253
|
+
grantId: BigInt(0),
|
|
254
|
+
day: BigInt(0),
|
|
255
|
+
amount: ""
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* EpochSpendEntry is one (grant, UTC day) spend bucket.
|
|
260
|
+
* @name EpochSpendEntry
|
|
261
|
+
* @package sparkdream.session.v1
|
|
262
|
+
* @see proto type: sparkdream.session.v1.EpochSpendEntry
|
|
263
|
+
*/
|
|
264
|
+
exports.EpochSpendEntry = {
|
|
265
|
+
typeUrl: "/sparkdream.session.v1.EpochSpendEntry",
|
|
266
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
267
|
+
if (message.grantId !== BigInt(0)) {
|
|
268
|
+
writer.uint32(8).uint64(message.grantId);
|
|
269
|
+
}
|
|
270
|
+
if (message.day !== BigInt(0)) {
|
|
271
|
+
writer.uint32(16).int64(message.day);
|
|
272
|
+
}
|
|
273
|
+
if (message.amount !== "") {
|
|
274
|
+
writer.uint32(26).string(message.amount);
|
|
275
|
+
}
|
|
276
|
+
return writer;
|
|
277
|
+
},
|
|
278
|
+
decode(input, length) {
|
|
279
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
280
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
281
|
+
const message = createBaseEpochSpendEntry();
|
|
282
|
+
while (reader.pos < end) {
|
|
283
|
+
const tag = reader.uint32();
|
|
284
|
+
switch (tag >>> 3) {
|
|
285
|
+
case 1:
|
|
286
|
+
message.grantId = reader.uint64();
|
|
287
|
+
break;
|
|
288
|
+
case 2:
|
|
289
|
+
message.day = reader.int64();
|
|
290
|
+
break;
|
|
291
|
+
case 3:
|
|
292
|
+
message.amount = reader.string();
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
reader.skipType(tag & 7);
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return message;
|
|
300
|
+
},
|
|
301
|
+
fromPartial(object) {
|
|
302
|
+
const message = createBaseEpochSpendEntry();
|
|
303
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
304
|
+
message.day = object.day !== undefined && object.day !== null ? BigInt(object.day.toString()) : BigInt(0);
|
|
305
|
+
message.amount = object.amount ?? "";
|
|
306
|
+
return message;
|
|
307
|
+
},
|
|
308
|
+
fromAmino(object) {
|
|
309
|
+
const message = createBaseEpochSpendEntry();
|
|
310
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
311
|
+
message.grantId = BigInt(object.grant_id);
|
|
312
|
+
}
|
|
313
|
+
if (object.day !== undefined && object.day !== null) {
|
|
314
|
+
message.day = BigInt(object.day);
|
|
315
|
+
}
|
|
316
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
317
|
+
message.amount = object.amount;
|
|
318
|
+
}
|
|
319
|
+
return message;
|
|
320
|
+
},
|
|
321
|
+
toAmino(message) {
|
|
322
|
+
const obj = {};
|
|
323
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
324
|
+
obj.day = message.day !== BigInt(0) ? message.day?.toString() : undefined;
|
|
325
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
326
|
+
return obj;
|
|
327
|
+
},
|
|
328
|
+
fromAminoMsg(object) {
|
|
329
|
+
return exports.EpochSpendEntry.fromAmino(object.value);
|
|
330
|
+
},
|
|
331
|
+
fromProtoMsg(message) {
|
|
332
|
+
return exports.EpochSpendEntry.decode(message.value);
|
|
333
|
+
},
|
|
334
|
+
toProto(message) {
|
|
335
|
+
return exports.EpochSpendEntry.encode(message).finish();
|
|
336
|
+
},
|
|
337
|
+
toProtoMsg(message) {
|
|
338
|
+
return {
|
|
339
|
+
typeUrl: "/sparkdream.session.v1.EpochSpendEntry",
|
|
340
|
+
value: exports.EpochSpendEntry.encode(message).finish()
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
function createBaseGrantCreator() {
|
|
345
|
+
return {
|
|
346
|
+
grantId: BigInt(0),
|
|
347
|
+
moduleAddress: ""
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* GrantCreator records the module address that created a grant through
|
|
352
|
+
* the module-bypass entrypoint.
|
|
353
|
+
* @name GrantCreator
|
|
354
|
+
* @package sparkdream.session.v1
|
|
355
|
+
* @see proto type: sparkdream.session.v1.GrantCreator
|
|
356
|
+
*/
|
|
357
|
+
exports.GrantCreator = {
|
|
358
|
+
typeUrl: "/sparkdream.session.v1.GrantCreator",
|
|
359
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
360
|
+
if (message.grantId !== BigInt(0)) {
|
|
361
|
+
writer.uint32(8).uint64(message.grantId);
|
|
362
|
+
}
|
|
363
|
+
if (message.moduleAddress !== "") {
|
|
364
|
+
writer.uint32(18).string(message.moduleAddress);
|
|
365
|
+
}
|
|
366
|
+
return writer;
|
|
367
|
+
},
|
|
368
|
+
decode(input, length) {
|
|
369
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
371
|
+
const message = createBaseGrantCreator();
|
|
372
|
+
while (reader.pos < end) {
|
|
373
|
+
const tag = reader.uint32();
|
|
374
|
+
switch (tag >>> 3) {
|
|
375
|
+
case 1:
|
|
376
|
+
message.grantId = reader.uint64();
|
|
377
|
+
break;
|
|
378
|
+
case 2:
|
|
379
|
+
message.moduleAddress = reader.string();
|
|
380
|
+
break;
|
|
381
|
+
default:
|
|
382
|
+
reader.skipType(tag & 7);
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
},
|
|
388
|
+
fromPartial(object) {
|
|
389
|
+
const message = createBaseGrantCreator();
|
|
390
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
391
|
+
message.moduleAddress = object.moduleAddress ?? "";
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
fromAmino(object) {
|
|
395
|
+
const message = createBaseGrantCreator();
|
|
396
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
397
|
+
message.grantId = BigInt(object.grant_id);
|
|
398
|
+
}
|
|
399
|
+
if (object.module_address !== undefined && object.module_address !== null) {
|
|
400
|
+
message.moduleAddress = object.module_address;
|
|
401
|
+
}
|
|
402
|
+
return message;
|
|
403
|
+
},
|
|
404
|
+
toAmino(message) {
|
|
405
|
+
const obj = {};
|
|
406
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
407
|
+
obj.module_address = message.moduleAddress === "" ? undefined : message.moduleAddress;
|
|
408
|
+
return obj;
|
|
409
|
+
},
|
|
410
|
+
fromAminoMsg(object) {
|
|
411
|
+
return exports.GrantCreator.fromAmino(object.value);
|
|
412
|
+
},
|
|
413
|
+
fromProtoMsg(message) {
|
|
414
|
+
return exports.GrantCreator.decode(message.value);
|
|
415
|
+
},
|
|
416
|
+
toProto(message) {
|
|
417
|
+
return exports.GrantCreator.encode(message).finish();
|
|
418
|
+
},
|
|
419
|
+
toProtoMsg(message) {
|
|
420
|
+
return {
|
|
421
|
+
typeUrl: "/sparkdream.session.v1.GrantCreator",
|
|
422
|
+
value: exports.GrantCreator.encode(message).finish()
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
};
|
|
124
426
|
function createBaseActiveGrantCount() {
|
|
125
427
|
return {
|
|
126
428
|
granter: "",
|
|
@@ -40,6 +40,14 @@ export interface Params {
|
|
|
40
40
|
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
41
41
|
*/
|
|
42
42
|
maxExecCount: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum duration of a narrow session: one that names at most
|
|
45
|
+
* NarrowSessionMaxMsgTypes (2) message types and does not set
|
|
46
|
+
* allow_self_revoke. Unattended daemons (bridge, verifier, content
|
|
47
|
+
* scanner) sign through such keys; renewing one needs the granter's main
|
|
48
|
+
* key, which stays off the daemon's host. Must be >= max_expiration.
|
|
49
|
+
*/
|
|
50
|
+
narrowSessionMaxExpiration: Duration;
|
|
43
51
|
/**
|
|
44
52
|
* --- RecurringPull (P3) ---
|
|
45
53
|
* Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
|
|
@@ -214,6 +222,14 @@ export interface ParamsAmino {
|
|
|
214
222
|
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
215
223
|
*/
|
|
216
224
|
max_exec_count?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Maximum duration of a narrow session: one that names at most
|
|
227
|
+
* NarrowSessionMaxMsgTypes (2) message types and does not set
|
|
228
|
+
* allow_self_revoke. Unattended daemons (bridge, verifier, content
|
|
229
|
+
* scanner) sign through such keys; renewing one needs the granter's main
|
|
230
|
+
* key, which stays off the daemon's host. Must be >= max_expiration.
|
|
231
|
+
*/
|
|
232
|
+
narrow_session_max_expiration?: DurationAmino;
|
|
217
233
|
/**
|
|
218
234
|
* --- RecurringPull (P3) ---
|
|
219
235
|
* Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
|
|
@@ -368,6 +384,7 @@ export interface SessionOperationalParams {
|
|
|
368
384
|
maxExpiration: Duration;
|
|
369
385
|
maxSpendLimitAmount: string;
|
|
370
386
|
maxExecCount: bigint;
|
|
387
|
+
narrowSessionMaxExpiration: Duration;
|
|
371
388
|
/**
|
|
372
389
|
* --- RecurringPull + cross-type (P3) ---
|
|
373
390
|
*/
|
|
@@ -427,6 +444,7 @@ export interface SessionOperationalParamsAmino {
|
|
|
427
444
|
max_expiration?: DurationAmino;
|
|
428
445
|
max_spend_limit_amount?: string;
|
|
429
446
|
max_exec_count?: string;
|
|
447
|
+
narrow_session_max_expiration?: DurationAmino;
|
|
430
448
|
/**
|
|
431
449
|
* --- RecurringPull + cross-type (P3) ---
|
|
432
450
|
*/
|