@wormhole-foundation/sdk-definitions 2.0.0 → 2.1.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.
Files changed (75) hide show
  1. package/dist/cjs/layout-items/chain.d.ts +3 -2
  2. package/dist/cjs/layout-items/chain.d.ts.map +1 -1
  3. package/dist/cjs/layout-items/date.d.ts +5 -0
  4. package/dist/cjs/layout-items/date.d.ts.map +1 -0
  5. package/dist/cjs/layout-items/date.js +8 -0
  6. package/dist/cjs/layout-items/date.js.map +1 -0
  7. package/dist/cjs/layout-items/index.d.ts +1 -0
  8. package/dist/cjs/layout-items/index.d.ts.map +1 -1
  9. package/dist/cjs/layout-items/index.js +1 -0
  10. package/dist/cjs/layout-items/index.js.map +1 -1
  11. package/dist/cjs/protocol.d.ts +1 -1
  12. package/dist/cjs/protocol.d.ts.map +1 -1
  13. package/dist/cjs/protocols/executor/index.d.ts +3 -0
  14. package/dist/cjs/protocols/executor/index.d.ts.map +1 -0
  15. package/dist/cjs/protocols/executor/index.js +19 -0
  16. package/dist/cjs/protocols/executor/index.js.map +1 -0
  17. package/dist/cjs/protocols/executor/relayInstruction.d.ts +86 -0
  18. package/dist/cjs/protocols/executor/relayInstruction.d.ts.map +1 -0
  19. package/dist/cjs/protocols/executor/relayInstruction.js +32 -0
  20. package/dist/cjs/protocols/executor/relayInstruction.js.map +1 -0
  21. package/dist/cjs/protocols/executor/signedQuote.d.ts +102 -0
  22. package/dist/cjs/protocols/executor/signedQuote.d.ts.map +1 -0
  23. package/dist/cjs/protocols/executor/signedQuote.js +46 -0
  24. package/dist/cjs/protocols/executor/signedQuote.js.map +1 -0
  25. package/dist/cjs/protocols/governance/layout.d.ts +78 -78
  26. package/dist/cjs/protocols/index.d.ts +1 -0
  27. package/dist/cjs/protocols/index.d.ts.map +1 -1
  28. package/dist/cjs/protocols/index.js +1 -0
  29. package/dist/cjs/protocols/index.js.map +1 -1
  30. package/dist/cjs/protocols/portico/porticoLayout.d.ts +4 -4
  31. package/dist/cjs/protocols/relayer/relayerLayout.d.ts +16 -16
  32. package/dist/cjs/protocols/tbtc/tbtcLayout.d.ts +8 -8
  33. package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +4 -4
  34. package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts +18 -18
  35. package/dist/cjs/vaa/registration.d.ts +1 -1
  36. package/dist/cjs/vaa/registration.d.ts.map +1 -1
  37. package/dist/cjs/vaa/vaa.d.ts +4 -4
  38. package/dist/esm/layout-items/chain.d.ts +3 -2
  39. package/dist/esm/layout-items/chain.d.ts.map +1 -1
  40. package/dist/esm/layout-items/date.d.ts +5 -0
  41. package/dist/esm/layout-items/date.d.ts.map +1 -0
  42. package/dist/esm/layout-items/date.js +5 -0
  43. package/dist/esm/layout-items/date.js.map +1 -0
  44. package/dist/esm/layout-items/index.d.ts +1 -0
  45. package/dist/esm/layout-items/index.d.ts.map +1 -1
  46. package/dist/esm/layout-items/index.js +1 -0
  47. package/dist/esm/layout-items/index.js.map +1 -1
  48. package/dist/esm/protocol.d.ts +1 -1
  49. package/dist/esm/protocol.d.ts.map +1 -1
  50. package/dist/esm/protocols/executor/index.d.ts +3 -0
  51. package/dist/esm/protocols/executor/index.d.ts.map +1 -0
  52. package/dist/esm/protocols/executor/index.js +3 -0
  53. package/dist/esm/protocols/executor/index.js.map +1 -0
  54. package/dist/esm/protocols/executor/relayInstruction.d.ts +86 -0
  55. package/dist/esm/protocols/executor/relayInstruction.d.ts.map +1 -0
  56. package/dist/esm/protocols/executor/relayInstruction.js +29 -0
  57. package/dist/esm/protocols/executor/relayInstruction.js.map +1 -0
  58. package/dist/esm/protocols/executor/signedQuote.d.ts +102 -0
  59. package/dist/esm/protocols/executor/signedQuote.d.ts.map +1 -0
  60. package/dist/esm/protocols/executor/signedQuote.js +43 -0
  61. package/dist/esm/protocols/executor/signedQuote.js.map +1 -0
  62. package/dist/esm/protocols/governance/layout.d.ts +78 -78
  63. package/dist/esm/protocols/index.d.ts +1 -0
  64. package/dist/esm/protocols/index.d.ts.map +1 -1
  65. package/dist/esm/protocols/index.js +1 -0
  66. package/dist/esm/protocols/index.js.map +1 -1
  67. package/dist/esm/protocols/portico/porticoLayout.d.ts +4 -4
  68. package/dist/esm/protocols/relayer/relayerLayout.d.ts +16 -16
  69. package/dist/esm/protocols/tbtc/tbtcLayout.d.ts +8 -8
  70. package/dist/esm/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +4 -4
  71. package/dist/esm/protocols/tokenBridge/tokenBridgeLayout.d.ts +18 -18
  72. package/dist/esm/vaa/registration.d.ts +1 -1
  73. package/dist/esm/vaa/registration.d.ts.map +1 -1
  74. package/dist/esm/vaa/vaa.d.ts +4 -4
  75. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  type AllowNull<T, B extends boolean> = B extends true ? T | null : T;
2
- export declare const chainItem: <const C extends readonly ("Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia")[] = ["Solana", "Ethereum", "Bsc", "Polygon", "Avalanche", "Algorand", "Fantom", "Klaytn", "Celo", "Near", "Moonbeam", "Neon", "Terra2", "Injective", "Osmosis", "Sui", "Aptos", "Arbitrum", "Optimism", "Gnosis", "Pythnet", "Btc", "Base", "Sei", "Scroll", "Mantle", "Blast", "Xlayer", "Linea", "Berachain", "Seievm", "Snaxchain", "Unichain", "Worldchain", "Ink", "HyperEVM", "Monad", "Mezo", "Sonic", "Wormchain", "Cosmoshub", "Evmos", "Kujira", "Neutron", "Celestia", "Stargaze", "Seda", "Dymension", "Provenance", "Noble", "Sepolia", "ArbitrumSepolia", "BaseSepolia", "OptimismSepolia", "Holesky", "PolygonSepolia"], const N extends boolean = false>(opts?: {
2
+ export declare const chainItem: <const C extends readonly ("Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia")[] = ["Solana", "Ethereum", "Bsc", "Polygon", "Avalanche", "Algorand", "Fantom", "Klaytn", "Celo", "Near", "Moonbeam", "Neon", "Terra2", "Injective", "Osmosis", "Sui", "Aptos", "Arbitrum", "Optimism", "Gnosis", "Pythnet", "Btc", "Base", "Sei", "Scroll", "Mantle", "Blast", "Xlayer", "Linea", "Berachain", "Seievm", "Snaxchain", "Unichain", "Worldchain", "Ink", "HyperEVM", "Monad", "Mezo", "Sonic", "Converge", "Wormchain", "Cosmoshub", "Evmos", "Kujira", "Neutron", "Celestia", "Stargaze", "Seda", "Dymension", "Provenance", "Noble", "Sepolia", "ArbitrumSepolia", "BaseSepolia", "OptimismSepolia", "Holesky", "PolygonSepolia"], const N extends boolean = false>(opts?: {
3
3
  allowedChains?: C;
4
4
  allowNull?: N;
5
5
  }) => {
@@ -10,7 +10,7 @@ export declare const chainItem: <const C extends readonly ("Solana" | "Ethereum"
10
10
  readonly binary: "uint";
11
11
  readonly size: 2;
12
12
  };
13
- export declare const fixedChainItem: <const C extends "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">(chain: C) => {
13
+ export declare const fixedChainItem: <const C extends "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">(chain: C) => {
14
14
  readonly custom: {
15
15
  to: C;
16
16
  from: {
@@ -53,6 +53,7 @@ export declare const fixedChainItem: <const C extends "Solana" | "Ethereum" | "B
53
53
  Monad: 48;
54
54
  Mezo: 50;
55
55
  Sonic: 52;
56
+ Converge: 53;
56
57
  Wormchain: 3104;
57
58
  Cosmoshub: 4000;
58
59
  Evmos: 4001;
@@ -1 +1 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/layout-items/chain.ts"],"names":[],"mappings":"AAUA,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAErE,eAAO,MAAM,SAAS,s0CAGb;IACP,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;;kBAIe,MAAM,KAAG,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBAe9B,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM;;;;CAEpB,CAAC;AAE/B,eAAO,MAAM,cAAc,mrBAAkC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAC"}
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/layout-items/chain.ts"],"names":[],"mappings":"AAUA,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAErE,eAAO,MAAM,SAAS,+1CAGb;IACP,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;;kBAIe,MAAM,KAAG,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBAe9B,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM;;;;CAEpB,CAAC;AAE/B,eAAO,MAAM,cAAc,gsBAAkC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const dateConversion: {
2
+ readonly to: (encoded: bigint) => Date;
3
+ readonly from: (decoded: Date) => bigint;
4
+ };
5
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/layout-items/date.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;2BACX,MAAM;6BACJ,IAAI;CAC6B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dateConversion = void 0;
4
+ exports.dateConversion = {
5
+ to: (encoded) => new Date(Number(encoded * 1000n)),
6
+ from: (decoded) => BigInt(decoded.getTime()) / 1000n,
7
+ };
8
+ //# sourceMappingURL=date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/layout-items/date.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAG;IAC5B,EAAE,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;IAC1D,IAAI,EAAE,CAAC,OAAa,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK;CACT,CAAC"}
@@ -2,6 +2,7 @@ export * from "./amount.js";
2
2
  export * from "./boolean.js";
3
3
  export * from "./chain.js";
4
4
  export * from "./circle.js";
5
+ export * from "./date.js";
5
6
  export * from "./guardianSet.js";
6
7
  export * from "./payloadId.js";
7
8
  export * from "./sequence.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -18,6 +18,7 @@ __exportStar(require("./amount.js"), exports);
18
18
  __exportStar(require("./boolean.js"), exports);
19
19
  __exportStar(require("./chain.js"), exports);
20
20
  __exportStar(require("./circle.js"), exports);
21
+ __exportStar(require("./date.js"), exports);
21
22
  __exportStar(require("./guardianSet.js"), exports);
22
23
  __exportStar(require("./payloadId.js"), exports);
23
24
  __exportStar(require("./sequence.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,8CAA4B"}
@@ -40,5 +40,5 @@ export type ProtocolInstance<P extends Platform, PN extends ProtocolName, N exte
40
40
  export declare function registerProtocol<P extends Platform, PN extends ProtocolName, PI extends ProtocolInitializer<P, PN, Network, PlatformToChains<P>> = ProtocolInitializer<P, PN, Network, PlatformToChains<P>>>(platform: P, protocol: PN, ctr: PI): void;
41
41
  export declare function protocolIsRegistered<T extends Platform | Chain, PN extends ProtocolName>(chainOrPlatform: T, protocol: PN): boolean;
42
42
  export declare function getProtocolInitializer<P extends Platform, PN extends ProtocolName>(platform: P, protocol: PN): ProtocolInitializer<P, PN, Network, PlatformToChains<P>>;
43
- export declare const create: <N extends "Mainnet" | "Testnet" | "Devnet", P extends "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Evm" | "Cosmwasm", PN extends keyof WormholeRegistry.ProtocolToInterfaceMapping<"Mainnet" | "Testnet" | "Devnet", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">>(platform: P, protocol: PN, rpc: RpcConnection<P>, config: ChainsConfig<N, P>) => Promise<ProtocolInterface<PN, "Mainnet" | "Testnet" | "Devnet", PlatformToChains<P>>>;
43
+ export declare const create: <N extends "Mainnet" | "Testnet" | "Devnet", P extends "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Evm" | "Cosmwasm", PN extends keyof WormholeRegistry.ProtocolToInterfaceMapping<"Mainnet" | "Testnet" | "Devnet", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Snaxchain" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Sonic" | "Converge" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">>(platform: P, protocol: PN, rpc: RpcConnection<P>, config: ChainsConfig<N, P>) => Promise<ProtocolInterface<PN, "Mainnet" | "Testnet" | "Devnet", PlatformToChains<P>>>;
44
44
  //# sourceMappingURL=protocol.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEhG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,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AC,SAAS,QAAQ,EAAE,EAAE,SAAS,YAAY,EAChF,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,EAAE,GACX,mBAAmB,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAc1D;AAED,eAAO,MAAM,MAAM,w5BACP,CAAC,YACD,EAAE,OACP,cAAc,CAAC,CAAC,UACb,aAAa,CAAC,EAAE,CAAC,CAAC,0FAI3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./relayInstruction.js";
2
+ export * from "./signedQuote.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocols/executor/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./relayInstruction.js"), exports);
18
+ __exportStar(require("./signedQuote.js"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/protocols/executor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,mDAAiC"}
@@ -0,0 +1,86 @@
1
+ import { DeriveType } from "binary-layout";
2
+ export declare const gasInstructionLayout: readonly [{
3
+ readonly name: "gasLimit";
4
+ readonly binary: "uint";
5
+ readonly size: 16;
6
+ }, {
7
+ readonly name: "msgValue";
8
+ readonly binary: "uint";
9
+ readonly size: 16;
10
+ }];
11
+ export type GasInstruction = DeriveType<typeof gasInstructionLayout>;
12
+ export declare const gasDropOffInstructionLayout: readonly [{
13
+ readonly name: "dropOff";
14
+ readonly binary: "uint";
15
+ readonly size: 16;
16
+ }, {
17
+ readonly binary: "bytes";
18
+ readonly size: 32;
19
+ readonly custom: {
20
+ to: (val: Uint8Array) => import("../../universalAddress.js").UniversalAddress;
21
+ from: (val: import("../../universalAddress.js").UniversalAddress) => Uint8Array;
22
+ };
23
+ readonly name: "recipient";
24
+ }];
25
+ export type GasDropOffInstruction = DeriveType<typeof gasDropOffInstructionLayout>;
26
+ export declare const relayInstructionLayout: readonly [{
27
+ readonly name: "request";
28
+ readonly binary: "switch";
29
+ readonly idSize: 1;
30
+ readonly idTag: "type";
31
+ readonly layouts: readonly [readonly [readonly [1, "GasInstruction"], readonly [{
32
+ readonly name: "gasLimit";
33
+ readonly binary: "uint";
34
+ readonly size: 16;
35
+ }, {
36
+ readonly name: "msgValue";
37
+ readonly binary: "uint";
38
+ readonly size: 16;
39
+ }]], readonly [readonly [2, "GasDropOffInstruction"], readonly [{
40
+ readonly name: "dropOff";
41
+ readonly binary: "uint";
42
+ readonly size: 16;
43
+ }, {
44
+ readonly binary: "bytes";
45
+ readonly size: 32;
46
+ readonly custom: {
47
+ to: (val: Uint8Array) => import("../../universalAddress.js").UniversalAddress;
48
+ from: (val: import("../../universalAddress.js").UniversalAddress) => Uint8Array;
49
+ };
50
+ readonly name: "recipient";
51
+ }]]];
52
+ }];
53
+ export type RelayInstruction = DeriveType<typeof relayInstructionLayout>;
54
+ export declare const relayInstructionsLayout: readonly [{
55
+ readonly name: "requests";
56
+ readonly binary: "array";
57
+ readonly layout: readonly [{
58
+ readonly name: "request";
59
+ readonly binary: "switch";
60
+ readonly idSize: 1;
61
+ readonly idTag: "type";
62
+ readonly layouts: readonly [readonly [readonly [1, "GasInstruction"], readonly [{
63
+ readonly name: "gasLimit";
64
+ readonly binary: "uint";
65
+ readonly size: 16;
66
+ }, {
67
+ readonly name: "msgValue";
68
+ readonly binary: "uint";
69
+ readonly size: 16;
70
+ }]], readonly [readonly [2, "GasDropOffInstruction"], readonly [{
71
+ readonly name: "dropOff";
72
+ readonly binary: "uint";
73
+ readonly size: 16;
74
+ }, {
75
+ readonly binary: "bytes";
76
+ readonly size: 32;
77
+ readonly custom: {
78
+ to: (val: Uint8Array) => import("../../universalAddress.js").UniversalAddress;
79
+ from: (val: import("../../universalAddress.js").UniversalAddress) => Uint8Array;
80
+ };
81
+ readonly name: "recipient";
82
+ }]]];
83
+ }];
84
+ }];
85
+ export type RelayInstructions = DeriveType<typeof relayInstructionsLayout>;
86
+ //# sourceMappingURL=relayInstruction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relayInstruction.d.ts","sourceRoot":"","sources":["../../../../src/protocols/executor/relayInstruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAGnD,eAAO,MAAM,oBAAoB;;;;;;;;EAGN,CAAC;AAE5B,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAGb,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEnF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;EAWR,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMT,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.relayInstructionsLayout = exports.relayInstructionLayout = exports.gasDropOffInstructionLayout = exports.gasInstructionLayout = void 0;
4
+ const universalAddress_js_1 = require("../../layout-items/universalAddress.js");
5
+ exports.gasInstructionLayout = [
6
+ { name: "gasLimit", binary: "uint", size: 16 },
7
+ { name: "msgValue", binary: "uint", size: 16 },
8
+ ];
9
+ exports.gasDropOffInstructionLayout = [
10
+ { name: "dropOff", binary: "uint", size: 16 },
11
+ { name: "recipient", ...universalAddress_js_1.universalAddressItem },
12
+ ];
13
+ exports.relayInstructionLayout = [
14
+ {
15
+ name: "request",
16
+ binary: "switch",
17
+ idSize: 1,
18
+ idTag: "type",
19
+ layouts: [
20
+ [[1, "GasInstruction"], exports.gasInstructionLayout],
21
+ [[2, "GasDropOffInstruction"], exports.gasDropOffInstructionLayout],
22
+ ],
23
+ },
24
+ ];
25
+ exports.relayInstructionsLayout = [
26
+ {
27
+ name: "requests",
28
+ binary: "array",
29
+ layout: exports.relayInstructionLayout,
30
+ },
31
+ ];
32
+ //# sourceMappingURL=relayInstruction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relayInstruction.js","sourceRoot":"","sources":["../../../../src/protocols/executor/relayInstruction.ts"],"names":[],"mappings":";;;AACA,gFAA8E;AAEjE,QAAA,oBAAoB,GAAG;IAClC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC9C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;CACrB,CAAC;AAIf,QAAA,2BAA2B,GAAG;IACzC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,0CAAoB,EAAE;CACrB,CAAC;AAIf,QAAA,sBAAsB,GAAG;IACpC;QACE,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,MAAM;QACb,OAAO,EAAE;YACP,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,EAAE,4BAAoB,CAAC;YAC7C,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE,mCAA2B,CAAC;SAC5D;KACF;CACwB,CAAC;AAIf,QAAA,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,8BAAsB;KAC/B;CACwB,CAAC"}
@@ -0,0 +1,102 @@
1
+ import { DeriveType } from "binary-layout";
2
+ export declare const quoteLayout: readonly [{
3
+ readonly name: "quote";
4
+ readonly binary: "switch";
5
+ readonly idSize: 4;
6
+ readonly idTag: "prefix";
7
+ readonly layouts: readonly [readonly [readonly [1162948657, "EQ01"], readonly [{
8
+ readonly name: "quoterAddress";
9
+ readonly binary: "bytes";
10
+ readonly size: 20;
11
+ }, {
12
+ readonly name: "payeeAddress";
13
+ readonly binary: "bytes";
14
+ readonly size: 32;
15
+ }, {
16
+ readonly name: "srcChain";
17
+ readonly binary: "uint";
18
+ readonly size: 2;
19
+ }, {
20
+ readonly name: "dstChain";
21
+ readonly binary: "uint";
22
+ readonly size: 2;
23
+ }, {
24
+ readonly name: "expiryTime";
25
+ readonly binary: "uint";
26
+ readonly size: 8;
27
+ readonly custom: {
28
+ readonly to: (encoded: bigint) => Date;
29
+ readonly from: (decoded: Date) => bigint;
30
+ };
31
+ }, {
32
+ readonly name: "baseFee";
33
+ readonly binary: "uint";
34
+ readonly size: 8;
35
+ }, {
36
+ readonly name: "dstGasPrice";
37
+ readonly binary: "uint";
38
+ readonly size: 8;
39
+ }, {
40
+ readonly name: "srcPrice";
41
+ readonly binary: "uint";
42
+ readonly size: 8;
43
+ }, {
44
+ readonly name: "dstPrice";
45
+ readonly binary: "uint";
46
+ readonly size: 8;
47
+ }]]];
48
+ }];
49
+ export type Quote = DeriveType<typeof quoteLayout>;
50
+ export declare const signedQuoteLayout: readonly [{
51
+ readonly name: "quote";
52
+ readonly binary: "switch";
53
+ readonly idSize: 4;
54
+ readonly idTag: "prefix";
55
+ readonly layouts: readonly [readonly [readonly [1162948657, "EQ01"], readonly [{
56
+ readonly name: "quoterAddress";
57
+ readonly binary: "bytes";
58
+ readonly size: 20;
59
+ }, {
60
+ readonly name: "payeeAddress";
61
+ readonly binary: "bytes";
62
+ readonly size: 32;
63
+ }, {
64
+ readonly name: "srcChain";
65
+ readonly binary: "uint";
66
+ readonly size: 2;
67
+ }, {
68
+ readonly name: "dstChain";
69
+ readonly binary: "uint";
70
+ readonly size: 2;
71
+ }, {
72
+ readonly name: "expiryTime";
73
+ readonly binary: "uint";
74
+ readonly size: 8;
75
+ readonly custom: {
76
+ readonly to: (encoded: bigint) => Date;
77
+ readonly from: (decoded: Date) => bigint;
78
+ };
79
+ }, {
80
+ readonly name: "baseFee";
81
+ readonly binary: "uint";
82
+ readonly size: 8;
83
+ }, {
84
+ readonly name: "dstGasPrice";
85
+ readonly binary: "uint";
86
+ readonly size: 8;
87
+ }, {
88
+ readonly name: "srcPrice";
89
+ readonly binary: "uint";
90
+ readonly size: 8;
91
+ }, {
92
+ readonly name: "dstPrice";
93
+ readonly binary: "uint";
94
+ readonly size: 8;
95
+ }]]];
96
+ }, {
97
+ readonly name: "signature";
98
+ readonly binary: "bytes";
99
+ readonly size: 65;
100
+ }];
101
+ export type SignedQuote = DeriveType<typeof signedQuoteLayout>;
102
+ //# sourceMappingURL=signedQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signedQuote.d.ts","sourceRoot":"","sources":["../../../../src/protocols/executor/signedQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAGnD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCG,CAAC;AAE5B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signedQuoteLayout = exports.quoteLayout = void 0;
4
+ const date_js_1 = require("../../layout-items/date.js");
5
+ exports.quoteLayout = [
6
+ {
7
+ name: "quote",
8
+ binary: "switch",
9
+ idSize: 4,
10
+ idTag: "prefix",
11
+ layouts: [
12
+ [
13
+ [0x45513031, "EQ01"],
14
+ [
15
+ {
16
+ name: "quoterAddress",
17
+ binary: "bytes",
18
+ size: 20,
19
+ },
20
+ {
21
+ name: "payeeAddress",
22
+ binary: "bytes",
23
+ size: 32,
24
+ },
25
+ { name: "srcChain", binary: "uint", size: 2 },
26
+ { name: "dstChain", binary: "uint", size: 2 },
27
+ {
28
+ name: "expiryTime",
29
+ binary: "uint",
30
+ size: 8,
31
+ custom: date_js_1.dateConversion,
32
+ },
33
+ { name: "baseFee", binary: "uint", size: 8 },
34
+ { name: "dstGasPrice", binary: "uint", size: 8 },
35
+ { name: "srcPrice", binary: "uint", size: 8 },
36
+ { name: "dstPrice", binary: "uint", size: 8 },
37
+ ],
38
+ ],
39
+ ],
40
+ },
41
+ ];
42
+ exports.signedQuoteLayout = [
43
+ ...exports.quoteLayout,
44
+ { name: "signature", binary: "bytes", size: 65 },
45
+ ];
46
+ //# sourceMappingURL=signedQuote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signedQuote.js","sourceRoot":"","sources":["../../../../src/protocols/executor/signedQuote.ts"],"names":[],"mappings":";;;AACA,wDAA4D;AAE/C,QAAA,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE;YACP;gBACE,CAAC,UAAU,EAAE,MAAM,CAAC;gBACpB;oBACE;wBACE,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,EAAE;qBACT;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,EAAE;qBACT;oBACD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C;wBACE,IAAI,EAAE,YAAY;wBAClB,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,CAAC;wBACP,MAAM,EAAE,wBAAc;qBACvB;oBACD,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC5C,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAChD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;iBAC9C;aACF;SACF;KACF;CACwB,CAAC;AAIf,QAAA,iBAAiB,GAAG;IAC/B,GAAG,mBAAW;IACd,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OA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