@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
|
@@ -5,17 +5,19 @@ function createBaseRefileCooldown() {
|
|
|
5
5
|
controller: "",
|
|
6
6
|
operatorAddress: "",
|
|
7
7
|
serviceType: "",
|
|
8
|
-
dismissedAt: BigInt(0)
|
|
8
|
+
dismissedAt: BigInt(0),
|
|
9
|
+
reporter: ""
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
|
-
* RefileCooldown bars
|
|
13
|
-
* against the same
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* RefileCooldown bars the reporter of a member report that was
|
|
14
|
+
* AUTO_DISMISSED (controller stall) from re-filing against the same
|
|
15
|
+
* (operator, service_type) within `report_refile_cooldown_blocks`. See
|
|
16
|
+
* x-service-spec.md §3.4.5. Other members can still report the operator,
|
|
17
|
+
* and auto-dismissed system reports record no cooldown at all.
|
|
16
18
|
*
|
|
17
|
-
* Keyed by (
|
|
18
|
-
*
|
|
19
|
+
* Keyed by (reporter, operator_address, service_type, dismissed_at) in
|
|
20
|
+
* the RefileCooldowns store; lazy expiry — entries are checked at
|
|
19
21
|
* MsgReportOperator time and pruned when expired.
|
|
20
22
|
* @name RefileCooldown
|
|
21
23
|
* @package sparkdream.service.v1
|
|
@@ -37,6 +39,9 @@ export const RefileCooldown = {
|
|
|
37
39
|
if (message.dismissedAt !== BigInt(0)) {
|
|
38
40
|
writer.uint32(32).int64(message.dismissedAt);
|
|
39
41
|
}
|
|
42
|
+
if (message.reporter !== "") {
|
|
43
|
+
writer.uint32(42).string(message.reporter);
|
|
44
|
+
}
|
|
40
45
|
return writer;
|
|
41
46
|
},
|
|
42
47
|
decode(input, length) {
|
|
@@ -58,6 +63,9 @@ export const RefileCooldown = {
|
|
|
58
63
|
case 4:
|
|
59
64
|
message.dismissedAt = reader.int64();
|
|
60
65
|
break;
|
|
66
|
+
case 5:
|
|
67
|
+
message.reporter = reader.string();
|
|
68
|
+
break;
|
|
61
69
|
default:
|
|
62
70
|
reader.skipType(tag & 7);
|
|
63
71
|
break;
|
|
@@ -71,6 +79,7 @@ export const RefileCooldown = {
|
|
|
71
79
|
message.operatorAddress = object.operatorAddress ?? "";
|
|
72
80
|
message.serviceType = object.serviceType ?? "";
|
|
73
81
|
message.dismissedAt = object.dismissedAt !== undefined && object.dismissedAt !== null ? BigInt(object.dismissedAt.toString()) : BigInt(0);
|
|
82
|
+
message.reporter = object.reporter ?? "";
|
|
74
83
|
return message;
|
|
75
84
|
},
|
|
76
85
|
fromAmino(object) {
|
|
@@ -87,6 +96,9 @@ export const RefileCooldown = {
|
|
|
87
96
|
if (object.dismissed_at !== undefined && object.dismissed_at !== null) {
|
|
88
97
|
message.dismissedAt = BigInt(object.dismissed_at);
|
|
89
98
|
}
|
|
99
|
+
if (object.reporter !== undefined && object.reporter !== null) {
|
|
100
|
+
message.reporter = object.reporter;
|
|
101
|
+
}
|
|
90
102
|
return message;
|
|
91
103
|
},
|
|
92
104
|
toAmino(message) {
|
|
@@ -95,6 +107,7 @@ export const RefileCooldown = {
|
|
|
95
107
|
obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
|
|
96
108
|
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
97
109
|
obj.dismissed_at = message.dismissedAt !== BigInt(0) ? message.dismissedAt?.toString() : undefined;
|
|
110
|
+
obj.reporter = message.reporter === "" ? undefined : message.reporter;
|
|
98
111
|
return obj;
|
|
99
112
|
},
|
|
100
113
|
fromAminoMsg(object) {
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
3
|
import { Grant } from "./grant";
|
|
4
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
4
5
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
6
|
function createBaseGenesisState() {
|
|
6
7
|
return {
|
|
7
8
|
params: Params.fromPartial({}),
|
|
8
9
|
grants: [],
|
|
9
10
|
grantSeq: BigInt(0),
|
|
10
|
-
activeGrantCounts: []
|
|
11
|
+
activeGrantCounts: [],
|
|
12
|
+
oneshotGasDeposits: [],
|
|
13
|
+
epochSpends: [],
|
|
14
|
+
grantCreators: []
|
|
11
15
|
};
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
@@ -36,6 +40,15 @@ export const GenesisState = {
|
|
|
36
40
|
for (const v of message.activeGrantCounts) {
|
|
37
41
|
ActiveGrantCount.encode(v, writer.uint32(34).fork()).ldelim();
|
|
38
42
|
}
|
|
43
|
+
for (const v of message.oneshotGasDeposits) {
|
|
44
|
+
OneshotDeposit.encode(v, writer.uint32(42).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
for (const v of message.epochSpends) {
|
|
47
|
+
EpochSpendEntry.encode(v, writer.uint32(50).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
for (const v of message.grantCreators) {
|
|
50
|
+
GrantCreator.encode(v, writer.uint32(58).fork()).ldelim();
|
|
51
|
+
}
|
|
39
52
|
return writer;
|
|
40
53
|
},
|
|
41
54
|
decode(input, length) {
|
|
@@ -57,6 +70,15 @@ export const GenesisState = {
|
|
|
57
70
|
case 4:
|
|
58
71
|
message.activeGrantCounts.push(ActiveGrantCount.decode(reader, reader.uint32()));
|
|
59
72
|
break;
|
|
73
|
+
case 5:
|
|
74
|
+
message.oneshotGasDeposits.push(OneshotDeposit.decode(reader, reader.uint32()));
|
|
75
|
+
break;
|
|
76
|
+
case 6:
|
|
77
|
+
message.epochSpends.push(EpochSpendEntry.decode(reader, reader.uint32()));
|
|
78
|
+
break;
|
|
79
|
+
case 7:
|
|
80
|
+
message.grantCreators.push(GrantCreator.decode(reader, reader.uint32()));
|
|
81
|
+
break;
|
|
60
82
|
default:
|
|
61
83
|
reader.skipType(tag & 7);
|
|
62
84
|
break;
|
|
@@ -70,6 +92,9 @@ export const GenesisState = {
|
|
|
70
92
|
message.grants = object.grants?.map(e => Grant.fromPartial(e)) || [];
|
|
71
93
|
message.grantSeq = object.grantSeq !== undefined && object.grantSeq !== null ? BigInt(object.grantSeq.toString()) : BigInt(0);
|
|
72
94
|
message.activeGrantCounts = object.activeGrantCounts?.map(e => ActiveGrantCount.fromPartial(e)) || [];
|
|
95
|
+
message.oneshotGasDeposits = object.oneshotGasDeposits?.map(e => OneshotDeposit.fromPartial(e)) || [];
|
|
96
|
+
message.epochSpends = object.epochSpends?.map(e => EpochSpendEntry.fromPartial(e)) || [];
|
|
97
|
+
message.grantCreators = object.grantCreators?.map(e => GrantCreator.fromPartial(e)) || [];
|
|
73
98
|
return message;
|
|
74
99
|
},
|
|
75
100
|
fromAmino(object) {
|
|
@@ -82,6 +107,9 @@ export const GenesisState = {
|
|
|
82
107
|
message.grantSeq = BigInt(object.grant_seq);
|
|
83
108
|
}
|
|
84
109
|
message.activeGrantCounts = object.active_grant_counts?.map(e => ActiveGrantCount.fromAmino(e)) || [];
|
|
110
|
+
message.oneshotGasDeposits = object.oneshot_gas_deposits?.map(e => OneshotDeposit.fromAmino(e)) || [];
|
|
111
|
+
message.epochSpends = object.epoch_spends?.map(e => EpochSpendEntry.fromAmino(e)) || [];
|
|
112
|
+
message.grantCreators = object.grant_creators?.map(e => GrantCreator.fromAmino(e)) || [];
|
|
85
113
|
return message;
|
|
86
114
|
},
|
|
87
115
|
toAmino(message) {
|
|
@@ -100,6 +128,24 @@ export const GenesisState = {
|
|
|
100
128
|
else {
|
|
101
129
|
obj.active_grant_counts = message.activeGrantCounts;
|
|
102
130
|
}
|
|
131
|
+
if (message.oneshotGasDeposits) {
|
|
132
|
+
obj.oneshot_gas_deposits = message.oneshotGasDeposits.map(e => e ? OneshotDeposit.toAmino(e) : undefined);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
obj.oneshot_gas_deposits = message.oneshotGasDeposits;
|
|
136
|
+
}
|
|
137
|
+
if (message.epochSpends) {
|
|
138
|
+
obj.epoch_spends = message.epochSpends.map(e => e ? EpochSpendEntry.toAmino(e) : undefined);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
obj.epoch_spends = message.epochSpends;
|
|
142
|
+
}
|
|
143
|
+
if (message.grantCreators) {
|
|
144
|
+
obj.grant_creators = message.grantCreators.map(e => e ? GrantCreator.toAmino(e) : undefined);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
obj.grant_creators = message.grantCreators;
|
|
148
|
+
}
|
|
103
149
|
return obj;
|
|
104
150
|
},
|
|
105
151
|
fromAminoMsg(object) {
|
|
@@ -118,6 +164,262 @@ export const GenesisState = {
|
|
|
118
164
|
};
|
|
119
165
|
}
|
|
120
166
|
};
|
|
167
|
+
function createBaseOneshotDeposit() {
|
|
168
|
+
return {
|
|
169
|
+
grantId: BigInt(0),
|
|
170
|
+
amount: Coin.fromPartial({})
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* OneshotDeposit is one escrowed ScheduledOneshot gas deposit.
|
|
175
|
+
* @name OneshotDeposit
|
|
176
|
+
* @package sparkdream.session.v1
|
|
177
|
+
* @see proto type: sparkdream.session.v1.OneshotDeposit
|
|
178
|
+
*/
|
|
179
|
+
export const OneshotDeposit = {
|
|
180
|
+
typeUrl: "/sparkdream.session.v1.OneshotDeposit",
|
|
181
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
182
|
+
if (message.grantId !== BigInt(0)) {
|
|
183
|
+
writer.uint32(8).uint64(message.grantId);
|
|
184
|
+
}
|
|
185
|
+
if (message.amount !== undefined) {
|
|
186
|
+
Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
|
|
187
|
+
}
|
|
188
|
+
return writer;
|
|
189
|
+
},
|
|
190
|
+
decode(input, length) {
|
|
191
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
192
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
193
|
+
const message = createBaseOneshotDeposit();
|
|
194
|
+
while (reader.pos < end) {
|
|
195
|
+
const tag = reader.uint32();
|
|
196
|
+
switch (tag >>> 3) {
|
|
197
|
+
case 1:
|
|
198
|
+
message.grantId = reader.uint64();
|
|
199
|
+
break;
|
|
200
|
+
case 2:
|
|
201
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
202
|
+
break;
|
|
203
|
+
default:
|
|
204
|
+
reader.skipType(tag & 7);
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
fromPartial(object) {
|
|
211
|
+
const message = createBaseOneshotDeposit();
|
|
212
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
213
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
fromAmino(object) {
|
|
217
|
+
const message = createBaseOneshotDeposit();
|
|
218
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
219
|
+
message.grantId = BigInt(object.grant_id);
|
|
220
|
+
}
|
|
221
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
222
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
223
|
+
}
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
toAmino(message) {
|
|
227
|
+
const obj = {};
|
|
228
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
229
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
230
|
+
return obj;
|
|
231
|
+
},
|
|
232
|
+
fromAminoMsg(object) {
|
|
233
|
+
return OneshotDeposit.fromAmino(object.value);
|
|
234
|
+
},
|
|
235
|
+
fromProtoMsg(message) {
|
|
236
|
+
return OneshotDeposit.decode(message.value);
|
|
237
|
+
},
|
|
238
|
+
toProto(message) {
|
|
239
|
+
return OneshotDeposit.encode(message).finish();
|
|
240
|
+
},
|
|
241
|
+
toProtoMsg(message) {
|
|
242
|
+
return {
|
|
243
|
+
typeUrl: "/sparkdream.session.v1.OneshotDeposit",
|
|
244
|
+
value: OneshotDeposit.encode(message).finish()
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
function createBaseEpochSpendEntry() {
|
|
249
|
+
return {
|
|
250
|
+
grantId: BigInt(0),
|
|
251
|
+
day: BigInt(0),
|
|
252
|
+
amount: ""
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* EpochSpendEntry is one (grant, UTC day) spend bucket.
|
|
257
|
+
* @name EpochSpendEntry
|
|
258
|
+
* @package sparkdream.session.v1
|
|
259
|
+
* @see proto type: sparkdream.session.v1.EpochSpendEntry
|
|
260
|
+
*/
|
|
261
|
+
export const EpochSpendEntry = {
|
|
262
|
+
typeUrl: "/sparkdream.session.v1.EpochSpendEntry",
|
|
263
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
264
|
+
if (message.grantId !== BigInt(0)) {
|
|
265
|
+
writer.uint32(8).uint64(message.grantId);
|
|
266
|
+
}
|
|
267
|
+
if (message.day !== BigInt(0)) {
|
|
268
|
+
writer.uint32(16).int64(message.day);
|
|
269
|
+
}
|
|
270
|
+
if (message.amount !== "") {
|
|
271
|
+
writer.uint32(26).string(message.amount);
|
|
272
|
+
}
|
|
273
|
+
return writer;
|
|
274
|
+
},
|
|
275
|
+
decode(input, length) {
|
|
276
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
277
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
278
|
+
const message = createBaseEpochSpendEntry();
|
|
279
|
+
while (reader.pos < end) {
|
|
280
|
+
const tag = reader.uint32();
|
|
281
|
+
switch (tag >>> 3) {
|
|
282
|
+
case 1:
|
|
283
|
+
message.grantId = reader.uint64();
|
|
284
|
+
break;
|
|
285
|
+
case 2:
|
|
286
|
+
message.day = reader.int64();
|
|
287
|
+
break;
|
|
288
|
+
case 3:
|
|
289
|
+
message.amount = reader.string();
|
|
290
|
+
break;
|
|
291
|
+
default:
|
|
292
|
+
reader.skipType(tag & 7);
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
fromPartial(object) {
|
|
299
|
+
const message = createBaseEpochSpendEntry();
|
|
300
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
301
|
+
message.day = object.day !== undefined && object.day !== null ? BigInt(object.day.toString()) : BigInt(0);
|
|
302
|
+
message.amount = object.amount ?? "";
|
|
303
|
+
return message;
|
|
304
|
+
},
|
|
305
|
+
fromAmino(object) {
|
|
306
|
+
const message = createBaseEpochSpendEntry();
|
|
307
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
308
|
+
message.grantId = BigInt(object.grant_id);
|
|
309
|
+
}
|
|
310
|
+
if (object.day !== undefined && object.day !== null) {
|
|
311
|
+
message.day = BigInt(object.day);
|
|
312
|
+
}
|
|
313
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
314
|
+
message.amount = object.amount;
|
|
315
|
+
}
|
|
316
|
+
return message;
|
|
317
|
+
},
|
|
318
|
+
toAmino(message) {
|
|
319
|
+
const obj = {};
|
|
320
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
321
|
+
obj.day = message.day !== BigInt(0) ? message.day?.toString() : undefined;
|
|
322
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
323
|
+
return obj;
|
|
324
|
+
},
|
|
325
|
+
fromAminoMsg(object) {
|
|
326
|
+
return EpochSpendEntry.fromAmino(object.value);
|
|
327
|
+
},
|
|
328
|
+
fromProtoMsg(message) {
|
|
329
|
+
return EpochSpendEntry.decode(message.value);
|
|
330
|
+
},
|
|
331
|
+
toProto(message) {
|
|
332
|
+
return EpochSpendEntry.encode(message).finish();
|
|
333
|
+
},
|
|
334
|
+
toProtoMsg(message) {
|
|
335
|
+
return {
|
|
336
|
+
typeUrl: "/sparkdream.session.v1.EpochSpendEntry",
|
|
337
|
+
value: EpochSpendEntry.encode(message).finish()
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
function createBaseGrantCreator() {
|
|
342
|
+
return {
|
|
343
|
+
grantId: BigInt(0),
|
|
344
|
+
moduleAddress: ""
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* GrantCreator records the module address that created a grant through
|
|
349
|
+
* the module-bypass entrypoint.
|
|
350
|
+
* @name GrantCreator
|
|
351
|
+
* @package sparkdream.session.v1
|
|
352
|
+
* @see proto type: sparkdream.session.v1.GrantCreator
|
|
353
|
+
*/
|
|
354
|
+
export const GrantCreator = {
|
|
355
|
+
typeUrl: "/sparkdream.session.v1.GrantCreator",
|
|
356
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
357
|
+
if (message.grantId !== BigInt(0)) {
|
|
358
|
+
writer.uint32(8).uint64(message.grantId);
|
|
359
|
+
}
|
|
360
|
+
if (message.moduleAddress !== "") {
|
|
361
|
+
writer.uint32(18).string(message.moduleAddress);
|
|
362
|
+
}
|
|
363
|
+
return writer;
|
|
364
|
+
},
|
|
365
|
+
decode(input, length) {
|
|
366
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
367
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
368
|
+
const message = createBaseGrantCreator();
|
|
369
|
+
while (reader.pos < end) {
|
|
370
|
+
const tag = reader.uint32();
|
|
371
|
+
switch (tag >>> 3) {
|
|
372
|
+
case 1:
|
|
373
|
+
message.grantId = reader.uint64();
|
|
374
|
+
break;
|
|
375
|
+
case 2:
|
|
376
|
+
message.moduleAddress = reader.string();
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
reader.skipType(tag & 7);
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
fromPartial(object) {
|
|
386
|
+
const message = createBaseGrantCreator();
|
|
387
|
+
message.grantId = object.grantId !== undefined && object.grantId !== null ? BigInt(object.grantId.toString()) : BigInt(0);
|
|
388
|
+
message.moduleAddress = object.moduleAddress ?? "";
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
fromAmino(object) {
|
|
392
|
+
const message = createBaseGrantCreator();
|
|
393
|
+
if (object.grant_id !== undefined && object.grant_id !== null) {
|
|
394
|
+
message.grantId = BigInt(object.grant_id);
|
|
395
|
+
}
|
|
396
|
+
if (object.module_address !== undefined && object.module_address !== null) {
|
|
397
|
+
message.moduleAddress = object.module_address;
|
|
398
|
+
}
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
toAmino(message) {
|
|
402
|
+
const obj = {};
|
|
403
|
+
obj.grant_id = message.grantId !== BigInt(0) ? message.grantId?.toString() : undefined;
|
|
404
|
+
obj.module_address = message.moduleAddress === "" ? undefined : message.moduleAddress;
|
|
405
|
+
return obj;
|
|
406
|
+
},
|
|
407
|
+
fromAminoMsg(object) {
|
|
408
|
+
return GrantCreator.fromAmino(object.value);
|
|
409
|
+
},
|
|
410
|
+
fromProtoMsg(message) {
|
|
411
|
+
return GrantCreator.decode(message.value);
|
|
412
|
+
},
|
|
413
|
+
toProto(message) {
|
|
414
|
+
return GrantCreator.encode(message).finish();
|
|
415
|
+
},
|
|
416
|
+
toProtoMsg(message) {
|
|
417
|
+
return {
|
|
418
|
+
typeUrl: "/sparkdream.session.v1.GrantCreator",
|
|
419
|
+
value: GrantCreator.encode(message).finish()
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
};
|
|
121
423
|
function createBaseActiveGrantCount() {
|
|
122
424
|
return {
|
|
123
425
|
granter: "",
|
|
@@ -10,6 +10,7 @@ function createBaseParams() {
|
|
|
10
10
|
maxExpiration: Duration.fromPartial({}),
|
|
11
11
|
maxSpendLimitAmount: "",
|
|
12
12
|
maxExecCount: BigInt(0),
|
|
13
|
+
narrowSessionMaxExpiration: Duration.fromPartial({}),
|
|
13
14
|
minRecurringPeriodSeconds: BigInt(0),
|
|
14
15
|
maxRecurringDurationSeconds: BigInt(0),
|
|
15
16
|
maxRecurringPullsPerGranter: 0,
|
|
@@ -65,6 +66,9 @@ export const Params = {
|
|
|
65
66
|
if (message.maxExecCount !== BigInt(0)) {
|
|
66
67
|
writer.uint32(56).uint64(message.maxExecCount);
|
|
67
68
|
}
|
|
69
|
+
if (message.narrowSessionMaxExpiration !== undefined) {
|
|
70
|
+
Duration.encode(message.narrowSessionMaxExpiration, writer.uint32(66).fork()).ldelim();
|
|
71
|
+
}
|
|
68
72
|
if (message.minRecurringPeriodSeconds !== BigInt(0)) {
|
|
69
73
|
writer.uint32(80).int64(message.minRecurringPeriodSeconds);
|
|
70
74
|
}
|
|
@@ -161,6 +165,9 @@ export const Params = {
|
|
|
161
165
|
case 7:
|
|
162
166
|
message.maxExecCount = reader.uint64();
|
|
163
167
|
break;
|
|
168
|
+
case 8:
|
|
169
|
+
message.narrowSessionMaxExpiration = Duration.decode(reader, reader.uint32());
|
|
170
|
+
break;
|
|
164
171
|
case 10:
|
|
165
172
|
message.minRecurringPeriodSeconds = reader.int64();
|
|
166
173
|
break;
|
|
@@ -243,6 +250,7 @@ export const Params = {
|
|
|
243
250
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? Duration.fromPartial(object.maxExpiration) : undefined;
|
|
244
251
|
message.maxSpendLimitAmount = object.maxSpendLimitAmount ?? "";
|
|
245
252
|
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
253
|
+
message.narrowSessionMaxExpiration = object.narrowSessionMaxExpiration !== undefined && object.narrowSessionMaxExpiration !== null ? Duration.fromPartial(object.narrowSessionMaxExpiration) : undefined;
|
|
246
254
|
message.minRecurringPeriodSeconds = object.minRecurringPeriodSeconds !== undefined && object.minRecurringPeriodSeconds !== null ? BigInt(object.minRecurringPeriodSeconds.toString()) : BigInt(0);
|
|
247
255
|
message.maxRecurringDurationSeconds = object.maxRecurringDurationSeconds !== undefined && object.maxRecurringDurationSeconds !== null ? BigInt(object.maxRecurringDurationSeconds.toString()) : BigInt(0);
|
|
248
256
|
message.maxRecurringPullsPerGranter = object.maxRecurringPullsPerGranter ?? 0;
|
|
@@ -286,6 +294,9 @@ export const Params = {
|
|
|
286
294
|
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
287
295
|
message.maxExecCount = BigInt(object.max_exec_count);
|
|
288
296
|
}
|
|
297
|
+
if (object.narrow_session_max_expiration !== undefined && object.narrow_session_max_expiration !== null) {
|
|
298
|
+
message.narrowSessionMaxExpiration = Duration.fromAmino(object.narrow_session_max_expiration);
|
|
299
|
+
}
|
|
289
300
|
if (object.min_recurring_period_seconds !== undefined && object.min_recurring_period_seconds !== null) {
|
|
290
301
|
message.minRecurringPeriodSeconds = BigInt(object.min_recurring_period_seconds);
|
|
291
302
|
}
|
|
@@ -369,6 +380,7 @@ export const Params = {
|
|
|
369
380
|
obj.max_expiration = message.maxExpiration ? Duration.toAmino(message.maxExpiration) : undefined;
|
|
370
381
|
obj.max_spend_limit_amount = message.maxSpendLimitAmount === "" ? undefined : message.maxSpendLimitAmount;
|
|
371
382
|
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
383
|
+
obj.narrow_session_max_expiration = message.narrowSessionMaxExpiration ? Duration.toAmino(message.narrowSessionMaxExpiration) : undefined;
|
|
372
384
|
obj.min_recurring_period_seconds = message.minRecurringPeriodSeconds !== BigInt(0) ? message.minRecurringPeriodSeconds?.toString() : undefined;
|
|
373
385
|
obj.max_recurring_duration_seconds = message.maxRecurringDurationSeconds !== BigInt(0) ? message.maxRecurringDurationSeconds?.toString() : undefined;
|
|
374
386
|
obj.max_recurring_pulls_per_granter = message.maxRecurringPullsPerGranter === 0 ? undefined : message.maxRecurringPullsPerGranter;
|
|
@@ -433,6 +445,7 @@ function createBaseSessionOperationalParams() {
|
|
|
433
445
|
maxExpiration: Duration.fromPartial({}),
|
|
434
446
|
maxSpendLimitAmount: "",
|
|
435
447
|
maxExecCount: BigInt(0),
|
|
448
|
+
narrowSessionMaxExpiration: Duration.fromPartial({}),
|
|
436
449
|
minRecurringPeriodSeconds: BigInt(0),
|
|
437
450
|
maxRecurringDurationSeconds: BigInt(0),
|
|
438
451
|
maxRecurringPullsPerGranter: 0,
|
|
@@ -486,6 +499,9 @@ export const SessionOperationalParams = {
|
|
|
486
499
|
if (message.maxExecCount !== BigInt(0)) {
|
|
487
500
|
writer.uint32(48).uint64(message.maxExecCount);
|
|
488
501
|
}
|
|
502
|
+
if (message.narrowSessionMaxExpiration !== undefined) {
|
|
503
|
+
Duration.encode(message.narrowSessionMaxExpiration, writer.uint32(58).fork()).ldelim();
|
|
504
|
+
}
|
|
489
505
|
if (message.minRecurringPeriodSeconds !== BigInt(0)) {
|
|
490
506
|
writer.uint32(80).int64(message.minRecurringPeriodSeconds);
|
|
491
507
|
}
|
|
@@ -576,6 +592,9 @@ export const SessionOperationalParams = {
|
|
|
576
592
|
case 6:
|
|
577
593
|
message.maxExecCount = reader.uint64();
|
|
578
594
|
break;
|
|
595
|
+
case 7:
|
|
596
|
+
message.narrowSessionMaxExpiration = Duration.decode(reader, reader.uint32());
|
|
597
|
+
break;
|
|
579
598
|
case 10:
|
|
580
599
|
message.minRecurringPeriodSeconds = reader.int64();
|
|
581
600
|
break;
|
|
@@ -654,6 +673,7 @@ export const SessionOperationalParams = {
|
|
|
654
673
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? Duration.fromPartial(object.maxExpiration) : undefined;
|
|
655
674
|
message.maxSpendLimitAmount = object.maxSpendLimitAmount ?? "";
|
|
656
675
|
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
676
|
+
message.narrowSessionMaxExpiration = object.narrowSessionMaxExpiration !== undefined && object.narrowSessionMaxExpiration !== null ? Duration.fromPartial(object.narrowSessionMaxExpiration) : undefined;
|
|
657
677
|
message.minRecurringPeriodSeconds = object.minRecurringPeriodSeconds !== undefined && object.minRecurringPeriodSeconds !== null ? BigInt(object.minRecurringPeriodSeconds.toString()) : BigInt(0);
|
|
658
678
|
message.maxRecurringDurationSeconds = object.maxRecurringDurationSeconds !== undefined && object.maxRecurringDurationSeconds !== null ? BigInt(object.maxRecurringDurationSeconds.toString()) : BigInt(0);
|
|
659
679
|
message.maxRecurringPullsPerGranter = object.maxRecurringPullsPerGranter ?? 0;
|
|
@@ -695,6 +715,9 @@ export const SessionOperationalParams = {
|
|
|
695
715
|
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
696
716
|
message.maxExecCount = BigInt(object.max_exec_count);
|
|
697
717
|
}
|
|
718
|
+
if (object.narrow_session_max_expiration !== undefined && object.narrow_session_max_expiration !== null) {
|
|
719
|
+
message.narrowSessionMaxExpiration = Duration.fromAmino(object.narrow_session_max_expiration);
|
|
720
|
+
}
|
|
698
721
|
if (object.min_recurring_period_seconds !== undefined && object.min_recurring_period_seconds !== null) {
|
|
699
722
|
message.minRecurringPeriodSeconds = BigInt(object.min_recurring_period_seconds);
|
|
700
723
|
}
|
|
@@ -771,6 +794,7 @@ export const SessionOperationalParams = {
|
|
|
771
794
|
obj.max_expiration = message.maxExpiration ? Duration.toAmino(message.maxExpiration) : undefined;
|
|
772
795
|
obj.max_spend_limit_amount = message.maxSpendLimitAmount === "" ? undefined : message.maxSpendLimitAmount;
|
|
773
796
|
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
797
|
+
obj.narrow_session_max_expiration = message.narrowSessionMaxExpiration ? Duration.toAmino(message.narrowSessionMaxExpiration) : undefined;
|
|
774
798
|
obj.min_recurring_period_seconds = message.minRecurringPeriodSeconds !== BigInt(0) ? message.minRecurringPeriodSeconds?.toString() : undefined;
|
|
775
799
|
obj.max_recurring_duration_seconds = message.maxRecurringDurationSeconds !== BigInt(0) ? message.maxRecurringDurationSeconds?.toString() : undefined;
|
|
776
800
|
obj.max_recurring_pulls_per_granter = message.maxRecurringPullsPerGranter === 0 ? undefined : message.maxRecurringPullsPerGranter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { ShieldedOpRegistration, UsedNullifier, DayFunding, VerificationKey, TLEKeySet, PendingShieldedOp, ShieldEpochState, ShieldEpochDecryptionKey, IdentityRateLimitEntry, ShieldDecryptionShare, TLEMissCounterEntry, DKGState, DKGContributionEntry, DecryptionDemandEntry, DKGComplaint } from "./types";
|
|
3
|
+
import { ShieldedOpRegistration, UsedNullifier, DayFunding, VerificationKey, TLEKeySet, PendingShieldedOp, ShieldEpochState, ShieldEpochDecryptionKey, IdentityRateLimitEntry, ShieldDecryptionShare, TLEMissCounterEntry, DKGState, DKGContributionEntry, DecryptionDemandEntry, DKGComplaint, TLEParticipationEntry, EpochFeeLedger } from "./types";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
5
|
function createBaseGenesisState() {
|
|
6
6
|
return {
|
|
@@ -22,7 +22,11 @@ function createBaseGenesisState() {
|
|
|
22
22
|
dkgContributions: [],
|
|
23
23
|
dkgRegistrations: [],
|
|
24
24
|
decryptionDemands: [],
|
|
25
|
-
dkgComplaints: []
|
|
25
|
+
dkgComplaints: [],
|
|
26
|
+
tleParticipation: [],
|
|
27
|
+
tleJudgedEpochs: BigInt(0),
|
|
28
|
+
epochFeeLedger: EpochFeeLedger.fromPartial({}),
|
|
29
|
+
retiredDomains: []
|
|
26
30
|
};
|
|
27
31
|
}
|
|
28
32
|
/**
|
|
@@ -91,6 +95,18 @@ export const GenesisState = {
|
|
|
91
95
|
for (const v of message.dkgComplaints) {
|
|
92
96
|
DKGComplaint.encode(v, writer.uint32(154).fork()).ldelim();
|
|
93
97
|
}
|
|
98
|
+
for (const v of message.tleParticipation) {
|
|
99
|
+
TLEParticipationEntry.encode(v, writer.uint32(162).fork()).ldelim();
|
|
100
|
+
}
|
|
101
|
+
if (message.tleJudgedEpochs !== BigInt(0)) {
|
|
102
|
+
writer.uint32(168).uint64(message.tleJudgedEpochs);
|
|
103
|
+
}
|
|
104
|
+
if (message.epochFeeLedger !== undefined) {
|
|
105
|
+
EpochFeeLedger.encode(message.epochFeeLedger, writer.uint32(178).fork()).ldelim();
|
|
106
|
+
}
|
|
107
|
+
for (const v of message.retiredDomains) {
|
|
108
|
+
ShieldedOpRegistration.encode(v, writer.uint32(186).fork()).ldelim();
|
|
109
|
+
}
|
|
94
110
|
return writer;
|
|
95
111
|
},
|
|
96
112
|
decode(input, length) {
|
|
@@ -157,6 +173,18 @@ export const GenesisState = {
|
|
|
157
173
|
case 19:
|
|
158
174
|
message.dkgComplaints.push(DKGComplaint.decode(reader, reader.uint32()));
|
|
159
175
|
break;
|
|
176
|
+
case 20:
|
|
177
|
+
message.tleParticipation.push(TLEParticipationEntry.decode(reader, reader.uint32()));
|
|
178
|
+
break;
|
|
179
|
+
case 21:
|
|
180
|
+
message.tleJudgedEpochs = reader.uint64();
|
|
181
|
+
break;
|
|
182
|
+
case 22:
|
|
183
|
+
message.epochFeeLedger = EpochFeeLedger.decode(reader, reader.uint32());
|
|
184
|
+
break;
|
|
185
|
+
case 23:
|
|
186
|
+
message.retiredDomains.push(ShieldedOpRegistration.decode(reader, reader.uint32()));
|
|
187
|
+
break;
|
|
160
188
|
default:
|
|
161
189
|
reader.skipType(tag & 7);
|
|
162
190
|
break;
|
|
@@ -185,6 +213,10 @@ export const GenesisState = {
|
|
|
185
213
|
message.dkgRegistrations = object.dkgRegistrations?.map(e => DKGContributionEntry.fromPartial(e)) || [];
|
|
186
214
|
message.decryptionDemands = object.decryptionDemands?.map(e => DecryptionDemandEntry.fromPartial(e)) || [];
|
|
187
215
|
message.dkgComplaints = object.dkgComplaints?.map(e => DKGComplaint.fromPartial(e)) || [];
|
|
216
|
+
message.tleParticipation = object.tleParticipation?.map(e => TLEParticipationEntry.fromPartial(e)) || [];
|
|
217
|
+
message.tleJudgedEpochs = object.tleJudgedEpochs !== undefined && object.tleJudgedEpochs !== null ? BigInt(object.tleJudgedEpochs.toString()) : BigInt(0);
|
|
218
|
+
message.epochFeeLedger = object.epochFeeLedger !== undefined && object.epochFeeLedger !== null ? EpochFeeLedger.fromPartial(object.epochFeeLedger) : undefined;
|
|
219
|
+
message.retiredDomains = object.retiredDomains?.map(e => ShieldedOpRegistration.fromPartial(e)) || [];
|
|
188
220
|
return message;
|
|
189
221
|
},
|
|
190
222
|
fromAmino(object) {
|
|
@@ -218,6 +250,14 @@ export const GenesisState = {
|
|
|
218
250
|
message.dkgRegistrations = object.dkg_registrations?.map(e => DKGContributionEntry.fromAmino(e)) || [];
|
|
219
251
|
message.decryptionDemands = object.decryption_demands?.map(e => DecryptionDemandEntry.fromAmino(e)) || [];
|
|
220
252
|
message.dkgComplaints = object.dkg_complaints?.map(e => DKGComplaint.fromAmino(e)) || [];
|
|
253
|
+
message.tleParticipation = object.tle_participation?.map(e => TLEParticipationEntry.fromAmino(e)) || [];
|
|
254
|
+
if (object.tle_judged_epochs !== undefined && object.tle_judged_epochs !== null) {
|
|
255
|
+
message.tleJudgedEpochs = BigInt(object.tle_judged_epochs);
|
|
256
|
+
}
|
|
257
|
+
if (object.epoch_fee_ledger !== undefined && object.epoch_fee_ledger !== null) {
|
|
258
|
+
message.epochFeeLedger = EpochFeeLedger.fromAmino(object.epoch_fee_ledger);
|
|
259
|
+
}
|
|
260
|
+
message.retiredDomains = object.retired_domains?.map(e => ShieldedOpRegistration.fromAmino(e)) || [];
|
|
221
261
|
return message;
|
|
222
262
|
},
|
|
223
263
|
toAmino(message) {
|
|
@@ -311,6 +351,20 @@ export const GenesisState = {
|
|
|
311
351
|
else {
|
|
312
352
|
obj.dkg_complaints = message.dkgComplaints;
|
|
313
353
|
}
|
|
354
|
+
if (message.tleParticipation) {
|
|
355
|
+
obj.tle_participation = message.tleParticipation.map(e => e ? TLEParticipationEntry.toAmino(e) : undefined);
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
obj.tle_participation = message.tleParticipation;
|
|
359
|
+
}
|
|
360
|
+
obj.tle_judged_epochs = message.tleJudgedEpochs !== BigInt(0) ? message.tleJudgedEpochs?.toString() : undefined;
|
|
361
|
+
obj.epoch_fee_ledger = message.epochFeeLedger ? EpochFeeLedger.toAmino(message.epochFeeLedger) : undefined;
|
|
362
|
+
if (message.retiredDomains) {
|
|
363
|
+
obj.retired_domains = message.retiredDomains.map(e => e ? ShieldedOpRegistration.toAmino(e) : undefined);
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
obj.retired_domains = message.retiredDomains;
|
|
367
|
+
}
|
|
314
368
|
return obj;
|
|
315
369
|
},
|
|
316
370
|
fromAminoMsg(object) {
|