@agoric/orchestration 0.1.1-dev-47d00ff.0 → 0.1.1-dev-d950170.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/orchestration",
3
- "version": "0.1.1-dev-47d00ff.0+47d00ff",
3
+ "version": "0.1.1-dev-d950170.0+d950170",
4
4
  "description": "Chain abstraction for Agoric's orchestration clients",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -103,5 +103,5 @@
103
103
  "typeCoverage": {
104
104
  "atLeast": 97.7
105
105
  },
106
- "gitHead": "47d00ffad8c595b0a9be215efc6665204ff90525"
106
+ "gitHead": "d9501704148a9118bc62a9d84aada966dc2deb0f"
107
107
  }
@@ -40,7 +40,7 @@ export type AbiEncodedContractCall = {
40
40
  target: `0x${string}`;
41
41
  data: `0x${string}`;
42
42
  };
43
- export type SupportedDestinationChains = keyof typeof EVM_CHAINS;
43
+ export type SupportedEVMChains = keyof typeof EVM_CHAINS;
44
44
  import type { Bech32Address } from '@agoric/orchestration';
45
45
  import type { OrchestrationAccount } from '@agoric/orchestration';
46
46
  import type { CosmosChainAddress } from '@agoric/orchestration';
@@ -1 +1 @@
1
- {"version":3,"file":"axelar-types.d.ts","sourceRoot":"","sources":["axelar-types.js"],"names":[],"mappings":";;;;;6BAuBa,CAAC,OAAO,oBAAoB,EAAE,MAAM,OAAO,oBAAoB,CAAC;;kBAK/D,MAAM;oBACN,MAAM;aACN,MAAM;UACN,cAAc;;;YAKd,MAAM;eACN,aAAa;;;uBAKb,MAAM;yBACN,MAAM;aACN,MAAM,EAAE,GAAG,IAAI;UACf,cAAc;;;;kBAMd,qBAAqB;QAAE,OAAO,EAAE,QAAQ,CAAA;KAAE,CAAC;uBAC3C,kBAAkB;mBAClB,YAAY;gBACZ,KAAK;YACL,GAAG;qBACH,GAAG;;;YAKH,KAAK,MAAM,EAAE;uBACb,MAAM;UACN,OAAO,EAAE;;;YAKT,KAAK,MAAM,EAAE;UACb,KAAK,MAAM,EAAE;;yCAId,MAAa,iBAAU;mCArEV,uBAAuB;0CAAvB,uBAAuB;wCAAvB,uBAAuB;kCAClB,cAAc;2BADnB,uBAAuB;gCAEpB,gBAAgB"}
1
+ {"version":3,"file":"axelar-types.d.ts","sourceRoot":"","sources":["axelar-types.js"],"names":[],"mappings":";;;;;6BAuBa,CAAC,OAAO,oBAAoB,EAAE,MAAM,OAAO,oBAAoB,CAAC;;kBAK/D,MAAM;oBACN,MAAM;aACN,MAAM;UACN,cAAc;;;YAKd,MAAM;eACN,aAAa;;;uBAKb,MAAM;yBACN,MAAM;aACN,MAAM,EAAE,GAAG,IAAI;UACf,cAAc;;;;kBAMd,qBAAqB;QAAE,OAAO,EAAE,QAAQ,CAAA;KAAE,CAAC;uBAC3C,kBAAkB;mBAClB,YAAY;gBACZ,KAAK;YACL,GAAG;qBACH,GAAG;;;YAKH,KAAK,MAAM,EAAE;uBACb,MAAM;UACN,OAAO,EAAE;;;YAKT,KAAK,MAAM,EAAE;UACb,KAAK,MAAM,EAAE;;iCAId,MAAa,iBAAU;mCArEV,uBAAuB;0CAAvB,uBAAuB;wCAAvB,uBAAuB;kCAClB,cAAc;2BADnB,uBAAuB;gCAEpB,gBAAgB"}
@@ -71,5 +71,5 @@ export const AxelarGMPMessageType = {
71
71
  */
72
72
 
73
73
  /**
74
- * @typedef {keyof typeof EVM_CHAINS} SupportedDestinationChains
74
+ * @typedef {keyof typeof EVM_CHAINS} SupportedEVMChains
75
75
  */
@@ -28,7 +28,7 @@ export function prepareEvmAccountKit(zone: Zone, { zcf, vowTools, log, zoeTools
28
28
  * @param {{
29
29
  * destinationAddress: string;
30
30
  * type: GMPMessageType;
31
- * destinationEVMChain: SupportedDestinationChains;
31
+ * destinationEVMChain: SupportedEVMChains;
32
32
  * gasAmount: number;
33
33
  * contractInvocationData: ContractCall[];
34
34
  * }} offerArgs
@@ -36,7 +36,7 @@ export function prepareEvmAccountKit(zone: Zone, { zcf, vowTools, log, zoeTools
36
36
  sendGmp(seat: ZCFSeat, offerArgs: {
37
37
  destinationAddress: string;
38
38
  type: GMPMessageType;
39
- destinationEVMChain: SupportedDestinationChains;
39
+ destinationEVMChain: SupportedEVMChains;
40
40
  gasAmount: number;
41
41
  contractInvocationData: ContractCall[];
42
42
  }): Promise<string>;
@@ -62,6 +62,6 @@ import type { EvmTapState } from '../axelar-types.js';
62
62
  import type { VTransferIBCEvent } from '@agoric/vats';
63
63
  import type { ZCFSeat } from '@agoric/zoe';
64
64
  import type { GMPMessageType } from '../axelar-types.js';
65
- import type { SupportedDestinationChains } from '../axelar-types.js';
65
+ import type { SupportedEVMChains } from '../axelar-types.js';
66
66
  import type { ContractCall } from '../axelar-types.js';
67
67
  //# sourceMappingURL=axelar-gmp-account-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axelar-gmp-account-kit.d.ts","sourceRoot":"","sources":["axelar-gmp-account-kit.js"],"names":[],"mappings":"AAgEO,2CARI,IAAI,oCACJ;IACN,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC;IAChC,QAAQ,EAAE,QAAQ,CAAC;CACpB;;QAsCI;;WAEG;6BADQ,iBAAiB;;;;;;QAyE5B;;;;;;;WAOG;wBAHQ,OAAO,uBAAuB,EAAE,kBAAkB,UAClD,OAAO,uBAAuB,EAAE,SAAS,GACvC,OAAO,CAAC,MAAM,CAAC;QAO5B;;;;;;;;;WASG;sBARQ,OAAO,aACP;YACN,kBAAkB,EAAE,MAAM,CAAC;YAC3B,IAAI,EAAE,cAAc,CAAC;YACrB,mBAAmB,EAAE,0BAA0B,CAAC;YAChD,SAAS,EAAE,MAAM,CAAC;YAClB,sBAAsB,EAAE,YAAY,EAAE,CAAC;SACxC;QA4FJ;;;WAGG;sBAFQ,OAAO,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AAoB"}
@@ -5,7 +5,7 @@
5
5
  * @import {TypedPattern} from '@agoric/internal';
6
6
  * @import {FungibleTokenPacketData} from '@agoric/cosmic-proto/ibc/applications/transfer/v2/packet.js';
7
7
  * @import {ZoeTools} from '../utils/zoe-tools.js';
8
- * @import {AxelarGmpIncomingMemo, EvmTapState, ContractCall, SupportedDestinationChains} from '../axelar-types.js';
8
+ * @import {AxelarGmpIncomingMemo, EvmTapState, ContractCall, SupportedEVMChains} from '../axelar-types.js';
9
9
  * @import {ZCF, ZCFSeat} from '@agoric/zoe';
10
10
  * @import {AxelarGmpOutgoingMemo, GMPMessageType} from '../axelar-types.js'
11
11
  */
@@ -190,7 +190,7 @@ export const prepareEvmAccountKit = (
190
190
  * @param {{
191
191
  * destinationAddress: string;
192
192
  * type: GMPMessageType;
193
- * destinationEVMChain: SupportedDestinationChains;
193
+ * destinationEVMChain: SupportedEVMChains;
194
194
  * gasAmount: number;
195
195
  * contractInvocationData: ContractCall[];
196
196
  * }} offerArgs
@@ -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;AAgBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAS5C,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAU,UAE1C;IACD,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;CACnC;;;;;;;;;uBAqPqxV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;YA3C/wV;;eAEG;kCACmB,MAAM,GAAG,OAAO,EAAE;;;;;4BAhGzC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;w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AiB,CAAC,OAAO,CAAC,SAC1B,MAAM,GAAG;YAAE,OAAO,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,yBACnC,MAAM;;;EA2GhC,CAAC"}
@@ -122,15 +122,18 @@ export const setupOrchestrationTest = async ({
122
122
 
123
123
  await registerKnownChains(agoricNamesAdmin, () => {});
124
124
 
125
+ type TransferMessageInfo = {
126
+ message: MsgTransfer;
127
+ sequence: bigint;
128
+ };
125
129
  /**
126
130
  * Find the Nth outgoing MsgTransfer and its sequence number from the localchain bridge log.
127
131
  * @param index 0-based index from the start, or negative index from the end.
128
- * @returns The MsgTransfer message and its sequence number.
132
+ * @returns {TransferMessageInfo} The MsgTransfer message and its sequence number.
129
133
  * @throws If index is out of bounds or sequence is not found in the log result.
130
134
  */
131
135
  const outgoingTransferAt = (index: number) => {
132
- const transferMessagesInfo: { message: MsgTransfer; sequence: bigint }[] =
133
- [];
136
+ const transferMessagesInfo: TransferMessageInfo[] = [];
134
137
  const isRelevant = ({ obj, result }) =>
135
138
  obj.type === 'VLOCALCHAIN_EXECUTE_TX' &&
136
139
  obj.messages &&