@agoric/orchestration 0.1.1-dev-5dfae0e.0.5dfae0e → 0.1.1-dev-2f61877.0.2f61877
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-2f61877.0.2f61877",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.js",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": "
|
|
9
|
+
"node": "^20.9 || ^22.11"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"esbuild:axelar": "esbuild ./src/examples/axelar-gmp.contract.js --platform=node --format=esm --bundle --outfile=dist/axelar-gmp.contract.bundle.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
17
17
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
18
18
|
"test": "ava",
|
|
19
|
-
"test:c8": "c8 --all $C8_OPTIONS ava",
|
|
19
|
+
"test:c8": "c8 --all ${C8_OPTIONS:-} ava",
|
|
20
20
|
"test:xs": "exit 0",
|
|
21
21
|
"lint-fix": "yarn lint:eslint --fix",
|
|
22
22
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
39
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
40
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
41
|
-
"@agoric/internal": "0.3.3-dev-
|
|
42
|
-
"@agoric/network": "0.1.1-dev-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
47
|
-
"@agoric/vats": "0.15.2-dev-
|
|
48
|
-
"@agoric/vow": "0.1.1-dev-
|
|
49
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
50
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/async-flow": "0.1.1-dev-2f61877.0.2f61877",
|
|
39
|
+
"@agoric/cosmic-proto": "0.4.1-dev-2f61877.0.2f61877",
|
|
40
|
+
"@agoric/ertp": "0.16.3-dev-2f61877.0.2f61877",
|
|
41
|
+
"@agoric/internal": "0.3.3-dev-2f61877.0.2f61877",
|
|
42
|
+
"@agoric/network": "0.1.1-dev-2f61877.0.2f61877",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-2f61877.0.2f61877",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-2f61877.0.2f61877",
|
|
45
|
+
"@agoric/time": "0.3.3-dev-2f61877.0.2f61877",
|
|
46
|
+
"@agoric/vat-data": "0.5.3-dev-2f61877.0.2f61877",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-2f61877.0.2f61877",
|
|
48
|
+
"@agoric/vow": "0.1.1-dev-2f61877.0.2f61877",
|
|
49
|
+
"@agoric/zoe": "0.26.3-dev-2f61877.0.2f61877",
|
|
50
|
+
"@agoric/zone": "0.2.3-dev-2f61877.0.2f61877",
|
|
51
51
|
"@cosmjs/encoding": "^0.35.0-rc",
|
|
52
52
|
"@endo/base64": "^1.0.12",
|
|
53
53
|
"@endo/errors": "^1.2.13",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"esbuild": "^0.25.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
63
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-2f61877.0.2f61877",
|
|
64
64
|
"@chain-registry/client": "^1.47.4",
|
|
65
65
|
"@cosmjs/amino": "^0.35.0-rc",
|
|
66
66
|
"@cosmjs/proto-signing": "^0.35.0-rc",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
105
|
"typeCoverage": {
|
|
106
|
-
"atLeast": 97.
|
|
106
|
+
"atLeast": 97.49
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "2f618777210feb8721f62decb0493e47596ef587"
|
|
109
109
|
}
|
|
@@ -3,6 +3,10 @@ import { type VTransferIBCEvent } from '@agoric/vats';
|
|
|
3
3
|
import type { ExecutionContext } from 'ava';
|
|
4
4
|
import { type ChainInfo } from '../index.js';
|
|
5
5
|
export declare const ROOT_STORAGE_PATH = "orchtest";
|
|
6
|
+
export interface BridgeObject {
|
|
7
|
+
type: string;
|
|
8
|
+
messages: any[];
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* Common setup for contract tests, without any specific asset configuration.
|
|
8
12
|
*/
|
|
@@ -1790,7 +1794,7 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
1790
1794
|
utils: {
|
|
1791
1795
|
contractZone: import("@agoric/base-zone").Zone;
|
|
1792
1796
|
pourPayment: (amount: Amount<"nat">) => Promise<Payment<"nat">>;
|
|
1793
|
-
inspectLocalBridge: () =>
|
|
1797
|
+
inspectLocalBridge: () => BridgeObject[];
|
|
1794
1798
|
inspectDibcBridge: () => Promise<{
|
|
1795
1799
|
bridgeEvents: (import("@agoric/vats").IBCEvent<"channelOpenAck"> | import("@agoric/vats").IBCEvent<"acknowledgementPacket"> | import("@agoric/vats").IBCEvent<"channelCloseConfirm"> | import("@agoric/vats").IBCEvent<"sendPacket">)[];
|
|
1796
1800
|
bridgeDowncalls: (import("@agoric/vats").IBCMethod<"startChannelOpenInit"> | import("@agoric/vats").IBCMethod<"sendPacket"> | import("@agoric/vats").IBCMethod<"startChannelCloseInit"> | import("@agoric/vats").IBCMethod<"bindPort">)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-tests.d.ts","sourceRoot":"","sources":["contract-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAS3F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAmBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAQpE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAU,kBAG1C;IACD,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"contract-tests.d.ts","sourceRoot":"","sources":["contract-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAS3F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAmBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAQpE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAU,kBAG1C;IACD,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CA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AAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,yBACnC,MAAM;;;EA4GhC,CAAC"}
|
package/tools/contract-tests.ts
CHANGED
|
@@ -41,6 +41,11 @@ import { makeTestAddress } from './make-test-address.js';
|
|
|
41
41
|
|
|
42
42
|
export const ROOT_STORAGE_PATH = 'orchtest'; // Orchetration Contract Test
|
|
43
43
|
|
|
44
|
+
export interface BridgeObject {
|
|
45
|
+
type: string;
|
|
46
|
+
messages: any[];
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Common setup for contract tests, without any specific asset configuration.
|
|
46
51
|
*/
|
|
@@ -89,10 +94,10 @@ export const setupOrchestrationTest = async ({
|
|
|
89
94
|
finisher.useRegistry(bridgeTargetKit.targetRegistry);
|
|
90
95
|
await E(transferBridge).initHandler(bridgeTargetKit.bridgeHandler);
|
|
91
96
|
|
|
92
|
-
const localBridgeLog: { obj:
|
|
97
|
+
const localBridgeLog: { obj: BridgeObject; result: any }[] = [];
|
|
93
98
|
const localchainBridge = makeFakeLocalchainBridge(
|
|
94
99
|
rootZone,
|
|
95
|
-
(obj, result) => localBridgeLog.push({ obj, result }),
|
|
100
|
+
(obj: BridgeObject, result) => localBridgeLog.push({ obj, result }),
|
|
96
101
|
makeTestAddress,
|
|
97
102
|
);
|
|
98
103
|
/** @returns {ReadonlyArray<any>} the input messages sent to the localchain bridge */
|