@sparkdreamnft/sparkdreamjs 0.0.14 → 0.0.15
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/esm/sparkdream/rep/v1/params.js +74 -2
- package/esm/sparkdream/rep/v1/project.js +24 -1
- package/esm/sparkdream/session/v1/params.js +26 -2
- package/package.json +1 -1
- package/sparkdream/rep/v1/params.d.ts +52 -0
- package/sparkdream/rep/v1/params.js +74 -2
- package/sparkdream/rep/v1/project.d.ts +22 -0
- package/sparkdream/rep/v1/project.js +24 -1
- package/sparkdream/session/v1/params.d.ts +12 -0
- package/sparkdream/session/v1/params.js +26 -2
|
@@ -407,7 +407,10 @@ function createBaseParams() {
|
|
|
407
407
|
minAppealRate: "",
|
|
408
408
|
maxActiveInitiativesPerMember: 0,
|
|
409
409
|
maxActiveInterimsPerMember: 0,
|
|
410
|
-
maxDreamMintPerEpoch: ""
|
|
410
|
+
maxDreamMintPerEpoch: "",
|
|
411
|
+
maxProjectRequestedBudget: "",
|
|
412
|
+
maxProjectRequestedSpark: "",
|
|
413
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
411
414
|
};
|
|
412
415
|
}
|
|
413
416
|
/**
|
|
@@ -681,6 +684,15 @@ export const Params = {
|
|
|
681
684
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
682
685
|
writer.uint32(698).string(message.maxDreamMintPerEpoch);
|
|
683
686
|
}
|
|
687
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
688
|
+
writer.uint32(706).string(message.maxProjectRequestedBudget);
|
|
689
|
+
}
|
|
690
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
691
|
+
writer.uint32(714).string(message.maxProjectRequestedSpark);
|
|
692
|
+
}
|
|
693
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
694
|
+
writer.uint32(720).int64(message.proposedProjectExpiryBlocks);
|
|
695
|
+
}
|
|
684
696
|
return writer;
|
|
685
697
|
},
|
|
686
698
|
decode(input, length) {
|
|
@@ -951,6 +963,15 @@ export const Params = {
|
|
|
951
963
|
case 87:
|
|
952
964
|
message.maxDreamMintPerEpoch = reader.string();
|
|
953
965
|
break;
|
|
966
|
+
case 88:
|
|
967
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
968
|
+
break;
|
|
969
|
+
case 89:
|
|
970
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
971
|
+
break;
|
|
972
|
+
case 90:
|
|
973
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
974
|
+
break;
|
|
954
975
|
default:
|
|
955
976
|
reader.skipType(tag & 7);
|
|
956
977
|
break;
|
|
@@ -1047,6 +1068,9 @@ export const Params = {
|
|
|
1047
1068
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
1048
1069
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
1049
1070
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
1071
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
1072
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
1073
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
1050
1074
|
return message;
|
|
1051
1075
|
},
|
|
1052
1076
|
fromAmino(object) {
|
|
@@ -1312,6 +1336,15 @@ export const Params = {
|
|
|
1312
1336
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
1313
1337
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
1314
1338
|
}
|
|
1339
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
1340
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
1341
|
+
}
|
|
1342
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
1343
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
1344
|
+
}
|
|
1345
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
1346
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
1347
|
+
}
|
|
1315
1348
|
return message;
|
|
1316
1349
|
},
|
|
1317
1350
|
toAmino(message) {
|
|
@@ -1403,6 +1436,9 @@ export const Params = {
|
|
|
1403
1436
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
1404
1437
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
1405
1438
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
1439
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
1440
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
1441
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
1406
1442
|
return obj;
|
|
1407
1443
|
},
|
|
1408
1444
|
fromAminoMsg(object) {
|
|
@@ -1499,7 +1535,10 @@ function createBaseRepOperationalParams() {
|
|
|
1499
1535
|
minAppealRate: "",
|
|
1500
1536
|
maxActiveInitiativesPerMember: 0,
|
|
1501
1537
|
maxActiveInterimsPerMember: 0,
|
|
1502
|
-
maxDreamMintPerEpoch: ""
|
|
1538
|
+
maxDreamMintPerEpoch: "",
|
|
1539
|
+
maxProjectRequestedBudget: "",
|
|
1540
|
+
maxProjectRequestedSpark: "",
|
|
1541
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
1503
1542
|
};
|
|
1504
1543
|
}
|
|
1505
1544
|
/**
|
|
@@ -1727,6 +1766,15 @@ export const RepOperationalParams = {
|
|
|
1727
1766
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
1728
1767
|
writer.uint32(570).string(message.maxDreamMintPerEpoch);
|
|
1729
1768
|
}
|
|
1769
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
1770
|
+
writer.uint32(578).string(message.maxProjectRequestedBudget);
|
|
1771
|
+
}
|
|
1772
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
1773
|
+
writer.uint32(586).string(message.maxProjectRequestedSpark);
|
|
1774
|
+
}
|
|
1775
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
1776
|
+
writer.uint32(592).int64(message.proposedProjectExpiryBlocks);
|
|
1777
|
+
}
|
|
1730
1778
|
return writer;
|
|
1731
1779
|
},
|
|
1732
1780
|
decode(input, length) {
|
|
@@ -1949,6 +1997,15 @@ export const RepOperationalParams = {
|
|
|
1949
1997
|
case 71:
|
|
1950
1998
|
message.maxDreamMintPerEpoch = reader.string();
|
|
1951
1999
|
break;
|
|
2000
|
+
case 72:
|
|
2001
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
2002
|
+
break;
|
|
2003
|
+
case 73:
|
|
2004
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
2005
|
+
break;
|
|
2006
|
+
case 74:
|
|
2007
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
2008
|
+
break;
|
|
1952
2009
|
default:
|
|
1953
2010
|
reader.skipType(tag & 7);
|
|
1954
2011
|
break;
|
|
@@ -2029,6 +2086,9 @@ export const RepOperationalParams = {
|
|
|
2029
2086
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
2030
2087
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
2031
2088
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
2089
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
2090
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
2091
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
2032
2092
|
return message;
|
|
2033
2093
|
},
|
|
2034
2094
|
fromAmino(object) {
|
|
@@ -2246,6 +2306,15 @@ export const RepOperationalParams = {
|
|
|
2246
2306
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
2247
2307
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
2248
2308
|
}
|
|
2309
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
2310
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
2311
|
+
}
|
|
2312
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
2313
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
2314
|
+
}
|
|
2315
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
2316
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
2317
|
+
}
|
|
2249
2318
|
return message;
|
|
2250
2319
|
},
|
|
2251
2320
|
toAmino(message) {
|
|
@@ -2321,6 +2390,9 @@ export const RepOperationalParams = {
|
|
|
2321
2390
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
2322
2391
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
2323
2392
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
2393
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
2394
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
2395
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
2324
2396
|
return obj;
|
|
2325
2397
|
},
|
|
2326
2398
|
fromAminoMsg(object) {
|
|
@@ -57,6 +57,12 @@ export var ProjectStatus;
|
|
|
57
57
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_ACTIVE"] = 1] = "PROJECT_STATUS_ACTIVE";
|
|
58
58
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_COMPLETED"] = 2] = "PROJECT_STATUS_COMPLETED";
|
|
59
59
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_CANCELLED"] = 3] = "PROJECT_STATUS_CANCELLED";
|
|
60
|
+
/**
|
|
61
|
+
* PROJECT_STATUS_EXPIRED - EXPIRED is set by the EndBlocker when a PROPOSED project has not been
|
|
62
|
+
* approved before its expiry_block_height. Terminal state — kept (not
|
|
63
|
+
* deleted) so the audit trail of stale proposals survives.
|
|
64
|
+
*/
|
|
65
|
+
ProjectStatus[ProjectStatus["PROJECT_STATUS_EXPIRED"] = 4] = "PROJECT_STATUS_EXPIRED";
|
|
60
66
|
ProjectStatus[ProjectStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
61
67
|
})(ProjectStatus || (ProjectStatus = {}));
|
|
62
68
|
export const ProjectStatusAmino = ProjectStatus;
|
|
@@ -74,6 +80,9 @@ export function projectStatusFromJSON(object) {
|
|
|
74
80
|
case 3:
|
|
75
81
|
case "PROJECT_STATUS_CANCELLED":
|
|
76
82
|
return ProjectStatus.PROJECT_STATUS_CANCELLED;
|
|
83
|
+
case 4:
|
|
84
|
+
case "PROJECT_STATUS_EXPIRED":
|
|
85
|
+
return ProjectStatus.PROJECT_STATUS_EXPIRED;
|
|
77
86
|
case -1:
|
|
78
87
|
case "UNRECOGNIZED":
|
|
79
88
|
default:
|
|
@@ -90,6 +99,8 @@ export function projectStatusToJSON(object) {
|
|
|
90
99
|
return "PROJECT_STATUS_COMPLETED";
|
|
91
100
|
case ProjectStatus.PROJECT_STATUS_CANCELLED:
|
|
92
101
|
return "PROJECT_STATUS_CANCELLED";
|
|
102
|
+
case ProjectStatus.PROJECT_STATUS_EXPIRED:
|
|
103
|
+
return "PROJECT_STATUS_EXPIRED";
|
|
93
104
|
case ProjectStatus.UNRECOGNIZED:
|
|
94
105
|
default:
|
|
95
106
|
return "UNRECOGNIZED";
|
|
@@ -158,7 +169,8 @@ function createBaseProject() {
|
|
|
158
169
|
approvedBy: "",
|
|
159
170
|
approvedAt: BigInt(0),
|
|
160
171
|
completedAt: BigInt(0),
|
|
161
|
-
permissionless: false
|
|
172
|
+
permissionless: false,
|
|
173
|
+
expiryBlockHeight: BigInt(0)
|
|
162
174
|
};
|
|
163
175
|
}
|
|
164
176
|
/**
|
|
@@ -224,6 +236,9 @@ export const Project = {
|
|
|
224
236
|
if (message.permissionless === true) {
|
|
225
237
|
writer.uint32(144).bool(message.permissionless);
|
|
226
238
|
}
|
|
239
|
+
if (message.expiryBlockHeight !== BigInt(0)) {
|
|
240
|
+
writer.uint32(152).int64(message.expiryBlockHeight);
|
|
241
|
+
}
|
|
227
242
|
return writer;
|
|
228
243
|
},
|
|
229
244
|
decode(input, length) {
|
|
@@ -287,6 +302,9 @@ export const Project = {
|
|
|
287
302
|
case 18:
|
|
288
303
|
message.permissionless = reader.bool();
|
|
289
304
|
break;
|
|
305
|
+
case 19:
|
|
306
|
+
message.expiryBlockHeight = reader.int64();
|
|
307
|
+
break;
|
|
290
308
|
default:
|
|
291
309
|
reader.skipType(tag & 7);
|
|
292
310
|
break;
|
|
@@ -314,6 +332,7 @@ export const Project = {
|
|
|
314
332
|
message.approvedAt = object.approvedAt !== undefined && object.approvedAt !== null ? BigInt(object.approvedAt.toString()) : BigInt(0);
|
|
315
333
|
message.completedAt = object.completedAt !== undefined && object.completedAt !== null ? BigInt(object.completedAt.toString()) : BigInt(0);
|
|
316
334
|
message.permissionless = object.permissionless ?? false;
|
|
335
|
+
message.expiryBlockHeight = object.expiryBlockHeight !== undefined && object.expiryBlockHeight !== null ? BigInt(object.expiryBlockHeight.toString()) : BigInt(0);
|
|
317
336
|
return message;
|
|
318
337
|
},
|
|
319
338
|
fromAmino(object) {
|
|
@@ -370,6 +389,9 @@ export const Project = {
|
|
|
370
389
|
if (object.permissionless !== undefined && object.permissionless !== null) {
|
|
371
390
|
message.permissionless = object.permissionless;
|
|
372
391
|
}
|
|
392
|
+
if (object.expiry_block_height !== undefined && object.expiry_block_height !== null) {
|
|
393
|
+
message.expiryBlockHeight = BigInt(object.expiry_block_height);
|
|
394
|
+
}
|
|
373
395
|
return message;
|
|
374
396
|
},
|
|
375
397
|
toAmino(message) {
|
|
@@ -397,6 +419,7 @@ export const Project = {
|
|
|
397
419
|
obj.approved_at = message.approvedAt !== BigInt(0) ? message.approvedAt?.toString() : undefined;
|
|
398
420
|
obj.completed_at = message.completedAt !== BigInt(0) ? message.completedAt?.toString() : undefined;
|
|
399
421
|
obj.permissionless = message.permissionless === false ? undefined : message.permissionless;
|
|
422
|
+
obj.expiry_block_height = message.expiryBlockHeight !== BigInt(0) ? message.expiryBlockHeight?.toString() : undefined;
|
|
400
423
|
return obj;
|
|
401
424
|
},
|
|
402
425
|
fromAminoMsg(object) {
|
|
@@ -9,7 +9,8 @@ function createBaseParams() {
|
|
|
9
9
|
maxSessionsPerGranter: BigInt(0),
|
|
10
10
|
maxMsgTypesPerSession: BigInt(0),
|
|
11
11
|
maxExpiration: Duration.fromPartial({}),
|
|
12
|
-
maxSpendLimit: Coin.fromPartial({})
|
|
12
|
+
maxSpendLimit: Coin.fromPartial({}),
|
|
13
|
+
maxExecCount: BigInt(0)
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
@@ -40,6 +41,9 @@ export const Params = {
|
|
|
40
41
|
if (message.maxSpendLimit !== undefined) {
|
|
41
42
|
Coin.encode(message.maxSpendLimit, writer.uint32(50).fork()).ldelim();
|
|
42
43
|
}
|
|
44
|
+
if (message.maxExecCount !== BigInt(0)) {
|
|
45
|
+
writer.uint32(56).uint64(message.maxExecCount);
|
|
46
|
+
}
|
|
43
47
|
return writer;
|
|
44
48
|
},
|
|
45
49
|
decode(input, length) {
|
|
@@ -67,6 +71,9 @@ export const Params = {
|
|
|
67
71
|
case 6:
|
|
68
72
|
message.maxSpendLimit = Coin.decode(reader, reader.uint32());
|
|
69
73
|
break;
|
|
74
|
+
case 7:
|
|
75
|
+
message.maxExecCount = reader.uint64();
|
|
76
|
+
break;
|
|
70
77
|
default:
|
|
71
78
|
reader.skipType(tag & 7);
|
|
72
79
|
break;
|
|
@@ -82,6 +89,7 @@ export const Params = {
|
|
|
82
89
|
message.maxMsgTypesPerSession = object.maxMsgTypesPerSession !== undefined && object.maxMsgTypesPerSession !== null ? BigInt(object.maxMsgTypesPerSession.toString()) : BigInt(0);
|
|
83
90
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? Duration.fromPartial(object.maxExpiration) : undefined;
|
|
84
91
|
message.maxSpendLimit = object.maxSpendLimit !== undefined && object.maxSpendLimit !== null ? Coin.fromPartial(object.maxSpendLimit) : undefined;
|
|
92
|
+
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
85
93
|
return message;
|
|
86
94
|
},
|
|
87
95
|
fromAmino(object) {
|
|
@@ -100,6 +108,9 @@ export const Params = {
|
|
|
100
108
|
if (object.max_spend_limit !== undefined && object.max_spend_limit !== null) {
|
|
101
109
|
message.maxSpendLimit = Coin.fromAmino(object.max_spend_limit);
|
|
102
110
|
}
|
|
111
|
+
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
112
|
+
message.maxExecCount = BigInt(object.max_exec_count);
|
|
113
|
+
}
|
|
103
114
|
return message;
|
|
104
115
|
},
|
|
105
116
|
toAmino(message) {
|
|
@@ -120,6 +131,7 @@ export const Params = {
|
|
|
120
131
|
obj.max_msg_types_per_session = message.maxMsgTypesPerSession !== BigInt(0) ? message.maxMsgTypesPerSession?.toString() : undefined;
|
|
121
132
|
obj.max_expiration = message.maxExpiration ? Duration.toAmino(message.maxExpiration) : undefined;
|
|
122
133
|
obj.max_spend_limit = message.maxSpendLimit ? Coin.toAmino(message.maxSpendLimit) : Coin.toAmino(Coin.fromPartial({}));
|
|
134
|
+
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
123
135
|
return obj;
|
|
124
136
|
},
|
|
125
137
|
fromAminoMsg(object) {
|
|
@@ -150,7 +162,8 @@ function createBaseSessionOperationalParams() {
|
|
|
150
162
|
maxSessionsPerGranter: BigInt(0),
|
|
151
163
|
maxMsgTypesPerSession: BigInt(0),
|
|
152
164
|
maxExpiration: Duration.fromPartial({}),
|
|
153
|
-
maxSpendLimit: Coin.fromPartial({})
|
|
165
|
+
maxSpendLimit: Coin.fromPartial({}),
|
|
166
|
+
maxExecCount: BigInt(0)
|
|
154
167
|
};
|
|
155
168
|
}
|
|
156
169
|
/**
|
|
@@ -180,6 +193,9 @@ export const SessionOperationalParams = {
|
|
|
180
193
|
if (message.maxSpendLimit !== undefined) {
|
|
181
194
|
Coin.encode(message.maxSpendLimit, writer.uint32(42).fork()).ldelim();
|
|
182
195
|
}
|
|
196
|
+
if (message.maxExecCount !== BigInt(0)) {
|
|
197
|
+
writer.uint32(48).uint64(message.maxExecCount);
|
|
198
|
+
}
|
|
183
199
|
return writer;
|
|
184
200
|
},
|
|
185
201
|
decode(input, length) {
|
|
@@ -204,6 +220,9 @@ export const SessionOperationalParams = {
|
|
|
204
220
|
case 5:
|
|
205
221
|
message.maxSpendLimit = Coin.decode(reader, reader.uint32());
|
|
206
222
|
break;
|
|
223
|
+
case 6:
|
|
224
|
+
message.maxExecCount = reader.uint64();
|
|
225
|
+
break;
|
|
207
226
|
default:
|
|
208
227
|
reader.skipType(tag & 7);
|
|
209
228
|
break;
|
|
@@ -218,6 +237,7 @@ export const SessionOperationalParams = {
|
|
|
218
237
|
message.maxMsgTypesPerSession = object.maxMsgTypesPerSession !== undefined && object.maxMsgTypesPerSession !== null ? BigInt(object.maxMsgTypesPerSession.toString()) : BigInt(0);
|
|
219
238
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? Duration.fromPartial(object.maxExpiration) : undefined;
|
|
220
239
|
message.maxSpendLimit = object.maxSpendLimit !== undefined && object.maxSpendLimit !== null ? Coin.fromPartial(object.maxSpendLimit) : undefined;
|
|
240
|
+
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
221
241
|
return message;
|
|
222
242
|
},
|
|
223
243
|
fromAmino(object) {
|
|
@@ -235,6 +255,9 @@ export const SessionOperationalParams = {
|
|
|
235
255
|
if (object.max_spend_limit !== undefined && object.max_spend_limit !== null) {
|
|
236
256
|
message.maxSpendLimit = Coin.fromAmino(object.max_spend_limit);
|
|
237
257
|
}
|
|
258
|
+
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
259
|
+
message.maxExecCount = BigInt(object.max_exec_count);
|
|
260
|
+
}
|
|
238
261
|
return message;
|
|
239
262
|
},
|
|
240
263
|
toAmino(message) {
|
|
@@ -249,6 +272,7 @@ export const SessionOperationalParams = {
|
|
|
249
272
|
obj.max_msg_types_per_session = message.maxMsgTypesPerSession !== BigInt(0) ? message.maxMsgTypesPerSession?.toString() : undefined;
|
|
250
273
|
obj.max_expiration = message.maxExpiration ? Duration.toAmino(message.maxExpiration) : undefined;
|
|
251
274
|
obj.max_spend_limit = message.maxSpendLimit ? Coin.toAmino(message.maxSpendLimit) : Coin.toAmino(Coin.fromPartial({}));
|
|
275
|
+
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
252
276
|
return obj;
|
|
253
277
|
},
|
|
254
278
|
fromAminoMsg(object) {
|
package/package.json
CHANGED
|
@@ -349,6 +349,25 @@ export interface Params {
|
|
|
349
349
|
* resets at the first MintDREAM of each new epoch. 0 = unbounded.
|
|
350
350
|
*/
|
|
351
351
|
maxDreamMintPerEpoch: string;
|
|
352
|
+
/**
|
|
353
|
+
* Absolute upper bound on requested_budget at proposal time. Distinct from
|
|
354
|
+
* large_project_budget_threshold (which is an approval-time routing rule):
|
|
355
|
+
* this is a hard cap that rejects nonsense values (e.g. 10^30 DREAM) and
|
|
356
|
+
* keeps state clean. Set well above any legitimate project size so council-
|
|
357
|
+
* gated large proposals are not blocked. Must be positive.
|
|
358
|
+
*/
|
|
359
|
+
maxProjectRequestedBudget: string;
|
|
360
|
+
/**
|
|
361
|
+
* Absolute upper bound on requested_spark at proposal time. Same role as
|
|
362
|
+
* max_project_requested_budget but for SPARK (uspark). Must be positive.
|
|
363
|
+
*/
|
|
364
|
+
maxProjectRequestedSpark: string;
|
|
365
|
+
/**
|
|
366
|
+
* Number of blocks a PROPOSED (non-permissionless) project stays open before
|
|
367
|
+
* the EndBlocker transitions it to PROJECT_STATUS_EXPIRED. Prevents state
|
|
368
|
+
* pollution by stale unapproved proposals. Must be positive.
|
|
369
|
+
*/
|
|
370
|
+
proposedProjectExpiryBlocks: bigint;
|
|
352
371
|
}
|
|
353
372
|
export interface ParamsProtoMsg {
|
|
354
373
|
typeUrl: "/sparkdream.rep.v1.Params";
|
|
@@ -613,6 +632,25 @@ export interface ParamsAmino {
|
|
|
613
632
|
* resets at the first MintDREAM of each new epoch. 0 = unbounded.
|
|
614
633
|
*/
|
|
615
634
|
max_dream_mint_per_epoch?: string;
|
|
635
|
+
/**
|
|
636
|
+
* Absolute upper bound on requested_budget at proposal time. Distinct from
|
|
637
|
+
* large_project_budget_threshold (which is an approval-time routing rule):
|
|
638
|
+
* this is a hard cap that rejects nonsense values (e.g. 10^30 DREAM) and
|
|
639
|
+
* keeps state clean. Set well above any legitimate project size so council-
|
|
640
|
+
* gated large proposals are not blocked. Must be positive.
|
|
641
|
+
*/
|
|
642
|
+
max_project_requested_budget?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Absolute upper bound on requested_spark at proposal time. Same role as
|
|
645
|
+
* max_project_requested_budget but for SPARK (uspark). Must be positive.
|
|
646
|
+
*/
|
|
647
|
+
max_project_requested_spark?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Number of blocks a PROPOSED (non-permissionless) project stays open before
|
|
650
|
+
* the EndBlocker transitions it to PROJECT_STATUS_EXPIRED. Prevents state
|
|
651
|
+
* pollution by stale unapproved proposals. Must be positive.
|
|
652
|
+
*/
|
|
653
|
+
proposed_project_expiry_blocks?: string;
|
|
616
654
|
}
|
|
617
655
|
export interface ParamsAminoMsg {
|
|
618
656
|
type: "sparkdream/x/rep/Params";
|
|
@@ -801,6 +839,13 @@ export interface RepOperationalParams {
|
|
|
801
839
|
* Global per-epoch DREAM minting cap (mirrors Params.max_dream_mint_per_epoch). 0 = unbounded.
|
|
802
840
|
*/
|
|
803
841
|
maxDreamMintPerEpoch: string;
|
|
842
|
+
/**
|
|
843
|
+
* Proposal-time hard caps and expiry (mirror Params.max_project_requested_*
|
|
844
|
+
* and Params.proposed_project_expiry_blocks).
|
|
845
|
+
*/
|
|
846
|
+
maxProjectRequestedBudget: string;
|
|
847
|
+
maxProjectRequestedSpark: string;
|
|
848
|
+
proposedProjectExpiryBlocks: bigint;
|
|
804
849
|
}
|
|
805
850
|
export interface RepOperationalParamsProtoMsg {
|
|
806
851
|
typeUrl: "/sparkdream.rep.v1.RepOperationalParams";
|
|
@@ -989,6 +1034,13 @@ export interface RepOperationalParamsAmino {
|
|
|
989
1034
|
* Global per-epoch DREAM minting cap (mirrors Params.max_dream_mint_per_epoch). 0 = unbounded.
|
|
990
1035
|
*/
|
|
991
1036
|
max_dream_mint_per_epoch?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* Proposal-time hard caps and expiry (mirror Params.max_project_requested_*
|
|
1039
|
+
* and Params.proposed_project_expiry_blocks).
|
|
1040
|
+
*/
|
|
1041
|
+
max_project_requested_budget?: string;
|
|
1042
|
+
max_project_requested_spark?: string;
|
|
1043
|
+
proposed_project_expiry_blocks?: string;
|
|
992
1044
|
}
|
|
993
1045
|
export interface RepOperationalParamsAminoMsg {
|
|
994
1046
|
type: "sparkdream/x/rep/RepOperationalParams";
|
|
@@ -410,7 +410,10 @@ function createBaseParams() {
|
|
|
410
410
|
minAppealRate: "",
|
|
411
411
|
maxActiveInitiativesPerMember: 0,
|
|
412
412
|
maxActiveInterimsPerMember: 0,
|
|
413
|
-
maxDreamMintPerEpoch: ""
|
|
413
|
+
maxDreamMintPerEpoch: "",
|
|
414
|
+
maxProjectRequestedBudget: "",
|
|
415
|
+
maxProjectRequestedSpark: "",
|
|
416
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
419
|
/**
|
|
@@ -684,6 +687,15 @@ exports.Params = {
|
|
|
684
687
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
685
688
|
writer.uint32(698).string(message.maxDreamMintPerEpoch);
|
|
686
689
|
}
|
|
690
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
691
|
+
writer.uint32(706).string(message.maxProjectRequestedBudget);
|
|
692
|
+
}
|
|
693
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
694
|
+
writer.uint32(714).string(message.maxProjectRequestedSpark);
|
|
695
|
+
}
|
|
696
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
697
|
+
writer.uint32(720).int64(message.proposedProjectExpiryBlocks);
|
|
698
|
+
}
|
|
687
699
|
return writer;
|
|
688
700
|
},
|
|
689
701
|
decode(input, length) {
|
|
@@ -954,6 +966,15 @@ exports.Params = {
|
|
|
954
966
|
case 87:
|
|
955
967
|
message.maxDreamMintPerEpoch = reader.string();
|
|
956
968
|
break;
|
|
969
|
+
case 88:
|
|
970
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
971
|
+
break;
|
|
972
|
+
case 89:
|
|
973
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
974
|
+
break;
|
|
975
|
+
case 90:
|
|
976
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
977
|
+
break;
|
|
957
978
|
default:
|
|
958
979
|
reader.skipType(tag & 7);
|
|
959
980
|
break;
|
|
@@ -1050,6 +1071,9 @@ exports.Params = {
|
|
|
1050
1071
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
1051
1072
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
1052
1073
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
1074
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
1075
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
1076
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
1053
1077
|
return message;
|
|
1054
1078
|
},
|
|
1055
1079
|
fromAmino(object) {
|
|
@@ -1315,6 +1339,15 @@ exports.Params = {
|
|
|
1315
1339
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
1316
1340
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
1317
1341
|
}
|
|
1342
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
1343
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
1344
|
+
}
|
|
1345
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
1346
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
1347
|
+
}
|
|
1348
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
1349
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
1350
|
+
}
|
|
1318
1351
|
return message;
|
|
1319
1352
|
},
|
|
1320
1353
|
toAmino(message) {
|
|
@@ -1406,6 +1439,9 @@ exports.Params = {
|
|
|
1406
1439
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
1407
1440
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
1408
1441
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
1442
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
1443
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
1444
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
1409
1445
|
return obj;
|
|
1410
1446
|
},
|
|
1411
1447
|
fromAminoMsg(object) {
|
|
@@ -1502,7 +1538,10 @@ function createBaseRepOperationalParams() {
|
|
|
1502
1538
|
minAppealRate: "",
|
|
1503
1539
|
maxActiveInitiativesPerMember: 0,
|
|
1504
1540
|
maxActiveInterimsPerMember: 0,
|
|
1505
|
-
maxDreamMintPerEpoch: ""
|
|
1541
|
+
maxDreamMintPerEpoch: "",
|
|
1542
|
+
maxProjectRequestedBudget: "",
|
|
1543
|
+
maxProjectRequestedSpark: "",
|
|
1544
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
1506
1545
|
};
|
|
1507
1546
|
}
|
|
1508
1547
|
/**
|
|
@@ -1730,6 +1769,15 @@ exports.RepOperationalParams = {
|
|
|
1730
1769
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
1731
1770
|
writer.uint32(570).string(message.maxDreamMintPerEpoch);
|
|
1732
1771
|
}
|
|
1772
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
1773
|
+
writer.uint32(578).string(message.maxProjectRequestedBudget);
|
|
1774
|
+
}
|
|
1775
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
1776
|
+
writer.uint32(586).string(message.maxProjectRequestedSpark);
|
|
1777
|
+
}
|
|
1778
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
1779
|
+
writer.uint32(592).int64(message.proposedProjectExpiryBlocks);
|
|
1780
|
+
}
|
|
1733
1781
|
return writer;
|
|
1734
1782
|
},
|
|
1735
1783
|
decode(input, length) {
|
|
@@ -1952,6 +2000,15 @@ exports.RepOperationalParams = {
|
|
|
1952
2000
|
case 71:
|
|
1953
2001
|
message.maxDreamMintPerEpoch = reader.string();
|
|
1954
2002
|
break;
|
|
2003
|
+
case 72:
|
|
2004
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
2005
|
+
break;
|
|
2006
|
+
case 73:
|
|
2007
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
2008
|
+
break;
|
|
2009
|
+
case 74:
|
|
2010
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
2011
|
+
break;
|
|
1955
2012
|
default:
|
|
1956
2013
|
reader.skipType(tag & 7);
|
|
1957
2014
|
break;
|
|
@@ -2032,6 +2089,9 @@ exports.RepOperationalParams = {
|
|
|
2032
2089
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
2033
2090
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
2034
2091
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
2092
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
2093
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
2094
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
2035
2095
|
return message;
|
|
2036
2096
|
},
|
|
2037
2097
|
fromAmino(object) {
|
|
@@ -2249,6 +2309,15 @@ exports.RepOperationalParams = {
|
|
|
2249
2309
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
2250
2310
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
2251
2311
|
}
|
|
2312
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
2313
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
2314
|
+
}
|
|
2315
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
2316
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
2317
|
+
}
|
|
2318
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
2319
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
2320
|
+
}
|
|
2252
2321
|
return message;
|
|
2253
2322
|
},
|
|
2254
2323
|
toAmino(message) {
|
|
@@ -2324,6 +2393,9 @@ exports.RepOperationalParams = {
|
|
|
2324
2393
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
2325
2394
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
2326
2395
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
2396
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
2397
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
2398
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
2327
2399
|
return obj;
|
|
2328
2400
|
},
|
|
2329
2401
|
fromAminoMsg(object) {
|
|
@@ -16,6 +16,12 @@ export declare enum ProjectStatus {
|
|
|
16
16
|
PROJECT_STATUS_ACTIVE = 1,
|
|
17
17
|
PROJECT_STATUS_COMPLETED = 2,
|
|
18
18
|
PROJECT_STATUS_CANCELLED = 3,
|
|
19
|
+
/**
|
|
20
|
+
* PROJECT_STATUS_EXPIRED - EXPIRED is set by the EndBlocker when a PROPOSED project has not been
|
|
21
|
+
* approved before its expiry_block_height. Terminal state — kept (not
|
|
22
|
+
* deleted) so the audit trail of stale proposals survives.
|
|
23
|
+
*/
|
|
24
|
+
PROJECT_STATUS_EXPIRED = 4,
|
|
19
25
|
UNRECOGNIZED = -1
|
|
20
26
|
}
|
|
21
27
|
export declare const ProjectStatusAmino: typeof ProjectStatus;
|
|
@@ -60,6 +66,14 @@ export interface Project {
|
|
|
60
66
|
* Zero budget, APPRENTICE/STANDARD initiatives only, rewards minted on completion.
|
|
61
67
|
*/
|
|
62
68
|
permissionless: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Block height at which this project will be expired by the EndBlocker if it
|
|
71
|
+
* is still in PROPOSED status. Set at creation for non-permissionless
|
|
72
|
+
* projects (creation_height + params.proposed_project_expiry_blocks). Zero
|
|
73
|
+
* for permissionless projects (no expiry — ACTIVE on creation) and cleared
|
|
74
|
+
* when the project transitions out of PROPOSED.
|
|
75
|
+
*/
|
|
76
|
+
expiryBlockHeight: bigint;
|
|
63
77
|
}
|
|
64
78
|
export interface ProjectProtoMsg {
|
|
65
79
|
typeUrl: "/sparkdream.rep.v1.Project";
|
|
@@ -94,6 +108,14 @@ export interface ProjectAmino {
|
|
|
94
108
|
* Zero budget, APPRENTICE/STANDARD initiatives only, rewards minted on completion.
|
|
95
109
|
*/
|
|
96
110
|
permissionless?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Block height at which this project will be expired by the EndBlocker if it
|
|
113
|
+
* is still in PROPOSED status. Set at creation for non-permissionless
|
|
114
|
+
* projects (creation_height + params.proposed_project_expiry_blocks). Zero
|
|
115
|
+
* for permissionless projects (no expiry — ACTIVE on creation) and cleared
|
|
116
|
+
* when the project transitions out of PROPOSED.
|
|
117
|
+
*/
|
|
118
|
+
expiry_block_height?: string;
|
|
97
119
|
}
|
|
98
120
|
export interface ProjectAminoMsg {
|
|
99
121
|
type: "/sparkdream.rep.v1.Project";
|
|
@@ -66,6 +66,12 @@ var ProjectStatus;
|
|
|
66
66
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_ACTIVE"] = 1] = "PROJECT_STATUS_ACTIVE";
|
|
67
67
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_COMPLETED"] = 2] = "PROJECT_STATUS_COMPLETED";
|
|
68
68
|
ProjectStatus[ProjectStatus["PROJECT_STATUS_CANCELLED"] = 3] = "PROJECT_STATUS_CANCELLED";
|
|
69
|
+
/**
|
|
70
|
+
* PROJECT_STATUS_EXPIRED - EXPIRED is set by the EndBlocker when a PROPOSED project has not been
|
|
71
|
+
* approved before its expiry_block_height. Terminal state — kept (not
|
|
72
|
+
* deleted) so the audit trail of stale proposals survives.
|
|
73
|
+
*/
|
|
74
|
+
ProjectStatus[ProjectStatus["PROJECT_STATUS_EXPIRED"] = 4] = "PROJECT_STATUS_EXPIRED";
|
|
69
75
|
ProjectStatus[ProjectStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
70
76
|
})(ProjectStatus || (exports.ProjectStatus = ProjectStatus = {}));
|
|
71
77
|
exports.ProjectStatusAmino = ProjectStatus;
|
|
@@ -83,6 +89,9 @@ function projectStatusFromJSON(object) {
|
|
|
83
89
|
case 3:
|
|
84
90
|
case "PROJECT_STATUS_CANCELLED":
|
|
85
91
|
return ProjectStatus.PROJECT_STATUS_CANCELLED;
|
|
92
|
+
case 4:
|
|
93
|
+
case "PROJECT_STATUS_EXPIRED":
|
|
94
|
+
return ProjectStatus.PROJECT_STATUS_EXPIRED;
|
|
86
95
|
case -1:
|
|
87
96
|
case "UNRECOGNIZED":
|
|
88
97
|
default:
|
|
@@ -99,6 +108,8 @@ function projectStatusToJSON(object) {
|
|
|
99
108
|
return "PROJECT_STATUS_COMPLETED";
|
|
100
109
|
case ProjectStatus.PROJECT_STATUS_CANCELLED:
|
|
101
110
|
return "PROJECT_STATUS_CANCELLED";
|
|
111
|
+
case ProjectStatus.PROJECT_STATUS_EXPIRED:
|
|
112
|
+
return "PROJECT_STATUS_EXPIRED";
|
|
102
113
|
case ProjectStatus.UNRECOGNIZED:
|
|
103
114
|
default:
|
|
104
115
|
return "UNRECOGNIZED";
|
|
@@ -167,7 +178,8 @@ function createBaseProject() {
|
|
|
167
178
|
approvedBy: "",
|
|
168
179
|
approvedAt: BigInt(0),
|
|
169
180
|
completedAt: BigInt(0),
|
|
170
|
-
permissionless: false
|
|
181
|
+
permissionless: false,
|
|
182
|
+
expiryBlockHeight: BigInt(0)
|
|
171
183
|
};
|
|
172
184
|
}
|
|
173
185
|
/**
|
|
@@ -233,6 +245,9 @@ exports.Project = {
|
|
|
233
245
|
if (message.permissionless === true) {
|
|
234
246
|
writer.uint32(144).bool(message.permissionless);
|
|
235
247
|
}
|
|
248
|
+
if (message.expiryBlockHeight !== BigInt(0)) {
|
|
249
|
+
writer.uint32(152).int64(message.expiryBlockHeight);
|
|
250
|
+
}
|
|
236
251
|
return writer;
|
|
237
252
|
},
|
|
238
253
|
decode(input, length) {
|
|
@@ -296,6 +311,9 @@ exports.Project = {
|
|
|
296
311
|
case 18:
|
|
297
312
|
message.permissionless = reader.bool();
|
|
298
313
|
break;
|
|
314
|
+
case 19:
|
|
315
|
+
message.expiryBlockHeight = reader.int64();
|
|
316
|
+
break;
|
|
299
317
|
default:
|
|
300
318
|
reader.skipType(tag & 7);
|
|
301
319
|
break;
|
|
@@ -323,6 +341,7 @@ exports.Project = {
|
|
|
323
341
|
message.approvedAt = object.approvedAt !== undefined && object.approvedAt !== null ? BigInt(object.approvedAt.toString()) : BigInt(0);
|
|
324
342
|
message.completedAt = object.completedAt !== undefined && object.completedAt !== null ? BigInt(object.completedAt.toString()) : BigInt(0);
|
|
325
343
|
message.permissionless = object.permissionless ?? false;
|
|
344
|
+
message.expiryBlockHeight = object.expiryBlockHeight !== undefined && object.expiryBlockHeight !== null ? BigInt(object.expiryBlockHeight.toString()) : BigInt(0);
|
|
326
345
|
return message;
|
|
327
346
|
},
|
|
328
347
|
fromAmino(object) {
|
|
@@ -379,6 +398,9 @@ exports.Project = {
|
|
|
379
398
|
if (object.permissionless !== undefined && object.permissionless !== null) {
|
|
380
399
|
message.permissionless = object.permissionless;
|
|
381
400
|
}
|
|
401
|
+
if (object.expiry_block_height !== undefined && object.expiry_block_height !== null) {
|
|
402
|
+
message.expiryBlockHeight = BigInt(object.expiry_block_height);
|
|
403
|
+
}
|
|
382
404
|
return message;
|
|
383
405
|
},
|
|
384
406
|
toAmino(message) {
|
|
@@ -406,6 +428,7 @@ exports.Project = {
|
|
|
406
428
|
obj.approved_at = message.approvedAt !== BigInt(0) ? message.approvedAt?.toString() : undefined;
|
|
407
429
|
obj.completed_at = message.completedAt !== BigInt(0) ? message.completedAt?.toString() : undefined;
|
|
408
430
|
obj.permissionless = message.permissionless === false ? undefined : message.permissionless;
|
|
431
|
+
obj.expiry_block_height = message.expiryBlockHeight !== BigInt(0) ? message.expiryBlockHeight?.toString() : undefined;
|
|
409
432
|
return obj;
|
|
410
433
|
},
|
|
411
434
|
fromAminoMsg(object) {
|
|
@@ -35,6 +35,11 @@ export interface Params {
|
|
|
35
35
|
* Maximum gas budget per session.
|
|
36
36
|
*/
|
|
37
37
|
maxSpendLimit: Coin;
|
|
38
|
+
/**
|
|
39
|
+
* Maximum exec_count per session. Must be > 0; sessions must declare
|
|
40
|
+
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
41
|
+
*/
|
|
42
|
+
maxExecCount: bigint;
|
|
38
43
|
}
|
|
39
44
|
export interface ParamsProtoMsg {
|
|
40
45
|
typeUrl: "/sparkdream.session.v1.Params";
|
|
@@ -73,6 +78,11 @@ export interface ParamsAmino {
|
|
|
73
78
|
* Maximum gas budget per session.
|
|
74
79
|
*/
|
|
75
80
|
max_spend_limit: CoinAmino;
|
|
81
|
+
/**
|
|
82
|
+
* Maximum exec_count per session. Must be > 0; sessions must declare
|
|
83
|
+
* a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
|
|
84
|
+
*/
|
|
85
|
+
max_exec_count?: string;
|
|
76
86
|
}
|
|
77
87
|
export interface ParamsAminoMsg {
|
|
78
88
|
type: "sparkdream/x/session/Params";
|
|
@@ -96,6 +106,7 @@ export interface SessionOperationalParams {
|
|
|
96
106
|
maxMsgTypesPerSession: bigint;
|
|
97
107
|
maxExpiration: Duration;
|
|
98
108
|
maxSpendLimit: Coin;
|
|
109
|
+
maxExecCount: bigint;
|
|
99
110
|
}
|
|
100
111
|
export interface SessionOperationalParamsProtoMsg {
|
|
101
112
|
typeUrl: "/sparkdream.session.v1.SessionOperationalParams";
|
|
@@ -119,6 +130,7 @@ export interface SessionOperationalParamsAmino {
|
|
|
119
130
|
max_msg_types_per_session?: string;
|
|
120
131
|
max_expiration?: DurationAmino;
|
|
121
132
|
max_spend_limit: CoinAmino;
|
|
133
|
+
max_exec_count?: string;
|
|
122
134
|
}
|
|
123
135
|
export interface SessionOperationalParamsAminoMsg {
|
|
124
136
|
type: "sparkdream/x/session/SessionOperationalParams";
|
|
@@ -12,7 +12,8 @@ function createBaseParams() {
|
|
|
12
12
|
maxSessionsPerGranter: BigInt(0),
|
|
13
13
|
maxMsgTypesPerSession: BigInt(0),
|
|
14
14
|
maxExpiration: duration_1.Duration.fromPartial({}),
|
|
15
|
-
maxSpendLimit: coin_1.Coin.fromPartial({})
|
|
15
|
+
maxSpendLimit: coin_1.Coin.fromPartial({}),
|
|
16
|
+
maxExecCount: BigInt(0)
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
@@ -43,6 +44,9 @@ exports.Params = {
|
|
|
43
44
|
if (message.maxSpendLimit !== undefined) {
|
|
44
45
|
coin_1.Coin.encode(message.maxSpendLimit, writer.uint32(50).fork()).ldelim();
|
|
45
46
|
}
|
|
47
|
+
if (message.maxExecCount !== BigInt(0)) {
|
|
48
|
+
writer.uint32(56).uint64(message.maxExecCount);
|
|
49
|
+
}
|
|
46
50
|
return writer;
|
|
47
51
|
},
|
|
48
52
|
decode(input, length) {
|
|
@@ -70,6 +74,9 @@ exports.Params = {
|
|
|
70
74
|
case 6:
|
|
71
75
|
message.maxSpendLimit = coin_1.Coin.decode(reader, reader.uint32());
|
|
72
76
|
break;
|
|
77
|
+
case 7:
|
|
78
|
+
message.maxExecCount = reader.uint64();
|
|
79
|
+
break;
|
|
73
80
|
default:
|
|
74
81
|
reader.skipType(tag & 7);
|
|
75
82
|
break;
|
|
@@ -85,6 +92,7 @@ exports.Params = {
|
|
|
85
92
|
message.maxMsgTypesPerSession = object.maxMsgTypesPerSession !== undefined && object.maxMsgTypesPerSession !== null ? BigInt(object.maxMsgTypesPerSession.toString()) : BigInt(0);
|
|
86
93
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? duration_1.Duration.fromPartial(object.maxExpiration) : undefined;
|
|
87
94
|
message.maxSpendLimit = object.maxSpendLimit !== undefined && object.maxSpendLimit !== null ? coin_1.Coin.fromPartial(object.maxSpendLimit) : undefined;
|
|
95
|
+
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
88
96
|
return message;
|
|
89
97
|
},
|
|
90
98
|
fromAmino(object) {
|
|
@@ -103,6 +111,9 @@ exports.Params = {
|
|
|
103
111
|
if (object.max_spend_limit !== undefined && object.max_spend_limit !== null) {
|
|
104
112
|
message.maxSpendLimit = coin_1.Coin.fromAmino(object.max_spend_limit);
|
|
105
113
|
}
|
|
114
|
+
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
115
|
+
message.maxExecCount = BigInt(object.max_exec_count);
|
|
116
|
+
}
|
|
106
117
|
return message;
|
|
107
118
|
},
|
|
108
119
|
toAmino(message) {
|
|
@@ -123,6 +134,7 @@ exports.Params = {
|
|
|
123
134
|
obj.max_msg_types_per_session = message.maxMsgTypesPerSession !== BigInt(0) ? message.maxMsgTypesPerSession?.toString() : undefined;
|
|
124
135
|
obj.max_expiration = message.maxExpiration ? duration_1.Duration.toAmino(message.maxExpiration) : undefined;
|
|
125
136
|
obj.max_spend_limit = message.maxSpendLimit ? coin_1.Coin.toAmino(message.maxSpendLimit) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
137
|
+
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
126
138
|
return obj;
|
|
127
139
|
},
|
|
128
140
|
fromAminoMsg(object) {
|
|
@@ -153,7 +165,8 @@ function createBaseSessionOperationalParams() {
|
|
|
153
165
|
maxSessionsPerGranter: BigInt(0),
|
|
154
166
|
maxMsgTypesPerSession: BigInt(0),
|
|
155
167
|
maxExpiration: duration_1.Duration.fromPartial({}),
|
|
156
|
-
maxSpendLimit: coin_1.Coin.fromPartial({})
|
|
168
|
+
maxSpendLimit: coin_1.Coin.fromPartial({}),
|
|
169
|
+
maxExecCount: BigInt(0)
|
|
157
170
|
};
|
|
158
171
|
}
|
|
159
172
|
/**
|
|
@@ -183,6 +196,9 @@ exports.SessionOperationalParams = {
|
|
|
183
196
|
if (message.maxSpendLimit !== undefined) {
|
|
184
197
|
coin_1.Coin.encode(message.maxSpendLimit, writer.uint32(42).fork()).ldelim();
|
|
185
198
|
}
|
|
199
|
+
if (message.maxExecCount !== BigInt(0)) {
|
|
200
|
+
writer.uint32(48).uint64(message.maxExecCount);
|
|
201
|
+
}
|
|
186
202
|
return writer;
|
|
187
203
|
},
|
|
188
204
|
decode(input, length) {
|
|
@@ -207,6 +223,9 @@ exports.SessionOperationalParams = {
|
|
|
207
223
|
case 5:
|
|
208
224
|
message.maxSpendLimit = coin_1.Coin.decode(reader, reader.uint32());
|
|
209
225
|
break;
|
|
226
|
+
case 6:
|
|
227
|
+
message.maxExecCount = reader.uint64();
|
|
228
|
+
break;
|
|
210
229
|
default:
|
|
211
230
|
reader.skipType(tag & 7);
|
|
212
231
|
break;
|
|
@@ -221,6 +240,7 @@ exports.SessionOperationalParams = {
|
|
|
221
240
|
message.maxMsgTypesPerSession = object.maxMsgTypesPerSession !== undefined && object.maxMsgTypesPerSession !== null ? BigInt(object.maxMsgTypesPerSession.toString()) : BigInt(0);
|
|
222
241
|
message.maxExpiration = object.maxExpiration !== undefined && object.maxExpiration !== null ? duration_1.Duration.fromPartial(object.maxExpiration) : undefined;
|
|
223
242
|
message.maxSpendLimit = object.maxSpendLimit !== undefined && object.maxSpendLimit !== null ? coin_1.Coin.fromPartial(object.maxSpendLimit) : undefined;
|
|
243
|
+
message.maxExecCount = object.maxExecCount !== undefined && object.maxExecCount !== null ? BigInt(object.maxExecCount.toString()) : BigInt(0);
|
|
224
244
|
return message;
|
|
225
245
|
},
|
|
226
246
|
fromAmino(object) {
|
|
@@ -238,6 +258,9 @@ exports.SessionOperationalParams = {
|
|
|
238
258
|
if (object.max_spend_limit !== undefined && object.max_spend_limit !== null) {
|
|
239
259
|
message.maxSpendLimit = coin_1.Coin.fromAmino(object.max_spend_limit);
|
|
240
260
|
}
|
|
261
|
+
if (object.max_exec_count !== undefined && object.max_exec_count !== null) {
|
|
262
|
+
message.maxExecCount = BigInt(object.max_exec_count);
|
|
263
|
+
}
|
|
241
264
|
return message;
|
|
242
265
|
},
|
|
243
266
|
toAmino(message) {
|
|
@@ -252,6 +275,7 @@ exports.SessionOperationalParams = {
|
|
|
252
275
|
obj.max_msg_types_per_session = message.maxMsgTypesPerSession !== BigInt(0) ? message.maxMsgTypesPerSession?.toString() : undefined;
|
|
253
276
|
obj.max_expiration = message.maxExpiration ? duration_1.Duration.toAmino(message.maxExpiration) : undefined;
|
|
254
277
|
obj.max_spend_limit = message.maxSpendLimit ? coin_1.Coin.toAmino(message.maxSpendLimit) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
278
|
+
obj.max_exec_count = message.maxExecCount !== BigInt(0) ? message.maxExecCount?.toString() : undefined;
|
|
255
279
|
return obj;
|
|
256
280
|
},
|
|
257
281
|
fromAminoMsg(object) {
|