@agoric/orchestration 0.1.1-dev-437c03b.0 → 0.1.1-dev-097ef82.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 +16 -16
- package/src/examples/auto-stake-it.contract.d.ts +1 -1
- package/src/examples/auto-stake-it.flows.d.ts +1 -1
- package/src/examples/basic-flows.contract.d.ts +1 -1
- package/src/examples/basic-flows.flows.d.ts +1 -1
- package/src/exos/portfolio-holder-kit.d.ts +4 -4
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.js +5 -7
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-097ef82.0+097ef82",
|
|
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-097ef82.0+097ef82",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-097ef82.0+097ef82",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-097ef82.0+097ef82",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-097ef82.0+097ef82",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-097ef82.0+097ef82",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-097ef82.0+097ef82",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-097ef82.0+097ef82",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-097ef82.0+097ef82",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-097ef82.0+097ef82",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-097ef82.0+097ef82",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-097ef82.0+097ef82",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-097ef82.0+097ef82",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-097ef82.0+097ef82",
|
|
49
49
|
"@endo/base64": "^1.0.7",
|
|
50
50
|
"@endo/errors": "^1.2.5",
|
|
51
51
|
"@endo/far": "^1.1.5",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-097ef82.0+097ef82",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typeCoverage": {
|
|
95
95
|
"atLeast": 97.3
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "097ef82273611476a5171bd669ab75274e7adf3a"
|
|
98
98
|
}
|
|
@@ -7,7 +7,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
7
7
|
[k: string]: import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>;
|
|
8
8
|
};
|
|
9
9
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
10
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
10
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
11
11
|
}>;
|
|
12
12
|
}>>, {
|
|
13
13
|
chainName: string;
|
|
@@ -10,7 +10,7 @@ export function makeAccounts(orch: Orchestrator, { makeStakingTap, makePortfolio
|
|
|
10
10
|
[k: string]: ResolvedPublicTopic<unknown>;
|
|
11
11
|
};
|
|
12
12
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
13
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
13
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
14
14
|
}>;
|
|
15
15
|
}>>;
|
|
16
16
|
import type { Orchestrator } from '@agoric/orchestration';
|
|
@@ -10,7 +10,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
10
10
|
[k: string]: import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>;
|
|
11
11
|
};
|
|
12
12
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
13
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
13
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
14
14
|
}>;
|
|
15
15
|
}>>, {
|
|
16
16
|
chainNames: string[];
|
|
@@ -10,7 +10,7 @@ export function makePortfolioAccount(orch: Orchestrator, { makePortfolioHolder }
|
|
|
10
10
|
[k: string]: ResolvedPublicTopic<unknown>;
|
|
11
11
|
};
|
|
12
12
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
13
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
13
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
14
14
|
}>;
|
|
15
15
|
}>>;
|
|
16
16
|
import type { Orchestrator } from '@agoric/orchestration';
|
|
@@ -20,10 +20,10 @@ declare function preparePortfolioHolderKit(zone: Zone, { asVow, when }: VowTools
|
|
|
20
20
|
* @template {unknown[]} IA
|
|
21
21
|
* @param {string} chainName key where the account is stored
|
|
22
22
|
* @param {string} action invitation maker name, e.g. 'Delegate'
|
|
23
|
-
* @param {IA} invitationArgs
|
|
23
|
+
* @param {IA} [invitationArgs]
|
|
24
24
|
* @returns {Promise<Invitation<unknown, IA>>}
|
|
25
25
|
*/
|
|
26
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
26
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
27
27
|
};
|
|
28
28
|
holder: {
|
|
29
29
|
asContinuingOffer(): import("@agoric/vow").Vow<{
|
|
@@ -35,10 +35,10 @@ declare function preparePortfolioHolderKit(zone: Zone, { asVow, when }: VowTools
|
|
|
35
35
|
* @template {unknown[]} IA
|
|
36
36
|
* @param {string} chainName key where the account is stored
|
|
37
37
|
* @param {string} action invitation maker name, e.g. 'Delegate'
|
|
38
|
-
* @param {IA} invitationArgs
|
|
38
|
+
* @param {IA} [invitationArgs]
|
|
39
39
|
* @returns {Promise<Invitation<unknown, IA>>}
|
|
40
40
|
*/
|
|
41
|
-
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs
|
|
41
|
+
Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA | undefined): Promise<Invitation<unknown, IA>>;
|
|
42
42
|
}>;
|
|
43
43
|
}>;
|
|
44
44
|
getPublicTopics(): import("@agoric/vow").Vow<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-holder-kit.d.ts","sourceRoot":"","sources":["portfolio-holder-kit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"portfolio-holder-kit.d.ts","sourceRoot":"","sources":["portfolio-holder-kit.js"],"names":[],"mappings":"AAuKO,6CANI,IAAI,YACJ,QAAQ,GACN,CACZ,GAAO,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,KAC9D,UAAU,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAKzE;mCAvJY;IACR,QAAQ,EAAE,SAAS,MAAM,EAAE,cAAc,qBAAqB,GAAG,CAAC,CAAC,CAAC,CAAC;IACrE,YAAY,EAAE,SAAS,MAAM,EAAE,oBAAoB,OAAO,CAAC,CAAC,CAAC;CAC9D;kCAqJU,UAAU,CAAC,OAAO,sBAAsB,CAAC;8BACzC,UAAU,CAAC,mBAAmB,CAAC;0BA9JtB,cAAc;8BAFV,aAAa;AAqBxC;;;;;;GAMG;AACH,iDAHW,IAAI,mBACJ,QAAQ;;QAkDX;;;;;;WAMG;iBALsB,EAAE,SAAb,OAAO,EAAG,aACb,MAAM,UACN,MAAM,oCAEJ,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;;;;;;;;gBAL7C;;;;;;mBAMG;yBALsB,EAAE,SAAb,OAAO,EAAG,aACb,MAAM,UACN,MAAM,oCAEJ,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;;;;;;QA+B7C;;;;WAIG;8BAHQ,MAAM,WACN,cAAc,qBAAqB,GAAG,CAAC,CAAC,eACxC,oBAAoB,OAAO,CAAC;QAgBvC;;WAEG;8BADQ,MAAM;;GAQxB;0CAzI6D,uBAAuB;mCAL7C,oBAAoB;8BACjC,eAAe;yCAEJ,2CAA2C;2CAEnB,uBAAuB"}
|
|
@@ -43,11 +43,9 @@ const preparePortfolioHolderKit = (zone, { asVow, when }) => {
|
|
|
43
43
|
'PortfolioHolderKit',
|
|
44
44
|
{
|
|
45
45
|
invitationMakers: M.interface('InvitationMakers', {
|
|
46
|
-
Proxying: M.call(
|
|
47
|
-
|
|
48
|
-
M.
|
|
49
|
-
M.arrayOf(M.any()),
|
|
50
|
-
).returns(M.promise()),
|
|
46
|
+
Proxying: M.call(ChainNameShape, M.string())
|
|
47
|
+
.optional(M.arrayOf(M.any()))
|
|
48
|
+
.returns(M.promise()),
|
|
51
49
|
}),
|
|
52
50
|
holder: M.interface('Holder', {
|
|
53
51
|
asContinuingOffer: M.call().returns(VowShape),
|
|
@@ -92,7 +90,7 @@ const preparePortfolioHolderKit = (zone, { asVow, when }) => {
|
|
|
92
90
|
* @template {unknown[]} IA
|
|
93
91
|
* @param {string} chainName key where the account is stored
|
|
94
92
|
* @param {string} action invitation maker name, e.g. 'Delegate'
|
|
95
|
-
* @param {IA} invitationArgs
|
|
93
|
+
* @param {IA} [invitationArgs]
|
|
96
94
|
* @returns {Promise<Invitation<unknown, IA>>}
|
|
97
95
|
*/
|
|
98
96
|
Proxying(chainName, action, invitationArgs) {
|
|
@@ -101,7 +99,7 @@ const preparePortfolioHolderKit = (zone, { asVow, when }) => {
|
|
|
101
99
|
const account = accounts.get(chainName);
|
|
102
100
|
// @ts-expect-error XXX invitationMakers
|
|
103
101
|
return when(E(account).asContinuingOffer(), ({ invitationMakers }) =>
|
|
104
|
-
E(invitationMakers)[action](...invitationArgs),
|
|
102
|
+
E(invitationMakers)[action](...(invitationArgs || [])),
|
|
105
103
|
);
|
|
106
104
|
},
|
|
107
105
|
},
|