@agoric/orchestration 0.1.1-dev-12ce494.0 → 0.1.1-dev-5d18974.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/package.json +17 -17
- package/src/examples/stakeBld.contract.d.ts +14 -92
- package/src/examples/stakeBld.contract.d.ts.map +1 -1
- package/src/examples/stakeIca.contract.d.ts +13 -53
- package/src/examples/stakeIca.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.js +3 -3
- package/src/exos/cosmos-orchestration-account.d.ts +28 -77
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +23 -28
- package/src/exos/local-chain-facade.d.ts +27 -61
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +9 -10
- package/src/exos/local-orchestration-account.d.ts +23 -42
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +24 -10
- package/src/exos/orchestrator.d.ts +5 -14
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +3 -7
- package/src/exos/remote-chain-facade.d.ts +41 -117
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +17 -19
- package/src/facade.js +14 -14
- package/src/orchestration-api.d.ts +7 -7
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +13 -7
- package/src/proposals/start-stakeAtom.d.ts +13 -53
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.d.ts +14 -92
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.d.ts +18 -53
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.js +5 -1
- package/src/types.d.ts +0 -1
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +0 -1
- package/src/utils/start-helper.d.ts +2 -40
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/zoe-tools.d.ts +9 -39
- package/src/utils/zoe-tools.d.ts.map +1 -1
- package/src/utils/zoe-tools.js +21 -6
- package/src/internal.d.ts +0 -13
- package/src/internal.d.ts.map +0 -1
- package/src/internal.ts +0 -20
|
@@ -9,61 +9,21 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
|
|
|
9
9
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
10
10
|
publicFacet: import("@endo/exo").Guarded<{
|
|
11
11
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
12
|
-
asContinuingOffer(): import("@agoric/vow").Vow<
|
|
13
|
-
|
|
14
|
-
account: {
|
|
15
|
-
description: string;
|
|
16
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
17
|
-
storagePath: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
21
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
22
|
-
Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
23
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
24
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
25
|
-
CloseAccount(): never;
|
|
26
|
-
TransferAccount(): never;
|
|
27
|
-
}>;
|
|
28
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
29
|
-
}>;
|
|
30
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
31
|
-
account: {
|
|
32
|
-
description: string;
|
|
33
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
34
|
-
storagePath: string;
|
|
35
|
-
};
|
|
36
|
-
}>;
|
|
12
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
13
|
+
getPublicTopics(): import("@agoric/vow").Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
37
14
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
38
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
39
|
-
getBalances(): import("@agoric/vow").Vow<
|
|
40
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
41
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
42
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
43
|
-
send(toAccount:
|
|
44
|
-
transfer(amount:
|
|
45
|
-
transferSteps(amount:
|
|
46
|
-
withdrawRewards(): import("@agoric/vow").Vow<
|
|
47
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): import("@agoric/vow").Vow<
|
|
15
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
16
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
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 extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
18
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
19
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
20
|
+
send(toAccount: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
21
|
+
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
22
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
23
|
+
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
24
|
+
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
48
25
|
}>>;
|
|
49
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
50
|
-
publicSubscribers: {
|
|
51
|
-
account: {
|
|
52
|
-
description: string;
|
|
53
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
54
|
-
storagePath: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
58
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
59
|
-
Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
60
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
61
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
62
|
-
CloseAccount(): never;
|
|
63
|
-
TransferAccount(): never;
|
|
64
|
-
}>;
|
|
65
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
66
|
-
}>, undefined>>;
|
|
26
|
+
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
67
27
|
}>;
|
|
68
28
|
}>>;
|
|
69
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,mPAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B
|
|
1
|
+
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,mPAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAqDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAlG4C,+BAA+B"}
|
|
@@ -9,109 +9,31 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
9
9
|
timerService: import("@agoric/time").TimerService;
|
|
10
10
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
11
11
|
publicFacet: import("@endo/exo").Guarded<{
|
|
12
|
-
makeStakeBldInvitation(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
13
|
-
publicSubscribers: {
|
|
14
|
-
account: {
|
|
15
|
-
description: string;
|
|
16
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
17
|
-
storagePath: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
21
|
-
Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<Record<unknown, unknown>>, undefined>>;
|
|
22
|
-
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/time").TimestampRecord>, undefined>>;
|
|
23
|
-
CloseAccount(): never;
|
|
24
|
-
}>;
|
|
25
|
-
holder: import("@endo/exo").Guarded<{
|
|
26
|
-
asContinuingOffer(): import("@agoric/vow").Vow<any>;
|
|
27
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
28
|
-
getBalances(): import("@agoric/vow").Vow<never>;
|
|
29
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
30
|
-
account: {
|
|
31
|
-
description: string;
|
|
32
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
33
|
-
storagePath: string;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
37
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
38
|
-
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount>>;
|
|
39
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">>>;
|
|
40
|
-
executeTx(messages: {
|
|
41
|
-
'@type': string;
|
|
42
|
-
}[]): import("@agoric/vow").Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
43
|
-
'@type': string;
|
|
44
|
-
}>[]>;
|
|
45
|
-
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
46
|
-
send(toAccount: any, amount: any): import("@agoric/vow").Vow<never>;
|
|
47
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
48
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
49
|
-
}>;
|
|
50
|
-
}>, undefined>>;
|
|
12
|
+
makeStakeBldInvitation(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
51
13
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
52
|
-
asContinuingOffer(): import("@agoric/vow").Vow<
|
|
53
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
54
|
-
getBalances(): import("@agoric/vow").Vow<
|
|
55
|
-
getPublicTopics(): import("@agoric/vow").Vow<
|
|
56
|
-
account: {
|
|
57
|
-
description: string;
|
|
58
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
59
|
-
storagePath: string;
|
|
60
|
-
};
|
|
61
|
-
}>;
|
|
14
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : 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 extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
16
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
17
|
+
getPublicTopics(): import("@agoric/vow").Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
62
18
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
63
19
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
64
|
-
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount
|
|
65
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat"
|
|
20
|
+
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount> extends import("@endo/pass-style").Passable ? import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount> : import("@agoric/async-flow").HostInterface<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount>>>;
|
|
21
|
+
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">> extends import("@endo/pass-style").Passable ? globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">> : import("@agoric/async-flow").HostInterface<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">>>>;
|
|
66
22
|
executeTx(messages: {
|
|
67
23
|
'@type': string;
|
|
68
24
|
}[]): import("@agoric/vow").Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
69
25
|
'@type': string;
|
|
70
|
-
}>[]
|
|
26
|
+
}>[] extends import("@endo/pass-style").Passable ? import("@agoric/cosmic-proto").JsonSafe<{
|
|
27
|
+
'@type': string;
|
|
28
|
+
}>[] : import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto").JsonSafe<{
|
|
29
|
+
'@type': string;
|
|
30
|
+
}>[]>>;
|
|
71
31
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
72
32
|
send(toAccount: any, amount: any): import("@agoric/vow").Vow<never>;
|
|
73
33
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
74
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void
|
|
34
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
75
35
|
}>>;
|
|
76
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
77
|
-
publicSubscribers: {
|
|
78
|
-
account: {
|
|
79
|
-
description: string;
|
|
80
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
81
|
-
storagePath: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
85
|
-
Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<Record<unknown, unknown>>, undefined>>;
|
|
86
|
-
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/time").TimestampRecord>, undefined>>;
|
|
87
|
-
CloseAccount(): never;
|
|
88
|
-
}>;
|
|
89
|
-
holder: import("@endo/exo").Guarded<{
|
|
90
|
-
asContinuingOffer(): import("@agoric/vow").Vow<any>;
|
|
91
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
92
|
-
getBalances(): import("@agoric/vow").Vow<never>;
|
|
93
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
94
|
-
account: {
|
|
95
|
-
description: string;
|
|
96
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
97
|
-
storagePath: string;
|
|
98
|
-
};
|
|
99
|
-
}>;
|
|
100
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
101
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
102
|
-
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount>>;
|
|
103
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">>>;
|
|
104
|
-
executeTx(messages: {
|
|
105
|
-
'@type': string;
|
|
106
|
-
}[]): import("@agoric/vow").Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
107
|
-
'@type': string;
|
|
108
|
-
}>[]>;
|
|
109
|
-
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
110
|
-
send(toAccount: any, amount: any): import("@agoric/vow").Vow<never>;
|
|
111
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
112
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
113
|
-
}>;
|
|
114
|
-
}>, undefined>>;
|
|
36
|
+
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
115
37
|
}>;
|
|
116
38
|
}>>;
|
|
117
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;+BAiCqB,kBAAiB
|
|
1
|
+
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;+BAiCqB,kBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjC2B,CACxD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
|
|
@@ -9,65 +9,30 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
|
|
|
9
9
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
10
10
|
publicFacet: import("@endo/exo").Guarded<{
|
|
11
11
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
12
|
-
asContinuingOffer(): import("@agoric/vow").Vow<
|
|
13
|
-
|
|
14
|
-
account: {
|
|
15
|
-
description: string;
|
|
16
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
17
|
-
storagePath: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
21
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
22
|
-
Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
23
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
24
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
25
|
-
CloseAccount(): never;
|
|
26
|
-
TransferAccount(): never;
|
|
27
|
-
}>;
|
|
28
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
29
|
-
}>;
|
|
30
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
31
|
-
account: {
|
|
32
|
-
description: string;
|
|
33
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
34
|
-
storagePath: string;
|
|
35
|
-
};
|
|
36
|
-
}>;
|
|
12
|
+
asContinuingOffer(): import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
13
|
+
getPublicTopics(): import("@agoric/vow").Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
37
14
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
38
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
39
|
-
getBalances(): import("@agoric/vow").Vow<
|
|
40
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
41
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
42
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
43
|
-
send(toAccount:
|
|
44
|
-
transfer(amount:
|
|
45
|
-
transferSteps(amount:
|
|
46
|
-
withdrawRewards(): import("@agoric/vow").Vow<
|
|
47
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): import("@agoric/vow").Vow<
|
|
15
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
16
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
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 extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
18
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
19
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
20
|
+
send(toAccount: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
21
|
+
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
22
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
23
|
+
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
24
|
+
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): import("@agoric/vow").Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
48
25
|
}>>;
|
|
49
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
50
|
-
publicSubscribers: {
|
|
51
|
-
account: {
|
|
52
|
-
description: string;
|
|
53
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
54
|
-
storagePath: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
58
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
59
|
-
Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
60
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
61
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
62
|
-
CloseAccount(): never;
|
|
63
|
-
TransferAccount(): never;
|
|
64
|
-
}>;
|
|
65
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
66
|
-
}>, undefined>>;
|
|
26
|
+
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
67
27
|
}>;
|
|
68
28
|
}>>;
|
|
69
29
|
};
|
|
70
30
|
};
|
|
31
|
+
instance: {
|
|
32
|
+
produce: {
|
|
33
|
+
stakeOsmo: any;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
71
36
|
}): Promise<void>;
|
|
72
37
|
export function getManifestForStakeOsmo({ restoreRef }: {
|
|
73
38
|
restoreRef: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AA8BO,mPAfI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;IACN,QAAY,EAAE;QACd,OAAa,EAAE;YACf,SAAiB,EAAE,GAAG,CAAC;SAChB,CAAC;KACH,CAAC;CACH,iBAqDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
|
|
@@ -21,6 +21,11 @@ const trace = makeTracer('StartStakeOsmo', true);
|
|
|
21
21
|
* >;
|
|
22
22
|
* };
|
|
23
23
|
* };
|
|
24
|
+
* instance: {
|
|
25
|
+
* produce: {
|
|
26
|
+
* stakeOsmo: any;
|
|
27
|
+
* };
|
|
28
|
+
* };
|
|
24
29
|
* }} powers
|
|
25
30
|
*/
|
|
26
31
|
export const startStakeOsmo = async ({
|
|
@@ -36,7 +41,6 @@ export const startStakeOsmo = async ({
|
|
|
36
41
|
consume: { stakeIca },
|
|
37
42
|
},
|
|
38
43
|
instance: {
|
|
39
|
-
// @ts-expect-error stakeOsmo not typed
|
|
40
44
|
produce: { stakeOsmo: produceInstance },
|
|
41
45
|
},
|
|
42
46
|
}) => {
|
package/src/types.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export type * from './cosmos-api.js';
|
|
|
4
4
|
export type * from './ethereum-api.js';
|
|
5
5
|
export type * from './exos/chain-account-kit.js';
|
|
6
6
|
export type * from './exos/icq-connection-kit.js';
|
|
7
|
-
export type * from './internal.js';
|
|
8
7
|
export type * from './orchestration-api.js';
|
|
9
8
|
export type * from './exos/cosmos-interchain-service.js';
|
|
10
9
|
export type * from './vat-orchestration.js';
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,wBAAwB,CAAC"}
|
package/src/types.ts
CHANGED
|
@@ -5,7 +5,6 @@ export type * from './cosmos-api.js';
|
|
|
5
5
|
export type * from './ethereum-api.js';
|
|
6
6
|
export type * from './exos/chain-account-kit.js';
|
|
7
7
|
export type * from './exos/icq-connection-kit.js';
|
|
8
|
-
export type * from './internal.js';
|
|
9
8
|
export type * from './orchestration-api.js';
|
|
10
9
|
export type * from './exos/cosmos-interchain-service.js';
|
|
11
10
|
export type * from './vat-orchestration.js';
|
|
@@ -17,48 +17,10 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
17
17
|
allVows: (maybeVows: import("@agoric/vow").EVow<unknown>[]) => import("@agoric/vow").Vow<any[]>;
|
|
18
18
|
asVow: <T extends unknown>(fn: (...args: any[]) => import("@agoric/vow").Vow<Awaited<T>> | Awaited<T> | import("@agoric/vow").PromiseVow<T>) => import("@agoric/vow").Vow<Awaited<T>>;
|
|
19
19
|
asPromise: import("@agoric/vow").AsPromiseFunction;
|
|
20
|
-
retriable: <F extends (...args: any[]) => any
|
|
20
|
+
retriable: <F extends (...args: any[]) => Promise<any>>(fnZone: Zone, name: string, fn: F) => F extends (...args: infer Args) => Promise<infer R> ? (...args: Args) => import("@agoric/vow").Vow<R> : never;
|
|
21
21
|
};
|
|
22
22
|
zoeTools: {
|
|
23
|
-
localTransfer: (srcSeat: ZCFSeat, localAccount: import("@
|
|
24
|
-
asContinuingOffer(): import("@agoric/vow").Vow<{
|
|
25
|
-
publicSubscribers: {
|
|
26
|
-
account: {
|
|
27
|
-
description: string;
|
|
28
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
29
|
-
storagePath: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
33
|
-
Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<Record<unknown, unknown>>, undefined>>;
|
|
34
|
-
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/time").TimestampRecord>, undefined>>;
|
|
35
|
-
CloseAccount(): never;
|
|
36
|
-
}>;
|
|
37
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
38
|
-
}>;
|
|
39
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
40
|
-
getBalances(): import("@agoric/vow").Vow<never>;
|
|
41
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
42
|
-
account: {
|
|
43
|
-
description: string;
|
|
44
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
45
|
-
storagePath: string;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
48
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
49
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
50
|
-
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount | import("@agoric/vow").Vow<import("@agoric/ertp/src/types.js").NatAmount>>;
|
|
51
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">>>;
|
|
52
|
-
executeTx(messages: {
|
|
53
|
-
'@type': string;
|
|
54
|
-
}[]): import("@agoric/vow").Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
55
|
-
'@type': string;
|
|
56
|
-
}>[]>;
|
|
57
|
-
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
58
|
-
send(toAccount: any, amount: any): import("@agoric/vow").Vow<never>;
|
|
59
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
60
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
61
|
-
}>, give: AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
|
|
23
|
+
localTransfer: (srcSeat: ZCFSeat, localAccount: import("../cosmos-api.js").LocalAccountMethods, give: AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
|
|
62
24
|
};
|
|
63
25
|
zone: Zone;
|
|
64
26
|
adminAsyncFlow: import("@endo/exo").Guarded<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCA+B+B,GAAG;;+
|
|
1
|
+
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCA+B+B,GAAG;;+BAjDjD,GAAG,+EAIY,GAAG,yCACA,GAAG;;;;;;;;;;;8PAsBrB,GACF,8CAImB,GAAG;;gCAiCxB,GAAE;;;;EAyDH;AAuBM,kCAdgC,EAAE,SAA3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,EAGhC,EAAE,SAFM,mBAAmB,GAAG;IACnC,UAAc,EAAE,UAAU,CAAC;CACvB,EACQ,CAAC,cACH,CACV,GAAO,EAAE,GAAG,CAAC,EAAE,CAAC,EAChB,WAAe,EAAE,EAAE,EACnB,IAAQ,EAAE,IAAI,EACd,KAAS,EAAE,kBAAkB,KACtB,OAAO,CAAC,CAAC,CAAC,GACL,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAYzE;kCA1JU;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;iCAuHU,IAAI,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,EAAE,MAAM,CAAC;6BArIzC,kBAAkB;0BAGrB,cAAc;gCALR,gCAAgC;4BAIpC,aAAa;6CAEI,sCAAsC;kCALrC,cAAc;6BAE/B,cAAc"}
|
package/src/utils/zoe-tools.d.ts
CHANGED
|
@@ -2,47 +2,17 @@ export function makeZoeTools(zone: Zone, { zcf, vowTools }: {
|
|
|
2
2
|
zcf: ZCF;
|
|
3
3
|
vowTools: VowTools;
|
|
4
4
|
}): {
|
|
5
|
-
localTransfer: (srcSeat: ZCFSeat, localAccount:
|
|
6
|
-
asContinuingOffer(): Vow<{
|
|
7
|
-
publicSubscribers: {
|
|
8
|
-
account: {
|
|
9
|
-
description: string;
|
|
10
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
11
|
-
storagePath: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
15
|
-
Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Vow<Record<unknown, unknown>>, undefined>>;
|
|
16
|
-
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Vow<import("@agoric/time").TimestampRecord>, undefined>>;
|
|
17
|
-
CloseAccount(): never;
|
|
18
|
-
}>;
|
|
19
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
20
|
-
}>;
|
|
21
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount>;
|
|
22
|
-
getBalances(): Vow<never>;
|
|
23
|
-
getPublicTopics(): Vow<{
|
|
24
|
-
account: {
|
|
25
|
-
description: string;
|
|
26
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
27
|
-
storagePath: string;
|
|
28
|
-
};
|
|
29
|
-
}>;
|
|
30
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<Record<unknown, unknown>>;
|
|
31
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<void | import("@agoric/time").TimestampRecord>;
|
|
32
|
-
deposit(payment: globalThis.Payment<"nat">, optAmountShape?: globalThis.Pattern): Vow<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount>>;
|
|
33
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): Vow<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">>>;
|
|
34
|
-
executeTx(messages: {
|
|
35
|
-
'@type': string;
|
|
36
|
-
}[]): Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
37
|
-
'@type': string;
|
|
38
|
-
}>[]>;
|
|
39
|
-
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
40
|
-
send(toAccount: any, amount: any): Vow<never>;
|
|
41
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void>;
|
|
42
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void>;
|
|
43
|
-
}>, give: AmountKeywordRecord) => Vow<void>;
|
|
5
|
+
localTransfer: (srcSeat: ZCFSeat, localAccount: LocalAccountMethods, give: AmountKeywordRecord) => Vow<void>;
|
|
44
6
|
};
|
|
7
|
+
export type ResolvedContinuingOfferResult = {
|
|
8
|
+
invitationMakers: InvitationMakers;
|
|
9
|
+
publicSubscribers: Record<string, ResolvedPublicTopic<any>>;
|
|
10
|
+
};
|
|
11
|
+
export type LocalTransfer = (srcSeat: ZCFSeat, localAccount: LocalAccountMethods, give: AmountKeywordRecord) => Promise<void>;
|
|
45
12
|
import type { Zone } from '@agoric/zone';
|
|
46
13
|
import type { VowTools } from '@agoric/vow';
|
|
14
|
+
import type { LocalAccountMethods } from '../types.js';
|
|
47
15
|
import type { Vow } from '@agoric/vow';
|
|
16
|
+
import type { InvitationMakers } from '@agoric/smart-wallet/src/types.js';
|
|
17
|
+
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
48
18
|
//# sourceMappingURL=zoe-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoe-tools.d.ts","sourceRoot":"","sources":["zoe-tools.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoe-tools.d.ts","sourceRoot":"","sources":["zoe-tools.js"],"names":[],"mappings":"AAiCO,mCAHI,IAAI,qBACJ;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE;;EA+C1C;4CAjEY;IACZ,gBAAoB,EAAE,gBAAgB,CAAC;IACvC,iBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,CAAC,CAAC,CAAC;CAC7D;4BAMS,CACZ,OAAW,EAAE,OAAO,EACpB,YAAgB,EAAE,mBAAmB,EACrC,IAAQ,EAAE,mBAAmB,KACtB,OAAO,CAAC,IAAI,CAAC;0BAnBE,cAAc;8BADL,aAAa;yCAGP,aAAa;yBAHnB,aAAa;sCAFV,mCAAmC;yCAChC,2CAA2C"}
|
package/src/utils/zoe-tools.js
CHANGED
|
@@ -2,10 +2,29 @@ import { Fail } from '@endo/errors';
|
|
|
2
2
|
import { atomicTransfer } from '@agoric/zoe/src/contractSupport/index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @import {
|
|
5
|
+
* @import {InvitationMakers} from '@agoric/smart-wallet/src/types.js';
|
|
6
|
+
* @import {ResolvedPublicTopic} from '@agoric/zoe/src/contractSupport/topics.js';
|
|
6
7
|
* @import {Vow, VowTools} from '@agoric/vow';
|
|
7
8
|
* @import {Zone} from '@agoric/zone';
|
|
8
9
|
* @import {OrchestrationAccount} from '../orchestration-api.js'
|
|
10
|
+
* @import {LocalAccountMethods} from '../types.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {{
|
|
15
|
+
* invitationMakers: InvitationMakers;
|
|
16
|
+
* publicSubscribers: Record<string, ResolvedPublicTopic<any>>;
|
|
17
|
+
* }} ResolvedContinuingOfferResult
|
|
18
|
+
*
|
|
19
|
+
* @see {ContinuingOfferResult}
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {(
|
|
24
|
+
* srcSeat: ZCFSeat,
|
|
25
|
+
* localAccount: LocalAccountMethods,
|
|
26
|
+
* give: AmountKeywordRecord,
|
|
27
|
+
* ) => Promise<void>} LocalTransfer
|
|
9
28
|
*/
|
|
10
29
|
|
|
11
30
|
/**
|
|
@@ -20,11 +39,7 @@ export const makeZoeTools = (zone, { zcf, vowTools }) => {
|
|
|
20
39
|
zone,
|
|
21
40
|
'localTransfer',
|
|
22
41
|
/**
|
|
23
|
-
* @type {
|
|
24
|
-
* srcSeat: ZCFSeat,
|
|
25
|
-
* localAccount: LocalOrchestrationAccountKit['holder'],
|
|
26
|
-
* give: AmountKeywordRecord,
|
|
27
|
-
* ) => Promise<void>}
|
|
42
|
+
* @type {LocalTransfer}
|
|
28
43
|
*/
|
|
29
44
|
async (srcSeat, localAccount, give) => {
|
|
30
45
|
!srcSeat.hasExited() || Fail`The seat cannot have exited.`;
|
package/src/internal.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Vow } from '@agoric/vow';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a function type that returns a Promise to a function type that
|
|
4
|
-
* returns a Vow. If the input is not a function returning a Promise, it
|
|
5
|
-
* preserves the original type.
|
|
6
|
-
*
|
|
7
|
-
* @template T - The type to transform
|
|
8
|
-
*/
|
|
9
|
-
export type PromiseToVow<T> = T extends (...args: infer Args) => Promise<infer R> ? (...args: Args) => Vow<R> : T extends (...args: infer Args) => infer R ? (...args: Args) => R : T;
|
|
10
|
-
export type VowifyAll<T> = {
|
|
11
|
-
[K in keyof T]: PromiseToVow<T[K]>;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=internal.d.ts.map
|
package/src/internal.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,CACtC,GAAG,IAAI,EAAE,MAAM,IAAI,KAChB,OAAO,CAAC,MAAM,CAAC,CAAC,GACjB,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,IAAI,KAAK,MAAM,CAAC,GACxC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GACpB,CAAC,CAAC;AAER,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC"}
|
package/src/internal.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Vow } from '@agoric/vow';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Converts a function type that returns a Promise to a function type that
|
|
5
|
-
* returns a Vow. If the input is not a function returning a Promise, it
|
|
6
|
-
* preserves the original type.
|
|
7
|
-
*
|
|
8
|
-
* @template T - The type to transform
|
|
9
|
-
*/
|
|
10
|
-
export type PromiseToVow<T> = T extends (
|
|
11
|
-
...args: infer Args
|
|
12
|
-
) => Promise<infer R>
|
|
13
|
-
? (...args: Args) => Vow<R>
|
|
14
|
-
: T extends (...args: infer Args) => infer R
|
|
15
|
-
? (...args: Args) => R
|
|
16
|
-
: T;
|
|
17
|
-
|
|
18
|
-
export type VowifyAll<T> = {
|
|
19
|
-
[K in keyof T]: PromiseToVow<T[K]>;
|
|
20
|
-
};
|