@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +51 -50
- package/esm/sparkdream/blog/v1/tx.amino.js +53 -20
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
- package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.amino.js +17 -1
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.js +53 -20
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14945 -12924
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +125 -50
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
- package/sparkdream/collect/v1/tx.amino.js +138 -36
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.js +75 -5
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
- package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
- package/sparkdream/forum/v1/tx.amino.js +69 -40
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rep/v1/tx.amino.d.ts +9 -9
- package/sparkdream/rep/v1/tx.amino.js +177 -58
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
- package/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.amino.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.js +17 -1
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
- package/sparkdream/shield/v1/tx.amino.js +61 -8
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateSession, MsgRevokeSession, MsgExecSession } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.session.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.session.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.session.v1.MsgCreateSession", MsgCreateSession], ["/sparkdream.session.v1.MsgRevokeSession", MsgRevokeSession], ["/sparkdream.session.v1.MsgExecSession", MsgExecSession]];
|
|
1
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateSession, MsgRevokeSession, MsgExecSession, MsgCreateGrant, MsgClaimRecurringPull, MsgPullAllowance, MsgRetryScheduledOneshot, MsgRevokeGrant, MsgDeclineGrant } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.session.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.session.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.session.v1.MsgCreateSession", MsgCreateSession], ["/sparkdream.session.v1.MsgRevokeSession", MsgRevokeSession], ["/sparkdream.session.v1.MsgExecSession", MsgExecSession], ["/sparkdream.session.v1.MsgCreateGrant", MsgCreateGrant], ["/sparkdream.session.v1.MsgClaimRecurringPull", MsgClaimRecurringPull], ["/sparkdream.session.v1.MsgPullAllowance", MsgPullAllowance], ["/sparkdream.session.v1.MsgRetryScheduledOneshot", MsgRetryScheduledOneshot], ["/sparkdream.session.v1.MsgRevokeGrant", MsgRevokeGrant], ["/sparkdream.session.v1.MsgDeclineGrant", MsgDeclineGrant]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -36,6 +36,42 @@ export const MessageComposer = {
|
|
|
36
36
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
37
37
|
value: MsgExecSession.encode(value).finish()
|
|
38
38
|
};
|
|
39
|
+
},
|
|
40
|
+
createGrant(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
43
|
+
value: MsgCreateGrant.encode(value).finish()
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
claimRecurringPull(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
49
|
+
value: MsgClaimRecurringPull.encode(value).finish()
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
pullAllowance(value) {
|
|
53
|
+
return {
|
|
54
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
55
|
+
value: MsgPullAllowance.encode(value).finish()
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
retryScheduledOneshot(value) {
|
|
59
|
+
return {
|
|
60
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
61
|
+
value: MsgRetryScheduledOneshot.encode(value).finish()
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
revokeGrant(value) {
|
|
65
|
+
return {
|
|
66
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
67
|
+
value: MsgRevokeGrant.encode(value).finish()
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
declineGrant(value) {
|
|
71
|
+
return {
|
|
72
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
73
|
+
value: MsgDeclineGrant.encode(value).finish()
|
|
74
|
+
};
|
|
39
75
|
}
|
|
40
76
|
},
|
|
41
77
|
withTypeUrl: {
|
|
@@ -68,6 +104,42 @@ export const MessageComposer = {
|
|
|
68
104
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
69
105
|
value
|
|
70
106
|
};
|
|
107
|
+
},
|
|
108
|
+
createGrant(value) {
|
|
109
|
+
return {
|
|
110
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
111
|
+
value
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
claimRecurringPull(value) {
|
|
115
|
+
return {
|
|
116
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
117
|
+
value
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
pullAllowance(value) {
|
|
121
|
+
return {
|
|
122
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
123
|
+
value
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
retryScheduledOneshot(value) {
|
|
127
|
+
return {
|
|
128
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
129
|
+
value
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
revokeGrant(value) {
|
|
133
|
+
return {
|
|
134
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
135
|
+
value
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
declineGrant(value) {
|
|
139
|
+
return {
|
|
140
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
141
|
+
value
|
|
142
|
+
};
|
|
71
143
|
}
|
|
72
144
|
},
|
|
73
145
|
fromPartial: {
|
|
@@ -100,6 +172,42 @@ export const MessageComposer = {
|
|
|
100
172
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
101
173
|
value: MsgExecSession.fromPartial(value)
|
|
102
174
|
};
|
|
175
|
+
},
|
|
176
|
+
createGrant(value) {
|
|
177
|
+
return {
|
|
178
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
179
|
+
value: MsgCreateGrant.fromPartial(value)
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
claimRecurringPull(value) {
|
|
183
|
+
return {
|
|
184
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
185
|
+
value: MsgClaimRecurringPull.fromPartial(value)
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
pullAllowance(value) {
|
|
189
|
+
return {
|
|
190
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
191
|
+
value: MsgPullAllowance.fromPartial(value)
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
retryScheduledOneshot(value) {
|
|
195
|
+
return {
|
|
196
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
197
|
+
value: MsgRetryScheduledOneshot.fromPartial(value)
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
revokeGrant(value) {
|
|
201
|
+
return {
|
|
202
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
203
|
+
value: MsgRevokeGrant.fromPartial(value)
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
declineGrant(value) {
|
|
207
|
+
return {
|
|
208
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
209
|
+
value: MsgDeclineGrant.fromPartial(value)
|
|
210
|
+
};
|
|
103
211
|
}
|
|
104
212
|
}
|
|
105
213
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreateSession, MsgCreateSessionResponse, MsgRevokeSession, MsgRevokeSessionResponse, MsgExecSession, MsgExecSessionResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreateSession, MsgCreateSessionResponse, MsgRevokeSession, MsgRevokeSessionResponse, MsgExecSession, MsgExecSessionResponse, MsgCreateGrant, MsgCreateGrantResponse, MsgClaimRecurringPull, MsgClaimRecurringPullResponse, MsgPullAllowance, MsgPullAllowanceResponse, MsgRetryScheduledOneshot, MsgRetryScheduledOneshotResponse, MsgRevokeGrant, MsgRevokeGrantResponse, MsgDeclineGrant, MsgDeclineGrantResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -19,13 +19,19 @@ export class MsgClientImpl {
|
|
|
19
19
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "UpdateOperationalParams", data);
|
|
20
20
|
return promise.then(data => MsgUpdateOperationalParamsResponse.decode(new BinaryReader(data)));
|
|
21
21
|
};
|
|
22
|
-
/* CreateSession creates a new session key delegation.
|
|
22
|
+
/* CreateSession creates a new session key delegation.
|
|
23
|
+
|
|
24
|
+
DEPRECATED in favor of `CreateGrant` with a SessionKeyPayload; kept for
|
|
25
|
+
pre-launch backward compatibility and removed at P6. */
|
|
23
26
|
createSession = async (request) => {
|
|
24
27
|
const data = MsgCreateSession.encode(request).finish();
|
|
25
28
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "CreateSession", data);
|
|
26
29
|
return promise.then(data => MsgCreateSessionResponse.decode(new BinaryReader(data)));
|
|
27
30
|
};
|
|
28
|
-
/* RevokeSession revokes an active session.
|
|
31
|
+
/* RevokeSession revokes an active session.
|
|
32
|
+
|
|
33
|
+
DEPRECATED in favor of `RevokeGrant` (P6); kept for pre-launch backward
|
|
34
|
+
compatibility. */
|
|
29
35
|
revokeSession = async (request) => {
|
|
30
36
|
const data = MsgRevokeSession.encode(request).finish();
|
|
31
37
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RevokeSession", data);
|
|
@@ -37,6 +43,62 @@ export class MsgClientImpl {
|
|
|
37
43
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "ExecSession", data);
|
|
38
44
|
return promise.then(data => MsgExecSessionResponse.decode(new BinaryReader(data)));
|
|
39
45
|
};
|
|
46
|
+
/* CreateGrant is the unified entrypoint that creates any of the four typed
|
|
47
|
+
grants. Type is inferred from the payload oneof. */
|
|
48
|
+
createGrant = async (request) => {
|
|
49
|
+
const data = MsgCreateGrant.encode(request).finish();
|
|
50
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "CreateGrant", data);
|
|
51
|
+
return promise.then(data => MsgCreateGrantResponse.decode(new BinaryReader(data)));
|
|
52
|
+
};
|
|
53
|
+
/* ClaimRecurringPull disburses one period of a RECURRING_PULL grant from
|
|
54
|
+
the granter to the grantee. Logical-clock advances; catch-up requires
|
|
55
|
+
multiple txs. */
|
|
56
|
+
claimRecurringPull = async (request) => {
|
|
57
|
+
const data = MsgClaimRecurringPull.encode(request).finish();
|
|
58
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "ClaimRecurringPull", data);
|
|
59
|
+
return promise.then(data => MsgClaimRecurringPullResponse.decode(new BinaryReader(data)));
|
|
60
|
+
};
|
|
61
|
+
/* PullAllowance withdraws an amount from a SPENDING_ALLOWANCE grant
|
|
62
|
+
budget to a chosen recipient (constrained by the optional whitelist
|
|
63
|
+
and the per-period cap). The grantee picks the recipient and amount
|
|
64
|
+
per call within the rolling-window budget. */
|
|
65
|
+
pullAllowance = async (request) => {
|
|
66
|
+
const data = MsgPullAllowance.encode(request).finish();
|
|
67
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "PullAllowance", data);
|
|
68
|
+
return promise.then(data => MsgPullAllowanceResponse.decode(new BinaryReader(data)));
|
|
69
|
+
};
|
|
70
|
+
/* RetryScheduledOneshot re-enqueues a PAUSED_INSUFFICIENT_FUNDS
|
|
71
|
+
ScheduledOneshot for firing. Either the granter or the grantee may
|
|
72
|
+
call (no additional authorization needed — the granter already
|
|
73
|
+
authorized the underlying action at creation time). Sets
|
|
74
|
+
fire_at = block_time on success. */
|
|
75
|
+
retryScheduledOneshot = async (request) => {
|
|
76
|
+
const data = MsgRetryScheduledOneshot.encode(request).finish();
|
|
77
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RetryScheduledOneshot", data);
|
|
78
|
+
return promise.then(data => MsgRetryScheduledOneshotResponse.decode(new BinaryReader(data)));
|
|
79
|
+
};
|
|
80
|
+
/* RevokeGrant cancels any active grant by id. Signed by the granter
|
|
81
|
+
on file. Refunds any held OneshotGasDeposit for SCHEDULED_ONESHOT
|
|
82
|
+
grants. A session-key holder may invoke this only when the session
|
|
83
|
+
key's SessionKeyPayload.allow_self_revoke = true AND the targeted
|
|
84
|
+
grant's granter matches the session-key granter (anti
|
|
85
|
+
cross-granter-revoke). */
|
|
86
|
+
revokeGrant = async (request) => {
|
|
87
|
+
const data = MsgRevokeGrant.encode(request).finish();
|
|
88
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RevokeGrant", data);
|
|
89
|
+
return promise.then(data => MsgRevokeGrantResponse.decode(new BinaryReader(data)));
|
|
90
|
+
};
|
|
91
|
+
/* DeclineGrant lets the grantee opt out of any active grant by id.
|
|
92
|
+
Applies uniformly across all four grant types. For ScheduledOneshot
|
|
93
|
+
this is a pre-fire veto: the grant transitions to DECLINED, the
|
|
94
|
+
EndBlocker skips it, and the held deposit is refunded to the
|
|
95
|
+
granter. Decline is one-way — the granter must Revoke + CreateGrant
|
|
96
|
+
to retry. */
|
|
97
|
+
declineGrant = async (request) => {
|
|
98
|
+
const data = MsgDeclineGrant.encode(request).finish();
|
|
99
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "DeclineGrant", data);
|
|
100
|
+
return promise.then(data => MsgDeclineGrantResponse.decode(new BinaryReader(data)));
|
|
101
|
+
};
|
|
40
102
|
}
|
|
41
103
|
export const createClientImpl = (rpc) => {
|
|
42
104
|
return new MsgClientImpl(rpc);
|
|
@@ -1,29 +1,82 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
3
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
4
|
+
//
|
|
5
|
+
// MsgShieldedExec wraps a single `google.protobuf.Any inner_message`. The
|
|
6
|
+
// auto-generated toAmino calls Any.toAmino directly, which attaches raw
|
|
7
|
+
// `{type, value: Uint8Array}` — JSON.stringify renders the Uint8Array as
|
|
8
|
+
// `{"0":N,"1":N,…}` (numeric, unsorted keys), breaking Ledger's amino-JSON
|
|
9
|
+
// validator and producing sign bytes the chain can't reconstruct. Same root
|
|
10
|
+
// cause as MsgSubmitProposal in commons; here we route the inner Any through
|
|
11
|
+
// the consumer-provided AminoTypes so it's expanded into the proper
|
|
12
|
+
// `{type: "<aminoType>", value: <amino-encoded fields>}` shape.
|
|
13
|
+
import { MsgUpdateParams, MsgTriggerDkg, MsgRegisterShieldedOp, MsgDeregisterShieldedOp, } from "./tx";
|
|
14
|
+
import { base64FromBytes, bytesFromBase64 } from "../../../helpers";
|
|
15
|
+
import { anyToAmino, aminoToAny } from "../../../nested-amino";
|
|
3
16
|
export const AminoConverter = {
|
|
4
17
|
"/sparkdream.shield.v1.MsgUpdateParams": {
|
|
5
18
|
aminoType: "sparkdream/x/shield/MsgUpdateParams",
|
|
6
19
|
toAmino: MsgUpdateParams.toAmino,
|
|
7
|
-
fromAmino: MsgUpdateParams.fromAmino
|
|
20
|
+
fromAmino: MsgUpdateParams.fromAmino,
|
|
8
21
|
},
|
|
9
22
|
"/sparkdream.shield.v1.MsgShieldedExec": {
|
|
10
23
|
aminoType: "sparkdream/x/shield/MsgShieldedExec",
|
|
11
|
-
toAmino
|
|
12
|
-
|
|
24
|
+
toAmino(message) {
|
|
25
|
+
const obj = {};
|
|
26
|
+
obj.submitter = message.submitter === "" ? undefined : message.submitter;
|
|
27
|
+
obj.inner_message = message.innerMessage ? anyToAmino(message.innerMessage) : undefined;
|
|
28
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
29
|
+
obj.nullifier = message.nullifier ? base64FromBytes(message.nullifier) : undefined;
|
|
30
|
+
obj.rate_limit_nullifier = message.rateLimitNullifier ? base64FromBytes(message.rateLimitNullifier) : undefined;
|
|
31
|
+
obj.merkle_root = message.merkleRoot ? base64FromBytes(message.merkleRoot) : undefined;
|
|
32
|
+
obj.proof_domain = message.proofDomain === 0 ? undefined : message.proofDomain;
|
|
33
|
+
obj.min_trust_level = message.minTrustLevel === 0 ? undefined : message.minTrustLevel;
|
|
34
|
+
obj.exec_mode = message.execMode === 0 ? undefined : message.execMode;
|
|
35
|
+
obj.encrypted_payload = message.encryptedPayload ? base64FromBytes(message.encryptedPayload) : undefined;
|
|
36
|
+
obj.target_epoch = message.targetEpoch !== BigInt(0) ? message.targetEpoch?.toString() : undefined;
|
|
37
|
+
return obj;
|
|
38
|
+
},
|
|
39
|
+
fromAmino(object) {
|
|
40
|
+
return {
|
|
41
|
+
submitter: object.submitter ?? "",
|
|
42
|
+
innerMessage: object.inner_message ? aminoToAny(object.inner_message) : undefined,
|
|
43
|
+
proof: object.proof !== undefined && object.proof !== null
|
|
44
|
+
? bytesFromBase64(object.proof)
|
|
45
|
+
: new Uint8Array(),
|
|
46
|
+
nullifier: object.nullifier !== undefined && object.nullifier !== null
|
|
47
|
+
? bytesFromBase64(object.nullifier)
|
|
48
|
+
: new Uint8Array(),
|
|
49
|
+
rateLimitNullifier: object.rate_limit_nullifier !== undefined && object.rate_limit_nullifier !== null
|
|
50
|
+
? bytesFromBase64(object.rate_limit_nullifier)
|
|
51
|
+
: new Uint8Array(),
|
|
52
|
+
merkleRoot: object.merkle_root !== undefined && object.merkle_root !== null
|
|
53
|
+
? bytesFromBase64(object.merkle_root)
|
|
54
|
+
: new Uint8Array(),
|
|
55
|
+
proofDomain: object.proof_domain ?? 0,
|
|
56
|
+
minTrustLevel: object.min_trust_level ?? 0,
|
|
57
|
+
execMode: object.exec_mode ?? 0,
|
|
58
|
+
encryptedPayload: object.encrypted_payload !== undefined && object.encrypted_payload !== null
|
|
59
|
+
? bytesFromBase64(object.encrypted_payload)
|
|
60
|
+
: new Uint8Array(),
|
|
61
|
+
targetEpoch: object.target_epoch !== undefined && object.target_epoch !== null
|
|
62
|
+
? BigInt(object.target_epoch)
|
|
63
|
+
: BigInt(0),
|
|
64
|
+
};
|
|
65
|
+
},
|
|
13
66
|
},
|
|
14
67
|
"/sparkdream.shield.v1.MsgTriggerDkg": {
|
|
15
68
|
aminoType: "sparkdream/x/shield/MsgTriggerDkg",
|
|
16
69
|
toAmino: MsgTriggerDkg.toAmino,
|
|
17
|
-
fromAmino: MsgTriggerDkg.fromAmino
|
|
70
|
+
fromAmino: MsgTriggerDkg.fromAmino,
|
|
18
71
|
},
|
|
19
72
|
"/sparkdream.shield.v1.MsgRegisterShieldedOp": {
|
|
20
73
|
aminoType: "sparkdream/x/shield/MsgRegisterShieldedOp",
|
|
21
74
|
toAmino: MsgRegisterShieldedOp.toAmino,
|
|
22
|
-
fromAmino: MsgRegisterShieldedOp.fromAmino
|
|
75
|
+
fromAmino: MsgRegisterShieldedOp.fromAmino,
|
|
23
76
|
},
|
|
24
77
|
"/sparkdream.shield.v1.MsgDeregisterShieldedOp": {
|
|
25
78
|
aminoType: "sparkdream/x/shield/MsgDeregisterShieldedOp",
|
|
26
79
|
toAmino: MsgDeregisterShieldedOp.toAmino,
|
|
27
|
-
fromAmino: MsgDeregisterShieldedOp.fromAmino
|
|
28
|
-
}
|
|
80
|
+
fromAmino: MsgDeregisterShieldedOp.fromAmino,
|
|
81
|
+
},
|
|
29
82
|
};
|
package/esm/tendermint/bundle.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
2
|
+
import * as _354 from "./abci/types";
|
|
3
|
+
import * as _355 from "./crypto/keys";
|
|
4
|
+
import * as _356 from "./crypto/proof";
|
|
5
|
+
import * as _357 from "./p2p/types";
|
|
6
|
+
import * as _358 from "./types/block";
|
|
7
|
+
import * as _359 from "./types/evidence";
|
|
8
|
+
import * as _360 from "./types/params";
|
|
9
|
+
import * as _361 from "./types/types";
|
|
10
|
+
import * as _362 from "./types/validator";
|
|
11
|
+
import * as _363 from "./version/types";
|
|
12
12
|
export var tendermint;
|
|
13
13
|
(function (tendermint) {
|
|
14
14
|
tendermint.abci = {
|
|
15
|
-
...
|
|
15
|
+
..._354
|
|
16
16
|
};
|
|
17
17
|
tendermint.crypto = {
|
|
18
|
-
...
|
|
19
|
-
...
|
|
18
|
+
..._355,
|
|
19
|
+
..._356
|
|
20
20
|
};
|
|
21
21
|
tendermint.p2p = {
|
|
22
|
-
...
|
|
22
|
+
..._357
|
|
23
23
|
};
|
|
24
24
|
tendermint.types = {
|
|
25
|
-
...
|
|
26
|
-
...
|
|
27
|
-
...
|
|
28
|
-
...
|
|
29
|
-
...
|
|
25
|
+
..._358,
|
|
26
|
+
..._359,
|
|
27
|
+
..._360,
|
|
28
|
+
..._361,
|
|
29
|
+
..._362
|
|
30
30
|
};
|
|
31
31
|
tendermint.version = {
|
|
32
|
-
...
|
|
32
|
+
..._363
|
|
33
33
|
};
|
|
34
34
|
})(tendermint || (tendermint = {}));
|