@sparkdreamnft/sparkdreamjs 0.0.40 → 0.0.42
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/federation/v1/genesis.js +397 -2
- package/esm/sparkdream/federation/v1/query.js +49 -1
- package/esm/sparkdream/federation/v1/query.lcd.js +13 -3
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +1 -3
- package/esm/sparkdream/federation/v1/tx.js +27 -3
- package/esm/sparkdream/federation/v1/types.js +172 -4
- package/esm/sparkdream/session/v1/tx.amino.js +205 -3
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +114 -2
- package/sparkdream/client.d.ts +64 -0
- package/sparkdream/federation/v1/genesis.d.ts +221 -1
- package/sparkdream/federation/v1/genesis.js +397 -2
- package/sparkdream/federation/v1/query.d.ts +30 -0
- package/sparkdream/federation/v1/query.js +49 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +1 -1
- package/sparkdream/federation/v1/query.lcd.js +13 -3
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +3 -3
- package/sparkdream/federation/v1/query.rpc.Query.js +1 -3
- package/sparkdream/federation/v1/tx.d.ts +31 -1
- package/sparkdream/federation/v1/tx.js +26 -2
- package/sparkdream/federation/v1/types.d.ts +154 -0
- package/sparkdream/federation/v1/types.js +173 -5
- package/sparkdream/rpc.query.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.d.ts +65 -0
- package/sparkdream/session/v1/tx.amino.js +204 -2
|
@@ -2,13 +2,155 @@
|
|
|
2
2
|
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
3
3
|
// See ../../commons/v1/tx.amino.ts for rationale.
|
|
4
4
|
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
5
|
+
// Because this file replaces the generated one wholesale, EVERY Msg in
|
|
6
|
+
// session/v1/tx.proto must have an entry here — a message added to the proto
|
|
7
|
+
// but not to this map ships in the registry with no amino converter, and
|
|
8
|
+
// Keplr/Ledger (amino-json) signing of it fails.
|
|
9
|
+
//
|
|
10
|
+
// Three shapes telescope gets wrong for this module:
|
|
11
|
+
//
|
|
12
|
+
// 1. MsgExecSession / OneshotExec carry google.protobuf.Any, which needs the
|
|
13
|
+
// recursive conversion in ../../../nested-amino.
|
|
14
|
+
// 2. MsgCreateGrant.payload and ScheduledOneshotPayload.action are oneofs
|
|
15
|
+
// with (amino.oneof_name). cosmossdk.io/x/tx/signing/aminojson renders a
|
|
16
|
+
// set oneof member as
|
|
17
|
+
//
|
|
18
|
+
// "<CamelCase oneof name>": {"type": "<oneof_name>", "value": {"<field>": {...}}}
|
|
19
|
+
//
|
|
20
|
+
// e.g. "Payload": {"type": "sparkdream/session/RecurringPullPayload",
|
|
21
|
+
// "value": {"recurring_pull": {...}}}
|
|
22
|
+
//
|
|
23
|
+
// while telescope emits the bare member ("recurring_pull": {...}).
|
|
24
|
+
// 3. Repeated fields must be omitted when empty (omitempty), never `[]`.
|
|
25
|
+
//
|
|
26
|
+
// cosmjs rebuilds the TxBody from fromAmino(signed msgs), so each fromAmino
|
|
27
|
+
// below must exactly invert its toAmino.
|
|
28
|
+
//
|
|
29
|
+
// 64-bit ints are coerced here rather than trusting callers to pass BigInt:
|
|
30
|
+
// cosmjs hands toAmino the caller's raw value (no fromPartial), and a Number
|
|
31
|
+
// 0 would otherwise sign a key the chain omits.
|
|
7
32
|
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreateSession, MsgRevokeSession, } from "./tx";
|
|
8
33
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
9
34
|
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
10
|
-
import { toTimestamp } from "../../../helpers";
|
|
35
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
11
36
|
import { anyToAmino, aminoToAny } from "../../../nested-amino";
|
|
37
|
+
const str = (v) => (v === "" || v === undefined || v === null ? undefined : v);
|
|
38
|
+
const int64 = (v) => {
|
|
39
|
+
if (v === undefined || v === null || v === "")
|
|
40
|
+
return undefined;
|
|
41
|
+
const b = BigInt(v);
|
|
42
|
+
return b === BigInt(0) ? undefined : b.toString();
|
|
43
|
+
};
|
|
44
|
+
const bool = (v) => (v ? true : undefined);
|
|
45
|
+
const list = (v) => ((v?.length ?? 0) > 0 ? v.map((e) => e) : undefined);
|
|
46
|
+
const coin = (v) => (v ? Coin.toAmino(Coin.fromPartial(v)) : undefined);
|
|
47
|
+
const time = (v) => (v ? Timestamp.toAmino(toTimestamp(v)) : undefined);
|
|
48
|
+
const toBig = (v) => (v === undefined || v === null ? BigInt(0) : BigInt(v));
|
|
49
|
+
const fromCoin = (v) => (v ? Coin.fromAmino(v) : undefined);
|
|
50
|
+
const fromTime = (v) => (v ? fromTimestamp(Timestamp.fromAmino(v)) : undefined);
|
|
51
|
+
// ── Payloads ────────────────────────────────────────────────────────────
|
|
52
|
+
const sessionKeyToAmino = (p) => ({
|
|
53
|
+
allowed_msg_types: list(p.allowedMsgTypes),
|
|
54
|
+
spend_limit: coin(p.spendLimit),
|
|
55
|
+
spent: coin(p.spent),
|
|
56
|
+
max_exec_count: int64(p.maxExecCount),
|
|
57
|
+
exec_count: int64(p.execCount),
|
|
58
|
+
last_used_at: time(p.lastUsedAt),
|
|
59
|
+
allow_self_revoke: bool(p.allowSelfRevoke),
|
|
60
|
+
});
|
|
61
|
+
const sessionKeyFromAmino = (o) => ({
|
|
62
|
+
allowedMsgTypes: o.allowed_msg_types ?? [],
|
|
63
|
+
spendLimit: fromCoin(o.spend_limit),
|
|
64
|
+
spent: fromCoin(o.spent),
|
|
65
|
+
maxExecCount: toBig(o.max_exec_count),
|
|
66
|
+
execCount: toBig(o.exec_count),
|
|
67
|
+
lastUsedAt: fromTime(o.last_used_at),
|
|
68
|
+
allowSelfRevoke: o.allow_self_revoke ?? false,
|
|
69
|
+
});
|
|
70
|
+
const recurringPullToAmino = (p) => ({
|
|
71
|
+
amount_per_period: coin(p.amountPerPeriod),
|
|
72
|
+
period_seconds: int64(p.periodSeconds),
|
|
73
|
+
start_time: int64(p.startTime),
|
|
74
|
+
last_claim_advance: int64(p.lastClaimAdvance),
|
|
75
|
+
claims_made: int64(p.claimsMade),
|
|
76
|
+
max_per_epoch: str(p.maxPerEpoch),
|
|
77
|
+
});
|
|
78
|
+
const recurringPullFromAmino = (o) => ({
|
|
79
|
+
amountPerPeriod: fromCoin(o.amount_per_period),
|
|
80
|
+
periodSeconds: toBig(o.period_seconds),
|
|
81
|
+
startTime: toBig(o.start_time),
|
|
82
|
+
lastClaimAdvance: toBig(o.last_claim_advance),
|
|
83
|
+
claimsMade: toBig(o.claims_made),
|
|
84
|
+
maxPerEpoch: o.max_per_epoch ?? "",
|
|
85
|
+
});
|
|
86
|
+
const spendingAllowanceToAmino = (p) => ({
|
|
87
|
+
max_per_period: coin(p.maxPerPeriod),
|
|
88
|
+
period_seconds: int64(p.periodSeconds),
|
|
89
|
+
current_period_start: int64(p.currentPeriodStart),
|
|
90
|
+
spent_in_current_period: coin(p.spentInCurrentPeriod),
|
|
91
|
+
allowed_recipients: list(p.allowedRecipients),
|
|
92
|
+
denom: str(p.denom),
|
|
93
|
+
});
|
|
94
|
+
const spendingAllowanceFromAmino = (o) => ({
|
|
95
|
+
maxPerPeriod: fromCoin(o.max_per_period),
|
|
96
|
+
periodSeconds: toBig(o.period_seconds),
|
|
97
|
+
currentPeriodStart: toBig(o.current_period_start),
|
|
98
|
+
spentInCurrentPeriod: fromCoin(o.spent_in_current_period),
|
|
99
|
+
allowedRecipients: o.allowed_recipients ?? [],
|
|
100
|
+
denom: o.denom ?? "",
|
|
101
|
+
});
|
|
102
|
+
const scheduledOneshotToAmino = (p) => {
|
|
103
|
+
let action = undefined;
|
|
104
|
+
if (p.transfer) {
|
|
105
|
+
action = {
|
|
106
|
+
type: "sparkdream/session/OneshotTransfer",
|
|
107
|
+
value: { transfer: { recipient: str(p.transfer.recipient), amount: coin(p.transfer.amount) } },
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
else if (p.exec) {
|
|
111
|
+
action = {
|
|
112
|
+
type: "sparkdream/session/OneshotExec",
|
|
113
|
+
value: {
|
|
114
|
+
exec: {
|
|
115
|
+
msg: p.exec.msg ? anyToAmino(p.exec.msg) : undefined,
|
|
116
|
+
gas_limit: int64(p.exec.gasLimit),
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
// aminojson writes `null` for an unset oneof rather than omitting it.
|
|
123
|
+
Action: action ?? null,
|
|
124
|
+
fire_at: int64(p.fireAt),
|
|
125
|
+
fire_error: str(p.fireError),
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
const scheduledOneshotFromAmino = (o) => {
|
|
129
|
+
const v = o.Action?.value ?? {};
|
|
130
|
+
return {
|
|
131
|
+
transfer: v.transfer
|
|
132
|
+
? { recipient: v.transfer.recipient ?? "", amount: fromCoin(v.transfer.amount) }
|
|
133
|
+
: undefined,
|
|
134
|
+
exec: v.exec
|
|
135
|
+
? { msg: v.exec.msg ? aminoToAny(v.exec.msg) : undefined, gasLimit: toBig(v.exec.gas_limit) }
|
|
136
|
+
: undefined,
|
|
137
|
+
fireAt: toBig(o.fire_at),
|
|
138
|
+
fireError: o.fire_error ?? "",
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
const PAYLOADS = [
|
|
142
|
+
["sessionKey", "session_key", "sparkdream/session/SessionKeyPayload", sessionKeyToAmino, sessionKeyFromAmino],
|
|
143
|
+
["recurringPull", "recurring_pull", "sparkdream/session/RecurringPullPayload", recurringPullToAmino, recurringPullFromAmino],
|
|
144
|
+
["spendingAllowance", "spending_allowance", "sparkdream/session/SpendingAllowancePayload", spendingAllowanceToAmino, spendingAllowanceFromAmino],
|
|
145
|
+
["scheduledOneshot", "scheduled_oneshot", "sparkdream/session/ScheduledOneshotPayload", scheduledOneshotToAmino, scheduledOneshotFromAmino],
|
|
146
|
+
];
|
|
147
|
+
// ── Messages ────────────────────────────────────────────────────────────
|
|
148
|
+
// {<signer>, grant_id} messages; each signer field name is a single word, so
|
|
149
|
+
// the proto and amino spellings coincide.
|
|
150
|
+
const grantIdMsg = (signer) => ({
|
|
151
|
+
toAmino: (m) => ({ [signer]: str(m[signer]), grant_id: int64(m.grantId) }),
|
|
152
|
+
fromAmino: (o) => ({ [signer]: o[signer] ?? "", grantId: toBig(o.grant_id) }),
|
|
153
|
+
});
|
|
12
154
|
export const AminoConverter = {
|
|
13
155
|
"/sparkdream.session.v1.MsgUpdateParams": {
|
|
14
156
|
aminoType: "sparkdream/x/session/MsgUpdateParams",
|
|
@@ -64,4 +206,64 @@ export const AminoConverter = {
|
|
|
64
206
|
};
|
|
65
207
|
},
|
|
66
208
|
},
|
|
209
|
+
"/sparkdream.session.v1.MsgCreateGrant": {
|
|
210
|
+
aminoType: "sparkdream/x/session/MsgCreateGrant",
|
|
211
|
+
toAmino(message) {
|
|
212
|
+
const set = PAYLOADS.find(([key]) => message[key]);
|
|
213
|
+
return {
|
|
214
|
+
granter: str(message.granter),
|
|
215
|
+
grantee: str(message.grantee),
|
|
216
|
+
expires_at: time(message.expiresAt),
|
|
217
|
+
note: str(message.note),
|
|
218
|
+
Payload: set
|
|
219
|
+
? { type: set[2], value: { [set[1]]: set[3](message[set[0]]) } }
|
|
220
|
+
: null,
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
fromAmino(object) {
|
|
224
|
+
const out = {
|
|
225
|
+
granter: object.granter ?? "",
|
|
226
|
+
grantee: object.grantee ?? "",
|
|
227
|
+
expiresAt: fromTime(object.expires_at),
|
|
228
|
+
note: object.note ?? "",
|
|
229
|
+
};
|
|
230
|
+
const inner = object.Payload?.value ?? {};
|
|
231
|
+
for (const [key, field, , , fromAmino] of PAYLOADS) {
|
|
232
|
+
if (inner[field])
|
|
233
|
+
out[key] = fromAmino(inner[field]);
|
|
234
|
+
}
|
|
235
|
+
return out;
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
"/sparkdream.session.v1.MsgClaimRecurringPull": {
|
|
239
|
+
aminoType: "sparkdream/x/session/MsgClaimRecurringPull",
|
|
240
|
+
...grantIdMsg("grantee"),
|
|
241
|
+
},
|
|
242
|
+
"/sparkdream.session.v1.MsgPullAllowance": {
|
|
243
|
+
aminoType: "sparkdream/x/session/MsgPullAllowance",
|
|
244
|
+
toAmino: (m) => ({
|
|
245
|
+
grantee: str(m.grantee),
|
|
246
|
+
grant_id: int64(m.grantId),
|
|
247
|
+
recipient: str(m.recipient),
|
|
248
|
+
amount: coin(m.amount),
|
|
249
|
+
}),
|
|
250
|
+
fromAmino: (o) => ({
|
|
251
|
+
grantee: o.grantee ?? "",
|
|
252
|
+
grantId: toBig(o.grant_id),
|
|
253
|
+
recipient: o.recipient ?? "",
|
|
254
|
+
amount: fromCoin(o.amount),
|
|
255
|
+
}),
|
|
256
|
+
},
|
|
257
|
+
"/sparkdream.session.v1.MsgRetryScheduledOneshot": {
|
|
258
|
+
aminoType: "sparkdream/x/session/MsgRetryScheduledOneshot",
|
|
259
|
+
...grantIdMsg("caller"),
|
|
260
|
+
},
|
|
261
|
+
"/sparkdream.session.v1.MsgRevokeGrant": {
|
|
262
|
+
aminoType: "sparkdream/x/session/MsgRevokeGrant",
|
|
263
|
+
...grantIdMsg("granter"),
|
|
264
|
+
},
|
|
265
|
+
"/sparkdream.session.v1.MsgDeclineGrant": {
|
|
266
|
+
aminoType: "sparkdream/x/session/MsgDeclineGrant",
|
|
267
|
+
...grantIdMsg("grantee"),
|
|
268
|
+
},
|
|
67
269
|
};
|
package/package.json
CHANGED
package/sparkdream/bundle.d.ts
CHANGED
|
@@ -5688,7 +5688,7 @@ export declare namespace sparkdream {
|
|
|
5688
5688
|
getBridgeBinding(request: _391.QueryGetBridgeBindingRequest): Promise<_391.QueryGetBridgeBindingResponse>;
|
|
5689
5689
|
listBridgeBindings(request?: _391.QueryListBridgeBindingsRequest): Promise<_391.QueryListBridgeBindingsResponse>;
|
|
5690
5690
|
getFederatedContent(request: _391.QueryGetFederatedContentRequest): Promise<_391.QueryGetFederatedContentResponse>;
|
|
5691
|
-
listFederatedContent(request
|
|
5691
|
+
listFederatedContent(request: _391.QueryListFederatedContentRequest): Promise<_391.QueryListFederatedContentResponse>;
|
|
5692
5692
|
getIdentityLink(request: _391.QueryGetIdentityLinkRequest): Promise<_391.QueryGetIdentityLinkResponse>;
|
|
5693
5693
|
listIdentityLinks(request?: _391.QueryListIdentityLinksRequest): Promise<_391.QueryListIdentityLinksResponse>;
|
|
5694
5694
|
resolveRemoteIdentity(request: _391.QueryResolveRemoteIdentityRequest): Promise<_391.QueryResolveRemoteIdentityResponse>;
|
|
@@ -6279,6 +6279,18 @@ export declare namespace sparkdream {
|
|
|
6279
6279
|
toProto(message: _393.FederatedContent): Uint8Array;
|
|
6280
6280
|
toProtoMsg(message: _393.FederatedContent): _393.FederatedContentProtoMsg;
|
|
6281
6281
|
};
|
|
6282
|
+
ContentRef: {
|
|
6283
|
+
typeUrl: string;
|
|
6284
|
+
encode(message: _393.ContentRef, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
6285
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _393.ContentRef;
|
|
6286
|
+
fromPartial(object: import("../helpers").DeepPartial<_393.ContentRef>): _393.ContentRef;
|
|
6287
|
+
fromAmino(object: _393.ContentRefAmino): _393.ContentRef;
|
|
6288
|
+
toAmino(message: _393.ContentRef): _393.ContentRefAmino;
|
|
6289
|
+
fromAminoMsg(object: _393.ContentRefAminoMsg): _393.ContentRef;
|
|
6290
|
+
fromProtoMsg(message: _393.ContentRefProtoMsg): _393.ContentRef;
|
|
6291
|
+
toProto(message: _393.ContentRef): Uint8Array;
|
|
6292
|
+
toProtoMsg(message: _393.ContentRef): _393.ContentRefProtoMsg;
|
|
6293
|
+
};
|
|
6282
6294
|
IdentityLink: {
|
|
6283
6295
|
typeUrl: string;
|
|
6284
6296
|
encode(message: _393.IdentityLink, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -7591,6 +7603,42 @@ export declare namespace sparkdream {
|
|
|
7591
7603
|
toProto(message: _388.GenesisState): Uint8Array;
|
|
7592
7604
|
toProtoMsg(message: _388.GenesisState): _388.GenesisStateProtoMsg;
|
|
7593
7605
|
};
|
|
7606
|
+
ContentDeadline: {
|
|
7607
|
+
typeUrl: string;
|
|
7608
|
+
encode(message: _388.ContentDeadline, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7609
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _388.ContentDeadline;
|
|
7610
|
+
fromPartial(object: import("../helpers").DeepPartial<_388.ContentDeadline>): _388.ContentDeadline;
|
|
7611
|
+
fromAmino(object: _388.ContentDeadlineAmino): _388.ContentDeadline;
|
|
7612
|
+
toAmino(message: _388.ContentDeadline): _388.ContentDeadlineAmino;
|
|
7613
|
+
fromAminoMsg(object: _388.ContentDeadlineAminoMsg): _388.ContentDeadline;
|
|
7614
|
+
fromProtoMsg(message: _388.ContentDeadlineProtoMsg): _388.ContentDeadline;
|
|
7615
|
+
toProto(message: _388.ContentDeadline): Uint8Array;
|
|
7616
|
+
toProtoMsg(message: _388.ContentDeadline): _388.ContentDeadlineProtoMsg;
|
|
7617
|
+
};
|
|
7618
|
+
ArbiterSubmissionEntry: {
|
|
7619
|
+
typeUrl: string;
|
|
7620
|
+
encode(message: _388.ArbiterSubmissionEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7621
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _388.ArbiterSubmissionEntry;
|
|
7622
|
+
fromPartial(object: import("../helpers").DeepPartial<_388.ArbiterSubmissionEntry>): _388.ArbiterSubmissionEntry;
|
|
7623
|
+
fromAmino(object: _388.ArbiterSubmissionEntryAmino): _388.ArbiterSubmissionEntry;
|
|
7624
|
+
toAmino(message: _388.ArbiterSubmissionEntry): _388.ArbiterSubmissionEntryAmino;
|
|
7625
|
+
fromAminoMsg(object: _388.ArbiterSubmissionEntryAminoMsg): _388.ArbiterSubmissionEntry;
|
|
7626
|
+
fromProtoMsg(message: _388.ArbiterSubmissionEntryProtoMsg): _388.ArbiterSubmissionEntry;
|
|
7627
|
+
toProto(message: _388.ArbiterSubmissionEntry): Uint8Array;
|
|
7628
|
+
toProtoMsg(message: _388.ArbiterSubmissionEntry): _388.ArbiterSubmissionEntryProtoMsg;
|
|
7629
|
+
};
|
|
7630
|
+
ArbiterHashCount: {
|
|
7631
|
+
typeUrl: string;
|
|
7632
|
+
encode(message: _388.ArbiterHashCount, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
7633
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _388.ArbiterHashCount;
|
|
7634
|
+
fromPartial(object: import("../helpers").DeepPartial<_388.ArbiterHashCount>): _388.ArbiterHashCount;
|
|
7635
|
+
fromAmino(object: _388.ArbiterHashCountAmino): _388.ArbiterHashCount;
|
|
7636
|
+
toAmino(message: _388.ArbiterHashCount): _388.ArbiterHashCountAmino;
|
|
7637
|
+
fromAminoMsg(object: _388.ArbiterHashCountAminoMsg): _388.ArbiterHashCount;
|
|
7638
|
+
fromProtoMsg(message: _388.ArbiterHashCountProtoMsg): _388.ArbiterHashCount;
|
|
7639
|
+
toProto(message: _388.ArbiterHashCount): Uint8Array;
|
|
7640
|
+
toProtoMsg(message: _388.ArbiterHashCount): _388.ArbiterHashCountProtoMsg;
|
|
7641
|
+
};
|
|
7594
7642
|
OperatorRewardDayFunding: {
|
|
7595
7643
|
typeUrl: string;
|
|
7596
7644
|
encode(message: _388.OperatorRewardDayFunding, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -23865,6 +23913,70 @@ export declare namespace sparkdream {
|
|
|
23865
23913
|
toAmino(message: any): any;
|
|
23866
23914
|
fromAmino(object: any): any;
|
|
23867
23915
|
};
|
|
23916
|
+
"/sparkdream.session.v1.MsgCreateGrant": {
|
|
23917
|
+
aminoType: string;
|
|
23918
|
+
toAmino(message: any): any;
|
|
23919
|
+
fromAmino(object: any): any;
|
|
23920
|
+
};
|
|
23921
|
+
"/sparkdream.session.v1.MsgClaimRecurringPull": {
|
|
23922
|
+
toAmino: (m: any) => {
|
|
23923
|
+
[x: string]: any;
|
|
23924
|
+
grant_id: string;
|
|
23925
|
+
};
|
|
23926
|
+
fromAmino: (o: any) => {
|
|
23927
|
+
[x: string]: any;
|
|
23928
|
+
grantId: bigint;
|
|
23929
|
+
};
|
|
23930
|
+
aminoType: string;
|
|
23931
|
+
};
|
|
23932
|
+
"/sparkdream.session.v1.MsgPullAllowance": {
|
|
23933
|
+
aminoType: string;
|
|
23934
|
+
toAmino: (m: any) => {
|
|
23935
|
+
grantee: any;
|
|
23936
|
+
grant_id: string;
|
|
23937
|
+
recipient: any;
|
|
23938
|
+
amount: import("../cosmos/base/v1beta1/coin").CoinAmino;
|
|
23939
|
+
};
|
|
23940
|
+
fromAmino: (o: any) => {
|
|
23941
|
+
grantee: any;
|
|
23942
|
+
grantId: bigint;
|
|
23943
|
+
recipient: any;
|
|
23944
|
+
amount: import("../cosmos/base/v1beta1/coin").Coin;
|
|
23945
|
+
};
|
|
23946
|
+
};
|
|
23947
|
+
"/sparkdream.session.v1.MsgRetryScheduledOneshot": {
|
|
23948
|
+
toAmino: (m: any) => {
|
|
23949
|
+
[x: string]: any;
|
|
23950
|
+
grant_id: string;
|
|
23951
|
+
};
|
|
23952
|
+
fromAmino: (o: any) => {
|
|
23953
|
+
[x: string]: any;
|
|
23954
|
+
grantId: bigint;
|
|
23955
|
+
};
|
|
23956
|
+
aminoType: string;
|
|
23957
|
+
};
|
|
23958
|
+
"/sparkdream.session.v1.MsgRevokeGrant": {
|
|
23959
|
+
toAmino: (m: any) => {
|
|
23960
|
+
[x: string]: any;
|
|
23961
|
+
grant_id: string;
|
|
23962
|
+
};
|
|
23963
|
+
fromAmino: (o: any) => {
|
|
23964
|
+
[x: string]: any;
|
|
23965
|
+
grantId: bigint;
|
|
23966
|
+
};
|
|
23967
|
+
aminoType: string;
|
|
23968
|
+
};
|
|
23969
|
+
"/sparkdream.session.v1.MsgDeclineGrant": {
|
|
23970
|
+
toAmino: (m: any) => {
|
|
23971
|
+
[x: string]: any;
|
|
23972
|
+
grant_id: string;
|
|
23973
|
+
};
|
|
23974
|
+
fromAmino: (o: any) => {
|
|
23975
|
+
[x: string]: any;
|
|
23976
|
+
grantId: bigint;
|
|
23977
|
+
};
|
|
23978
|
+
aminoType: string;
|
|
23979
|
+
};
|
|
23868
23980
|
};
|
|
23869
23981
|
MsgUpdateParams: {
|
|
23870
23982
|
typeUrl: string;
|
|
@@ -26178,7 +26290,7 @@ export declare namespace sparkdream {
|
|
|
26178
26290
|
getBridgeBinding(request: _391.QueryGetBridgeBindingRequest): Promise<_391.QueryGetBridgeBindingResponse>;
|
|
26179
26291
|
listBridgeBindings(request?: _391.QueryListBridgeBindingsRequest): Promise<_391.QueryListBridgeBindingsResponse>;
|
|
26180
26292
|
getFederatedContent(request: _391.QueryGetFederatedContentRequest): Promise<_391.QueryGetFederatedContentResponse>;
|
|
26181
|
-
listFederatedContent(request
|
|
26293
|
+
listFederatedContent(request: _391.QueryListFederatedContentRequest): Promise<_391.QueryListFederatedContentResponse>;
|
|
26182
26294
|
getIdentityLink(request: _391.QueryGetIdentityLinkRequest): Promise<_391.QueryGetIdentityLinkResponse>;
|
|
26183
26295
|
listIdentityLinks(request?: _391.QueryListIdentityLinksRequest): Promise<_391.QueryListIdentityLinksResponse>;
|
|
26184
26296
|
resolveRemoteIdentity(request: _391.QueryResolveRemoteIdentityRequest): Promise<_391.QueryResolveRemoteIdentityResponse>;
|
package/sparkdream/client.d.ts
CHANGED
|
@@ -62,6 +62,70 @@ export declare const sparkdreamAminoConverters: {
|
|
|
62
62
|
toAmino(message: any): any;
|
|
63
63
|
fromAmino(object: any): any;
|
|
64
64
|
};
|
|
65
|
+
"/sparkdream.session.v1.MsgCreateGrant": {
|
|
66
|
+
aminoType: string;
|
|
67
|
+
toAmino(message: any): any;
|
|
68
|
+
fromAmino(object: any): any;
|
|
69
|
+
};
|
|
70
|
+
"/sparkdream.session.v1.MsgClaimRecurringPull": {
|
|
71
|
+
toAmino: (m: any) => {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
grant_id: string;
|
|
74
|
+
};
|
|
75
|
+
fromAmino: (o: any) => {
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
grantId: bigint;
|
|
78
|
+
};
|
|
79
|
+
aminoType: string;
|
|
80
|
+
};
|
|
81
|
+
"/sparkdream.session.v1.MsgPullAllowance": {
|
|
82
|
+
aminoType: string;
|
|
83
|
+
toAmino: (m: any) => {
|
|
84
|
+
grantee: any;
|
|
85
|
+
grant_id: string;
|
|
86
|
+
recipient: any;
|
|
87
|
+
amount: import("../cosmos/base/v1beta1/coin").CoinAmino;
|
|
88
|
+
};
|
|
89
|
+
fromAmino: (o: any) => {
|
|
90
|
+
grantee: any;
|
|
91
|
+
grantId: bigint;
|
|
92
|
+
recipient: any;
|
|
93
|
+
amount: import("../cosmos/base/v1beta1/coin").Coin;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
"/sparkdream.session.v1.MsgRetryScheduledOneshot": {
|
|
97
|
+
toAmino: (m: any) => {
|
|
98
|
+
[x: string]: any;
|
|
99
|
+
grant_id: string;
|
|
100
|
+
};
|
|
101
|
+
fromAmino: (o: any) => {
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
grantId: bigint;
|
|
104
|
+
};
|
|
105
|
+
aminoType: string;
|
|
106
|
+
};
|
|
107
|
+
"/sparkdream.session.v1.MsgRevokeGrant": {
|
|
108
|
+
toAmino: (m: any) => {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
grant_id: string;
|
|
111
|
+
};
|
|
112
|
+
fromAmino: (o: any) => {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
grantId: bigint;
|
|
115
|
+
};
|
|
116
|
+
aminoType: string;
|
|
117
|
+
};
|
|
118
|
+
"/sparkdream.session.v1.MsgDeclineGrant": {
|
|
119
|
+
toAmino: (m: any) => {
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
grant_id: string;
|
|
122
|
+
};
|
|
123
|
+
fromAmino: (o: any) => {
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
grantId: bigint;
|
|
126
|
+
};
|
|
127
|
+
aminoType: string;
|
|
128
|
+
};
|
|
65
129
|
"/sparkdream.service.v1.MsgUpdateParams": {
|
|
66
130
|
aminoType: string;
|
|
67
131
|
toAmino: (message: import("./service/v1/tx").MsgUpdateParams) => import("./service/v1/tx").MsgUpdateParamsAmino;
|