@agoric/orchestration 0.2.0-upgrade-17-dev-a1453b2.0 → 0.2.0-upgrade-18-dev-bf39b10.0
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 +1 -1
- package/index.js +2 -1
- package/package.json +29 -28
- package/src/chain-info.d.ts +31 -387
- package/src/chain-info.d.ts.map +1 -1
- package/src/chain-info.js +10 -64
- package/src/cosmos-api.d.ts +21 -10
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +33 -14
- package/src/examples/README.md +3 -4
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
- package/src/examples/auto-stake-it-tap-kit.js +4 -7
- package/src/examples/auto-stake-it.contract.d.ts +1 -1
- package/src/examples/auto-stake-it.flows.d.ts +1 -1
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.d.ts +1 -1
- package/src/examples/basic-flows.flows.d.ts +1 -1
- package/src/examples/send-anywhere.contract.d.ts +20 -2
- package/src/examples/send-anywhere.contract.d.ts.map +1 -1
- package/src/examples/send-anywhere.contract.js +34 -18
- package/src/examples/send-anywhere.flows.d.ts +7 -7
- package/src/examples/send-anywhere.flows.d.ts.map +1 -1
- package/src/examples/send-anywhere.flows.js +40 -20
- package/src/examples/shared.flows.d.ts +4 -0
- package/src/examples/shared.flows.d.ts.map +1 -0
- package/src/examples/shared.flows.js +21 -0
- package/src/examples/stake-bld.contract.d.ts +49 -0
- package/src/examples/stake-bld.contract.d.ts.map +1 -0
- package/src/examples/{stakeBld.contract.js → stake-bld.contract.js} +10 -1
- package/src/examples/stake-ica.contract.d.ts +126 -0
- package/src/examples/stake-ica.contract.d.ts.map +1 -0
- package/src/examples/{stakeIca.contract.js → stake-ica.contract.js} +6 -2
- package/src/examples/staking-combinations.contract.d.ts +1 -1
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +16 -13
- package/src/examples/staking-combinations.flows.d.ts +6 -9
- package/src/examples/staking-combinations.flows.d.ts.map +1 -1
- package/src/examples/staking-combinations.flows.js +19 -16
- package/src/examples/swap.contract.d.ts.map +1 -1
- package/src/examples/swap.contract.js +0 -1
- package/src/examples/unbond.contract.d.ts +1 -1
- package/src/examples/unbond.contract.d.ts.map +1 -1
- package/src/examples/unbond.contract.js +10 -5
- package/src/examples/unbond.flows.d.ts +4 -3
- package/src/examples/unbond.flows.d.ts.map +1 -1
- package/src/examples/unbond.flows.js +23 -31
- package/src/exos/chain-hub.d.ts +12 -4
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +28 -19
- package/src/exos/combine-invitation-makers.d.ts +1 -0
- package/src/exos/combine-invitation-makers.d.ts.map +1 -1
- package/src/exos/combine-invitation-makers.js +6 -0
- package/src/exos/cosmos-interchain-service.d.ts +20 -70
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +152 -47
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +355 -13
- package/src/exos/exo-interfaces.d.ts +3 -3
- package/src/exos/exo-interfaces.d.ts.map +1 -1
- package/src/exos/exo-interfaces.ts +3 -3
- package/src/exos/ica-account-kit.d.ts +2 -2
- package/src/exos/ica-account-kit.d.ts.map +1 -1
- package/src/exos/icq-connection-kit.d.ts +17 -1
- package/src/exos/icq-connection-kit.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +22 -170
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.d.ts +41 -48
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +94 -13
- package/src/exos/orchestrator.d.ts +44 -136
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +42 -44
- package/src/exos/packet-tools.d.ts +21 -81
- package/src/exos/packet-tools.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.d.ts +4 -4
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.js +65 -10
- package/src/exos/remote-chain-facade.d.ts +35 -128
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +7 -0
- package/src/fetched-chain-info.d.ts +30 -340
- package/src/fetched-chain-info.js +18 -329
- package/src/fixtures/query-flows.flows.d.ts.map +1 -1
- package/src/orchestration-api.d.ts +4 -8
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +3 -8
- package/src/proposals/init-chain-info.js +3 -3
- package/src/proposals/orchestration-proposal.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.d.ts +78 -16
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.js +9 -4
- package/src/proposals/start-stakeBld.d.ts +13 -39
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.js +2 -2
- package/src/proposals/start-stakeOsmo.d.ts +77 -15
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.js +9 -4
- package/src/typeGuards.d.ts +5 -1
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +21 -9
- package/src/types-index.d.ts +1 -0
- package/src/types-index.js +1 -0
- package/src/types.d.ts +14 -4
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +15 -4
- package/src/utils/cosmos.d.ts +40 -1
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/cosmos.js +48 -1
- package/src/utils/orchestrationAccount.js +1 -1
- package/src/utils/registry.d.ts.map +1 -1
- package/src/utils/registry.js +0 -3
- package/src/utils/start-helper.d.ts +4 -10
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +18 -15
- package/src/utils/zcf-tools.d.ts +5 -0
- package/src/utils/zcf-tools.d.ts.map +1 -0
- package/src/utils/zcf-tools.js +35 -0
- package/src/utils/zoe-tools.d.ts +5 -8
- package/src/utils/zoe-tools.d.ts.map +1 -1
- package/src/utils/zoe-tools.js +136 -33
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +0 -75
- package/src/examples/stakeBld.contract.d.ts.map +0 -1
- package/src/examples/stakeIca.contract.d.ts +0 -64
- package/src/examples/stakeIca.contract.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-flows.flows.d.ts","sourceRoot":"","sources":["query-flows.flows.js"],"names":[],"mappings":"AA0BO,mCALI,YAAY,QACZ,GAAG,QACH,OAAO,uBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,mBActE;AAeM,oDALI,YAAY,QACZ,GAAG,QACH,OAAO,wBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,mBAgBhD;AAeM,qDALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,mBAgB/B;AAiBM,qCAPI,YAAY,QACZ,GAAG,QACH,OAAO,YACP;
|
|
1
|
+
{"version":3,"file":"query-flows.flows.d.ts","sourceRoot":"","sources":["query-flows.flows.js"],"names":[],"mappings":"AA0BO,mCALI,YAAY,QACZ,GAAG,QACH,OAAO,uBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,mBActE;AAeM,oDALI,YAAY,QACZ,GAAG,QACH,OAAO,wBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,mBAgBhD;AAeM,qDALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,mBAgB/B;AAiBM,qCAPI,YAAY,QACZ,GAAG,QACH,OAAO,YACP;IACN,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,mBASH;kCA9GqG,uBAAuB;sCAAvB,uBAAuB;8BAAvB,uBAAuB;iCAC/F,gCAAgC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Amount, Brand, NatAmount } from '@agoric/ertp/src/types.js';
|
|
7
7
|
import type { Timestamp } from '@agoric/time';
|
|
8
|
-
import type {
|
|
8
|
+
import type { QueryManyFn } from '@agoric/vats/src/localchain.js';
|
|
9
9
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
10
10
|
import type { Passable } from '@endo/marshal';
|
|
11
11
|
import type { AgoricChainMethods, ChainInfo, CosmosChainAccountMethods, CosmosChainInfo, IBCMsgTransferOptions, KnownChains, LocalAccountMethods, ICQQueryFunction } from './types.js';
|
|
@@ -61,8 +61,8 @@ export type OrchestrationAccount<CI extends ChainInfo> = OrchestrationAccountI &
|
|
|
61
61
|
export interface Chain<CI extends ChainInfo> {
|
|
62
62
|
getChainInfo: () => Promise<CI>;
|
|
63
63
|
/**
|
|
64
|
-
* Creates a new
|
|
65
|
-
* @returns an object that controls
|
|
64
|
+
* Creates a new Orchestration Account on the current Chain.
|
|
65
|
+
* @returns an object that controls the account
|
|
66
66
|
*/
|
|
67
67
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
68
68
|
query: CI extends {
|
|
@@ -89,10 +89,6 @@ export interface Orchestrator {
|
|
|
89
89
|
* @param {C} chainName name of the chain in KnownChains or the ChainHub backing the Orchestrator
|
|
90
90
|
*/
|
|
91
91
|
getChain: <C extends string>(chainName: C) => Promise<Chain<C extends keyof KnownChains ? KnownChains[C] : any> & (C extends 'agoric' ? AgoricChainMethods : {})>;
|
|
92
|
-
/**
|
|
93
|
-
* Make a new local (Agoric) ChainAccount
|
|
94
|
-
*/
|
|
95
|
-
makeLocalAccount: () => Promise<LocalChainAccount>;
|
|
96
92
|
/**
|
|
97
93
|
* For a denom, return information about a denom including the equivalent
|
|
98
94
|
* local Brand, the Chain on which the denom is held, and the Chain that
|
|
@@ -143,7 +139,7 @@ export interface OrchestrationAccountI {
|
|
|
143
139
|
*
|
|
144
140
|
* TODO document the mapping from the address to the destination chain.
|
|
145
141
|
*/
|
|
146
|
-
transfer: (
|
|
142
|
+
transfer: (destination: ChainAddress, amount: AmountArg, opts?: IBCMsgTransferOptions) => Promise<void>;
|
|
147
143
|
/**
|
|
148
144
|
* Transfer an amount to another account in multiple steps. The promise settles when
|
|
149
145
|
* the entire path of the transfer is complete.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAEV,WAAW,EACZ,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EACT,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,mBA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AW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,aAAa;AACb,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/src/orchestration-api.ts
CHANGED
|
@@ -91,8 +91,8 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
91
91
|
|
|
92
92
|
// "makeAccount" suggests an operation within a vat
|
|
93
93
|
/**
|
|
94
|
-
* Creates a new
|
|
95
|
-
* @returns an object that controls
|
|
94
|
+
* Creates a new Orchestration Account on the current Chain.
|
|
95
|
+
* @returns an object that controls the account
|
|
96
96
|
*/
|
|
97
97
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
98
98
|
// FUTURE supply optional port object; also fetch port object
|
|
@@ -136,11 +136,6 @@ export interface Orchestrator {
|
|
|
136
136
|
(C extends 'agoric' ? AgoricChainMethods : {})
|
|
137
137
|
>;
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* Make a new local (Agoric) ChainAccount
|
|
141
|
-
*/
|
|
142
|
-
makeLocalAccount: () => Promise<LocalChainAccount>;
|
|
143
|
-
|
|
144
139
|
/**
|
|
145
140
|
* For a denom, return information about a denom including the equivalent
|
|
146
141
|
* local Brand, the Chain on which the denom is held, and the Chain that
|
|
@@ -204,8 +199,8 @@ export interface OrchestrationAccountI {
|
|
|
204
199
|
* TODO document the mapping from the address to the destination chain.
|
|
205
200
|
*/
|
|
206
201
|
transfer: (
|
|
207
|
-
amount: AmountArg,
|
|
208
202
|
destination: ChainAddress,
|
|
203
|
+
amount: AmountArg,
|
|
209
204
|
opts?: IBCMsgTransferOptions,
|
|
210
205
|
) => Promise<void>;
|
|
211
206
|
|
|
@@ -3,7 +3,7 @@ import { E, Far } from '@endo/far';
|
|
|
3
3
|
import { makeMarshal } from '@endo/marshal';
|
|
4
4
|
import { makeTracer } from '@agoric/internal';
|
|
5
5
|
import { registerKnownChains } from '../chain-info.js';
|
|
6
|
-
import {
|
|
6
|
+
import { HubName } from '../exos/chain-hub.js';
|
|
7
7
|
|
|
8
8
|
const trace = makeTracer('InitChainInfo', true);
|
|
9
9
|
|
|
@@ -66,8 +66,8 @@ const publishChainInfoToChainStorage = async (
|
|
|
66
66
|
}),
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
|
-
await echoNameUpdates(
|
|
70
|
-
await echoNameUpdates(
|
|
69
|
+
await echoNameUpdates(HubName.Chain);
|
|
70
|
+
await echoNameUpdates(HubName.ChainConnection);
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-proposal.d.ts","sourceRoot":"","sources":["orchestration-proposal.js"],"names":[],"mappings":"AAoBO,mJAVI,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"orchestration-proposal.d.ts","sourceRoot":"","sources":["orchestration-proposal.js"],"names":[],"mappings":"AAoBO,mJAVI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,aAAa,EAAE,aAAa,CAAC;KAC9B,CAAC;IACF,OAAO,EAAE;QACP,gBAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACjC,CAAC;CACH,eACO;IAAE,OAAO,EAAE;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAgCzD;AAEM;;;;;;;;;;;;;;;;;;EAgBL;mCA9D8B,iBAAiB"}
|
|
@@ -10,25 +10,87 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
|
|
|
10
10
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
11
11
|
publicFacet: import("@endo/exo").Guarded<{
|
|
12
12
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
13
|
-
asContinuingOffer(): import("@agoric/vow").Vow<import("
|
|
14
|
-
getPublicTopics(): import("@agoric/vow").Vow<
|
|
13
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
14
|
+
getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
15
15
|
getAddress(): import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").ChainAddress>;
|
|
16
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
17
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
18
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
19
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
20
|
-
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
21
|
-
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
22
|
-
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void
|
|
23
|
-
transfer(
|
|
24
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void
|
|
25
|
-
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
16
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
17
|
+
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
18
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
19
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
20
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
21
|
+
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
22
|
+
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
23
|
+
transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
24
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
25
|
+
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
26
26
|
undelegate(delegations: {
|
|
27
27
|
amount: import("../orchestration-api.js").AmountArg;
|
|
28
|
+
delegator?: import("../orchestration-api.js").ChainAddress;
|
|
28
29
|
validator: import("../cosmos-api.js").CosmosValidatorAddress;
|
|
29
|
-
}[]): import("@agoric/vow").Vow<void
|
|
30
|
-
deactivate(): import("@agoric/vow").Vow<void
|
|
31
|
-
reactivate(): import("@agoric/vow").Vow<void
|
|
30
|
+
}[]): import("@agoric/vow").Vow<void>;
|
|
31
|
+
deactivate(): import("@agoric/vow").Vow<void>;
|
|
32
|
+
reactivate(): import("@agoric/vow").Vow<void>;
|
|
33
|
+
getDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosDelegationResponse>>;
|
|
34
|
+
getDelegations(): import("@agoric/vow").Vow<{
|
|
35
|
+
delegator: {
|
|
36
|
+
chainId: string;
|
|
37
|
+
value: string;
|
|
38
|
+
encoding: "bech32" | "ethereum";
|
|
39
|
+
};
|
|
40
|
+
validator: {
|
|
41
|
+
chainId: string;
|
|
42
|
+
value: `${string}valoper${string}`;
|
|
43
|
+
encoding: "bech32";
|
|
44
|
+
};
|
|
45
|
+
amount: {
|
|
46
|
+
denom: import("../orchestration-api.js").Denom;
|
|
47
|
+
value: bigint;
|
|
48
|
+
};
|
|
49
|
+
}[]>;
|
|
50
|
+
getUnbondingDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation>>;
|
|
51
|
+
getUnbondingDelegations(): import("@agoric/vow").Vow<{
|
|
52
|
+
delegatorAddress: string;
|
|
53
|
+
validatorAddress: string;
|
|
54
|
+
entries: {
|
|
55
|
+
creationHeight: bigint;
|
|
56
|
+
completionTime: {
|
|
57
|
+
seconds: bigint;
|
|
58
|
+
nanos: number;
|
|
59
|
+
};
|
|
60
|
+
initialBalance: string;
|
|
61
|
+
balance: string;
|
|
62
|
+
}[];
|
|
63
|
+
}[]>;
|
|
64
|
+
getRedelegations(): import("@agoric/vow").Vow<{
|
|
65
|
+
redelegation: {
|
|
66
|
+
delegatorAddress: string;
|
|
67
|
+
validatorSrcAddress: string;
|
|
68
|
+
validatorDstAddress: string;
|
|
69
|
+
entries: {
|
|
70
|
+
creationHeight: bigint;
|
|
71
|
+
completionTime: {
|
|
72
|
+
seconds: bigint;
|
|
73
|
+
nanos: number;
|
|
74
|
+
};
|
|
75
|
+
initialBalance: string;
|
|
76
|
+
sharesDst: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
entries: {
|
|
80
|
+
redelegationEntry: {
|
|
81
|
+
creationHeight: bigint;
|
|
82
|
+
completionTime: {
|
|
83
|
+
seconds: bigint;
|
|
84
|
+
nanos: number;
|
|
85
|
+
};
|
|
86
|
+
initialBalance: string;
|
|
87
|
+
sharesDst: string;
|
|
88
|
+
};
|
|
89
|
+
balance: string;
|
|
90
|
+
}[];
|
|
91
|
+
}[]>;
|
|
92
|
+
getReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
93
|
+
getRewards(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosRewardsResponse>>;
|
|
32
94
|
}>>;
|
|
33
95
|
makeAccountInvitationMaker(): Promise<Invitation<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult, undefined>>;
|
|
34
96
|
}>;
|
|
@@ -71,5 +133,5 @@ export function getManifestForStakeAtom({ restoreRef }: {
|
|
|
71
133
|
[x: string]: any;
|
|
72
134
|
};
|
|
73
135
|
};
|
|
74
|
-
import type { StakeIcaTerms } from '../examples/
|
|
136
|
+
import type { StakeIcaTerms } from '../examples/stake-ica.contract';
|
|
75
137
|
//# sourceMappingURL=start-stakeAtom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,0PAVI,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,0PAVI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAzG4C,gCAAgC"}
|
|
@@ -7,7 +7,7 @@ import { makeChainHub } from '../exos/chain-hub.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @import {IBCConnectionID} from '@agoric/vats';
|
|
10
|
-
* @import {StakeIcaSF, StakeIcaTerms} from '../examples/
|
|
10
|
+
* @import {StakeIcaSF, StakeIcaTerms} from '../examples/stake-ica.contract';
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
const trace = makeTracer('StartStakeAtom', true);
|
|
@@ -17,7 +17,7 @@ const trace = makeTracer('StartStakeAtom', true);
|
|
|
17
17
|
* installation: {
|
|
18
18
|
* consume: {
|
|
19
19
|
* stakeIca: Installation<
|
|
20
|
-
* import('../examples/
|
|
20
|
+
* import('../examples/stake-ica.contract.js').start
|
|
21
21
|
* >;
|
|
22
22
|
* };
|
|
23
23
|
* };
|
|
@@ -46,8 +46,13 @@ export const startStakeAtom = async ({
|
|
|
46
46
|
const storageNode = await makeStorageNodeChild(chainStorage, VSTORAGE_PATH);
|
|
47
47
|
const marshaller = await E(board).getPublishingMarshaller();
|
|
48
48
|
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const zone = makeHeapZone();
|
|
50
|
+
const vt = prepareVowTools(zone.subZone('vows'));
|
|
51
|
+
const chainHub = makeChainHub(
|
|
52
|
+
zone.subZone('chainHub'),
|
|
53
|
+
await agoricNames,
|
|
54
|
+
vt,
|
|
55
|
+
);
|
|
51
56
|
|
|
52
57
|
const [_, cosmoshub, connectionInfo] = await vt.when(
|
|
53
58
|
chainHub.getChainsAndConnection('agoric', 'cosmoshub'),
|
|
@@ -11,56 +11,30 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
11
11
|
publicFacet: import("@endo/exo").Guarded<{
|
|
12
12
|
makeStakeBldInvitation(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
13
13
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
14
|
-
asContinuingOffer(): import("@agoric/vow").Vow<import("
|
|
15
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
16
|
-
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
17
|
-
getPublicTopics(): import("@agoric/vow").Vow<
|
|
14
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
15
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
16
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
17
|
+
getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
18
18
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
19
19
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
20
|
-
deposit(payment: globalThis.
|
|
21
|
-
withdraw(amount: import("@agoric/ertp
|
|
20
|
+
deposit(payment: globalThis.Payment<"nat">): import("@agoric/vow").Vow<void>;
|
|
21
|
+
withdraw(amount: import("@agoric/ertp").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat">>;
|
|
22
22
|
executeTx(messages: {
|
|
23
23
|
'@type': string;
|
|
24
|
-
}[]): import("@agoric/vow").Vow<
|
|
24
|
+
}[]): import("@agoric/vow").Vow<{
|
|
25
25
|
'@type': string;
|
|
26
|
-
}
|
|
27
|
-
'@type': string;
|
|
28
|
-
}>[] : import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto").JsonSafe<{
|
|
29
|
-
'@type': string;
|
|
30
|
-
}>[]>>;
|
|
26
|
+
}[]>;
|
|
31
27
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
32
|
-
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
33
|
-
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void
|
|
34
|
-
transfer(
|
|
35
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void
|
|
28
|
+
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
29
|
+
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
30
|
+
transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<any>;
|
|
31
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
36
32
|
sendThenWaitForAck(packetSender: import("@agoric/internal").Remote<import("../exos/packet-tools.js").PacketSender>, opts?: import("../exos/packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<any>>;
|
|
37
33
|
matchFirstPacket(args_0?: import("@agoric/vow").EVow<globalThis.Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
|
|
38
34
|
resolver: import("@agoric/vow").VowResolver<any>;
|
|
39
35
|
match: import("@agoric/vow").Vow<any>;
|
|
40
36
|
}>>;
|
|
41
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").Vow<import("@agoric/
|
|
42
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
43
|
-
}) | (number & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (number & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
44
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
45
|
-
}) | (bigint & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
46
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
47
|
-
}) | (true & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (true & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
48
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
49
|
-
}) | (symbol & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (symbol & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
50
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
51
|
-
}) | (void & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (void & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
52
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
53
|
-
}) | (Error & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Error & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
54
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
55
|
-
}) | (Promise<any> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Promise<any> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
56
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
57
|
-
}) | (import("@endo/pass-style").RemotableObject<string> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
58
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
59
|
-
}) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
60
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
61
|
-
}) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
62
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
63
|
-
}) : import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration | import("@agoric/vow").Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>>;
|
|
37
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>;
|
|
64
38
|
}>>;
|
|
65
39
|
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
66
40
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;+BAuCiB,kBACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAxCgE,CACzD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
|
|
@@ -10,7 +10,7 @@ const trace = makeTracer('StartStakeBld', true);
|
|
|
10
10
|
* installation: {
|
|
11
11
|
* consume: {
|
|
12
12
|
* stakeBld: Installation<
|
|
13
|
-
* import('../../src/examples/
|
|
13
|
+
* import('../../src/examples/stake-bld.contract.js').start
|
|
14
14
|
* >;
|
|
15
15
|
* };
|
|
16
16
|
* };
|
|
@@ -50,7 +50,7 @@ export const startStakeBld = async ({
|
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @type {StartUpgradableOpts<
|
|
53
|
-
* import('../../src/examples/
|
|
53
|
+
* import('../../src/examples/stake-bld.contract.js').start
|
|
54
54
|
* >}
|
|
55
55
|
*/
|
|
56
56
|
const startOpts = {
|
|
@@ -10,25 +10,87 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
|
|
|
10
10
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
11
11
|
publicFacet: import("@endo/exo").Guarded<{
|
|
12
12
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
13
|
-
asContinuingOffer(): import("@agoric/vow").Vow<import("
|
|
14
|
-
getPublicTopics(): import("@agoric/vow").Vow<
|
|
13
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
14
|
+
getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
15
15
|
getAddress(): import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").ChainAddress>;
|
|
16
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
17
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
18
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
19
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
20
|
-
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
21
|
-
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void
|
|
22
|
-
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void
|
|
23
|
-
transfer(
|
|
24
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void
|
|
25
|
-
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
16
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
17
|
+
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
18
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
19
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
20
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
21
|
+
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
22
|
+
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
23
|
+
transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
24
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
25
|
+
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
26
26
|
undelegate(delegations: {
|
|
27
27
|
amount: import("../orchestration-api.js").AmountArg;
|
|
28
|
+
delegator?: import("../orchestration-api.js").ChainAddress;
|
|
28
29
|
validator: import("../cosmos-api.js").CosmosValidatorAddress;
|
|
29
|
-
}[]): import("@agoric/vow").Vow<void
|
|
30
|
-
deactivate(): import("@agoric/vow").Vow<void
|
|
31
|
-
reactivate(): import("@agoric/vow").Vow<void
|
|
30
|
+
}[]): import("@agoric/vow").Vow<void>;
|
|
31
|
+
deactivate(): import("@agoric/vow").Vow<void>;
|
|
32
|
+
reactivate(): import("@agoric/vow").Vow<void>;
|
|
33
|
+
getDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosDelegationResponse>>;
|
|
34
|
+
getDelegations(): import("@agoric/vow").Vow<{
|
|
35
|
+
delegator: {
|
|
36
|
+
chainId: string;
|
|
37
|
+
value: string;
|
|
38
|
+
encoding: "bech32" | "ethereum";
|
|
39
|
+
};
|
|
40
|
+
validator: {
|
|
41
|
+
chainId: string;
|
|
42
|
+
value: `${string}valoper${string}`;
|
|
43
|
+
encoding: "bech32";
|
|
44
|
+
};
|
|
45
|
+
amount: {
|
|
46
|
+
denom: import("../orchestration-api.js").Denom;
|
|
47
|
+
value: bigint;
|
|
48
|
+
};
|
|
49
|
+
}[]>;
|
|
50
|
+
getUnbondingDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation>>;
|
|
51
|
+
getUnbondingDelegations(): import("@agoric/vow").Vow<{
|
|
52
|
+
delegatorAddress: string;
|
|
53
|
+
validatorAddress: string;
|
|
54
|
+
entries: {
|
|
55
|
+
creationHeight: bigint;
|
|
56
|
+
completionTime: {
|
|
57
|
+
seconds: bigint;
|
|
58
|
+
nanos: number;
|
|
59
|
+
};
|
|
60
|
+
initialBalance: string;
|
|
61
|
+
balance: string;
|
|
62
|
+
}[];
|
|
63
|
+
}[]>;
|
|
64
|
+
getRedelegations(): import("@agoric/vow").Vow<{
|
|
65
|
+
redelegation: {
|
|
66
|
+
delegatorAddress: string;
|
|
67
|
+
validatorSrcAddress: string;
|
|
68
|
+
validatorDstAddress: string;
|
|
69
|
+
entries: {
|
|
70
|
+
creationHeight: bigint;
|
|
71
|
+
completionTime: {
|
|
72
|
+
seconds: bigint;
|
|
73
|
+
nanos: number;
|
|
74
|
+
};
|
|
75
|
+
initialBalance: string;
|
|
76
|
+
sharesDst: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
entries: {
|
|
80
|
+
redelegationEntry: {
|
|
81
|
+
creationHeight: bigint;
|
|
82
|
+
completionTime: {
|
|
83
|
+
seconds: bigint;
|
|
84
|
+
nanos: number;
|
|
85
|
+
};
|
|
86
|
+
initialBalance: string;
|
|
87
|
+
sharesDst: string;
|
|
88
|
+
};
|
|
89
|
+
balance: string;
|
|
90
|
+
}[];
|
|
91
|
+
}[]>;
|
|
92
|
+
getReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
93
|
+
getRewards(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosRewardsResponse>>;
|
|
32
94
|
}>>;
|
|
33
95
|
makeAccountInvitationMaker(): Promise<Invitation<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult, undefined>>;
|
|
34
96
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AA8BO,0PAfI,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AA8BO,0PAfI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,SAAS,EAAE,GAAG,CAAC;SAChB,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
|
|
@@ -7,7 +7,7 @@ import { makeChainHub } from '../exos/chain-hub.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @import {IBCConnectionID} from '@agoric/vats';
|
|
10
|
-
* @import {StakeIcaSF} from '../examples/
|
|
10
|
+
* @import {StakeIcaSF} from '../examples/stake-ica.contract';
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
const trace = makeTracer('StartStakeOsmo', true);
|
|
@@ -17,7 +17,7 @@ const trace = makeTracer('StartStakeOsmo', true);
|
|
|
17
17
|
* installation: {
|
|
18
18
|
* consume: {
|
|
19
19
|
* stakeIca: Installation<
|
|
20
|
-
* import('../examples/
|
|
20
|
+
* import('../examples/stake-ica.contract.js').start
|
|
21
21
|
* >;
|
|
22
22
|
* };
|
|
23
23
|
* };
|
|
@@ -51,8 +51,13 @@ export const startStakeOsmo = async ({
|
|
|
51
51
|
const storageNode = await makeStorageNodeChild(chainStorage, VSTORAGE_PATH);
|
|
52
52
|
const marshaller = await E(board).getPublishingMarshaller();
|
|
53
53
|
|
|
54
|
-
const
|
|
55
|
-
const
|
|
54
|
+
const zone = makeHeapZone();
|
|
55
|
+
const vt = prepareVowTools(zone.subZone('vows'));
|
|
56
|
+
const chainHub = makeChainHub(
|
|
57
|
+
zone.subZone('chainHub'),
|
|
58
|
+
await agoricNames,
|
|
59
|
+
vt,
|
|
60
|
+
);
|
|
56
61
|
|
|
57
62
|
const [_, osmosis, connectionInfo] = await vt.when(
|
|
58
63
|
chainHub.getChainsAndConnection('agoric', 'osmosis'),
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export const CosmosAssetInfoShape: TypedPattern<CosmosAssetInfo>;
|
|
|
35
35
|
export const CosmosChainInfoShape: TypedPattern<CosmosChainInfo>;
|
|
36
36
|
/** @type {TypedPattern<ChainInfo>} */
|
|
37
37
|
export const ChainInfoShape: TypedPattern<ChainInfo>;
|
|
38
|
-
export const LocalChainAccountShape: import("@endo/patterns").Matcher;
|
|
39
38
|
export const DenomShape: import("@endo/patterns").Matcher;
|
|
40
39
|
/** @type {TypedPattern<DenomInfo<any, any>>} */
|
|
41
40
|
export const DenomInfoShape: TypedPattern<DenomInfo<any, any>>;
|
|
@@ -73,6 +72,11 @@ export namespace TimestampProtoShape {
|
|
|
73
72
|
* @internal
|
|
74
73
|
*/
|
|
75
74
|
export const TxBodyOptsShape: import("@endo/patterns").Matcher;
|
|
75
|
+
/**
|
|
76
|
+
* Ensures at least one {@link AmountKeywordRecord} entry is present and only
|
|
77
|
+
* permits Nat (fungible) amounts.
|
|
78
|
+
*/
|
|
79
|
+
export const AnyNatAmountsRecord: import("@endo/patterns").Matcher;
|
|
76
80
|
import type { ChainAddress } from './types.js';
|
|
77
81
|
import type { TypedPattern } from '@agoric/internal';
|
|
78
82
|
import type { Any as Proto3Msg } from '@agoric/cosmic-proto/google/protobuf/any.js';
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAEF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CAIhC;AAEF,gBAAgB;AAChB,uEAUE;AAEF,gBAAgB;AAChB,iEAA4C;AAC5C,gBAAgB;AAChB,mEAQG;AACH,gBAAgB;AAChB,oEAA+C;AAC/C,gBAAgB;AAChB,
|
|
1
|
+
{"version":3,"file":"type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