@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +113 -52
- package/esm/sparkdream/blog/v1/tx.js +583 -2
- package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
- package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +121 -1
- package/esm/sparkdream/collect/v1/tx.js +293 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
- package/esm/sparkdream/collect/v1/types.js +147 -3
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +389 -148
- package/esm/sparkdream/forum/v1/post.js +25 -1
- package/esm/sparkdream/forum/v1/tx.js +460 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
- package/esm/sparkdream/forum/v1/types.js +355 -0
- package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/member.js +209 -1
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +89 -28
- package/sparkdream/blog/v1/params.js +113 -52
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +385 -10
- package/sparkdream/blog/v1/tx.js +584 -3
- package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
- package/sparkdream/blog/v1/tx.registry.js +73 -1
- package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
- package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
- package/sparkdream/bundle.d.ts +15308 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +140 -0
- package/sparkdream/collect/v1/params.js +121 -1
- package/sparkdream/collect/v1/tx.d.ts +195 -3
- package/sparkdream/collect/v1/tx.js +294 -2
- package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
- package/sparkdream/collect/v1/tx.registry.js +37 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
- package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
- package/sparkdream/collect/v1/types.d.ts +114 -0
- package/sparkdream/collect/v1/types.js +147 -3
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +309 -62
- package/sparkdream/forum/v1/params.js +389 -148
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- package/sparkdream/forum/v1/tx.d.ts +291 -0
- package/sparkdream/forum/v1/tx.js +462 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
- package/sparkdream/forum/v1/tx.registry.js +55 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/forum/v1/types.d.ts +247 -0
- package/sparkdream/forum/v1/types.js +356 -1
- package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
- package/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateSession, MsgRevokeSession, MsgExecSession } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateSession, MsgRevokeSession, MsgExecSession, MsgCreateGrant, MsgClaimRecurringPull, MsgPullAllowance, MsgRetryScheduledOneshot, MsgRevokeGrant, MsgDeclineGrant } from "./tx";
|
|
4
4
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
5
|
export declare const load: (protoRegistry: Registry) => void;
|
|
6
6
|
export declare const MessageComposer: {
|
|
@@ -25,6 +25,30 @@ export declare const MessageComposer: {
|
|
|
25
25
|
typeUrl: string;
|
|
26
26
|
value: Uint8Array<ArrayBufferLike>;
|
|
27
27
|
};
|
|
28
|
+
createGrant(value: MsgCreateGrant): {
|
|
29
|
+
typeUrl: string;
|
|
30
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
31
|
+
};
|
|
32
|
+
claimRecurringPull(value: MsgClaimRecurringPull): {
|
|
33
|
+
typeUrl: string;
|
|
34
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
35
|
+
};
|
|
36
|
+
pullAllowance(value: MsgPullAllowance): {
|
|
37
|
+
typeUrl: string;
|
|
38
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
39
|
+
};
|
|
40
|
+
retryScheduledOneshot(value: MsgRetryScheduledOneshot): {
|
|
41
|
+
typeUrl: string;
|
|
42
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
43
|
+
};
|
|
44
|
+
revokeGrant(value: MsgRevokeGrant): {
|
|
45
|
+
typeUrl: string;
|
|
46
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
47
|
+
};
|
|
48
|
+
declineGrant(value: MsgDeclineGrant): {
|
|
49
|
+
typeUrl: string;
|
|
50
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
51
|
+
};
|
|
28
52
|
};
|
|
29
53
|
withTypeUrl: {
|
|
30
54
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -47,6 +71,30 @@ export declare const MessageComposer: {
|
|
|
47
71
|
typeUrl: string;
|
|
48
72
|
value: MsgExecSession;
|
|
49
73
|
};
|
|
74
|
+
createGrant(value: MsgCreateGrant): {
|
|
75
|
+
typeUrl: string;
|
|
76
|
+
value: MsgCreateGrant;
|
|
77
|
+
};
|
|
78
|
+
claimRecurringPull(value: MsgClaimRecurringPull): {
|
|
79
|
+
typeUrl: string;
|
|
80
|
+
value: MsgClaimRecurringPull;
|
|
81
|
+
};
|
|
82
|
+
pullAllowance(value: MsgPullAllowance): {
|
|
83
|
+
typeUrl: string;
|
|
84
|
+
value: MsgPullAllowance;
|
|
85
|
+
};
|
|
86
|
+
retryScheduledOneshot(value: MsgRetryScheduledOneshot): {
|
|
87
|
+
typeUrl: string;
|
|
88
|
+
value: MsgRetryScheduledOneshot;
|
|
89
|
+
};
|
|
90
|
+
revokeGrant(value: MsgRevokeGrant): {
|
|
91
|
+
typeUrl: string;
|
|
92
|
+
value: MsgRevokeGrant;
|
|
93
|
+
};
|
|
94
|
+
declineGrant(value: MsgDeclineGrant): {
|
|
95
|
+
typeUrl: string;
|
|
96
|
+
value: MsgDeclineGrant;
|
|
97
|
+
};
|
|
50
98
|
};
|
|
51
99
|
fromPartial: {
|
|
52
100
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -69,5 +117,29 @@ export declare const MessageComposer: {
|
|
|
69
117
|
typeUrl: string;
|
|
70
118
|
value: MsgExecSession;
|
|
71
119
|
};
|
|
120
|
+
createGrant(value: MsgCreateGrant): {
|
|
121
|
+
typeUrl: string;
|
|
122
|
+
value: MsgCreateGrant;
|
|
123
|
+
};
|
|
124
|
+
claimRecurringPull(value: MsgClaimRecurringPull): {
|
|
125
|
+
typeUrl: string;
|
|
126
|
+
value: MsgClaimRecurringPull;
|
|
127
|
+
};
|
|
128
|
+
pullAllowance(value: MsgPullAllowance): {
|
|
129
|
+
typeUrl: string;
|
|
130
|
+
value: MsgPullAllowance;
|
|
131
|
+
};
|
|
132
|
+
retryScheduledOneshot(value: MsgRetryScheduledOneshot): {
|
|
133
|
+
typeUrl: string;
|
|
134
|
+
value: MsgRetryScheduledOneshot;
|
|
135
|
+
};
|
|
136
|
+
revokeGrant(value: MsgRevokeGrant): {
|
|
137
|
+
typeUrl: string;
|
|
138
|
+
value: MsgRevokeGrant;
|
|
139
|
+
};
|
|
140
|
+
declineGrant(value: MsgDeclineGrant): {
|
|
141
|
+
typeUrl: string;
|
|
142
|
+
value: MsgDeclineGrant;
|
|
143
|
+
};
|
|
72
144
|
};
|
|
73
145
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
|
-
exports.registry = [["/sparkdream.session.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.session.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.session.v1.MsgCreateSession", tx_1.MsgCreateSession], ["/sparkdream.session.v1.MsgRevokeSession", tx_1.MsgRevokeSession], ["/sparkdream.session.v1.MsgExecSession", tx_1.MsgExecSession]];
|
|
5
|
+
exports.registry = [["/sparkdream.session.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.session.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.session.v1.MsgCreateSession", tx_1.MsgCreateSession], ["/sparkdream.session.v1.MsgRevokeSession", tx_1.MsgRevokeSession], ["/sparkdream.session.v1.MsgExecSession", tx_1.MsgExecSession], ["/sparkdream.session.v1.MsgCreateGrant", tx_1.MsgCreateGrant], ["/sparkdream.session.v1.MsgClaimRecurringPull", tx_1.MsgClaimRecurringPull], ["/sparkdream.session.v1.MsgPullAllowance", tx_1.MsgPullAllowance], ["/sparkdream.session.v1.MsgRetryScheduledOneshot", tx_1.MsgRetryScheduledOneshot], ["/sparkdream.session.v1.MsgRevokeGrant", tx_1.MsgRevokeGrant], ["/sparkdream.session.v1.MsgDeclineGrant", tx_1.MsgDeclineGrant]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -40,6 +40,42 @@ exports.MessageComposer = {
|
|
|
40
40
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
41
41
|
value: tx_1.MsgExecSession.encode(value).finish()
|
|
42
42
|
};
|
|
43
|
+
},
|
|
44
|
+
createGrant(value) {
|
|
45
|
+
return {
|
|
46
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
47
|
+
value: tx_1.MsgCreateGrant.encode(value).finish()
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
claimRecurringPull(value) {
|
|
51
|
+
return {
|
|
52
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
53
|
+
value: tx_1.MsgClaimRecurringPull.encode(value).finish()
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
pullAllowance(value) {
|
|
57
|
+
return {
|
|
58
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
59
|
+
value: tx_1.MsgPullAllowance.encode(value).finish()
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
retryScheduledOneshot(value) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
65
|
+
value: tx_1.MsgRetryScheduledOneshot.encode(value).finish()
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
revokeGrant(value) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
71
|
+
value: tx_1.MsgRevokeGrant.encode(value).finish()
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
declineGrant(value) {
|
|
75
|
+
return {
|
|
76
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
77
|
+
value: tx_1.MsgDeclineGrant.encode(value).finish()
|
|
78
|
+
};
|
|
43
79
|
}
|
|
44
80
|
},
|
|
45
81
|
withTypeUrl: {
|
|
@@ -72,6 +108,42 @@ exports.MessageComposer = {
|
|
|
72
108
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
73
109
|
value
|
|
74
110
|
};
|
|
111
|
+
},
|
|
112
|
+
createGrant(value) {
|
|
113
|
+
return {
|
|
114
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
115
|
+
value
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
claimRecurringPull(value) {
|
|
119
|
+
return {
|
|
120
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
121
|
+
value
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
pullAllowance(value) {
|
|
125
|
+
return {
|
|
126
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
127
|
+
value
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
retryScheduledOneshot(value) {
|
|
131
|
+
return {
|
|
132
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
133
|
+
value
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
revokeGrant(value) {
|
|
137
|
+
return {
|
|
138
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
139
|
+
value
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
declineGrant(value) {
|
|
143
|
+
return {
|
|
144
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
145
|
+
value
|
|
146
|
+
};
|
|
75
147
|
}
|
|
76
148
|
},
|
|
77
149
|
fromPartial: {
|
|
@@ -104,6 +176,42 @@ exports.MessageComposer = {
|
|
|
104
176
|
typeUrl: "/sparkdream.session.v1.MsgExecSession",
|
|
105
177
|
value: tx_1.MsgExecSession.fromPartial(value)
|
|
106
178
|
};
|
|
179
|
+
},
|
|
180
|
+
createGrant(value) {
|
|
181
|
+
return {
|
|
182
|
+
typeUrl: "/sparkdream.session.v1.MsgCreateGrant",
|
|
183
|
+
value: tx_1.MsgCreateGrant.fromPartial(value)
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
claimRecurringPull(value) {
|
|
187
|
+
return {
|
|
188
|
+
typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPull",
|
|
189
|
+
value: tx_1.MsgClaimRecurringPull.fromPartial(value)
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
pullAllowance(value) {
|
|
193
|
+
return {
|
|
194
|
+
typeUrl: "/sparkdream.session.v1.MsgPullAllowance",
|
|
195
|
+
value: tx_1.MsgPullAllowance.fromPartial(value)
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
retryScheduledOneshot(value) {
|
|
199
|
+
return {
|
|
200
|
+
typeUrl: "/sparkdream.session.v1.MsgRetryScheduledOneshot",
|
|
201
|
+
value: tx_1.MsgRetryScheduledOneshot.fromPartial(value)
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
revokeGrant(value) {
|
|
205
|
+
return {
|
|
206
|
+
typeUrl: "/sparkdream.session.v1.MsgRevokeGrant",
|
|
207
|
+
value: tx_1.MsgRevokeGrant.fromPartial(value)
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
declineGrant(value) {
|
|
211
|
+
return {
|
|
212
|
+
typeUrl: "/sparkdream.session.v1.MsgDeclineGrant",
|
|
213
|
+
value: tx_1.MsgDeclineGrant.fromPartial(value)
|
|
214
|
+
};
|
|
107
215
|
}
|
|
108
216
|
}
|
|
109
217
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
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
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -12,12 +12,66 @@ export interface Msg {
|
|
|
12
12
|
* operational parameters. Authorized for Commons Council Operations Committee.
|
|
13
13
|
*/
|
|
14
14
|
updateOperationalParams(request: MsgUpdateOperationalParams): Promise<MsgUpdateOperationalParamsResponse>;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* CreateSession creates a new session key delegation.
|
|
17
|
+
*
|
|
18
|
+
* DEPRECATED in favor of `CreateGrant` with a SessionKeyPayload; kept for
|
|
19
|
+
* pre-launch backward compatibility and removed at P6.
|
|
20
|
+
*/
|
|
16
21
|
createSession(request: MsgCreateSession): Promise<MsgCreateSessionResponse>;
|
|
17
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* RevokeSession revokes an active session.
|
|
24
|
+
*
|
|
25
|
+
* DEPRECATED in favor of `RevokeGrant` (P6); kept for pre-launch backward
|
|
26
|
+
* compatibility.
|
|
27
|
+
*/
|
|
18
28
|
revokeSession(request: MsgRevokeSession): Promise<MsgRevokeSessionResponse>;
|
|
19
29
|
/** ExecSession executes messages using a session key. */
|
|
20
30
|
execSession(request: MsgExecSession): Promise<MsgExecSessionResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* CreateGrant is the unified entrypoint that creates any of the four typed
|
|
33
|
+
* grants. Type is inferred from the payload oneof.
|
|
34
|
+
*/
|
|
35
|
+
createGrant(request: MsgCreateGrant): Promise<MsgCreateGrantResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* ClaimRecurringPull disburses one period of a RECURRING_PULL grant from
|
|
38
|
+
* the granter to the grantee. Logical-clock advances; catch-up requires
|
|
39
|
+
* multiple txs.
|
|
40
|
+
*/
|
|
41
|
+
claimRecurringPull(request: MsgClaimRecurringPull): Promise<MsgClaimRecurringPullResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* PullAllowance withdraws an amount from a SPENDING_ALLOWANCE grant
|
|
44
|
+
* budget to a chosen recipient (constrained by the optional whitelist
|
|
45
|
+
* and the per-period cap). The grantee picks the recipient and amount
|
|
46
|
+
* per call within the rolling-window budget.
|
|
47
|
+
*/
|
|
48
|
+
pullAllowance(request: MsgPullAllowance): Promise<MsgPullAllowanceResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* RetryScheduledOneshot re-enqueues a PAUSED_INSUFFICIENT_FUNDS
|
|
51
|
+
* ScheduledOneshot for firing. Either the granter or the grantee may
|
|
52
|
+
* call (no additional authorization needed — the granter already
|
|
53
|
+
* authorized the underlying action at creation time). Sets
|
|
54
|
+
* fire_at = block_time on success.
|
|
55
|
+
*/
|
|
56
|
+
retryScheduledOneshot(request: MsgRetryScheduledOneshot): Promise<MsgRetryScheduledOneshotResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* RevokeGrant cancels any active grant by id. Signed by the granter
|
|
59
|
+
* on file. Refunds any held OneshotGasDeposit for SCHEDULED_ONESHOT
|
|
60
|
+
* grants. A session-key holder may invoke this only when the session
|
|
61
|
+
* key's SessionKeyPayload.allow_self_revoke = true AND the targeted
|
|
62
|
+
* grant's granter matches the session-key granter (anti
|
|
63
|
+
* cross-granter-revoke).
|
|
64
|
+
*/
|
|
65
|
+
revokeGrant(request: MsgRevokeGrant): Promise<MsgRevokeGrantResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* DeclineGrant lets the grantee opt out of any active grant by id.
|
|
68
|
+
* Applies uniformly across all four grant types. For ScheduledOneshot
|
|
69
|
+
* this is a pre-fire veto: the grant transitions to DECLINED, the
|
|
70
|
+
* EndBlocker skips it, and the held deposit is refunded to the
|
|
71
|
+
* granter. Decline is one-way — the granter must Revoke + CreateGrant
|
|
72
|
+
* to retry.
|
|
73
|
+
*/
|
|
74
|
+
declineGrant(request: MsgDeclineGrant): Promise<MsgDeclineGrantResponse>;
|
|
21
75
|
}
|
|
22
76
|
export declare class MsgClientImpl implements Msg {
|
|
23
77
|
private readonly rpc;
|
|
@@ -27,5 +81,11 @@ export declare class MsgClientImpl implements Msg {
|
|
|
27
81
|
createSession: (request: MsgCreateSession) => Promise<MsgCreateSessionResponse>;
|
|
28
82
|
revokeSession: (request: MsgRevokeSession) => Promise<MsgRevokeSessionResponse>;
|
|
29
83
|
execSession: (request: MsgExecSession) => Promise<MsgExecSessionResponse>;
|
|
84
|
+
createGrant: (request: MsgCreateGrant) => Promise<MsgCreateGrantResponse>;
|
|
85
|
+
claimRecurringPull: (request: MsgClaimRecurringPull) => Promise<MsgClaimRecurringPullResponse>;
|
|
86
|
+
pullAllowance: (request: MsgPullAllowance) => Promise<MsgPullAllowanceResponse>;
|
|
87
|
+
retryScheduledOneshot: (request: MsgRetryScheduledOneshot) => Promise<MsgRetryScheduledOneshotResponse>;
|
|
88
|
+
revokeGrant: (request: MsgRevokeGrant) => Promise<MsgRevokeGrantResponse>;
|
|
89
|
+
declineGrant: (request: MsgDeclineGrant) => Promise<MsgDeclineGrantResponse>;
|
|
30
90
|
}
|
|
31
91
|
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -22,13 +22,19 @@ class MsgClientImpl {
|
|
|
22
22
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "UpdateOperationalParams", data);
|
|
23
23
|
return promise.then(data => tx_1.MsgUpdateOperationalParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
24
24
|
};
|
|
25
|
-
/* CreateSession creates a new session key delegation.
|
|
25
|
+
/* CreateSession creates a new session key delegation.
|
|
26
|
+
|
|
27
|
+
DEPRECATED in favor of `CreateGrant` with a SessionKeyPayload; kept for
|
|
28
|
+
pre-launch backward compatibility and removed at P6. */
|
|
26
29
|
createSession = async (request) => {
|
|
27
30
|
const data = tx_1.MsgCreateSession.encode(request).finish();
|
|
28
31
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "CreateSession", data);
|
|
29
32
|
return promise.then(data => tx_1.MsgCreateSessionResponse.decode(new binary_1.BinaryReader(data)));
|
|
30
33
|
};
|
|
31
|
-
/* RevokeSession revokes an active session.
|
|
34
|
+
/* RevokeSession revokes an active session.
|
|
35
|
+
|
|
36
|
+
DEPRECATED in favor of `RevokeGrant` (P6); kept for pre-launch backward
|
|
37
|
+
compatibility. */
|
|
32
38
|
revokeSession = async (request) => {
|
|
33
39
|
const data = tx_1.MsgRevokeSession.encode(request).finish();
|
|
34
40
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RevokeSession", data);
|
|
@@ -40,6 +46,62 @@ class MsgClientImpl {
|
|
|
40
46
|
const promise = this.rpc.request("sparkdream.session.v1.Msg", "ExecSession", data);
|
|
41
47
|
return promise.then(data => tx_1.MsgExecSessionResponse.decode(new binary_1.BinaryReader(data)));
|
|
42
48
|
};
|
|
49
|
+
/* CreateGrant is the unified entrypoint that creates any of the four typed
|
|
50
|
+
grants. Type is inferred from the payload oneof. */
|
|
51
|
+
createGrant = async (request) => {
|
|
52
|
+
const data = tx_1.MsgCreateGrant.encode(request).finish();
|
|
53
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "CreateGrant", data);
|
|
54
|
+
return promise.then(data => tx_1.MsgCreateGrantResponse.decode(new binary_1.BinaryReader(data)));
|
|
55
|
+
};
|
|
56
|
+
/* ClaimRecurringPull disburses one period of a RECURRING_PULL grant from
|
|
57
|
+
the granter to the grantee. Logical-clock advances; catch-up requires
|
|
58
|
+
multiple txs. */
|
|
59
|
+
claimRecurringPull = async (request) => {
|
|
60
|
+
const data = tx_1.MsgClaimRecurringPull.encode(request).finish();
|
|
61
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "ClaimRecurringPull", data);
|
|
62
|
+
return promise.then(data => tx_1.MsgClaimRecurringPullResponse.decode(new binary_1.BinaryReader(data)));
|
|
63
|
+
};
|
|
64
|
+
/* PullAllowance withdraws an amount from a SPENDING_ALLOWANCE grant
|
|
65
|
+
budget to a chosen recipient (constrained by the optional whitelist
|
|
66
|
+
and the per-period cap). The grantee picks the recipient and amount
|
|
67
|
+
per call within the rolling-window budget. */
|
|
68
|
+
pullAllowance = async (request) => {
|
|
69
|
+
const data = tx_1.MsgPullAllowance.encode(request).finish();
|
|
70
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "PullAllowance", data);
|
|
71
|
+
return promise.then(data => tx_1.MsgPullAllowanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
72
|
+
};
|
|
73
|
+
/* RetryScheduledOneshot re-enqueues a PAUSED_INSUFFICIENT_FUNDS
|
|
74
|
+
ScheduledOneshot for firing. Either the granter or the grantee may
|
|
75
|
+
call (no additional authorization needed — the granter already
|
|
76
|
+
authorized the underlying action at creation time). Sets
|
|
77
|
+
fire_at = block_time on success. */
|
|
78
|
+
retryScheduledOneshot = async (request) => {
|
|
79
|
+
const data = tx_1.MsgRetryScheduledOneshot.encode(request).finish();
|
|
80
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RetryScheduledOneshot", data);
|
|
81
|
+
return promise.then(data => tx_1.MsgRetryScheduledOneshotResponse.decode(new binary_1.BinaryReader(data)));
|
|
82
|
+
};
|
|
83
|
+
/* RevokeGrant cancels any active grant by id. Signed by the granter
|
|
84
|
+
on file. Refunds any held OneshotGasDeposit for SCHEDULED_ONESHOT
|
|
85
|
+
grants. A session-key holder may invoke this only when the session
|
|
86
|
+
key's SessionKeyPayload.allow_self_revoke = true AND the targeted
|
|
87
|
+
grant's granter matches the session-key granter (anti
|
|
88
|
+
cross-granter-revoke). */
|
|
89
|
+
revokeGrant = async (request) => {
|
|
90
|
+
const data = tx_1.MsgRevokeGrant.encode(request).finish();
|
|
91
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "RevokeGrant", data);
|
|
92
|
+
return promise.then(data => tx_1.MsgRevokeGrantResponse.decode(new binary_1.BinaryReader(data)));
|
|
93
|
+
};
|
|
94
|
+
/* DeclineGrant lets the grantee opt out of any active grant by id.
|
|
95
|
+
Applies uniformly across all four grant types. For ScheduledOneshot
|
|
96
|
+
this is a pre-fire veto: the grant transitions to DECLINED, the
|
|
97
|
+
EndBlocker skips it, and the held deposit is refunded to the
|
|
98
|
+
granter. Decline is one-way — the granter must Revoke + CreateGrant
|
|
99
|
+
to retry. */
|
|
100
|
+
declineGrant = async (request) => {
|
|
101
|
+
const data = tx_1.MsgDeclineGrant.encode(request).finish();
|
|
102
|
+
const promise = this.rpc.request("sparkdream.session.v1.Msg", "DeclineGrant", data);
|
|
103
|
+
return promise.then(data => tx_1.MsgDeclineGrantResponse.decode(new binary_1.BinaryReader(data)));
|
|
104
|
+
};
|
|
43
105
|
}
|
|
44
106
|
exports.MsgClientImpl = MsgClientImpl;
|
|
45
107
|
const createClientImpl = (rpc) => {
|