@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/orchestration",
3
- "version": "0.1.1-dev-ebdd06b.0.ebdd06b",
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-ebdd06b.0.ebdd06b",
39
- "@agoric/cosmic-proto": "0.4.1-dev-ebdd06b.0.ebdd06b",
40
- "@agoric/ertp": "0.16.3-dev-ebdd06b.0.ebdd06b",
41
- "@agoric/internal": "0.3.3-dev-ebdd06b.0.ebdd06b",
42
- "@agoric/network": "0.1.1-dev-ebdd06b.0.ebdd06b",
43
- "@agoric/notifier": "0.6.3-dev-ebdd06b.0.ebdd06b",
44
- "@agoric/store": "0.9.3-dev-ebdd06b.0.ebdd06b",
45
- "@agoric/time": "0.3.3-dev-ebdd06b.0.ebdd06b",
46
- "@agoric/vat-data": "0.5.3-dev-ebdd06b.0.ebdd06b",
47
- "@agoric/vats": "0.15.2-dev-ebdd06b.0.ebdd06b",
48
- "@agoric/vow": "0.1.1-dev-ebdd06b.0.ebdd06b",
49
- "@agoric/zoe": "0.26.3-dev-ebdd06b.0.ebdd06b",
50
- "@agoric/zone": "0.2.3-dev-ebdd06b.0.ebdd06b",
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-ebdd06b.0.ebdd06b",
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": "ebdd06b574fa147f5f5d10d860253a79eee1ab98"
108
+ "gitHead": "9608fa87911913da957f5cf09858051e39588281"
109
109
  }
@@ -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;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAxF+B,uBAAuB;kCADA,oBAAoB;4CAApB,oBAAoB"}
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',