@agoric/orchestration 0.1.1-dev-644c210.0 → 0.1.1-dev-ad1e50e.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.map +1 -1
- package/src/examples/auto-stake-it.contract.js +1 -0
- package/src/examples/auto-stake-it.flows.js +1 -0
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +1 -0
- package/src/examples/basic-flows.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.flows.js +2 -0
- package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
- package/src/examples/sendAnywhere.contract.js +2 -0
- package/src/examples/sendAnywhere.flows.d.ts +0 -9
- package/src/examples/sendAnywhere.flows.d.ts.map +1 -1
- package/src/examples/sendAnywhere.flows.js +3 -3
- package/src/examples/stakeBld.contract.js +1 -0
- package/src/examples/stakeIca.contract.d.ts.map +1 -1
- package/src/examples/stakeIca.contract.js +3 -0
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.js +2 -0
- package/src/examples/unbondExample.contract.js +1 -0
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-ad1e50e.0+ad1e50e",
|
|
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-ad1e50e.0+ad1e50e",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-ad1e50e.0+ad1e50e",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-ad1e50e.0+ad1e50e",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-ad1e50e.0+ad1e50e",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-ad1e50e.0+ad1e50e",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-ad1e50e.0+ad1e50e",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-ad1e50e.0+ad1e50e",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-ad1e50e.0+ad1e50e",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-ad1e50e.0+ad1e50e",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-ad1e50e.0+ad1e50e",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-ad1e50e.0+ad1e50e",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-ad1e50e.0+ad1e50e",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-ad1e50e.0+ad1e50e",
|
|
49
49
|
"@endo/base64": "^1.0.6",
|
|
50
50
|
"@endo/errors": "^1.2.4",
|
|
51
51
|
"@endo/far": "^1.1.4",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "github:paulmillr/noble-hashes#ae060da"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-ad1e50e.0+ad1e50e",
|
|
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": 98.1
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "ad1e50e1abf378cc5421da7144c7f11fb3fde45f"
|
|
98
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-stake-it.contract.d.ts","sourceRoot":"","sources":["auto-stake-it.contract.js"],"names":[],"mappings":"AAuFA;gBAhDiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDsB;kCAjEpC;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;
|
|
1
|
+
{"version":3,"file":"auto-stake-it.contract.d.ts","sourceRoot":"","sources":["auto-stake-it.contract.js"],"names":[],"mappings":"AAuFA;gBAhDiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDsB;kCAjEpC;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;4BA8DU,OAAO,KAAK;gCA7EG,gCAAgC;4BAEpC,aAAa;6CAEI,uBAAuB;kCALlC,cAAc;6BAEnB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AA8DA;gBA3CiB,UAAU;;;;;;;;;;;;;;;;;GA2CsB;
|
|
1
|
+
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AA8DA;gBA3CiB,UAAU;;;;;;;;;;;;;;;;;GA2CsB;2BAGnC,OAAO,KAAK;yCArDY,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-flows.flows.d.ts","sourceRoot":"","sources":["basic-flows.flows.js"],"names":[],"mappings":"AAyBO,sCALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,0EAQ/B;
|
|
1
|
+
{"version":3,"file":"basic-flows.flows.d.ts","sourceRoot":"","sources":["basic-flows.flows.js"],"names":[],"mappings":"AAyBO,sCALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,0EAQ/B;AAgBM,2CANI,YAAY,2BAEpB;IAAiC,mBAAmB,EAA5C,mBAAmB;CAC3B,QAAQ,OAAO,kBACP;IAAE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;;IAkClC;kCAvEuE,uBAAuB;yCAGzD,iCAAiC;yCAFjC,2CAA2C"}
|
|
@@ -30,6 +30,7 @@ export const makeOrchAccount = async (orch, _ctx, seat, { chainName }) => {
|
|
|
30
30
|
const orchAccount = await remoteChain.makeAccount();
|
|
31
31
|
return orchAccount.asContinuingOffer();
|
|
32
32
|
};
|
|
33
|
+
harden(makeOrchAccount);
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* Create accounts on multiple chains and return them in a single continuing
|
|
@@ -77,3 +78,4 @@ export const makePortfolioAccount = async (
|
|
|
77
78
|
|
|
78
79
|
return portfolioHolder.asContinuingOffer();
|
|
79
80
|
};
|
|
81
|
+
harden(makePortfolioAccount);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;
|
|
1
|
+
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AAsDF;gBA9CiB,UAAU;;;;;;;;;;;;;;;;;;GA8CsB;kCApEpC;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;yBAd0B,aAAa;gCAFd,gCAAgC;4BAE/B,aAAa;6CAGD,sCAAsC;kCANjD,cAAc;6BAEnB,cAAc"}
|
|
@@ -33,6 +33,7 @@ export const SingleAmountRecord = M.and(
|
|
|
33
33
|
}),
|
|
34
34
|
M.not(harden({})),
|
|
35
35
|
);
|
|
36
|
+
harden(SingleAmountRecord);
|
|
36
37
|
|
|
37
38
|
/**
|
|
38
39
|
* Orchestration contract to be wrapped by withOrchestration for Zoe
|
|
@@ -86,3 +87,4 @@ const contract = async (
|
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
export const start = withOrchestration(contract);
|
|
90
|
+
harden(start);
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @satisfies {OrchestrationFlow}
|
|
3
|
-
* @param {Orchestrator} orch
|
|
4
|
-
* @param {object} ctx
|
|
5
|
-
* @param {{ localAccount?: OrchestrationAccountI & LocalAccountMethods }} ctx.contractState
|
|
6
|
-
* @param {GuestOf<ZoeTools['localTransfer']>} ctx.localTransfer
|
|
7
|
-
* @param {ZCFSeat} seat
|
|
8
|
-
* @param {{ chainName: string; destAddr: string }} offerArgs
|
|
9
|
-
*/
|
|
10
1
|
export function sendIt(orch: Orchestrator, { contractState, localTransfer }: {
|
|
11
2
|
contractState: {
|
|
12
3
|
localAccount?: OrchestrationAccountI & LocalAccountMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendAnywhere.flows.d.ts","sourceRoot":"","sources":["sendAnywhere.flows.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendAnywhere.flows.d.ts","sourceRoot":"","sources":["sendAnywhere.flows.js"],"names":[],"mappings":"AAuBO,6BAPI,YAAY,oCAEpB;IAA4E,aAAa,EAAjF;QAAE,YAAY,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,CAAA;KAAE;IACtB,aAAa,EAArD,QAAQ,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC1C,QAAQ,OAAO,aACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,iBAwCjD;kCAvD6F,aAAa;2CAAb,aAAa;yCAAb,aAAa;8BADhF,uBAAuB;6BADxB,oBAAoB"}
|
|
@@ -21,12 +21,12 @@ const { entries } = Object;
|
|
|
21
21
|
* @param {ZCFSeat} seat
|
|
22
22
|
* @param {{ chainName: string; destAddr: string }} offerArgs
|
|
23
23
|
*/
|
|
24
|
-
export async
|
|
24
|
+
export const sendIt = async (
|
|
25
25
|
orch,
|
|
26
26
|
{ contractState, localTransfer },
|
|
27
27
|
seat,
|
|
28
28
|
offerArgs,
|
|
29
|
-
) {
|
|
29
|
+
) => {
|
|
30
30
|
mustMatch(offerArgs, harden({ chainName: M.scalar(), destAddr: M.string() }));
|
|
31
31
|
const { chainName, destAddr } = offerArgs;
|
|
32
32
|
// NOTE the proposal shape ensures that the `give` is a single asset
|
|
@@ -59,5 +59,5 @@ export async function sendIt(
|
|
|
59
59
|
chainId,
|
|
60
60
|
},
|
|
61
61
|
);
|
|
62
|
-
}
|
|
62
|
+
};
|
|
63
63
|
harden(sendIt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;;GAMG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;
|
|
1
|
+
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;;GAMG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;AAEH;;;;;cAAsD;AAuB/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;;;;;;;;;;;;;;;;;;;;GA4FjB;4BA7GY;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;yBA0GU,OAAO,KAAK;6CAxI+B,aAAa;kCAFvC,cAAc;6BAFnB,kBAAkB;mDAGI,uBAAuB;qCAFrC,cAAc"}
|
|
@@ -37,7 +37,9 @@ export const meta = harden({
|
|
|
37
37
|
timer: TimerServiceShape,
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
+
harden(meta);
|
|
40
41
|
export const privateArgsShape = meta.privateArgsShape;
|
|
42
|
+
harden(privateArgsShape);
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
45
|
* @typedef {{
|
|
@@ -150,5 +152,6 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
150
152
|
|
|
151
153
|
return { publicFacet };
|
|
152
154
|
};
|
|
155
|
+
harden(start);
|
|
153
156
|
|
|
154
157
|
/** @typedef {typeof start} StakeIcaSF */
|
|
@@ -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;
|
|
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;AA8CtD;iBAtCkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;oBAvEhB,MAAM,CAAC,KAAK,CAAC;uBACb,sBAAsB;;;GAuGgB;6BApHvB,cAAc;4BAFf,kBAAkB;gCADd,gCAAgC;6CAEnB,sCAAsC;kCAHjD,cAAc;4CAD6B,aAAa"}
|
|
@@ -82,6 +82,7 @@ harden(meta);
|
|
|
82
82
|
*/
|
|
83
83
|
export const makeNatAmountShape = (brand, min) =>
|
|
84
84
|
harden({ brand, value: min ? M.gte(min) : M.nat() });
|
|
85
|
+
harden(makeNatAmountShape);
|
|
85
86
|
|
|
86
87
|
/**
|
|
87
88
|
* Orchestration contract to be wrapped by withOrchestration for Zoe
|
|
@@ -127,3 +128,4 @@ const contract = async (zcf, privateArgs, zone, { orchestrate, zoeTools }) => {
|
|
|
127
128
|
};
|
|
128
129
|
|
|
129
130
|
export const start = withOrchestration(contract);
|
|
131
|
+
harden(start);
|