@agoric/orchestration 0.1.1-dev-12ce494.0 → 0.1.1-dev-3915e4c.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-3915e4c.0+3915e4c",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-3915e4c.0+3915e4c",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-3915e4c.0+3915e4c",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-3915e4c.0+3915e4c",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-3915e4c.0+3915e4c",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-3915e4c.0+3915e4c",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-3915e4c.0+3915e4c",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-3915e4c.0+3915e4c",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-3915e4c.0+3915e4c",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-3915e4c.0+3915e4c",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-3915e4c.0+3915e4c",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-3915e4c.0+3915e4c",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-3915e4c.0+3915e4c",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-3915e4c.0+3915e4c",
|
|
49
49
|
"@endo/base64": "^1.0.5",
|
|
50
50
|
"@endo/errors": "^1.2.2",
|
|
51
51
|
"@endo/far": "^1.1.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@endo/patterns": "^1.4.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
56
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-3915e4c.0+3915e4c",
|
|
57
57
|
"@chain-registry/client": "^1.47.4",
|
|
58
58
|
"@cosmjs/amino": "^0.32.3",
|
|
59
59
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
91
|
"typeCoverage": {
|
|
92
|
-
"atLeast": 97.
|
|
92
|
+
"atLeast": 97.99
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "3915e4cfaf6b3a86d0f5d5e69a57ca5166e2d721"
|
|
95
95
|
}
|
|
@@ -9,112 +9,34 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
9
9
|
/**
|
|
10
10
|
* Invitation to make an account, initialized with the give's BLD
|
|
11
11
|
*/
|
|
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/marshal").Passable ? import("@endo/marshal").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/marshal").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/marshal").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/marshal").Passable ? import("@endo/marshal").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/marshal").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/marshal").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/marshal").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/marshal").Passable ? import("@endo/marshal").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
75
35
|
}>>;
|
|
76
36
|
/**
|
|
77
37
|
* Invitation to make an account, without any funds
|
|
78
38
|
*/
|
|
79
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
80
|
-
publicSubscribers: {
|
|
81
|
-
account: {
|
|
82
|
-
description: string;
|
|
83
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
84
|
-
storagePath: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
88
|
-
Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<Record<unknown, unknown>>, undefined>>;
|
|
89
|
-
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/time").TimestampRecord>, undefined>>;
|
|
90
|
-
CloseAccount(): never;
|
|
91
|
-
}>;
|
|
92
|
-
holder: import("@endo/exo").Guarded<{
|
|
93
|
-
asContinuingOffer(): import("@agoric/vow").Vow<any>;
|
|
94
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
95
|
-
getBalances(): import("@agoric/vow").Vow<never>;
|
|
96
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
97
|
-
account: {
|
|
98
|
-
description: string;
|
|
99
|
-
subscriber: globalThis.Subscriber<import("../exos/local-orchestration-account.js").LocalChainAccountNotification>;
|
|
100
|
-
storagePath: string;
|
|
101
|
-
};
|
|
102
|
-
}>;
|
|
103
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
104
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
105
|
-
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>>;
|
|
106
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat"> | import("@agoric/vow").Vow<globalThis.Payment<"nat">>>;
|
|
107
|
-
executeTx(messages: {
|
|
108
|
-
'@type': string;
|
|
109
|
-
}[]): import("@agoric/vow").Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
110
|
-
'@type': string;
|
|
111
|
-
}>[]>;
|
|
112
|
-
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
113
|
-
send(toAccount: any, amount: any): import("@agoric/vow").Vow<never>;
|
|
114
|
-
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>;
|
|
115
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
116
|
-
}>;
|
|
117
|
-
}>, undefined>>;
|
|
39
|
+
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
118
40
|
}>;
|
|
119
41
|
}>;
|
|
120
42
|
import type { NameHub } from '@agoric/vats';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAkCO,2BAVI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,UAAc,EAAE,UAAU,CAAC;IAC3B,WAAe,EAAE,WAAW,CAAC;IAC7B,YAAgB,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAiDvC;;WAEG
|
|
1
|
+
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAkCO,2BAVI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,UAAc,EAAE,UAAU,CAAC;IAC3B,WAAe,EAAE,WAAW,CAAC;IAC7B,YAAgB,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAiDvC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;QA0BH;;WAEG;;;GAaR;6BA7GyB,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;kCAD9B,cAAc"}
|
|
@@ -20,61 +20,21 @@ export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
|
20
20
|
}, baggage: Baggage): Promise<{
|
|
21
21
|
publicFacet: import("@endo/exo").Guarded<{
|
|
22
22
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
23
|
-
asContinuingOffer(): import("@agoric/vow").Vow<
|
|
24
|
-
|
|
25
|
-
account: {
|
|
26
|
-
description: string;
|
|
27
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
28
|
-
storagePath: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
32
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
33
|
-
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>>;
|
|
34
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
35
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
36
|
-
CloseAccount(): never;
|
|
37
|
-
TransferAccount(): never;
|
|
38
|
-
}>;
|
|
39
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
40
|
-
}>;
|
|
41
|
-
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
42
|
-
account: {
|
|
43
|
-
description: string;
|
|
44
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
45
|
-
storagePath: string;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
23
|
+
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>>;
|
|
24
|
+
getPublicTopics(): import("@agoric/vow").Vow<Record<string, import("@agoric/zoe/src/contractSupport").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport").ResolvedPublicTopic<unknown>>>>;
|
|
48
25
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
49
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
50
|
-
getBalances(): import("@agoric/vow").Vow<
|
|
51
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<
|
|
52
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]
|
|
53
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount
|
|
54
|
-
send(toAccount:
|
|
55
|
-
transfer(amount:
|
|
56
|
-
transferSteps(amount:
|
|
57
|
-
withdrawRewards(): import("@agoric/vow").Vow<
|
|
58
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): import("@agoric/vow").Vow<
|
|
26
|
+
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>>;
|
|
27
|
+
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[]>>;
|
|
28
|
+
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>>;
|
|
29
|
+
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[]>>;
|
|
30
|
+
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>>;
|
|
31
|
+
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>>;
|
|
32
|
+
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>>;
|
|
33
|
+
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>>;
|
|
34
|
+
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[]>>;
|
|
35
|
+
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>>;
|
|
59
36
|
}>>;
|
|
60
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
61
|
-
publicSubscribers: {
|
|
62
|
-
account: {
|
|
63
|
-
description: string;
|
|
64
|
-
subscriber: globalThis.Subscriber<import("../exos/cosmos-orchestration-account.js").ComosOrchestrationAccountNotification>;
|
|
65
|
-
storagePath: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
69
|
-
Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
70
|
-
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>>;
|
|
71
|
-
WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
72
|
-
Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<import("@agoric/vow").Vow<undefined>, undefined>>;
|
|
73
|
-
CloseAccount(): never;
|
|
74
|
-
TransferAccount(): never;
|
|
75
|
-
}>;
|
|
76
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
77
|
-
}>, undefined>>;
|
|
37
|
+
makeAccountInvitationMaker(): Promise<Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
78
38
|
}>;
|
|
79
39
|
}>;
|
|
80
40
|
export type StakeIcaTerms = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;AACH;;;;;cAAsD;AAsB/C,2BATI,GAAG,CAAC,aAAa,CAAC,eAClB;IACV,uBAA2B,EAAE,uBAAuB,CAAC;IACrD,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;IAC3B,KAAS,EAAE,YAAY,CAAC;CACrB,WACO,OAAO
|
|
1
|
+
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;AACH;;;;;cAAsD;AAsB/C,2BATI,GAAG,CAAC,aAAa,CAAC,eAClB;IACV,uBAA2B,EAAE,uBAAuB,CAAC;IACrD,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;IAC3B,KAAS,EAAE,YAAY,CAAC;CACrB,WACO,OAAO;;;;;;;;;;;;;;;;;;;GAuFjB;4BAxGY;IACZ,OAAW,EAAE,MAAM,CAAC;IACpB,gBAAoB,EAAE,eAAe,CAAC;IACtC,sBAA0B,EAAE,eAAe,CAAC;IAC5C,SAAa,EAAE,MAAM,CAAC;IACtB,UAAc,EAAE,OAAO,CAAC;CACrB;yBAoGU,OAAO,KAAK;6CAhI+B,aAAa;kCADvC,cAAc;6BAFnB,kBAAkB;qCACV,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AA8DA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAmDtD;iBA5CkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;oBAYV,MAAM,CAAC,KAAK,CAAC;uBAAa,sBAAsB;;;GA2BhB;
|
|
1
|
+
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AA8DA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAmDtD;iBA5CkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;oBAYV,MAAM,CAAC,KAAK,CAAC;uBAAa,sBAAsB;;;GA2BhB;6BAxHvB,cAAc;4BAFf,kBAAkB;gCADd,gCAAgC;6CAEnB,sCAAsC;kCAHjD,cAAc;4CADU,aAAa"}
|
|
@@ -5,6 +5,8 @@ import { orcUtils } from '../utils/orc.js';
|
|
|
5
5
|
import { withOrchestration } from '../utils/start-helper.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* @import {GuestInterface, GuestOf} from '@agoric/async-flow';
|
|
9
|
+
* @import {LocalTransfer} from '../utils/zoe-tools.js';
|
|
8
10
|
* @import {Orchestrator, CosmosValidatorAddress} from '../types.js'
|
|
9
11
|
* @import {TimerService} from '@agoric/time';
|
|
10
12
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
@@ -18,7 +20,7 @@ import { withOrchestration } from '../utils/start-helper.js';
|
|
|
18
20
|
/**
|
|
19
21
|
* @param {Orchestrator} orch
|
|
20
22
|
* @param {object} ctx
|
|
21
|
-
* @param {
|
|
23
|
+
* @param {LocalTransfer} ctx.localTransfer
|
|
22
24
|
* @param {ZCFSeat} seat
|
|
23
25
|
* @param {object} offerArgs
|
|
24
26
|
* @param {Amount<'nat'>} offerArgs.staked
|
|
@@ -38,8 +40,6 @@ const stackAndSwapFn = async (orch, { localTransfer }, seat, offerArgs) => {
|
|
|
38
40
|
const omniAddress = omniAccount.getAddress();
|
|
39
41
|
|
|
40
42
|
// deposit funds from user seat to LocalChainAccount
|
|
41
|
-
// TODO localTransfer type returns vow but in the guest context it should be a promise
|
|
42
|
-
// @ts-expect-error XXX localAccount type
|
|
43
43
|
await localTransfer(seat, localAccount, give);
|
|
44
44
|
seat.exit();
|
|
45
45
|
|
|
@@ -73,17 +73,17 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, makeRecorderKit
|
|
|
73
73
|
* @param {CosmosValidatorAddress} validator
|
|
74
74
|
* @param {AmountArg} amount
|
|
75
75
|
*/
|
|
76
|
-
Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<
|
|
76
|
+
Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
|
|
77
77
|
/**
|
|
78
78
|
* @param {CosmosValidatorAddress} srcValidator
|
|
79
79
|
* @param {CosmosValidatorAddress} dstValidator
|
|
80
80
|
* @param {AmountArg} amount
|
|
81
81
|
*/
|
|
82
|
-
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<
|
|
82
|
+
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
|
|
83
83
|
/** @param {CosmosValidatorAddress} validator */
|
|
84
84
|
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<DenomAmount[]>, undefined>>;
|
|
85
85
|
/** @param {Omit<Delegation, 'delegatorAddress'>[]} delegations */
|
|
86
|
-
Undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Promise<Invitation<Vow<
|
|
86
|
+
Undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Promise<Invitation<Vow<void>, undefined>>;
|
|
87
87
|
CloseAccount(): never;
|
|
88
88
|
/**
|
|
89
89
|
* Starting a transfer revokes the account holder. The associated
|
|
@@ -93,81 +93,32 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, makeRecorderKit
|
|
|
93
93
|
TransferAccount(): never;
|
|
94
94
|
};
|
|
95
95
|
holder: {
|
|
96
|
-
asContinuingOffer
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
storagePath: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
105
|
-
/**
|
|
106
|
-
* @param {CosmosValidatorAddress} validator
|
|
107
|
-
* @param {AmountArg} amount
|
|
108
|
-
*/
|
|
109
|
-
Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<undefined>, undefined>>;
|
|
110
|
-
/**
|
|
111
|
-
* @param {CosmosValidatorAddress} srcValidator
|
|
112
|
-
* @param {CosmosValidatorAddress} dstValidator
|
|
113
|
-
* @param {AmountArg} amount
|
|
114
|
-
*/
|
|
115
|
-
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<undefined>, undefined>>;
|
|
116
|
-
/** @param {CosmosValidatorAddress} validator */
|
|
117
|
-
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<DenomAmount[]>, undefined>>;
|
|
118
|
-
/** @param {Omit<Delegation, 'delegatorAddress'>[]} delegations */
|
|
119
|
-
Undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Promise<Invitation<Vow<undefined>, undefined>>;
|
|
120
|
-
CloseAccount(): never;
|
|
121
|
-
/**
|
|
122
|
-
* Starting a transfer revokes the account holder. The associated
|
|
123
|
-
* updater will get a special notification that the account is being
|
|
124
|
-
* transferred.
|
|
125
|
-
*/
|
|
126
|
-
TransferAccount(): never;
|
|
127
|
-
}>;
|
|
128
|
-
holder: import("@endo/exo").Guarded<any>;
|
|
129
|
-
}>;
|
|
130
|
-
getPublicTopics(): Vow<{
|
|
131
|
-
account: {
|
|
132
|
-
description: string;
|
|
133
|
-
subscriber: globalThis.Subscriber<ComosOrchestrationAccountNotification>;
|
|
134
|
-
storagePath: string;
|
|
135
|
-
};
|
|
136
|
-
}>;
|
|
137
|
-
/** @returns {ChainAddress} */
|
|
96
|
+
/** @type {HostOf<OrchestrationAccountI['asContinuingOffer']>} */
|
|
97
|
+
asContinuingOffer(): 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>>;
|
|
98
|
+
/** @type {HostOf<OrchestrationAccountI['getPublicTopics']>} */
|
|
99
|
+
getPublicTopics(): 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>>>>;
|
|
100
|
+
/** @type {HostOf<OrchestrationAccountI['getAddress']>} */
|
|
138
101
|
getAddress(): ChainAddress;
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
withdrawReward(validator: CosmosValidatorAddress): Vow<DenomAmount[]>;
|
|
160
|
-
/**
|
|
161
|
-
* @param {DenomArg} denom
|
|
162
|
-
* @returns {Vow<DenomAmount>}
|
|
163
|
-
*/
|
|
164
|
-
getBalance(denom: DenomArg): Vow<DenomAmount>;
|
|
165
|
-
send(toAccount: any, amount: any): Vow<never>;
|
|
166
|
-
transfer(amount: any, msg: any): Vow<never>;
|
|
167
|
-
transferSteps(amount: any, msg: any): Vow<never>;
|
|
168
|
-
withdrawRewards(): Vow<never>;
|
|
169
|
-
/** @param {Omit<Delegation, 'delegatorAddress'>[]} delegations */
|
|
170
|
-
undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Vow<undefined>;
|
|
102
|
+
/** @type {HostOf<StakingAccountActions['delegate']>} */
|
|
103
|
+
delegate(validator: CosmosValidatorAddress, amount: AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
104
|
+
/** @type {HostOf<OrchestrationAccountI['getBalances']>} */
|
|
105
|
+
getBalances(): Vow<DenomAmount[] extends import("@endo/pass-style").Passable ? DenomAmount[] : import("@agoric/async-flow").HostInterface<DenomAmount[]>>;
|
|
106
|
+
/** @type {HostOf<StakingAccountActions['redelegate']>} */
|
|
107
|
+
redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
108
|
+
/** @type {HostOf<StakingAccountActions['withdrawReward']>} */
|
|
109
|
+
withdrawReward(validator: CosmosValidatorAddress): Vow<DenomAmount[] extends import("@endo/pass-style").Passable ? DenomAmount[] : import("@agoric/async-flow").HostInterface<DenomAmount[]>>;
|
|
110
|
+
/** @type {HostOf<OrchestrationAccountI['getBalance']>} */
|
|
111
|
+
getBalance(denom: DenomArg): Vow<DenomAmount extends import("@endo/pass-style").Passable ? DenomAmount : import("@agoric/async-flow").HostInterface<DenomAmount>>;
|
|
112
|
+
/** @type {HostOf<OrchestrationAccountI['send']>} */
|
|
113
|
+
send(toAccount: ChainAddress, amount: AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
114
|
+
/** @type {HostOf<OrchestrationAccountI['transfer']>} */
|
|
115
|
+
transfer(amount: AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
116
|
+
/** @type {HostOf<OrchestrationAccountI['transferSteps']>} */
|
|
117
|
+
transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
118
|
+
/** @type {HostOf<StakingAccountActions['withdrawRewards']>} */
|
|
119
|
+
withdrawRewards(): Vow<DenomAmount[] extends import("@endo/pass-style").Passable ? DenomAmount[] : import("@agoric/async-flow").HostInterface<DenomAmount[]>>;
|
|
120
|
+
/** @type {HostOf<StakingAccountActions['undelegate']>} */
|
|
121
|
+
undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
171
122
|
};
|
|
172
123
|
}>;
|
|
173
124
|
export function prepareCosmosOrchestrationAccount(zone: Zone, makeRecorderKit: MakeRecorderKit, vowTools: VowTools, zcf: ZCF): (...args: Parameters<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>) => CosmosOrchestrationAccountKit["holder"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AAsDA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,mCAAmC;AACnC;;;;;;;;;;;;;;GAaG;AAgBI,2DALI,IAAI,mBACJ,eAAe,0BACf,QAAQ,OACR,GAAG;aAwDC,UAAU;iBACV,OAAO,WAAW,CAAC;mBACnB,aAAa,GAAG,SAAS;WACzB,OAAO,YAAY,CAAC;;;QAc3B,wDAAwD;;;QAWxD;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAiBjB;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAYpC;;WAEG;4BADQ,MAAM;;IAgBnB;;;OAGG;;QAED,uDAAuD;4BAA3C,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;QAO5C,6BAA6B;4BAAjB,MAAM;;;QAYlB;;;WAGG;4BAFQ,sBAAsB,UACtB,SAAS;QAUpB;;;;WAIG;iCAHQ,sBAAsB,gBACtB,sBAAsB,UACtB,SAAS;QAYpB,gDAAgD;kCAApC,sBAAsB;QASlC,kEAAkE;gCAAtD,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,EAAE;;QAYlD;;;;WAIG;;;;QAMH,iEAAiE;;QAsBjE,+DAA+D;;QAiB/D,0DAA0D;;QAI1D,wDAAwD;;QAmBxD,2DAA2D;;QAK3D,0DAA0D;;QAyB1D,8DAA8D;;QAgB9D,0DAA0D;;QAsB1D,oDAAoD;;QAMpD,wDAAwD;;QAMxD,6DAA6D;;QAM7D,+DAA+D;;QAK/D,0DAA0D;;;GA6BjE;AAmBM,wDAVI,IAAI,mBACJ,eAAe,YACf,QAAQ,OACR,GAAG,GACD,CACZ,GAAO,IAAI,EAAE,UAAU,CACvB,UAAgB,CAAC,OAAO,oCAAoC,CAAC,CACxD,KACE,6BAA6B,CAAC,QAAQ,CAAC,CAe9C;;kBAvda,YAAY;;oBAIb;IACZ,QAAY,EAAE,YAAY,qCAAqC,CAAC,CAAC;IACjE,OAAW,EAAE,UAAU,CAAC;IACxB,YAAgB,EAAE,YAAY,CAAC;IAC/B,aAAiB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC7C,SAAa,EAAE,MAAM,CAAC;IACtB,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;CAC7B;4CA+aS,UAAU,CACtB,UAAc,CAAC,OAAO,oCAAoC,CAAC,CACxD;yCA4BU,6BAA6B,CAAC,QAAQ,CAAC;0BApe9B,cAAc;qCAPU,6CAA6C;8BAM5D,aAAa;kCAPqH,aAAa;gCAAb,aAAa;4BAItJ,kBAAkB;mCAJuH,aAAa;kCAMhJ,cAAc;+BANqH,aAAa;0BAExJ,kDAAkD;mCAOzC,+CAA+C;8BACpD,sBAAsB;iCAViH,aAAa;yBAO/I,aAAa;4CAPqH,aAAa;gCAGlJ,wDAAwD;8BAH6E,aAAa;iCAChI,6CAA6C"}
|