@agoric/orchestration 0.2.0 → 0.2.1-upgrade-23-dev-bd79330.0.bd79330
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.js +0 -4
- package/package.json +27 -27
- package/src/axelar-types.d.ts +2 -0
- package/src/axelar-types.d.ts.map +1 -1
- package/src/axelar-types.js +2 -0
- package/src/cctp-chain-info.js +4 -1
- package/src/chain-info.d.ts +21 -6
- package/src/chain-info.d.ts.map +1 -1
- package/src/chain-info.js +9 -8
- package/src/cosmos-api.d.ts +102 -29
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.js +585 -0
- package/src/{ethereum-api.ts → ethereum-api.js} +1 -1
- package/src/examples/auto-stake-it-tap-kit.d.ts +4 -3
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
- package/src/examples/auto-stake-it-tap-kit.js +3 -4
- package/src/examples/auto-stake-it.contract.d.ts +6 -4
- package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
- package/src/examples/auto-stake-it.contract.js +3 -1
- package/src/examples/auto-stake-it.flows.d.ts +2 -1
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
- package/src/examples/auto-stake-it.flows.js +1 -0
- package/src/examples/axelar-gmp-account-kit.d.ts +6 -4
- package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -1
- package/src/examples/axelar-gmp-account-kit.js +4 -2
- package/src/examples/axelar-gmp.contract.d.ts +8 -8
- package/src/examples/axelar-gmp.contract.d.ts.map +1 -1
- package/src/examples/axelar-gmp.contract.js +2 -2
- package/src/examples/axelar-gmp.flows.d.ts +1 -1
- package/src/examples/basic-flows.contract.d.ts +7 -5
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +3 -1
- package/src/examples/basic-flows.flows.d.ts +2 -1
- package/src/examples/basic-flows.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.flows.js +1 -0
- package/src/examples/send-anywhere.contract.d.ts +12 -6
- package/src/examples/send-anywhere.contract.d.ts.map +1 -1
- package/src/examples/send-anywhere.contract.js +4 -1
- package/src/examples/send-anywhere.flows.d.ts +3 -2
- package/src/examples/send-anywhere.flows.d.ts.map +1 -1
- package/src/examples/send-anywhere.flows.js +3 -6
- package/src/examples/stake-bld.contract.d.ts +206 -25
- package/src/examples/stake-bld.contract.d.ts.map +1 -1
- package/src/examples/stake-bld.contract.js +19 -4
- package/src/examples/stake-ica.contract.d.ts +434 -71
- package/src/examples/stake-ica.contract.d.ts.map +1 -1
- package/src/examples/stake-ica.contract.js +28 -6
- package/src/examples/staking-combinations.contract.d.ts +4 -2
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +5 -3
- package/src/examples/staking-combinations.flows.d.ts +3 -2
- package/src/examples/staking-combinations.flows.d.ts.map +1 -1
- package/src/examples/staking-combinations.flows.js +7 -6
- package/src/examples/swap-anything.contract.d.ts +14 -7
- package/src/examples/swap-anything.contract.d.ts.map +1 -1
- package/src/examples/swap-anything.contract.js +12 -8
- package/src/examples/swap.contract.d.ts +18 -6
- package/src/examples/swap.contract.d.ts.map +1 -1
- package/src/examples/swap.contract.js +9 -3
- package/src/examples/swap.flows.d.ts +2 -0
- package/src/examples/swap.flows.d.ts.map +1 -1
- package/src/examples/swap.flows.js +2 -0
- package/src/examples/unbond.contract.d.ts +7 -4
- package/src/examples/unbond.contract.d.ts.map +1 -1
- package/src/examples/unbond.contract.js +6 -3
- package/src/exos/chain-hub-admin.d.ts +1 -19
- package/src/exos/chain-hub-admin.d.ts.map +1 -1
- package/src/exos/chain-hub-admin.js +1 -1
- package/src/exos/chain-hub.d.ts +4 -2
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +2 -1
- package/src/exos/combine-invitation-makers.d.ts +2 -1
- package/src/exos/combine-invitation-makers.d.ts.map +1 -1
- package/src/exos/combine-invitation-makers.js +2 -1
- package/src/exos/cosmos-orchestration-account.d.ts +615 -98
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +695 -306
- package/src/exos/exo-interfaces.js +35 -0
- package/src/exos/ibc-packet.d.ts +11 -9
- package/src/exos/ibc-packet.d.ts.map +1 -1
- package/src/exos/ibc-packet.js +33 -8
- package/src/exos/ica-account-kit.d.ts +4 -9
- package/src/exos/ica-account-kit.d.ts.map +1 -1
- package/src/exos/ica-account-kit.js +10 -7
- package/src/exos/icq-connection-kit.d.ts +1 -1
- package/src/exos/local-chain-facade.d.ts +1542 -5
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +4 -2
- package/src/exos/local-orchestration-account.d.ts +201 -56
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +260 -51
- package/src/exos/orchestrator.d.ts +35813 -73
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +7 -10
- package/src/exos/packet-tools.d.ts +19 -8
- package/src/exos/packet-tools.d.ts.map +1 -1
- package/src/exos/packet-tools.js +92 -9
- package/src/exos/portfolio-holder-kit.d.ts +90 -2
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +1499 -1
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +8 -3
- package/src/facade.d.ts +1 -0
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +4 -6
- package/src/fixtures/query-flows.contract.d.ts +8 -6
- package/src/fixtures/query-flows.contract.d.ts.map +1 -1
- package/src/fixtures/query-flows.contract.js +3 -1
- package/src/fixtures/query-flows.flows.d.ts +1 -0
- package/src/fixtures/query-flows.flows.d.ts.map +1 -1
- package/src/fixtures/query-flows.flows.js +1 -0
- package/src/orchestration-api.d.ts +46 -16
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.js +410 -0
- package/src/proposals/init-chain-info.js +10 -2
- package/src/proposals/orchestration-proposal.js +3 -0
- package/src/proposals/revise-chain-info.js +4 -1
- package/src/proposals/start-auto-stake-it.js +1 -0
- package/src/proposals/start-axelar-gmp.js +2 -2
- package/src/proposals/start-basic-flows.js +5 -0
- package/src/proposals/start-send-anywhere.js +4 -2
- package/src/proposals/start-stakeAtom.js +5 -4
- package/src/proposals/start-stakeBld.js +8 -6
- package/src/proposals/start-stakeOsmo.js +5 -4
- package/src/proposals/start-swap-anything.js +4 -2
- package/src/stubs/{viem-abi.d.ts → viem-typedData.js} +10 -4
- package/src/typeGuards.d.ts +38 -5
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +92 -22
- package/src/types.d.ts +1 -0
- package/src/types.d.ts.map +1 -1
- package/src/types.js +27 -0
- package/src/utils/abitype.d.ts +6 -0
- package/src/utils/abitype.d.ts.map +1 -0
- package/src/utils/abitype.js +13 -0
- package/src/utils/address.d.ts +3 -1
- package/src/utils/address.d.ts.map +1 -1
- package/src/utils/address.js +24 -2
- package/src/utils/agd-lib.d.ts +1 -51
- package/src/utils/agd-lib.d.ts.map +1 -1
- package/src/utils/agd-lib.js +1 -1
- package/src/utils/amounts.d.ts +1 -0
- package/src/utils/amounts.d.ts.map +1 -1
- package/src/utils/amounts.js +1 -0
- package/src/utils/asset.d.ts +1 -0
- package/src/utils/asset.d.ts.map +1 -1
- package/src/utils/asset.js +1 -0
- package/src/utils/chain-hub-helper.d.ts +1 -0
- package/src/utils/chain-hub-helper.d.ts.map +1 -1
- package/src/utils/chain-hub-helper.js +1 -0
- package/src/utils/codecs.d.ts +145 -0
- package/src/utils/codecs.d.ts.map +1 -0
- package/src/utils/codecs.js +206 -0
- package/src/utils/cosmos.d.ts +5 -4
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/cosmos.js +29 -9
- package/src/utils/exo-helpers.d.ts +156 -0
- package/src/utils/exo-helpers.d.ts.map +1 -0
- package/src/utils/exo-helpers.js +241 -0
- package/src/utils/gmp.d.ts +2 -2
- package/src/utils/gmp.d.ts.map +1 -1
- package/src/utils/gmp.js +31 -15
- package/src/utils/orchestrationAccount.d.ts +79 -0
- package/src/utils/orchestrationAccount.d.ts.map +1 -1
- package/src/utils/orchestrationAccount.js +210 -6
- package/src/utils/packet.d.ts.map +1 -1
- package/src/utils/packet.js +5 -0
- package/src/utils/permit2/signatureTransfer.d.ts +221 -0
- package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransfer.js +265 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransferHelpers.js +270 -0
- package/src/utils/permit2.d.ts +11 -0
- package/src/utils/permit2.d.ts.map +1 -0
- package/src/utils/permit2.js +11 -0
- package/src/utils/progress.d.ts +41 -0
- package/src/utils/progress.d.ts.map +1 -0
- package/src/utils/progress.js +180 -0
- package/src/utils/start-helper.d.ts +28 -10
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +30 -7
- package/src/utils/time.d.ts +2 -2
- package/src/utils/time.d.ts.map +1 -1
- package/src/utils/time.js +1 -1
- 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/hashTypedData.js +61 -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-utils/types.js +18 -0
- package/src/utils/viem.d.ts +11 -0
- package/src/utils/viem.d.ts.map +1 -0
- package/src/utils/viem.js +11 -0
- package/src/utils/zcf-tools.d.ts +15 -1
- package/src/utils/zcf-tools.d.ts.map +1 -1
- package/src/utils/zcf-tools.js +19 -3
- package/src/utils/zoe-tools.d.ts +5 -2
- package/src/utils/zoe-tools.d.ts.map +1 -1
- package/src/utils/zoe-tools.js +8 -2
- package/src/vat-orchestration.d.ts +5 -3
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/vat-orchestration.js +4 -3
- package/src/vendor/viem/{_esm-YOAV66U4.js → _esm-OKAICHVC.js} +2 -2
- package/src/vendor/viem/{ccip-AAQDZF3N.js → ccip-34BSSMV5.js} +1 -2
- package/src/vendor/viem/{chunk-4EF4K2MH.js → chunk-GCI53Z2G.js} +35 -1
- package/src/vendor/viem/chunk-ZKSIP2AM.js +326 -0
- package/src/vendor/viem/viem-abi.js +2 -2
- package/src/vendor/viem/viem-typedData.d.ts +19 -0
- package/src/vendor/viem/viem-typedData.js +59 -0
- package/tools/contract-tests.d.ts +34 -19
- package/tools/contract-tests.d.ts.map +1 -1
- package/tools/contract-tests.ts +15 -3
- package/tools/ibc-mock-fixtures.d.ts +49 -0
- package/tools/ibc-mock-fixtures.d.ts.map +1 -0
- package/tools/ibc-mock-fixtures.ts +161 -0
- package/tools/ibc-mocks.d.ts +2 -3
- package/tools/ibc-mocks.d.ts.map +1 -1
- package/tools/ibc-mocks.ts +2 -1
- package/tools/make-test-address.d.ts +1 -1
- package/tools/make-test-address.d.ts.map +1 -1
- package/tools/make-test-address.js +1 -2
- package/tools/network-fakes.d.ts +142 -0
- package/tools/network-fakes.d.ts.map +1 -0
- package/tools/network-fakes.ts +388 -0
- package/tsup.config.ts +3 -1
- package/src/cosmos-api.ts +0 -469
- package/src/exos/exo-interfaces.ts +0 -35
- package/src/orchestration-api.ts +0 -365
- package/src/stubs/viem-abi.d.ts.map +0 -1
- package/src/types.ts +0 -26
- package/src/vendor/viem/chunk-XN4LUOIH.js +0 -253
- package/src/vendor/viem/secp256k1-WHBDSQB2.js +0 -1914
- /package/src/stubs/{viem-abi.ts → viem-abi.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["orchestrator.js"],"names":[],"mappings":"AAuBA,0BAA0B;AAC1B;;;;GAIG;AAqJI,0CARI,IAAI,UACJ;IACN,QAAQ,EAAE,QAAQ,CAAC;IACnB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;;+BAMY,UAAU,CAClB,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC,cAAc,CAAC;0BA/KG,mBAAmB;8BACE,gBAAgB;0CAIrB,yBAAyB;2CACxB,0BAA0B;8BAHlC,aAAa;yBAAb,aAAa;2BAIsD,aAAa;kCAAb,aAAa;4BALxD,oBAAoB;AAkB5E;;;;;;;;GAQG;AACH,8CARW,IAAI,0FACJ;IACN,QAAQ,EAAE,QAAQ,CAAC;IACnB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,QAAQ,CAAC;CACpB,wDA6HH"}
|
package/src/exos/orchestrator.js
CHANGED
|
@@ -15,7 +15,7 @@ import { DenomInfoShape, DenomAmountShape, DenomShape } from '../typeGuards.js';
|
|
|
15
15
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
16
16
|
* @import {MakeLocalChainFacade} from './local-chain-facade.js';
|
|
17
17
|
* @import {MakeRemoteChainFacade} from './remote-chain-facade.js';
|
|
18
|
-
* @import {Chain, ChainInfo, IBCConnectionInfo, KnownChains, Orchestrator} from '../types.js';
|
|
18
|
+
* @import {Chain, ChainInfo, Denom, DenomInfo, IBCConnectionInfo, KnownChains, Orchestrator} from '../types.js';
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
const { Vow$ } = NetworkShape; // TODO #9611
|
|
@@ -142,21 +142,18 @@ const prepareOrchestratorKit = (
|
|
|
142
142
|
if (maybeChain.pending) {
|
|
143
143
|
throw Fail`wait until getChain(${q(chainName)}) completes before getDenomInfo(${q(denom)})`;
|
|
144
144
|
}
|
|
145
|
-
const chain =
|
|
146
|
-
/** @type {HostInterface<Chain<KnownChains[keyof KnownChains]>>} */ (
|
|
147
|
-
maybeChain.value
|
|
148
|
-
);
|
|
145
|
+
const chain = maybeChain.value;
|
|
149
146
|
chainByName.has(baseName) ||
|
|
150
147
|
Fail`use getChain(${q(baseName)}) before getDenomInfo(${q(denom)})`;
|
|
151
148
|
const maybeBase = chainByName.get(baseName);
|
|
152
149
|
if (maybeBase.pending) {
|
|
153
150
|
throw Fail`wait until getChain(${q(baseName)}) completes before getDenomInfo(${q(denom)})`;
|
|
154
151
|
}
|
|
155
|
-
const base =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
const base = maybeBase.value;
|
|
153
|
+
const denomInfo = harden({ chain, base, brand, baseDenom });
|
|
154
|
+
return /** @type {ReturnType<HostOf<Orchestrator['getDenomInfo']>>} */ (
|
|
155
|
+
denomInfo
|
|
156
|
+
);
|
|
160
157
|
},
|
|
161
158
|
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
162
159
|
asAmount: () => Fail`not yet implemented`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function preparePacketTools(zone:
|
|
1
|
+
export function preparePacketTools(zone: Zone, vowTools: VowTools): (lca: import("@endo/exo").Guarded<{
|
|
2
2
|
getAddress(): `${string}1${string}`;
|
|
3
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
4
|
-
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
5
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
6
|
-
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT):
|
|
3
|
+
getBalance(brand: import("@agoric/ertp").Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp").Amount<"nat">>;
|
|
4
|
+
deposit(payment: ERef<import("@agoric/ertp").Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp").Amount<"nat">>;
|
|
5
|
+
withdraw(amount: import("@agoric/ertp").Amount<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp").Payment<"nat">>;
|
|
6
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): import("@agoric/vow").PromiseVow<ResponseToMany<MT>>;
|
|
7
7
|
monitorTransfers(tap: TargetApp): import("@agoric/vow").PromiseVow<TargetRegistration>;
|
|
8
8
|
}>) => import("@endo/exo").Guarded<{
|
|
9
9
|
/**
|
|
@@ -20,9 +20,9 @@ export function preparePacketTools(zone: import("@agoric/base-zone").Zone, vowTo
|
|
|
20
20
|
/**
|
|
21
21
|
* @param {Remote<PacketSender>} packetSender
|
|
22
22
|
* @param {PacketOptions} [opts]
|
|
23
|
-
* @returns {Vow<
|
|
23
|
+
* @returns {Vow<string>}
|
|
24
24
|
*/
|
|
25
|
-
sendThenWaitForAck(packetSender: Remote<PacketSender>, opts?: PacketOptions): Vow<
|
|
25
|
+
sendThenWaitForAck(packetSender: Remote<PacketSender>, opts?: PacketOptions): Vow<string>;
|
|
26
26
|
}>;
|
|
27
27
|
export type MatchEvent = (pattern: EVow<Pattern>) => Vow<{
|
|
28
28
|
resolver: VowResolver<any>;
|
|
@@ -37,10 +37,19 @@ export type PacketSender = {
|
|
|
37
37
|
export type PacketOptions = {
|
|
38
38
|
opName?: string | undefined;
|
|
39
39
|
timeout?: PacketTimeout | undefined;
|
|
40
|
+
progressTracker?: import("@endo/exo").Guarded<{
|
|
41
|
+
getCurrentProgressReport(): import("../types.js").ProgressReport;
|
|
42
|
+
update(progressReport: ProgressReport): import("../types.js").ProgressReport;
|
|
43
|
+
finish(): import("../types.js").ProgressReport;
|
|
44
|
+
exposePublicationInternals(): PublicationInternals<ProgressReport>;
|
|
45
|
+
}> | undefined;
|
|
46
|
+
trafficSlice?: SliceDescriptor | undefined;
|
|
40
47
|
};
|
|
41
|
-
export type PacketTimeout = Pick<
|
|
48
|
+
export type PacketTimeout = Pick<IBCMsgTransferOptions, "timeoutHeight" | "timeoutTimestamp">;
|
|
42
49
|
export type PacketTools = Awaited<ReturnType<ReturnType<typeof preparePacketTools>>>;
|
|
50
|
+
import type { Zone } from '@agoric/base-zone';
|
|
43
51
|
import type { VowTools } from '@agoric/vow';
|
|
52
|
+
import type { ERef } from '@agoric/vow';
|
|
44
53
|
import type { Pattern } from '@endo/patterns';
|
|
45
54
|
import type { TargetApp } from '@agoric/vats/src/bridge-target.js';
|
|
46
55
|
import type { TargetRegistration } from '@agoric/vats/src/bridge-target.js';
|
|
@@ -49,4 +58,6 @@ import type { VowResolver } from '@agoric/vow';
|
|
|
49
58
|
import type { Vow } from '@agoric/vow';
|
|
50
59
|
import type { Remote } from '@agoric/vow';
|
|
51
60
|
import type { IBCEvent } from '@agoric/vats';
|
|
61
|
+
import type { SliceDescriptor } from '../utils/orchestrationAccount.js';
|
|
62
|
+
import type { IBCMsgTransferOptions } from '../cosmos-api.js';
|
|
52
63
|
//# sourceMappingURL=packet-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packet-tools.d.ts","sourceRoot":"","sources":["packet-tools.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"packet-tools.d.ts","sourceRoot":"","sources":["packet-tools.js"],"names":[],"mappings":"AAyFO,yCAHI,IAAI,YACJ,QAAQ;;;;;;;;IAgIX;;OAEG;8BADQ,KAAK,SAAS,CAAC;;;;8BAtLvB,KAAK,OAAO,CAAC,GACX,IAAI;QAAE,QAAQ,EAAE,YAAY,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,IAAI,GAAG,CAAC,CAAA;KAAE,CAAC;IAyMzD;;;;OAIG;qCAHQ,OAAO,YAAY,CAAC,SACpB,aAAa,GACX,IAAI,MAAM,CAAC;GAgO/B;mCA7aU,KAAK,OAAO,CAAC,KACX,IAAI;IAAE,QAAQ,EAAE,YAAY,GAAG,CAAC,CAAC;IAAC,KAAK,EAAE,IAAI,GAAG,CAAC,CAAA;CAAE,CAAC;;gBAKnD,CACT,KAAK,EAAE,IAAI,SAAS,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAC,CAAC,EACzE,IAAI,EAAE,aAAa,KAChB,IAAI;QACP,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC;KACnB,CAAC;;;;;;;;;;;;;4BAYQ,IAAI,CAChB,qBAAyB,EACzB,eAAmB,GAAG,kBAAkB,CACrC;0BAsZS,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;0BAtbhD,mBAAmB;8BAP+B,aAAa;0BAAb,aAAa;6BAD5D,gBAAgB;+BAKM,mCAAmC;wCAAnC,mCAAmC;0BAJV,aAAa;iCAAb,aAAa;yBAAb,aAAa;4BAAb,aAAa;8BAGxC,cAAc;qCAG1B,kCAAkC;2CAD5B,kBAAkB"}
|
package/src/exos/packet-tools.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
import { makeMarshal, decodeToJustin } from '@endo/marshal';
|
|
2
3
|
import { Shape as NetworkShape } from '@agoric/network';
|
|
3
4
|
import { M, matches } from '@endo/patterns';
|
|
4
5
|
import { E } from '@endo/far';
|
|
5
6
|
import { pickFacet } from '@agoric/vat-data';
|
|
6
7
|
import { makeTracer } from '@agoric/internal';
|
|
8
|
+
import { makeVowExoHelpers } from '../utils/exo-helpers.js';
|
|
7
9
|
|
|
8
10
|
const trace = makeTracer('PacketTools');
|
|
9
11
|
|
|
@@ -18,10 +20,14 @@ const just = obj => {
|
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* @import {Pattern} from '@endo/patterns';
|
|
21
|
-
* @import {EVow, Remote, Vow, VowResolver, VowTools} from '@agoric/vow';
|
|
23
|
+
* @import {ERef, EVow, Remote, Vow, VowKit, VowResolver, VowTools} from '@agoric/vow';
|
|
22
24
|
* @import {LocalChainAccount} from '@agoric/vats/src/localchain.js';
|
|
25
|
+
* @import {ProgressTracker} from '../types.js';
|
|
23
26
|
* @import {IBCEvent, VTransferIBCEvent} from '@agoric/vats';
|
|
24
27
|
* @import {TargetApp, TargetRegistration} from '@agoric/vats/src/bridge-target.js';
|
|
28
|
+
* @import {IBCMsgTransferOptions} from '../cosmos-api.js';
|
|
29
|
+
* @import {SliceDescriptor} from '../utils/orchestrationAccount.js';
|
|
30
|
+
* @import {Zone} from '@agoric/base-zone';
|
|
25
31
|
*/
|
|
26
32
|
|
|
27
33
|
/**
|
|
@@ -35,22 +41,41 @@ const just = obj => {
|
|
|
35
41
|
* @property {(
|
|
36
42
|
* match: Vow<IBCEvent<'acknowledgementPacket'> | IBCEvent<'timeoutPacket'>>,
|
|
37
43
|
* opts: PacketOptions,
|
|
38
|
-
* ) => Vow<{
|
|
44
|
+
* ) => Vow<{
|
|
45
|
+
* eventPattern: Pattern;
|
|
46
|
+
* resultV: Vow<any>;
|
|
47
|
+
* }>} sendPacket
|
|
39
48
|
*/
|
|
40
49
|
|
|
41
50
|
/**
|
|
42
51
|
* @typedef {object} PacketOptions
|
|
43
52
|
* @property {string} [opName]
|
|
44
53
|
* @property {PacketTimeout} [timeout]
|
|
54
|
+
* @property {ProgressTracker} [progressTracker]
|
|
55
|
+
* @property {SliceDescriptor} [trafficSlice]
|
|
45
56
|
*/
|
|
46
57
|
|
|
47
58
|
/**
|
|
48
59
|
* @typedef {Pick<
|
|
49
|
-
*
|
|
60
|
+
* IBCMsgTransferOptions,
|
|
50
61
|
* 'timeoutHeight' | 'timeoutTimestamp'
|
|
51
62
|
* >} PacketTimeout
|
|
52
63
|
*/
|
|
53
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Watcher facets of the exoClassKit that have been removed from service, but
|
|
67
|
+
* need to leave behind a dummy facet to allow older contracts that use
|
|
68
|
+
* orchestration to be upgraded.
|
|
69
|
+
*
|
|
70
|
+
* Add new watchers here as they are removed from service. Maybe someday
|
|
71
|
+
* contract upgrade will allow us to prune this list.
|
|
72
|
+
*/
|
|
73
|
+
const TOMBSTONED_WATCHERS = /** @type {const} */ (
|
|
74
|
+
[
|
|
75
|
+
// 'packetWasSentWithMetaWatcher', // deprecated but not yet tombstoned
|
|
76
|
+
]
|
|
77
|
+
);
|
|
78
|
+
|
|
54
79
|
const { Vow$ } = NetworkShape; // TODO #9611
|
|
55
80
|
|
|
56
81
|
const EVow$ = shape => M.or(Vow$(shape), M.promise(/* shape */));
|
|
@@ -59,15 +84,32 @@ const sink = () => {};
|
|
|
59
84
|
harden(sink);
|
|
60
85
|
|
|
61
86
|
/**
|
|
62
|
-
* @param {
|
|
87
|
+
* @param {Zone} zone
|
|
63
88
|
* @param {VowTools} vowTools
|
|
64
89
|
*/
|
|
65
90
|
export const preparePacketTools = (zone, vowTools) => {
|
|
66
91
|
const { allVows, makeVowKit, watch, when } = vowTools;
|
|
92
|
+
const vowExo = makeVowExoHelpers(vowTools);
|
|
67
93
|
|
|
68
94
|
const makePacketToolsKit = zone.exoClassKit(
|
|
69
95
|
'PacketToolsKit',
|
|
70
96
|
{
|
|
97
|
+
/** @deprecated replaced by packetWasSentWatcher */
|
|
98
|
+
packetWasSentWithMetaWatcher: M.interface(
|
|
99
|
+
'packetWasSentWithMetaWatcher',
|
|
100
|
+
{
|
|
101
|
+
onFulfilled: M.call(
|
|
102
|
+
{
|
|
103
|
+
eventPattern: M.pattern(),
|
|
104
|
+
resultV: Vow$(M.any()),
|
|
105
|
+
meta: M.record(),
|
|
106
|
+
},
|
|
107
|
+
M.record(),
|
|
108
|
+
).returns(Vow$({ result: M.any(), meta: M.record() })),
|
|
109
|
+
},
|
|
110
|
+
),
|
|
111
|
+
/** Facets above this line are deprecated. */
|
|
112
|
+
...vowExo.makeTombstonedWatcherShapes(TOMBSTONED_WATCHERS),
|
|
71
113
|
public: M.interface('PacketTools', {
|
|
72
114
|
sendThenWaitForAck: M.call(EVow$(M.remotable('PacketSender')))
|
|
73
115
|
.optional(M.any())
|
|
@@ -77,6 +119,7 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
77
119
|
EVow$(M.any()),
|
|
78
120
|
),
|
|
79
121
|
}),
|
|
122
|
+
pickDataWatcher: vowExo.watcherShapes.pickDataWatcher,
|
|
80
123
|
tap: M.interface('tap', {
|
|
81
124
|
// eslint-disable-next-line no-restricted-syntax
|
|
82
125
|
receiveUpcall: M.callWhen(M.any()).returns(M.any()),
|
|
@@ -113,6 +156,7 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
113
156
|
).returns(M.any()),
|
|
114
157
|
}),
|
|
115
158
|
utils: M.interface('utils', {
|
|
159
|
+
pickVowProp: vowExo.helperShapes.pickVowProp,
|
|
116
160
|
subscribeToTransfers: M.call().returns(M.promise()),
|
|
117
161
|
unsubscribeFromTransfers: M.call().returns(M.undefined()),
|
|
118
162
|
incrPendingPatterns: M.call().returns(Vow$(M.undefined())),
|
|
@@ -140,6 +184,34 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
140
184
|
};
|
|
141
185
|
},
|
|
142
186
|
{
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated replaced by packetWasSentWatcher
|
|
189
|
+
*/
|
|
190
|
+
packetWasSentWithMetaWatcher: {
|
|
191
|
+
/**
|
|
192
|
+
* @param {{
|
|
193
|
+
* eventPattern: Pattern;
|
|
194
|
+
* resultV: Vow<unknown>;
|
|
195
|
+
* meta: Record<string, any>;
|
|
196
|
+
* }} param0
|
|
197
|
+
* @param {{
|
|
198
|
+
* opts: PacketOptions;
|
|
199
|
+
* patternResolver: VowKit<Pattern>['resolver'];
|
|
200
|
+
* }} ctx
|
|
201
|
+
*/
|
|
202
|
+
onFulfilled({ eventPattern, resultV, meta }, ctx) {
|
|
203
|
+
const result = this.facets.packetWasSentWatcher.onFulfilled(
|
|
204
|
+
{
|
|
205
|
+
eventPattern,
|
|
206
|
+
resultV,
|
|
207
|
+
},
|
|
208
|
+
ctx,
|
|
209
|
+
);
|
|
210
|
+
return harden({ result, meta });
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
/** Facets above this line are deprecated. */
|
|
214
|
+
...vowExo.makeTombstonedWatchers(TOMBSTONED_WATCHERS),
|
|
143
215
|
public: {
|
|
144
216
|
/**
|
|
145
217
|
* @param {ERef<TargetApp>} monitor
|
|
@@ -165,10 +237,10 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
165
237
|
/**
|
|
166
238
|
* @param {Remote<PacketSender>} packetSender
|
|
167
239
|
* @param {PacketOptions} [opts]
|
|
168
|
-
* @returns {Vow<
|
|
240
|
+
* @returns {Vow<string>}
|
|
169
241
|
*/
|
|
170
242
|
sendThenWaitForAck(packetSender, opts = {}) {
|
|
171
|
-
/** @type {
|
|
243
|
+
/** @type {VowKit<Pattern>} */
|
|
172
244
|
const pattern = makeVowKit();
|
|
173
245
|
|
|
174
246
|
// Establish the packet matcher immediately, but don't fulfill
|
|
@@ -182,7 +254,7 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
182
254
|
{ opts },
|
|
183
255
|
);
|
|
184
256
|
|
|
185
|
-
// When the packet is sent, resolve the
|
|
257
|
+
// When the packet is sent, resolve the result for the reply.
|
|
186
258
|
const resultV = watch(matchV, this.facets.packetWasSentWatcher, {
|
|
187
259
|
opts,
|
|
188
260
|
patternResolver: pattern.resolver,
|
|
@@ -194,6 +266,7 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
194
266
|
});
|
|
195
267
|
},
|
|
196
268
|
},
|
|
269
|
+
pickDataWatcher: vowExo.watchers.pickDataWatcher,
|
|
197
270
|
monitorRegistration: {
|
|
198
271
|
/** @type {TargetRegistration['updateTargetApp']} */
|
|
199
272
|
// eslint-disable-next-line no-restricted-syntax
|
|
@@ -259,6 +332,16 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
259
332
|
},
|
|
260
333
|
},
|
|
261
334
|
packetWasSentWatcher: {
|
|
335
|
+
/**
|
|
336
|
+
* @param {{
|
|
337
|
+
* eventPattern: Pattern;
|
|
338
|
+
* resultV: Vow<unknown>;
|
|
339
|
+
* }} param0
|
|
340
|
+
* @param {{
|
|
341
|
+
* opts: PacketOptions;
|
|
342
|
+
* patternResolver: VowKit<Pattern>['resolver'];
|
|
343
|
+
* }} ctx
|
|
344
|
+
*/
|
|
262
345
|
onFulfilled({ eventPattern, resultV }, ctx) {
|
|
263
346
|
const { patternResolver } = ctx;
|
|
264
347
|
patternResolver.resolve(eventPattern);
|
|
@@ -305,7 +388,7 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
305
388
|
|
|
306
389
|
// Try matching the first in queue.
|
|
307
390
|
const i = upcallQueue.findIndex(obj => matches(obj, pattern));
|
|
308
|
-
if (i
|
|
391
|
+
if (i < 0) {
|
|
309
392
|
trace('No match yet. Save the pattern for later.');
|
|
310
393
|
resolverToPattern.init(resolver, pattern);
|
|
311
394
|
return;
|
|
@@ -325,8 +408,8 @@ export const preparePacketTools = (zone, vowTools) => {
|
|
|
325
408
|
resolver.reject(reason);
|
|
326
409
|
},
|
|
327
410
|
},
|
|
328
|
-
|
|
329
411
|
utils: {
|
|
412
|
+
pickVowProp: vowExo.helper.pickVowProp,
|
|
330
413
|
incrPendingPatterns() {
|
|
331
414
|
const { pending, reg, upcallQueue } = this.state;
|
|
332
415
|
this.state.pending += 1;
|
|
@@ -53,7 +53,96 @@ declare function preparePortfolioHolderKit(zone: Zone, { asVow, when }: VowTools
|
|
|
53
53
|
/**
|
|
54
54
|
* @param {string} chainName key where the account is stored
|
|
55
55
|
*/
|
|
56
|
-
getAccount(chainName: string): import("@agoric/vow").Vow<
|
|
56
|
+
getAccount(chainName: string): import("@agoric/vow").Vow<{
|
|
57
|
+
getAddress: () => {
|
|
58
|
+
chainId: string;
|
|
59
|
+
value: import("@agoric/orchestration").Bech32Address;
|
|
60
|
+
encoding: "bech32";
|
|
61
|
+
};
|
|
62
|
+
getBalances: (opts?: import("@agoric/orchestration").QuerierOptions | undefined) => import("@agoric/vow").Vow<{
|
|
63
|
+
denom: import("@agoric/orchestration").Denom;
|
|
64
|
+
value: bigint;
|
|
65
|
+
}[]>;
|
|
66
|
+
getBalance: (denom: import("@agoric/orchestration").DenomArg, opts?: import("@agoric/orchestration").QuerierOptions | undefined) => import("@agoric/vow").Vow<{
|
|
67
|
+
denom: import("@agoric/orchestration").Denom;
|
|
68
|
+
value: bigint;
|
|
69
|
+
}>;
|
|
70
|
+
makeProgressTracker: () => import("@endo/exo").Guarded<{
|
|
71
|
+
getCurrentProgressReport(): import("@agoric/orchestration").ProgressReport;
|
|
72
|
+
update(progressReport: ProgressReport): import("@agoric/orchestration").ProgressReport;
|
|
73
|
+
finish(): import("@agoric/orchestration").ProgressReport;
|
|
74
|
+
exposePublicationInternals(): PublicationInternals<ProgressReport>;
|
|
75
|
+
}>;
|
|
76
|
+
send: (toAccount: import("@agoric/orchestration").AccountIdArg, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").ActionOptions | undefined) => import("@agoric/vow").Vow<{}>;
|
|
77
|
+
sendAll: (toAccount: import("@agoric/orchestration").CosmosChainAddress, amounts: import("@agoric/orchestration").AmountArg[], opts?: import("@agoric/orchestration").ActionOptions | undefined) => import("@agoric/vow").Vow<{}>;
|
|
78
|
+
transfer: (destination: import("@agoric/orchestration").AccountIdArg, amount: import("@agoric/orchestration").AmountArg, opts?: import("@agoric/orchestration").IBCMsgTransferOptions | undefined) => import("@agoric/vow").Vow<{}>;
|
|
79
|
+
transferSteps: (amount: import("@agoric/orchestration").AmountArg, msg: import("@agoric/orchestration").TransferMsg) => import("@agoric/vow").Vow<{}>;
|
|
80
|
+
asContinuingOffer: () => import("@agoric/vow").Vow<{
|
|
81
|
+
invitationMakers: {
|
|
82
|
+
[x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/pass-style").RemotableObject & {
|
|
83
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
84
|
+
} & {
|
|
85
|
+
readonly "Symbol(tag)": {
|
|
86
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
publicSubscribers: {
|
|
91
|
+
[x: string]: {
|
|
92
|
+
description?: string | undefined;
|
|
93
|
+
subscriber: {
|
|
94
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
95
|
+
value: any;
|
|
96
|
+
updateCount?: bigint | undefined | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
99
|
+
head: {
|
|
100
|
+
done: true;
|
|
101
|
+
value: any;
|
|
102
|
+
} | {
|
|
103
|
+
done?: false | undefined;
|
|
104
|
+
value: any;
|
|
105
|
+
};
|
|
106
|
+
publishCount: bigint;
|
|
107
|
+
tail: {
|
|
108
|
+
"Symbol(passStyle)": "tagged";
|
|
109
|
+
[Symbol.toStringTag]: "Vow";
|
|
110
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
113
|
+
} | {};
|
|
114
|
+
storagePath: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}>;
|
|
118
|
+
getPublicTopics: () => import("@agoric/vow").Vow<{
|
|
119
|
+
[x: string]: {
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
subscriber: {
|
|
122
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
123
|
+
value: {};
|
|
124
|
+
updateCount?: bigint | undefined | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
127
|
+
head: {
|
|
128
|
+
done: true;
|
|
129
|
+
value: any;
|
|
130
|
+
} | {
|
|
131
|
+
done?: false | undefined;
|
|
132
|
+
value: {};
|
|
133
|
+
};
|
|
134
|
+
publishCount: bigint;
|
|
135
|
+
tail: {
|
|
136
|
+
"Symbol(passStyle)": "tagged";
|
|
137
|
+
[Symbol.toStringTag]: "Vow";
|
|
138
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
139
|
+
};
|
|
140
|
+
}>;
|
|
141
|
+
} | {};
|
|
142
|
+
storagePath: string;
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
}>;
|
|
57
146
|
};
|
|
58
147
|
}>;
|
|
59
148
|
import type { OrchestrationAccount } from '@agoric/orchestration';
|
|
@@ -61,6 +150,5 @@ import type { HostInterface } from '@agoric/async-flow';
|
|
|
61
150
|
import type { MapStore } from '@agoric/store';
|
|
62
151
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
63
152
|
import type { Invitation } from '@agoric/zoe';
|
|
64
|
-
import type { OrchestrationAccountCommon } from '@agoric/orchestration';
|
|
65
153
|
export {};
|
|
66
154
|
//# sourceMappingURL=portfolio-holder-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-holder-kit.d.ts","sourceRoot":"","sources":["portfolio-holder-kit.js"],"names":[],"mappings":"AAiOO,6CANI,IAAI,YACJ,QAAQ,GACN,CACZ,GAAO,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,KAC9D,UAAU,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAKzE;mCAhNY;IACR,QAAQ,EAAE,SAAS,MAAM,EAAE,cAAc,qBAAqB,GAAG,CAAC,CAAC,CAAC,CAAC;IACrE,YAAY,EAAE,SAAS,MAAM,EAAE,oBAAoB,OAAO,CAAC,CAAC,CAAC;CAC9D;kCA8MU,UAAU,CAAC,OAAO,sBAAsB,CAAC;8BACzC,UAAU,CAAC,mBAAmB,CAAC;0BAvNtB,cAAc;8BAHV,aAAa;AAsBxC;;;;;;GAMG;AACH,iDAHW,IAAI,mBACJ,QAAQ;;QAkDX;;;;;;WAMG;iBALsB,EAAE,SAAb,OAAO,EAAG,aACb,MAAM,UACN,MAAM,mBACN,EAAE,GACA,OAAO,CAAC,WAAW,OAAO,EAAE,EAAE,CAAC,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