@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,56 +1,237 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
2
|
agoricNames: Remote<NameHub>;
|
|
3
3
|
localchain: Remote<LocalChain>;
|
|
4
|
-
marshaller: Marshaller
|
|
5
|
-
storageNode: StorageNode
|
|
4
|
+
marshaller: Remote<Marshaller>;
|
|
5
|
+
storageNode: Remote<StorageNode>;
|
|
6
6
|
timerService: TimerService;
|
|
7
|
-
}, baggage:
|
|
7
|
+
}, baggage: Baggage): Promise<{
|
|
8
8
|
publicFacet: import("@endo/exo").Guarded<{
|
|
9
9
|
/**
|
|
10
10
|
* Invitation to make an account, initialized with the give's BLD
|
|
11
11
|
*/
|
|
12
|
-
makeStakeBldInvitation(): Promise<
|
|
12
|
+
makeStakeBldInvitation(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<{
|
|
13
|
+
invitationMakers: {
|
|
14
|
+
[x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
|
|
15
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
16
|
+
} & {
|
|
17
|
+
readonly "Symbol(tag)": {
|
|
18
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
publicSubscribers: {
|
|
23
|
+
[x: string]: {
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
subscriber: {
|
|
26
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
27
|
+
value: any;
|
|
28
|
+
updateCount?: bigint | undefined | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
31
|
+
head: {
|
|
32
|
+
done: true;
|
|
33
|
+
value: any;
|
|
34
|
+
} | {
|
|
35
|
+
done?: false | undefined;
|
|
36
|
+
value: any;
|
|
37
|
+
};
|
|
38
|
+
publishCount: bigint;
|
|
39
|
+
tail: {
|
|
40
|
+
"Symbol(passStyle)": "tagged";
|
|
41
|
+
[Symbol.toStringTag]: "Vow";
|
|
42
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
} | {};
|
|
46
|
+
storagePath: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}>, undefined>>;
|
|
13
50
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
51
|
+
makeProgressTracker(): import("../utils/progress.js").ProgressTracker;
|
|
52
|
+
asContinuingOffer(): import("@agoric/vow").Vow<{
|
|
53
|
+
invitationMakers: {
|
|
54
|
+
[x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
|
|
55
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
56
|
+
} & {
|
|
57
|
+
readonly "Symbol(tag)": {
|
|
58
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
publicSubscribers: {
|
|
63
|
+
[x: string]: {
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
subscriber: {
|
|
66
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
67
|
+
value: any;
|
|
68
|
+
updateCount?: bigint | undefined | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
71
|
+
head: {
|
|
72
|
+
done: true;
|
|
73
|
+
value: any;
|
|
74
|
+
} | {
|
|
75
|
+
done?: false | undefined;
|
|
76
|
+
value: any;
|
|
77
|
+
};
|
|
78
|
+
publishCount: bigint;
|
|
79
|
+
tail: {
|
|
80
|
+
"Symbol(passStyle)": "tagged";
|
|
81
|
+
[Symbol.toStringTag]: "Vow";
|
|
82
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
} | {};
|
|
86
|
+
storagePath: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg, opts?: import("../orchestration-api.js").QuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
91
|
+
denom: import("../orchestration-api.js").Denom;
|
|
92
|
+
value: bigint;
|
|
93
|
+
}>;
|
|
94
|
+
getBalances(opts?: import("../orchestration-api.js").QuerierOptions | undefined): import("@agoric/vow").Vow<{
|
|
95
|
+
denom: import("../orchestration-api.js").Denom;
|
|
96
|
+
value: bigint;
|
|
97
|
+
}[]>;
|
|
98
|
+
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
99
|
+
[x: string]: {
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
subscriber: {
|
|
102
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
103
|
+
value: {};
|
|
104
|
+
updateCount?: bigint | undefined | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
107
|
+
head: {
|
|
108
|
+
done: true;
|
|
109
|
+
value: any;
|
|
110
|
+
} | {
|
|
111
|
+
done?: false | undefined;
|
|
112
|
+
value: {};
|
|
113
|
+
};
|
|
114
|
+
publishCount: bigint;
|
|
115
|
+
tail: {
|
|
116
|
+
"Symbol(passStyle)": "tagged";
|
|
117
|
+
[Symbol.toStringTag]: "Vow";
|
|
118
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
119
|
+
};
|
|
120
|
+
}>;
|
|
121
|
+
} | {};
|
|
122
|
+
storagePath: string;
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
delegate(validatorAddress: string, ertpAmount: import("@agoric/ertp").Amount<"nat">): import("@agoric/vow").Vow<Record<PropertyKey, unknown>>;
|
|
126
|
+
undelegate(validatorAddress: string, ertpAmount: import("@agoric/ertp").Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
127
|
+
deposit(payment: Payment<"nat">): import("@agoric/vow").Vow<{
|
|
128
|
+
brand: {
|
|
129
|
+
"Symbol(passStyle)": "remotable";
|
|
130
|
+
[Symbol.toStringTag]: string;
|
|
131
|
+
isMyIssuer: (allegedIssuer: import("jessie.js").ERef<import("@agoric/ertp").Issuer<"nat", import("@endo/patterns").Key>>) => Promise<boolean>;
|
|
132
|
+
getAllegedName: () => string;
|
|
133
|
+
getDisplayInfo: () => import("@agoric/ertp").DisplayInfo<"nat">;
|
|
134
|
+
getAmountShape: () => import("@endo/patterns").Pattern;
|
|
135
|
+
};
|
|
136
|
+
value: bigint;
|
|
137
|
+
}>;
|
|
138
|
+
withdraw(amount: import("@agoric/ertp").NatAmount): import("@agoric/vow").Vow<Payment<"nat">>;
|
|
22
139
|
executeTx(messages: {
|
|
23
140
|
'@type': string;
|
|
24
141
|
}[]): import("@agoric/vow").Vow<{
|
|
25
142
|
'@type': string;
|
|
26
143
|
}[]>;
|
|
27
144
|
getAddress(): import("../orchestration-api.js").CosmosChainAddress;
|
|
28
|
-
send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
29
|
-
sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<
|
|
30
|
-
transfer(destination: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions): import("@agoric/vow").Vow<
|
|
145
|
+
send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../orchestration-api.js").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
146
|
+
sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[], opts?: import("../orchestration-api.js").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
147
|
+
transfer(destination: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<{}>;
|
|
31
148
|
parseInboundTransfer(packet: Record<string, any>): import("@agoric/vow").Vow<{
|
|
32
|
-
amount:
|
|
149
|
+
amount: {
|
|
150
|
+
denom: import("../orchestration-api.js").Denom;
|
|
151
|
+
value: bigint;
|
|
152
|
+
};
|
|
33
153
|
fromAccount: string;
|
|
34
154
|
toAccount: string;
|
|
35
|
-
extra:
|
|
155
|
+
extra: {
|
|
156
|
+
[x: string]: any;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<{}>;
|
|
160
|
+
sendThenWaitForAck(packetSender: Remote<import("../exos/packet-tools.js").PacketSender>, opts?: import("../exos/packet-tools.js").PacketOptions | undefined): import("@agoric/vow").Vow<string>;
|
|
161
|
+
matchFirstPacket(args_0?: import("@agoric/vow").EVow<import("@endo/patterns").Pattern>): import("@agoric/vow").Vow<{
|
|
162
|
+
resolver: {
|
|
163
|
+
resolve: (value?: any) => void;
|
|
164
|
+
reject: (reason?: any) => void;
|
|
165
|
+
};
|
|
166
|
+
match: {
|
|
167
|
+
"Symbol(passStyle)": "tagged";
|
|
168
|
+
[Symbol.toStringTag]: "Vow";
|
|
169
|
+
payload: import("@agoric/vow").VowPayload<any>;
|
|
170
|
+
};
|
|
171
|
+
}>;
|
|
172
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").Vow<{
|
|
173
|
+
/**
|
|
174
|
+
* performs unregistration (and sends the
|
|
175
|
+
* corresponding "BRIDGE_TARGET_UNREGISTER" message to the targetHost).
|
|
176
|
+
*/
|
|
177
|
+
revoke: () => import("@agoric/vow").Vow<void>;
|
|
178
|
+
/**
|
|
179
|
+
* replaces the app associated with the target (but with no corresponding
|
|
180
|
+
* message).
|
|
181
|
+
*/
|
|
182
|
+
updateTargetApp: (targetApp: import("jessie.js").ERef<import("@agoric/vats/src/bridge-target.js").TargetApp>) => import("@agoric/vow").Vow<void>;
|
|
36
183
|
}>;
|
|
37
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
38
|
-
sendThenWaitForAck(packetSender: 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>>;
|
|
39
|
-
matchFirstPacket(args_0?: import("@agoric/vow").EVow<Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
|
|
40
|
-
resolver: import("@agoric/vow").VowResolver<any>;
|
|
41
|
-
match: import("@agoric/vow").Vow<any>;
|
|
42
|
-
}>>;
|
|
43
|
-
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>>;
|
|
44
184
|
}>>;
|
|
45
185
|
/**
|
|
46
186
|
* Invitation to make an account, without any funds
|
|
47
187
|
*/
|
|
48
|
-
makeAccountInvitationMaker(): Promise<
|
|
188
|
+
makeAccountInvitationMaker(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<{
|
|
189
|
+
invitationMakers: {
|
|
190
|
+
[x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
|
|
191
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
192
|
+
} & {
|
|
193
|
+
readonly "Symbol(tag)": {
|
|
194
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
195
|
+
};
|
|
196
|
+
}>;
|
|
197
|
+
};
|
|
198
|
+
publicSubscribers: {
|
|
199
|
+
[x: string]: {
|
|
200
|
+
description?: string | undefined;
|
|
201
|
+
subscriber: {
|
|
202
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
|
|
203
|
+
value: any;
|
|
204
|
+
updateCount?: bigint | undefined | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
|
|
207
|
+
head: {
|
|
208
|
+
done: true;
|
|
209
|
+
value: any;
|
|
210
|
+
} | {
|
|
211
|
+
done?: false | undefined;
|
|
212
|
+
value: any;
|
|
213
|
+
};
|
|
214
|
+
publishCount: bigint;
|
|
215
|
+
tail: {
|
|
216
|
+
"Symbol(passStyle)": "tagged";
|
|
217
|
+
[Symbol.toStringTag]: "Vow";
|
|
218
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
219
|
+
};
|
|
220
|
+
}>;
|
|
221
|
+
} | {};
|
|
222
|
+
storagePath: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}>, undefined>>;
|
|
49
226
|
}>;
|
|
50
227
|
}>;
|
|
51
228
|
import type { ZCF } from '@agoric/zoe';
|
|
52
229
|
import type { NameHub } from '@agoric/vats';
|
|
53
230
|
import type { Remote } from '@agoric/internal';
|
|
54
231
|
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
232
|
+
import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
|
|
233
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
55
234
|
import type { TimerService } from '@agoric/time';
|
|
235
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
236
|
+
import type { Payment } from '@agoric/ertp';
|
|
56
237
|
//# sourceMappingURL=stake-bld.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stake-bld.contract.d.ts","sourceRoot":"","sources":["stake-bld.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stake-bld.contract.d.ts","sourceRoot":"","sources":["stake-bld.contract.js"],"names":[],"mappings":"AA2CO,2BAVI,GAAG,eACH;IACN,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO;;QA+EZ;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAaR;yBA/IqB,aAAa;6BAJT,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;gCAIhC,0CAA0C;iCACzC,0CAA0C;kCANzC,cAAc;6BAGnB,kBAAkB;6BAClB,cAAc"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* @file Stake BLD contract
|
|
3
3
|
*/
|
|
4
4
|
import { makeTracer } from '@agoric/internal';
|
|
5
|
+
import { wrapRemoteMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
5
6
|
import { heapVowE as E, prepareVowTools } from '@agoric/vow/vat.js';
|
|
6
7
|
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
7
8
|
import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
|
|
@@ -13,6 +14,7 @@ import { makeChainHub } from '../exos/chain-hub.js';
|
|
|
13
14
|
import { prepareLocalOrchestrationAccountKit } from '../exos/local-orchestration-account.js';
|
|
14
15
|
import fetchedChainInfo from '../fetched-chain-info.js';
|
|
15
16
|
import { makeZoeTools } from '../utils/zoe-tools.js';
|
|
17
|
+
import { prepareProgressTracker } from '../utils/progress.js';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
* @import {NameHub} from '@agoric/vats';
|
|
@@ -20,6 +22,10 @@ import { makeZoeTools } from '../utils/zoe-tools.js';
|
|
|
20
22
|
* @import {TimerService} from '@agoric/time';
|
|
21
23
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
22
24
|
* @import {ZCF} from '@agoric/zoe';
|
|
25
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
26
|
+
* @import {Payment} from '@agoric/ertp';
|
|
27
|
+
* @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
|
|
28
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
23
29
|
*/
|
|
24
30
|
|
|
25
31
|
const trace = makeTracer('StakeBld');
|
|
@@ -29,20 +35,28 @@ const trace = makeTracer('StakeBld');
|
|
|
29
35
|
* @param {{
|
|
30
36
|
* agoricNames: Remote<NameHub>;
|
|
31
37
|
* localchain: Remote<LocalChain>;
|
|
32
|
-
* marshaller: Marshaller
|
|
33
|
-
* storageNode: StorageNode
|
|
38
|
+
* marshaller: Remote<Marshaller>;
|
|
39
|
+
* storageNode: Remote<StorageNode>;
|
|
34
40
|
* timerService: TimerService;
|
|
35
41
|
* }} privateArgs
|
|
36
|
-
* @param {
|
|
42
|
+
* @param {Baggage} baggage
|
|
37
43
|
*/
|
|
38
44
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
39
45
|
const zone = makeDurableZone(baggage);
|
|
40
46
|
|
|
47
|
+
const { marshaller: remoteMarshaller } = privateArgs;
|
|
48
|
+
// withOrchestration() provides this but this contract shows how to use orchestration without that
|
|
49
|
+
const cachingMarshaller = wrapRemoteMarshaller(remoteMarshaller);
|
|
50
|
+
|
|
41
51
|
const { makeRecorderKit } = prepareRecorderKitMakers(
|
|
42
52
|
baggage,
|
|
43
|
-
|
|
53
|
+
cachingMarshaller,
|
|
44
54
|
);
|
|
45
55
|
const vowTools = prepareVowTools(zone.subZone('vows'));
|
|
56
|
+
const makeProgressTracker = await prepareProgressTracker(
|
|
57
|
+
zone.subZone('orchestration'),
|
|
58
|
+
{ vowTools },
|
|
59
|
+
);
|
|
46
60
|
|
|
47
61
|
const chainHub = makeChainHub(
|
|
48
62
|
zone.subZone('chainHub'),
|
|
@@ -55,6 +69,7 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
55
69
|
const makeLocalOrchestrationAccountKit = prepareLocalOrchestrationAccountKit(
|
|
56
70
|
zone,
|
|
57
71
|
{
|
|
72
|
+
makeProgressTracker,
|
|
58
73
|
makeRecorderKit,
|
|
59
74
|
zcf,
|
|
60
75
|
timerService,
|