@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
@@ -63,8 +63,8 @@ export declare const envelopeLayout: readonly [{
63
63
  readonly size: 4;
64
64
  }, {
65
65
  readonly custom: {
66
- to: (val: number) => "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";
67
- from: (val: "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") => number;
66
+ to: (val: number) => "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";
67
+ from: (val: "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") => number;
68
68
  };
69
69
  readonly binary: "uint";
70
70
  readonly size: 2;
@@ -143,8 +143,8 @@ export declare const baseLayout: readonly [{
143
143
  readonly size: 4;
144
144
  }, {
145
145
  readonly custom: {
146
- to: (val: number) => "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";
147
- from: (val: "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") => number;
146
+ to: (val: number) => "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";
147
+ from: (val: "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") => number;
148
148
  };
149
149
  readonly binary: "uint";
150
150
  readonly size: 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,5 @@
1
+ export const dateConversion = {
2
+ to: (encoded) => new Date(Number(encoded * 1000n)),
3
+ from: (decoded) => BigInt(decoded.getTime()) / 1000n,
4
+ };
5
+ //# sourceMappingURL=date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../src/layout-items/date.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,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"}
@@ -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.js","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.js","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"}
@@ -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,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,gBAAgB,CAAC,0BAA0B,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAC3B,EAAE,SAAS,YAAY,EACvB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,KAAK,IACb,gBAAgB,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAE1D,MAAM,MAAM,gBAAgB,CAAC,EAAE,SAAS,YAAY,I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C,SAAS,OAAO,EACjB,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,IACjD,YAAY,CAAC,mBAAmB,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAMnD,gGAAgG;AAChG,wBAAgB,gBAAgB,CAC9B,CAAC,SAAS,QAAQ,EAClB,EAAE,SAAS,YAAY,EACvB,EAAE,SAAS,mBAAmB,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,mBAAmB,CACvF,CAAC,EACD,EAAE,EACF,OAAO,EACP,gBAAgB,CAAC,CAAC,CAAC,CACpB,EACD,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAQ1C;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,QAAQ,GAAG,KAAK,EAAE,EAAE,SAAS,YAAY,EACtF,eAAe,EAAE,CAAC,EAClB,QAAQ,EAAE,EAAE,GACX,OAAO,CAMT;AAED,wBAAgB,sBAAsB,CAAC,CAAC,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,3 @@
1
+ export * from "./relayInstruction.js";
2
+ export * from "./signedQuote.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/protocols/executor/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -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,29 @@
1
+ import { universalAddressItem } from "../../layout-items/universalAddress.js";
2
+ export const gasInstructionLayout = [
3
+ { name: "gasLimit", binary: "uint", size: 16 },
4
+ { name: "msgValue", binary: "uint", size: 16 },
5
+ ];
6
+ export const gasDropOffInstructionLayout = [
7
+ { name: "dropOff", binary: "uint", size: 16 },
8
+ { name: "recipient", ...universalAddressItem },
9
+ ];
10
+ export const relayInstructionLayout = [
11
+ {
12
+ name: "request",
13
+ binary: "switch",
14
+ idSize: 1,
15
+ idTag: "type",
16
+ layouts: [
17
+ [[1, "GasInstruction"], gasInstructionLayout],
18
+ [[2, "GasDropOffInstruction"], gasDropOffInstructionLayout],
19
+ ],
20
+ },
21
+ ];
22
+ export const relayInstructionsLayout = [
23
+ {
24
+ name: "requests",
25
+ binary: "array",
26
+ layout: relayInstructionLayout,
27
+ },
28
+ ];
29
+ //# sourceMappingURL=relayInstruction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relayInstruction.js","sourceRoot":"","sources":["../../../../src/protocols/executor/relayInstruction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,CAAC,MAAM,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;AAI5B,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,oBAAoB,EAAE;CACrB,CAAC;AAI5B,MAAM,CAAC,MAAM,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,oBAAoB,CAAC;YAC7C,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE,2BAA2B,CAAC;SAC5D;KACF;CACwB,CAAC;AAI5B,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,sBAAsB;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,43 @@
1
+ import { dateConversion } from "../../layout-items/date.js";
2
+ export const quoteLayout = [
3
+ {
4
+ name: "quote",
5
+ binary: "switch",
6
+ idSize: 4,
7
+ idTag: "prefix",
8
+ layouts: [
9
+ [
10
+ [0x45513031, "EQ01"],
11
+ [
12
+ {
13
+ name: "quoterAddress",
14
+ binary: "bytes",
15
+ size: 20,
16
+ },
17
+ {
18
+ name: "payeeAddress",
19
+ binary: "bytes",
20
+ size: 32,
21
+ },
22
+ { name: "srcChain", binary: "uint", size: 2 },
23
+ { name: "dstChain", binary: "uint", size: 2 },
24
+ {
25
+ name: "expiryTime",
26
+ binary: "uint",
27
+ size: 8,
28
+ custom: dateConversion,
29
+ },
30
+ { name: "baseFee", binary: "uint", size: 8 },
31
+ { name: "dstGasPrice", binary: "uint", size: 8 },
32
+ { name: "srcPrice", binary: "uint", size: 8 },
33
+ { name: "dstPrice", binary: "uint", size: 8 },
34
+ ],
35
+ ],
36
+ ],
37
+ },
38
+ ];
39
+ export const signedQuoteLayout = [
40
+ ...quoteLayout,
41
+ { name: "signature", binary: "bytes", size: 65 },
42
+ ];
43
+ //# sourceMappingURL=signedQuote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signedQuote.js","sourceRoot":"","sources":["../../../../src/protocols/executor/signedQuote.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,MAAM,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,cAAc;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;iBAC9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