@agoric/orchestration 0.1.1-dev-ebdd06b.0.ebdd06b → 0.1.1-dev-9608fa8.0.9608fa8
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/utils/gmp.d.ts +1 -0
- package/src/utils/gmp.d.ts.map +1 -1
- package/src/utils/gmp.js +13 -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-9608fa8.0.9608fa8",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -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-9608fa8.0.9608fa8",
|
|
39
|
+
"@agoric/cosmic-proto": "0.4.1-dev-9608fa8.0.9608fa8",
|
|
40
|
+
"@agoric/ertp": "0.16.3-dev-9608fa8.0.9608fa8",
|
|
41
|
+
"@agoric/internal": "0.3.3-dev-9608fa8.0.9608fa8",
|
|
42
|
+
"@agoric/network": "0.1.1-dev-9608fa8.0.9608fa8",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-9608fa8.0.9608fa8",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-9608fa8.0.9608fa8",
|
|
45
|
+
"@agoric/time": "0.3.3-dev-9608fa8.0.9608fa8",
|
|
46
|
+
"@agoric/vat-data": "0.5.3-dev-9608fa8.0.9608fa8",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-9608fa8.0.9608fa8",
|
|
48
|
+
"@agoric/vow": "0.1.1-dev-9608fa8.0.9608fa8",
|
|
49
|
+
"@agoric/zoe": "0.26.3-dev-9608fa8.0.9608fa8",
|
|
50
|
+
"@agoric/zone": "0.2.3-dev-9608fa8.0.9608fa8",
|
|
51
51
|
"@cosmjs/encoding": "^0.36.0",
|
|
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-9608fa8.0.9608fa8",
|
|
64
64
|
"@chain-registry/client": "^1.47.4",
|
|
65
65
|
"@cosmjs/amino": "^0.36.0",
|
|
66
66
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"typeCoverage": {
|
|
106
106
|
"atLeast": 97.49
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "9608fa87911913da957f5cf09858051e39588281"
|
|
109
109
|
}
|
package/src/utils/gmp.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export const gmpAddresses: {
|
|
|
18
18
|
export function constructContractCall({ target, functionSignature, args }: ContractCall): AbiEncodedContractCall;
|
|
19
19
|
export function buildGMPPayload(contractCalls: ContractCall[]): number[];
|
|
20
20
|
export function buildNoncePayload(nonce: bigint): number[];
|
|
21
|
+
export function buildGasPayload(gasAmount: bigint): number[];
|
|
21
22
|
export namespace networkConfigs {
|
|
22
23
|
namespace devnet {
|
|
23
24
|
let label: string;
|
package/src/utils/gmp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmp.d.ts","sourceRoot":"","sources":["gmp.js"],"names":[],"mappings":";;;;;AAoBA;;;;;;GAMG;AACH,2BANU;IACL,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,aAAa,CAAC;IAC1B,gBAAgB,EAAE,aAAa,CAAC;CACjC,CAOF;AAQK,2EAHI,YAAY,GACV,sBAAsB,CAoBlC;AAQM,+CAHI,YAAY,EAAE,GACZ,MAAM,EAAE,CAyBpB;AAMM,yCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"gmp.d.ts","sourceRoot":"","sources":["gmp.js"],"names":[],"mappings":";;;;;AAoBA;;;;;;GAMG;AACH,2BANU;IACL,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,aAAa,CAAC;IAC1B,gBAAgB,EAAE,aAAa,CAAC;CACjC,CAOF;AAQK,2EAHI,YAAY,GACV,sBAAsB,CAoBlC;AAQM,+CAHI,YAAY,EAAE,GACZ,MAAM,EAAE,CAyBpB;AAMM,yCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB;AAMM,2CAHI,MAAM,GACJ,MAAM,EAAE,CASpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCArG+B,uBAAuB;kCADA,oBAAoB;4CAApB,oBAAoB"}
|
package/src/utils/gmp.js
CHANGED
|
@@ -99,6 +99,19 @@ export const buildNoncePayload = nonce => {
|
|
|
99
99
|
return Array.from(hexToBytes(abiEncodedData));
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* @param {bigint} gasAmount - gas amount for the EVM to Agoric message
|
|
104
|
+
* @returns {number[]} The payload array.
|
|
105
|
+
*/
|
|
106
|
+
export const buildGasPayload = gasAmount => {
|
|
107
|
+
const abiEncodedData = encodeAbiParameters(
|
|
108
|
+
[{ type: 'uint256' }],
|
|
109
|
+
[gasAmount],
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
return Array.from(hexToBytes(abiEncodedData));
|
|
113
|
+
};
|
|
114
|
+
|
|
102
115
|
export const networkConfigs = {
|
|
103
116
|
devnet: {
|
|
104
117
|
label: 'Agoric Devnet',
|