@agoric/orchestration 0.3.0-u23.0 → 0.3.0-u23.1
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/index.d.ts +9 -0
- package/package.json +15 -15
- package/src/axelar-types.d.ts +53 -0
- package/src/axelar-types.d.ts.map +1 -0
- package/src/cctp-chain-info.d.ts +65 -0
- package/src/cctp-chain-info.d.ts.map +1 -0
- package/src/chain-capabilities.d.ts +12 -0
- package/src/chain-capabilities.d.ts.map +1 -0
- package/src/chain-info.d.ts +10267 -0
- package/src/chain-info.d.ts.map +1 -0
- package/src/cosmos-api.d.ts +437 -0
- package/src/cosmos-api.d.ts.map +1 -0
- package/src/ethereum-api.d.ts +9 -0
- package/src/ethereum-api.d.ts.map +1 -0
- package/src/examples/auto-stake-it-tap-kit.d.ts +50 -0
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -0
- package/src/examples/auto-stake-it.contract.d.ts +34 -0
- package/src/examples/auto-stake-it.contract.d.ts.map +1 -0
- package/src/examples/auto-stake-it.flows.d.ts +24 -0
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -0
- package/src/examples/axelar-gmp-account-kit.d.ts +80 -0
- package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -0
- package/src/examples/axelar-gmp.contract.d.ts +52 -0
- package/src/examples/axelar-gmp.contract.d.ts.map +1 -0
- package/src/examples/axelar-gmp.flows.d.ts +21 -0
- package/src/examples/axelar-gmp.flows.d.ts.map +1 -0
- package/src/examples/basic-flows.contract.d.ts +32 -0
- package/src/examples/basic-flows.contract.d.ts.map +1 -0
- package/src/examples/basic-flows.flows.d.ts +20 -0
- package/src/examples/basic-flows.flows.d.ts.map +1 -0
- package/src/examples/send-anywhere.contract.d.ts +60 -0
- package/src/examples/send-anywhere.contract.d.ts.map +1 -0
- package/src/examples/send-anywhere.flows.d.ts +576 -0
- package/src/examples/send-anywhere.flows.d.ts.map +1 -0
- package/src/examples/shared.flows.d.ts +4 -0
- package/src/examples/shared.flows.d.ts.map +1 -0
- package/src/examples/stake-bld.contract.d.ts +237 -0
- package/src/examples/stake-bld.contract.d.ts.map +1 -0
- package/src/examples/stake-ica.contract.d.ts +573 -0
- package/src/examples/stake-ica.contract.d.ts.map +1 -0
- package/src/examples/staking-combinations.contract.d.ts +19 -0
- package/src/examples/staking-combinations.contract.d.ts.map +1 -0
- package/src/examples/staking-combinations.flows.d.ts +32 -0
- package/src/examples/staking-combinations.flows.d.ts.map +1 -0
- package/src/examples/swap-anything.contract.d.ts +55 -0
- package/src/examples/swap-anything.contract.d.ts.map +1 -0
- package/src/examples/swap-anything.flows.d.ts +32 -0
- package/src/examples/swap-anything.flows.d.ts.map +1 -0
- package/src/examples/swap.contract.d.ts +56 -0
- package/src/examples/swap.contract.d.ts.map +1 -0
- package/src/examples/swap.flows.d.ts +12 -0
- package/src/examples/swap.flows.d.ts.map +1 -0
- package/src/examples/unbond.contract.d.ts +21 -0
- package/src/examples/unbond.contract.d.ts.map +1 -0
- package/src/examples/unbond.flows.d.ts +6 -0
- package/src/examples/unbond.flows.d.ts.map +1 -0
- package/src/exos/chain-hub-admin.d.ts +27 -0
- package/src/exos/chain-hub-admin.d.ts.map +1 -0
- package/src/exos/chain-hub.d.ts +225 -0
- package/src/exos/chain-hub.d.ts.map +1 -0
- package/src/exos/combine-invitation-makers.d.ts +7 -0
- package/src/exos/combine-invitation-makers.d.ts.map +1 -0
- package/src/exos/cosmos-interchain-service.d.ts +49 -0
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -0
- package/src/exos/cosmos-orchestration-account.d.ts +950 -0
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -0
- package/src/exos/exo-interfaces.d.ts +27 -0
- package/src/exos/exo-interfaces.d.ts.map +1 -0
- package/src/exos/ibc-packet.d.ts +101 -0
- package/src/exos/ibc-packet.d.ts.map +1 -0
- package/src/exos/ica-account-kit.d.ts +98 -0
- package/src/exos/ica-account-kit.d.ts.map +1 -0
- package/src/exos/icq-connection-kit.d.ts +67 -0
- package/src/exos/icq-connection-kit.d.ts.map +1 -0
- package/src/exos/local-chain-facade.d.ts +1587 -0
- package/src/exos/local-chain-facade.d.ts.map +1 -0
- package/src/exos/local-orchestration-account.d.ts +405 -0
- package/src/exos/local-orchestration-account.d.ts.map +1 -0
- package/src/exos/orchestrator.d.ts +35857 -0
- package/src/exos/orchestrator.d.ts.map +1 -0
- package/src/exos/packet-tools.d.ts +63 -0
- package/src/exos/packet-tools.d.ts.map +1 -0
- package/src/exos/portfolio-holder-kit.d.ts +154 -0
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -0
- package/src/exos/remote-chain-facade.d.ts +1549 -0
- package/src/exos/remote-chain-facade.d.ts.map +1 -0
- package/src/facade.d.ts +33 -0
- package/src/facade.d.ts.map +1 -0
- package/src/fetched-chain-info.d.ts +10275 -0
- package/src/fetched-chain-info.d.ts.map +1 -0
- package/src/fixtures/query-flows.contract.d.ts +33 -0
- package/src/fixtures/query-flows.contract.d.ts.map +1 -0
- package/src/fixtures/query-flows.flows.d.ts +20 -0
- package/src/fixtures/query-flows.flows.d.ts.map +1 -0
- package/src/orchestration-api.d.ts +315 -0
- package/src/orchestration-api.d.ts.map +1 -0
- package/src/typeGuards.d.ts +163 -0
- package/src/typeGuards.d.ts.map +1 -0
- package/src/types.d.ts +25 -0
- package/src/types.d.ts.map +1 -0
- package/src/utils/abitype.d.ts +6 -0
- package/src/utils/abitype.d.ts.map +1 -0
- package/src/utils/address.d.ts +44 -0
- package/src/utils/address.d.ts.map +1 -0
- package/src/utils/agd-lib.d.ts +58 -0
- package/src/utils/agd-lib.d.ts.map +1 -0
- package/src/utils/amounts.d.ts +11 -0
- package/src/utils/amounts.d.ts.map +1 -0
- package/src/utils/asset.d.ts +6 -0
- package/src/utils/asset.d.ts.map +1 -0
- package/src/utils/axelar-static-config.d.ts +34 -0
- package/src/utils/axelar-static-config.d.ts.map +1 -0
- package/src/utils/chain-hub-helper.d.ts +14 -0
- package/src/utils/chain-hub-helper.d.ts.map +1 -0
- package/src/utils/chain-info.d.ts +5 -0
- package/src/utils/chain-info.d.ts.map +1 -0
- package/src/utils/codecs.d.ts +145 -0
- package/src/utils/codecs.d.ts.map +1 -0
- package/src/utils/cosmos.d.ts +61 -0
- package/src/utils/cosmos.d.ts.map +1 -0
- package/src/utils/denomHash.d.ts +7 -0
- package/src/utils/denomHash.d.ts.map +1 -0
- package/src/utils/exo-helpers.d.ts +156 -0
- package/src/utils/exo-helpers.d.ts.map +1 -0
- package/src/utils/gmp.d.ts +30 -0
- package/src/utils/gmp.d.ts.map +1 -0
- package/src/utils/orc.d.ts +17 -0
- package/src/utils/orc.d.ts.map +1 -0
- package/src/utils/orchestrationAccount.d.ts +91 -0
- package/src/utils/orchestrationAccount.d.ts.map +1 -0
- package/src/utils/packet.d.ts +57 -0
- package/src/utils/packet.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransfer.d.ts +221 -0
- package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
- package/src/utils/permit2.d.ts +11 -0
- package/src/utils/permit2.d.ts.map +1 -0
- package/src/utils/progress.d.ts +41 -0
- package/src/utils/progress.d.ts.map +1 -0
- package/src/utils/registry.d.ts +6 -0
- package/src/utils/registry.d.ts.map +1 -0
- package/src/utils/start-helper.d.ts +129 -0
- package/src/utils/start-helper.d.ts.map +1 -0
- package/src/utils/time.d.ts +38 -0
- package/src/utils/time.d.ts.map +1 -0
- package/src/utils/viem-utils/hashTypedData.d.ts +21 -0
- package/src/utils/viem-utils/hashTypedData.d.ts.map +1 -0
- package/src/utils/viem-utils/types.d.ts +6 -0
- package/src/utils/viem-utils/types.d.ts.map +1 -0
- package/src/utils/viem.d.ts +11 -0
- package/src/utils/viem.d.ts.map +1 -0
- package/src/utils/zcf-tools.d.ts +19 -0
- package/src/utils/zcf-tools.d.ts.map +1 -0
- package/src/utils/zoe-tools.d.ts +19 -0
- package/src/utils/zoe-tools.d.ts.map +1 -0
- package/src/vat-orchestration.d.ts +21 -0
- package/src/vat-orchestration.d.ts.map +1 -0
- package/tools/contract-tests.d.ts +1832 -0
- package/tools/contract-tests.d.ts.map +1 -0
- package/tools/ibc-mock-fixtures.d.ts +49 -0
- package/tools/ibc-mock-fixtures.d.ts.map +1 -0
- package/tools/ibc-mocks.d.ts +168 -0
- package/tools/ibc-mocks.d.ts.map +1 -0
- package/tools/make-test-address.d.ts +3 -0
- package/tools/make-test-address.d.ts.map +1 -0
- package/tools/network-fakes.d.ts +143 -0
- package/tools/network-fakes.d.ts.map +1 -0
- package/tools/protobuf-decoder.d.ts +19 -0
- package/tools/protobuf-decoder.d.ts.map +1 -0
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
3
|
+
* @import {ERemote, Remote} from '@agoric/internal';
|
|
4
|
+
* @import {CosmosChainInfo, CosmosInterchainService, Denom, DenomDetail} from '@agoric/orchestration';
|
|
5
|
+
* @import {ContractMeta, Invitation, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
6
|
+
* @import {IBCConnectionID} from '@agoric/network/ibc';
|
|
7
|
+
* @import {NameHub} from '@agoric/vats';
|
|
8
|
+
* @import {TimerService} from '@agoric/time';
|
|
9
|
+
* @import {ResolvedContinuingOfferResult} from '../utils/zoe-tools.js';
|
|
10
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
11
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
12
|
+
*/
|
|
13
|
+
/** @type {ContractMeta<typeof start>} */
|
|
14
|
+
export const meta: ContractMeta<typeof start>;
|
|
15
|
+
export const privateArgsShape: {
|
|
16
|
+
agoricNames: import("@endo/patterns").Pattern;
|
|
17
|
+
cosmosInterchainService: import("@endo/patterns").Pattern;
|
|
18
|
+
storageNode: import("@endo/patterns").Pattern;
|
|
19
|
+
marshaller: import("@endo/patterns").Pattern;
|
|
20
|
+
timer: import("@endo/patterns").Pattern;
|
|
21
|
+
} | undefined;
|
|
22
|
+
export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
23
|
+
agoricNames: Remote<NameHub>;
|
|
24
|
+
cosmosInterchainService: CosmosInterchainService;
|
|
25
|
+
storageNode: Remote<StorageNode>;
|
|
26
|
+
marshaller: Remote<Marshaller>;
|
|
27
|
+
timer: TimerService;
|
|
28
|
+
}, baggage: Baggage): Promise<{
|
|
29
|
+
publicFacet: import("@endo/exo").Guarded<{
|
|
30
|
+
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
31
|
+
makeProgressTracker(): import("@agoric/orchestration").ProgressTracker;
|
|
32
|
+
asContinuingOffer(): import("@agoric/vow").Vow<{
|
|
33
|
+
invitationMakers: {
|
|
34
|
+
[x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/pass-style").RemotableObject & {
|
|
35
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
36
|
+
} & {
|
|
37
|
+
readonly "Symbol(tag)": {
|
|
38
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
publicSubscribers: {
|
|
43
|
+
[x: string]: {
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
subscriber: {
|
|
46
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
47
|
+
value: any;
|
|
48
|
+
updateCount?: bigint | undefined | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
51
|
+
head: {
|
|
52
|
+
done: true;
|
|
53
|
+
value: any;
|
|
54
|
+
} | {
|
|
55
|
+
done?: false | undefined;
|
|
56
|
+
value: any;
|
|
57
|
+
};
|
|
58
|
+
publishCount: bigint;
|
|
59
|
+
tail: {
|
|
60
|
+
"Symbol(passStyle)": "tagged";
|
|
61
|
+
[Symbol.toStringTag]: "Vow";
|
|
62
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
65
|
+
} | {};
|
|
66
|
+
storagePath: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
71
|
+
[x: string]: {
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
subscriber: {
|
|
74
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
75
|
+
value: {};
|
|
76
|
+
updateCount?: bigint | undefined | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
79
|
+
head: {
|
|
80
|
+
done: true;
|
|
81
|
+
value: any;
|
|
82
|
+
} | {
|
|
83
|
+
done?: false | undefined;
|
|
84
|
+
value: {};
|
|
85
|
+
};
|
|
86
|
+
publishCount: bigint;
|
|
87
|
+
tail: {
|
|
88
|
+
"Symbol(passStyle)": "tagged";
|
|
89
|
+
[Symbol.toStringTag]: "Vow";
|
|
90
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
} | {};
|
|
94
|
+
storagePath: string;
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
97
|
+
getAddress(): {
|
|
98
|
+
chainId: string;
|
|
99
|
+
value: import("@agoric/orchestration").Bech32Address;
|
|
100
|
+
encoding: "bech32";
|
|
101
|
+
};
|
|
102
|
+
delegate(validator: import("@agoric/orchestration").CosmosValidatorAddress, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
103
|
+
redelegate(srcValidator: import("@agoric/orchestration").CosmosValidatorAddress, dstValidator: import("@agoric/orchestration").CosmosValidatorAddress, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
104
|
+
withdrawReward(validator: import("@agoric/orchestration").CosmosValidatorAddress, opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{
|
|
105
|
+
denom: Denom;
|
|
106
|
+
value: bigint;
|
|
107
|
+
}[]>;
|
|
108
|
+
getBalance(denom: import("@agoric/orchestration").DenomArg, opts?: import("@agoric/orchestration").QuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
109
|
+
denom: Denom;
|
|
110
|
+
value: bigint;
|
|
111
|
+
}>;
|
|
112
|
+
getBalances(opts?: import("@agoric/orchestration").QuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
113
|
+
denom: Denom;
|
|
114
|
+
value: bigint;
|
|
115
|
+
}[]>;
|
|
116
|
+
send(toAccount: import("@agoric/orchestration").AccountIdArg, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
117
|
+
sendAll(toAccount: import("@agoric/orchestration").CosmosChainAddress, amounts: import("@agoric/orchestration").AmountArg[], opts?: import("@agoric/orchestration").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
118
|
+
transfer(destination: import("@agoric/orchestration").AccountIdArg, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
119
|
+
transferSteps(amount: import("@agoric/orchestration").AmountArg, msg: import("@agoric/orchestration").TransferMsg): import("@agoric/vow").Vow<{}>;
|
|
120
|
+
withdrawRewards(opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{
|
|
121
|
+
denom: Denom;
|
|
122
|
+
value: bigint;
|
|
123
|
+
}[]>;
|
|
124
|
+
undelegate(delegations: {
|
|
125
|
+
amount: import("@agoric/orchestration").AmountArg;
|
|
126
|
+
delegator?: import("@agoric/orchestration").CosmosChainAddress;
|
|
127
|
+
validator: import("@agoric/orchestration").CosmosValidatorAddress;
|
|
128
|
+
}[], opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
129
|
+
deactivate(): import("@agoric/vow").Vow<void>;
|
|
130
|
+
reactivate(): import("@agoric/vow").Vow<void>;
|
|
131
|
+
getDelegation(validator: import("@agoric/orchestration").CosmosValidatorAddress, opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
132
|
+
delegator: {
|
|
133
|
+
chainId: string;
|
|
134
|
+
value: import("@agoric/orchestration").Bech32Address;
|
|
135
|
+
encoding: "bech32";
|
|
136
|
+
};
|
|
137
|
+
validator: {
|
|
138
|
+
chainId: string;
|
|
139
|
+
value: {
|
|
140
|
+
readonly [x: number]: string;
|
|
141
|
+
toString: () => string;
|
|
142
|
+
charAt: (pos: number) => string;
|
|
143
|
+
charCodeAt: (index: number) => number;
|
|
144
|
+
concat: (...strings: string[]) => string;
|
|
145
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
146
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
147
|
+
localeCompare: {
|
|
148
|
+
(that: string): number;
|
|
149
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
150
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
151
|
+
};
|
|
152
|
+
match: {
|
|
153
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
154
|
+
(matcher: {
|
|
155
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
156
|
+
}): RegExpMatchArray | null;
|
|
157
|
+
};
|
|
158
|
+
replace: {
|
|
159
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
160
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
161
|
+
(searchValue: {
|
|
162
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
163
|
+
}, replaceValue: string): string;
|
|
164
|
+
(searchValue: {
|
|
165
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
166
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
167
|
+
};
|
|
168
|
+
search: {
|
|
169
|
+
(regexp: string | RegExp): number;
|
|
170
|
+
(searcher: {
|
|
171
|
+
[Symbol.search](string: string): number;
|
|
172
|
+
}): number;
|
|
173
|
+
};
|
|
174
|
+
slice: (start?: number, end?: number) => string;
|
|
175
|
+
split: {
|
|
176
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
177
|
+
(splitter: {
|
|
178
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
179
|
+
}, limit?: number): string[];
|
|
180
|
+
};
|
|
181
|
+
substring: (start: number, end?: number) => string;
|
|
182
|
+
toLowerCase: () => string;
|
|
183
|
+
toLocaleLowerCase: {
|
|
184
|
+
(locales?: string | string[]): string;
|
|
185
|
+
(locales?: Intl.LocalesArgument): string;
|
|
186
|
+
};
|
|
187
|
+
toUpperCase: () => string;
|
|
188
|
+
toLocaleUpperCase: {
|
|
189
|
+
(locales?: string | string[]): string;
|
|
190
|
+
(locales?: Intl.LocalesArgument): string;
|
|
191
|
+
};
|
|
192
|
+
trim: () => string;
|
|
193
|
+
readonly length: number;
|
|
194
|
+
substr: (from: number, length?: number) => string;
|
|
195
|
+
valueOf: () => string;
|
|
196
|
+
codePointAt: (pos: number) => number | undefined;
|
|
197
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
198
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
199
|
+
normalize: {
|
|
200
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
201
|
+
(form?: string): string;
|
|
202
|
+
};
|
|
203
|
+
repeat: (count: number) => string;
|
|
204
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
205
|
+
anchor: (name: string) => string;
|
|
206
|
+
big: () => string;
|
|
207
|
+
blink: () => string;
|
|
208
|
+
bold: () => string;
|
|
209
|
+
fixed: () => string;
|
|
210
|
+
fontcolor: (color: string) => string;
|
|
211
|
+
fontsize: {
|
|
212
|
+
(size: number): string;
|
|
213
|
+
(size: string): string;
|
|
214
|
+
};
|
|
215
|
+
italics: () => string;
|
|
216
|
+
link: (url: string) => string;
|
|
217
|
+
small: () => string;
|
|
218
|
+
strike: () => string;
|
|
219
|
+
sub: () => string;
|
|
220
|
+
sup: () => string;
|
|
221
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
222
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
223
|
+
trimEnd: () => string;
|
|
224
|
+
trimStart: () => string;
|
|
225
|
+
trimLeft: () => string;
|
|
226
|
+
trimRight: () => string;
|
|
227
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
228
|
+
replaceAll: {
|
|
229
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
230
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
231
|
+
};
|
|
232
|
+
at: (index: number) => string | undefined;
|
|
233
|
+
isWellFormed: () => boolean;
|
|
234
|
+
toWellFormed: () => string;
|
|
235
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
236
|
+
};
|
|
237
|
+
encoding: "bech32";
|
|
238
|
+
};
|
|
239
|
+
amount: {
|
|
240
|
+
denom: Denom;
|
|
241
|
+
value: bigint;
|
|
242
|
+
};
|
|
243
|
+
}>;
|
|
244
|
+
getDelegations(opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
245
|
+
delegator: {
|
|
246
|
+
chainId: string;
|
|
247
|
+
value: import("@agoric/orchestration").Bech32Address;
|
|
248
|
+
encoding: "bech32";
|
|
249
|
+
};
|
|
250
|
+
validator: {
|
|
251
|
+
chainId: string;
|
|
252
|
+
value: {
|
|
253
|
+
readonly [x: number]: string;
|
|
254
|
+
toString: () => string;
|
|
255
|
+
charAt: (pos: number) => string;
|
|
256
|
+
charCodeAt: (index: number) => number;
|
|
257
|
+
concat: (...strings: string[]) => string;
|
|
258
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
259
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
260
|
+
localeCompare: {
|
|
261
|
+
(that: string): number;
|
|
262
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
263
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
264
|
+
};
|
|
265
|
+
match: {
|
|
266
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
267
|
+
(matcher: {
|
|
268
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
269
|
+
}): RegExpMatchArray | null;
|
|
270
|
+
};
|
|
271
|
+
replace: {
|
|
272
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
273
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
274
|
+
(searchValue: {
|
|
275
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
276
|
+
}, replaceValue: string): string;
|
|
277
|
+
(searchValue: {
|
|
278
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
279
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
280
|
+
};
|
|
281
|
+
search: {
|
|
282
|
+
(regexp: string | RegExp): number;
|
|
283
|
+
(searcher: {
|
|
284
|
+
[Symbol.search](string: string): number;
|
|
285
|
+
}): number;
|
|
286
|
+
};
|
|
287
|
+
slice: (start?: number, end?: number) => string;
|
|
288
|
+
split: {
|
|
289
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
290
|
+
(splitter: {
|
|
291
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
292
|
+
}, limit?: number): string[];
|
|
293
|
+
};
|
|
294
|
+
substring: (start: number, end?: number) => string;
|
|
295
|
+
toLowerCase: () => string;
|
|
296
|
+
toLocaleLowerCase: {
|
|
297
|
+
(locales?: string | string[]): string;
|
|
298
|
+
(locales?: Intl.LocalesArgument): string;
|
|
299
|
+
};
|
|
300
|
+
toUpperCase: () => string;
|
|
301
|
+
toLocaleUpperCase: {
|
|
302
|
+
(locales?: string | string[]): string;
|
|
303
|
+
(locales?: Intl.LocalesArgument): string;
|
|
304
|
+
};
|
|
305
|
+
trim: () => string;
|
|
306
|
+
readonly length: number;
|
|
307
|
+
substr: (from: number, length?: number) => string;
|
|
308
|
+
valueOf: () => string;
|
|
309
|
+
codePointAt: (pos: number) => number | undefined;
|
|
310
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
311
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
312
|
+
normalize: {
|
|
313
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
314
|
+
(form?: string): string;
|
|
315
|
+
};
|
|
316
|
+
repeat: (count: number) => string;
|
|
317
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
318
|
+
anchor: (name: string) => string;
|
|
319
|
+
big: () => string;
|
|
320
|
+
blink: () => string;
|
|
321
|
+
bold: () => string;
|
|
322
|
+
fixed: () => string;
|
|
323
|
+
fontcolor: (color: string) => string;
|
|
324
|
+
fontsize: {
|
|
325
|
+
(size: number): string;
|
|
326
|
+
(size: string): string;
|
|
327
|
+
};
|
|
328
|
+
italics: () => string;
|
|
329
|
+
link: (url: string) => string;
|
|
330
|
+
small: () => string;
|
|
331
|
+
strike: () => string;
|
|
332
|
+
sub: () => string;
|
|
333
|
+
sup: () => string;
|
|
334
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
335
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
336
|
+
trimEnd: () => string;
|
|
337
|
+
trimStart: () => string;
|
|
338
|
+
trimLeft: () => string;
|
|
339
|
+
trimRight: () => string;
|
|
340
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
341
|
+
replaceAll: {
|
|
342
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
343
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
344
|
+
};
|
|
345
|
+
at: (index: number) => string | undefined;
|
|
346
|
+
isWellFormed: () => boolean;
|
|
347
|
+
toWellFormed: () => string;
|
|
348
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
349
|
+
};
|
|
350
|
+
encoding: "bech32";
|
|
351
|
+
};
|
|
352
|
+
amount: {
|
|
353
|
+
denom: Denom;
|
|
354
|
+
value: bigint;
|
|
355
|
+
};
|
|
356
|
+
}[]>;
|
|
357
|
+
getUnbondingDelegation(validator: import("@agoric/orchestration").CosmosValidatorAddress, opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
358
|
+
delegatorAddress: string;
|
|
359
|
+
validatorAddress: string;
|
|
360
|
+
entries: {
|
|
361
|
+
creationHeight: bigint;
|
|
362
|
+
completionTime: {
|
|
363
|
+
seconds: bigint;
|
|
364
|
+
nanos: number;
|
|
365
|
+
};
|
|
366
|
+
initialBalance: string;
|
|
367
|
+
balance: string;
|
|
368
|
+
unbondingId: bigint;
|
|
369
|
+
unbondingOnHoldRefCount: bigint;
|
|
370
|
+
}[];
|
|
371
|
+
}>;
|
|
372
|
+
getUnbondingDelegations(opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
373
|
+
delegatorAddress: string;
|
|
374
|
+
validatorAddress: string;
|
|
375
|
+
entries: {
|
|
376
|
+
creationHeight: bigint;
|
|
377
|
+
completionTime: {
|
|
378
|
+
seconds: bigint;
|
|
379
|
+
nanos: number;
|
|
380
|
+
};
|
|
381
|
+
initialBalance: string;
|
|
382
|
+
balance: string;
|
|
383
|
+
unbondingId: bigint;
|
|
384
|
+
unbondingOnHoldRefCount: bigint;
|
|
385
|
+
}[];
|
|
386
|
+
}[]>;
|
|
387
|
+
getRedelegations(opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
388
|
+
redelegation: {
|
|
389
|
+
delegatorAddress: string;
|
|
390
|
+
validatorSrcAddress: string;
|
|
391
|
+
validatorDstAddress: string;
|
|
392
|
+
entries: {
|
|
393
|
+
creationHeight: bigint;
|
|
394
|
+
completionTime: {
|
|
395
|
+
seconds: bigint;
|
|
396
|
+
nanos: number;
|
|
397
|
+
};
|
|
398
|
+
initialBalance: string;
|
|
399
|
+
sharesDst: string;
|
|
400
|
+
unbondingId: bigint;
|
|
401
|
+
unbondingOnHoldRefCount: bigint;
|
|
402
|
+
}[];
|
|
403
|
+
};
|
|
404
|
+
entries: {
|
|
405
|
+
redelegationEntry: {
|
|
406
|
+
creationHeight: bigint;
|
|
407
|
+
completionTime: {
|
|
408
|
+
seconds: bigint;
|
|
409
|
+
nanos: number;
|
|
410
|
+
};
|
|
411
|
+
initialBalance: string;
|
|
412
|
+
sharesDst: string;
|
|
413
|
+
unbondingId: bigint;
|
|
414
|
+
unbondingOnHoldRefCount: bigint;
|
|
415
|
+
};
|
|
416
|
+
balance: string;
|
|
417
|
+
}[];
|
|
418
|
+
}[]>;
|
|
419
|
+
getReward(validator: import("@agoric/orchestration").CosmosValidatorAddress, opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
420
|
+
denom: Denom;
|
|
421
|
+
value: bigint;
|
|
422
|
+
}[]>;
|
|
423
|
+
getRewards(opts?: import("@agoric/orchestration").CosmosQuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
424
|
+
rewards: {
|
|
425
|
+
validator: {
|
|
426
|
+
chainId: string;
|
|
427
|
+
value: {
|
|
428
|
+
readonly [x: number]: string;
|
|
429
|
+
toString: () => string;
|
|
430
|
+
charAt: (pos: number) => string;
|
|
431
|
+
charCodeAt: (index: number) => number;
|
|
432
|
+
concat: (...strings: string[]) => string;
|
|
433
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
434
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
435
|
+
localeCompare: {
|
|
436
|
+
(that: string): number;
|
|
437
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
438
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
439
|
+
};
|
|
440
|
+
match: {
|
|
441
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
442
|
+
(matcher: {
|
|
443
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
444
|
+
}): RegExpMatchArray | null;
|
|
445
|
+
};
|
|
446
|
+
replace: {
|
|
447
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
448
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
449
|
+
(searchValue: {
|
|
450
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
451
|
+
}, replaceValue: string): string;
|
|
452
|
+
(searchValue: {
|
|
453
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
454
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
455
|
+
};
|
|
456
|
+
search: {
|
|
457
|
+
(regexp: string | RegExp): number;
|
|
458
|
+
(searcher: {
|
|
459
|
+
[Symbol.search](string: string): number;
|
|
460
|
+
}): number;
|
|
461
|
+
};
|
|
462
|
+
slice: (start?: number, end?: number) => string;
|
|
463
|
+
split: {
|
|
464
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
465
|
+
(splitter: {
|
|
466
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
467
|
+
}, limit?: number): string[];
|
|
468
|
+
};
|
|
469
|
+
substring: (start: number, end?: number) => string;
|
|
470
|
+
toLowerCase: () => string;
|
|
471
|
+
toLocaleLowerCase: {
|
|
472
|
+
(locales?: string | string[]): string;
|
|
473
|
+
(locales?: Intl.LocalesArgument): string;
|
|
474
|
+
};
|
|
475
|
+
toUpperCase: () => string;
|
|
476
|
+
toLocaleUpperCase: {
|
|
477
|
+
(locales?: string | string[]): string;
|
|
478
|
+
(locales?: Intl.LocalesArgument): string;
|
|
479
|
+
};
|
|
480
|
+
trim: () => string;
|
|
481
|
+
readonly length: number;
|
|
482
|
+
substr: (from: number, length?: number) => string;
|
|
483
|
+
valueOf: () => string;
|
|
484
|
+
codePointAt: (pos: number) => number | undefined;
|
|
485
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
486
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
487
|
+
normalize: {
|
|
488
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
489
|
+
(form?: string): string;
|
|
490
|
+
};
|
|
491
|
+
repeat: (count: number) => string;
|
|
492
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
493
|
+
anchor: (name: string) => string;
|
|
494
|
+
big: () => string;
|
|
495
|
+
blink: () => string;
|
|
496
|
+
bold: () => string;
|
|
497
|
+
fixed: () => string;
|
|
498
|
+
fontcolor: (color: string) => string;
|
|
499
|
+
fontsize: {
|
|
500
|
+
(size: number): string;
|
|
501
|
+
(size: string): string;
|
|
502
|
+
};
|
|
503
|
+
italics: () => string;
|
|
504
|
+
link: (url: string) => string;
|
|
505
|
+
small: () => string;
|
|
506
|
+
strike: () => string;
|
|
507
|
+
sub: () => string;
|
|
508
|
+
sup: () => string;
|
|
509
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
510
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
511
|
+
trimEnd: () => string;
|
|
512
|
+
trimStart: () => string;
|
|
513
|
+
trimLeft: () => string;
|
|
514
|
+
trimRight: () => string;
|
|
515
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
516
|
+
replaceAll: {
|
|
517
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
518
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
519
|
+
};
|
|
520
|
+
at: (index: number) => string | undefined;
|
|
521
|
+
isWellFormed: () => boolean;
|
|
522
|
+
toWellFormed: () => string;
|
|
523
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
524
|
+
};
|
|
525
|
+
encoding: "bech32";
|
|
526
|
+
};
|
|
527
|
+
reward: {
|
|
528
|
+
denom: Denom;
|
|
529
|
+
value: bigint;
|
|
530
|
+
}[];
|
|
531
|
+
}[];
|
|
532
|
+
total: {
|
|
533
|
+
denom: Denom;
|
|
534
|
+
value: bigint;
|
|
535
|
+
}[];
|
|
536
|
+
}>;
|
|
537
|
+
executeEncodedTx(msgs: readonly {
|
|
538
|
+
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
539
|
+
typeUrl: string;
|
|
540
|
+
value: string;
|
|
541
|
+
}[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & Omit<import("@agoric/orchestration").CosmosActionOptions, "txOpts">) | undefined): import("@agoric/vow").Vow<string>;
|
|
542
|
+
executeTxProto3Undecoded(msgs: readonly {
|
|
543
|
+
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
544
|
+
typeUrl: string;
|
|
545
|
+
value: string;
|
|
546
|
+
}[], opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<string>;
|
|
547
|
+
executeTxProto3<TUS extends readonly (keyof import("@agoric/cosmic-proto").TypeFromUrl | unknown)[]>(msgs: { readonly [K in keyof TUS]: import("@agoric/cosmic-proto").AnyJson<TUS[K]>; }, opts?: import("@agoric/orchestration").CosmosActionOptions): import("@agoric/vow").Vow<{ [K in keyof TUS]: import("@agoric/cosmic-proto").MessageBody<import("@agoric/cosmic-proto").ResponseTypeUrl<TUS[K]>>; }>;
|
|
548
|
+
depositForBurn(mintRecipient: `${string}:${string}:${string}`, amount: import("@agoric/orchestration").AmountArg, caller?: `${string}:${string}:${string}` | undefined, opts?: import("@agoric/orchestration").CosmosActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
549
|
+
}>>;
|
|
550
|
+
makeAccountInvitationMaker(): Promise<Invitation<ResolvedContinuingOfferResult, undefined>>;
|
|
551
|
+
}>;
|
|
552
|
+
}>;
|
|
553
|
+
export type StakeIcaTerms = {
|
|
554
|
+
chainId: string;
|
|
555
|
+
hostConnectionId: IBCConnectionID;
|
|
556
|
+
controllerConnectionId: IBCConnectionID;
|
|
557
|
+
icqEnabled: boolean;
|
|
558
|
+
};
|
|
559
|
+
export type StakeIcaSF = typeof start;
|
|
560
|
+
import type { ContractMeta } from '@agoric/zoe';
|
|
561
|
+
import type { ZCF } from '@agoric/zoe';
|
|
562
|
+
import type { NameHub } from '@agoric/vats';
|
|
563
|
+
import type { Remote } from '@agoric/internal';
|
|
564
|
+
import type { CosmosInterchainService } from '@agoric/orchestration';
|
|
565
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
566
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
567
|
+
import type { TimerService } from '@agoric/time';
|
|
568
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
569
|
+
import type { Denom } from '@agoric/orchestration';
|
|
570
|
+
import type { ResolvedContinuingOfferResult } from '../utils/zoe-tools.js';
|
|
571
|
+
import type { Invitation } from '@agoric/zoe';
|
|
572
|
+
import type { IBCConnectionID } from '@agoric/network/ibc';
|
|
573
|
+
//# sourceMappingURL=stake-ica.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stake-ica.contract.d.ts","sourceRoot":"","sources":["stake-ica.contract.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAelC;AAEH;;;;;;cAAsD;AAuB/C,2BAVI,IAAI,aAAa,CAAC,eAClB;IACN,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,KAAK,EAAE,YAAY,CAAC;CACrB,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHA+H+3gD,QAAsB;;;;;GAJt6gD;4BA5IY;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,eAAe,CAAC;IAClC,sBAAsB,EAAE,eAAe,CAAC;IACxC,UAAU,EAAE,OAAO,CAAC;CACrB;yBA0IU,OAAO,KAAK;kCA7K+B,aAAa;yBAAb,aAAa;6BAE5C,cAAc;4BAJN,kBAAkB;6CAC2B,uBAAuB;iCAMxE,0CAA0C;gCAC3C,0CAA0C;kCAHxC,cAAc;6BANnB,kBAAkB;2BAEmC,uBAAuB;mDAKtD,uBAAuB;gCAJd,aAAa;qCACpC,qBAAqB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
|
|
2
|
+
marshaller: Remote<Marshaller>;
|
|
3
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
4
|
+
publicFacet: import("@endo/exo").Guarded<{
|
|
5
|
+
makeAccount(): Promise<Invitation<import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>, {
|
|
6
|
+
chainName: string;
|
|
7
|
+
}>>;
|
|
8
|
+
}>;
|
|
9
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
10
|
+
registerChain(chainName: string, chainInfo: import("../orchestration-api.js").ChainInfo, ibcConnectionInfo?: import("../types.js").IBCConnectionInfo): Promise<void>;
|
|
11
|
+
registerAsset(denom: import("../orchestration-api.js").Denom, detail: import("../types.js").DenomDetail): Promise<void>;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
import type { ZCF } from '@agoric/zoe';
|
|
15
|
+
import type { OrchestrationPowers } from '../utils/start-helper.js';
|
|
16
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
17
|
+
import type { Remote } from '@agoric/internal';
|
|
18
|
+
import type { Invitation } from '@agoric/zoe';
|
|
19
|
+
//# sourceMappingURL=staking-combinations.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"AAoKA;gBA5HiB,OAAO,UAAU,CAAC;;;;;;;;;;;GA4H4C;yBAhJtB,aAAa;yCAEZ,0BAA0B;gCAGvD,0CAA0C;4BAP9C,kBAAkB;gCAEc,aAAa"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function makeAccount(orch: Orchestrator, ctx: {
|
|
2
|
+
makeCombineInvitationMakers: MakeCombineInvitationMakers;
|
|
3
|
+
makeExtraInvitationMaker: (account: any) => InvitationMakers;
|
|
4
|
+
}, _seat: ZCFSeat, { chainName }: {
|
|
5
|
+
chainName: string;
|
|
6
|
+
}): Promise<ResolvedContinuingOfferResult>;
|
|
7
|
+
export function depositAndDelegate(_orch: Orchestrator, { chainHub, sharedLocalAccountP, zoeTools }: {
|
|
8
|
+
chainHub: GuestInterface<ChainHub>;
|
|
9
|
+
sharedLocalAccountP: Promise<GuestInterface<LocalOrchestrationAccountKit["holder"]>>;
|
|
10
|
+
zoeTools: GuestInterface<ZoeTools>;
|
|
11
|
+
}, account: GuestInterface<CosmosOrchestrationAccount>, seat: ZCFSeat, validator: CosmosValidatorAddress): Promise<void>;
|
|
12
|
+
export function undelegateAndTransfer(_orch: Orchestrator, _ctx: object, account: GuestInterface<CosmosOrchestrationAccount>, { delegations, destination }: {
|
|
13
|
+
delegations: {
|
|
14
|
+
amount: AmountArg;
|
|
15
|
+
validator: CosmosValidatorAddress;
|
|
16
|
+
}[];
|
|
17
|
+
destination: CosmosChainAddress;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
import type { Orchestrator } from '../types.js';
|
|
20
|
+
import type { MakeCombineInvitationMakers } from '../exos/combine-invitation-makers.js';
|
|
21
|
+
import type { InvitationMakers } from '@agoric/smart-wallet/src/types.js';
|
|
22
|
+
import type { ZCFSeat } from '@agoric/zoe';
|
|
23
|
+
import type { ResolvedContinuingOfferResult } from '../utils/zoe-tools.js';
|
|
24
|
+
import type { ChainHub } from '../types.js';
|
|
25
|
+
import type { GuestInterface } from '@agoric/async-flow';
|
|
26
|
+
import type { LocalOrchestrationAccountKit } from '../exos/local-orchestration-account.js';
|
|
27
|
+
import type { ZoeTools } from '../utils/zoe-tools.js';
|
|
28
|
+
import type { CosmosOrchestrationAccount } from '../exos/cosmos-orchestration-account.js';
|
|
29
|
+
import type { CosmosValidatorAddress } from '../types.js';
|
|
30
|
+
import type { AmountArg } from '../types.js';
|
|
31
|
+
import type { CosmosChainAddress } from '../types.js';
|
|
32
|
+
//# sourceMappingURL=staking-combinations.flows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staking-combinations.flows.d.ts","sourceRoot":"","sources":["staking-combinations.flows.js"],"names":[],"mappings":"AA6BO,kCATI,YAAY,OACZ;IACN,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,wBAAwB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,gBAAgB,CAAC;CAC9D,SACO,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GACnB,OAAO,CAAC,6BAA6B,CAAC,CAiBlD;AAeM,0CAVI,YAAY,+CAEpB;IAAsC,QAAQ,EAAtC,eAAe,QAAQ,CAAC;IAC6C,mBAAmB,EAAxF,OAAO,CAAC,eAAe,4BAA4B,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjC,QAAQ,EAAtC,eAAe,QAAQ,CAAC;CAChC,WAAQ,eAAe,0BAA0B,CAAC,QAC1C,OAAO,aACP,sBAAsB,GACpB,OAAO,CAAC,IAAI,CAAC,CAoCzB;AAcM,6CATI,YAAY,QACZ,MAAM,WACN,eAAe,0BAA0B,CAAC,gCAC1C;IACN,WAAW,EAAE;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,SAAS,EAAE,sBAAsB,CAAA;KAAE,EAAE,CAAC;IACxE,WAAW,EAAE,kBAAkB,CAAC;CACjC,GACS,OAAO,CAAC,IAAI,CAAC,CAYzB;kCAnHmK,aAAa;iDAGnI,sCAAsC;sCAF1B,mCAAmC;6BAKnE,aAAa;mDADmB,uBAAuB;8BALmF,aAAa;oCADhJ,oBAAoB;kDAGN,wCAAwC;8BAG7B,uBAAuB;gDADpC,yCAAyC;4CAJ8E,aAAa;+BAAb,aAAa;wCAAb,aAAa"}
|