@agoric/orchestration 0.1.1-dev-99a3a43.0 → 0.1.1-dev-67275c2.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/README.md +1 -1
- package/src/examples/{sendAnywhere.contract.d.ts → send-anywhere.contract.d.ts} +1 -1
- package/src/examples/send-anywhere.contract.d.ts.map +1 -0
- package/src/examples/{sendAnywhere.contract.js → send-anywhere.contract.js} +1 -1
- package/src/examples/{sendAnywhere.flows.d.ts → send-anywhere.flows.d.ts} +1 -1
- package/src/examples/send-anywhere.flows.d.ts.map +1 -0
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +5 -15
- package/src/examples/sendAnywhere.contract.d.ts.map +0 -1
- package/src/examples/sendAnywhere.flows.d.ts.map +0 -1
- /package/src/examples/{sendAnywhere.flows.js → send-anywhere.flows.js} +0 -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-67275c2.0+67275c2",
|
|
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-67275c2.0+67275c2",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-67275c2.0+67275c2",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-67275c2.0+67275c2",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-67275c2.0+67275c2",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-67275c2.0+67275c2",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-67275c2.0+67275c2",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-67275c2.0+67275c2",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-67275c2.0+67275c2",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-67275c2.0+67275c2",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-67275c2.0+67275c2",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-67275c2.0+67275c2",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-67275c2.0+67275c2",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-67275c2.0+67275c2",
|
|
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-67275c2.0+67275c2",
|
|
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": "67275c2ac643b53bb74422cc92fe1f3565150d12"
|
|
98
98
|
}
|
package/src/examples/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This directory contains sample contracts showcasing the Orchestration API. Each example demonstrates specific functionalities:
|
|
4
4
|
|
|
5
5
|
- **basic-flows.contract.js**: Account creation and query sending
|
|
6
|
-
- **
|
|
6
|
+
- **send-anywhere.contract.js**: Token sending across supported blockchains
|
|
7
7
|
- **auto-stake-it.contract.js**: Automatic remote staking of received tokens
|
|
8
8
|
|
|
9
9
|
## In Progress
|
|
@@ -52,4 +52,4 @@ import type { Remote } from '@agoric/vow';
|
|
|
52
52
|
import type { CosmosInterchainService } from '../exos/cosmos-interchain-service.js';
|
|
53
53
|
import type { TimerService } from '@agoric/time';
|
|
54
54
|
import type { NameHub } from '@agoric/vats';
|
|
55
|
-
//# sourceMappingURL=
|
|
55
|
+
//# sourceMappingURL=send-anywhere.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-anywhere.contract.d.ts","sourceRoot":"","sources":["send-anywhere.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"}
|
|
@@ -3,7 +3,7 @@ import { AmountShape } from '@agoric/ertp';
|
|
|
3
3
|
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
|
|
4
4
|
import { M } from '@endo/patterns';
|
|
5
5
|
import { withOrchestration } from '../utils/start-helper.js';
|
|
6
|
-
import * as flows from './
|
|
6
|
+
import * as flows from './send-anywhere.flows.js';
|
|
7
7
|
import { prepareChainHubAdmin } from '../exos/chain-hub-admin.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -12,4 +12,4 @@ import type { OrchestrationAccountI } from '../types.js';
|
|
|
12
12
|
import type { LocalAccountMethods } from '../types.js';
|
|
13
13
|
import type { ZoeTools } from '../utils/zoe-tools.js';
|
|
14
14
|
import type { GuestOf } from '@agoric/async-flow';
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=send-anywhere.flows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-anywhere.flows.d.ts","sourceRoot":"","sources":["send-anywhere.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,iBAyCjD;kCAxD6F,aAAa;2CAAb,aAAa;yCAAb,aAAa;8BADhF,uBAAuB;6BADxB,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"AA8HA;iBArFkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;gBACpB,UAAU;kBACR,OAAO,YAAY,CAAC;;;;;;;GAgFU;6BA1GvB,cAAc;4BAEf,kBAAkB;gCAHd,gCAAgC;6CAKnB,sCAAsC;kCANjD,cAAc;2CADL,mCAAmC;yBAIrD,aAAa"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* actions with an ICA account.
|
|
7
7
|
*/
|
|
8
8
|
import { AmountShape } from '@agoric/ertp';
|
|
9
|
-
import { VowShape } from '@agoric/vow';
|
|
10
9
|
import { M } from '@endo/patterns';
|
|
11
10
|
import { prepareCombineInvitationMakers } from '../exos/combine-invitation-makers.js';
|
|
12
11
|
import { CosmosOrchestrationInvitationMakersInterface } from '../exos/cosmos-orchestration-account.js';
|
|
@@ -50,15 +49,10 @@ const emptyOfferShape = harden({
|
|
|
50
49
|
* @param {Zone} zone
|
|
51
50
|
* @param {OrchestrationTools} tools
|
|
52
51
|
*/
|
|
53
|
-
const contract = async (
|
|
54
|
-
zcf,
|
|
55
|
-
privateArgs,
|
|
56
|
-
zone,
|
|
57
|
-
{ orchestrateAll, vowTools },
|
|
58
|
-
) => {
|
|
52
|
+
const contract = async (zcf, privateArgs, zone, { orchestrateAll }) => {
|
|
59
53
|
const ExtraInvitationMakerInterface = M.interface('', {
|
|
60
|
-
DepositAndDelegate: M.call(M.array()).returns(
|
|
61
|
-
UndelegateAndTransfer: M.call(M.array()).returns(
|
|
54
|
+
DepositAndDelegate: M.call(M.array()).returns(M.promise()),
|
|
55
|
+
UndelegateAndTransfer: M.call(M.array()).returns(M.promise()),
|
|
62
56
|
});
|
|
63
57
|
/** @type {any} XXX async membrane */
|
|
64
58
|
const makeExtraInvitationMaker = zone.exoClass(
|
|
@@ -72,7 +66,7 @@ const contract = async (
|
|
|
72
66
|
DepositAndDelegate() {
|
|
73
67
|
const { account } = this.state;
|
|
74
68
|
|
|
75
|
-
|
|
69
|
+
return zcf.makeInvitation(
|
|
76
70
|
(seat, validatorAddr, amountArg) =>
|
|
77
71
|
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
|
|
78
72
|
orchFns.depositAndDelegate(account, seat, validatorAddr, amountArg),
|
|
@@ -84,8 +78,6 @@ const contract = async (
|
|
|
84
78
|
},
|
|
85
79
|
},
|
|
86
80
|
);
|
|
87
|
-
|
|
88
|
-
return vowTools.watch(invP);
|
|
89
81
|
},
|
|
90
82
|
/**
|
|
91
83
|
* @param {Omit<Delegation, 'delegatorAddress'>[]} delegations
|
|
@@ -93,15 +85,13 @@ const contract = async (
|
|
|
93
85
|
UndelegateAndTransfer(delegations) {
|
|
94
86
|
const { account } = this.state;
|
|
95
87
|
|
|
96
|
-
|
|
88
|
+
return zcf.makeInvitation(
|
|
97
89
|
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
|
|
98
90
|
() => orchFns.undelegateAndTransfer(account, delegations),
|
|
99
91
|
'Undelegate and transfer',
|
|
100
92
|
undefined,
|
|
101
93
|
emptyOfferShape,
|
|
102
94
|
);
|
|
103
|
-
|
|
104
|
-
return vowTools.watch(invP);
|
|
105
95
|
},
|
|
106
96
|
},
|
|
107
97
|
);
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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,iBAyCjD;kCAxD6F,aAAa;2CAAb,aAAa;yCAAb,aAAa;8BADhF,uBAAuB;6BADxB,oBAAoB"}
|
|
File without changes
|