@layerzerolabs/lz-solana-sdk-v2 3.0.47 → 3.0.48

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 (323) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +11 -10
  3. package/src/base-oapp.ts +159 -0
  4. package/src/config.ts +32 -0
  5. package/src/deployment.test.ts +11 -0
  6. package/src/deployment.ts +128 -0
  7. package/src/dvn.ts +606 -0
  8. package/src/endpoint.ts +1518 -0
  9. package/src/executor.ts +577 -0
  10. package/src/generated/blocked_messagelib/index.ts +18 -0
  11. package/src/generated/blocked_messagelib/instructions/index.ts +1 -0
  12. package/src/generated/blocked_messagelib/instructions/version.ts +59 -0
  13. package/src/generated/dvn/accounts/DvnConfig.ts +217 -0
  14. package/src/generated/dvn/accounts/ExecuteHash.ts +179 -0
  15. package/src/generated/dvn/accounts/ReceiveConfig.ts +169 -0
  16. package/src/generated/dvn/accounts/index.ts +9 -0
  17. package/src/generated/dvn/errors/index.ts +396 -0
  18. package/src/generated/dvn/events/AdminConfigSetEvent.ts +22 -0
  19. package/src/generated/dvn/events/FeeWithdrawnEvent.ts +26 -0
  20. package/src/generated/dvn/events/MultisigConfigSetEvent.ts +22 -0
  21. package/src/generated/dvn/events/index.ts +3 -0
  22. package/src/generated/dvn/index.ts +21 -0
  23. package/src/generated/dvn/instructions/closeExecute.ts +148 -0
  24. package/src/generated/dvn/instructions/index.ts +7 -0
  25. package/src/generated/dvn/instructions/initDvn.ts +144 -0
  26. package/src/generated/dvn/instructions/invoke.ts +178 -0
  27. package/src/generated/dvn/instructions/quoteDvn.ts +145 -0
  28. package/src/generated/dvn/instructions/setConfig.ts +157 -0
  29. package/src/generated/dvn/instructions/verifiable.ts +160 -0
  30. package/src/generated/dvn/instructions/withdrawFee.ts +172 -0
  31. package/src/generated/dvn/types/Acl.ts +26 -0
  32. package/src/generated/dvn/types/AdminConfig.ts +100 -0
  33. package/src/generated/dvn/types/CloseExecuteParams.ts +21 -0
  34. package/src/generated/dvn/types/DstConfig.ts +28 -0
  35. package/src/generated/dvn/types/ExecuteTransactionDigest.ts +37 -0
  36. package/src/generated/dvn/types/InitDvnParams.ts +34 -0
  37. package/src/generated/dvn/types/InvokeParams.ts +28 -0
  38. package/src/generated/dvn/types/LzOption.ts +24 -0
  39. package/src/generated/dvn/types/Multisig.ts +24 -0
  40. package/src/generated/dvn/types/MultisigConfig.ts +124 -0
  41. package/src/generated/dvn/types/QuoteDvnParams.ts +38 -0
  42. package/src/generated/dvn/types/SetConfigParams.ts +22 -0
  43. package/src/generated/dvn/types/TransactionAccount.ts +29 -0
  44. package/src/generated/dvn/types/UlnConfig.ts +34 -0
  45. package/src/generated/dvn/types/VerifiableParams.ts +24 -0
  46. package/src/generated/dvn/types/VerificationState.ts +27 -0
  47. package/src/generated/dvn/types/WithdrawFeeParams.ts +20 -0
  48. package/src/generated/dvn/types/index.ts +17 -0
  49. package/src/generated/endpoint/accounts/ComposeMessageState.ts +170 -0
  50. package/src/generated/endpoint/accounts/EndpointSettings.ts +184 -0
  51. package/src/generated/endpoint/accounts/MessageLibInfo.ts +178 -0
  52. package/src/generated/endpoint/accounts/Nonce.ts +193 -0
  53. package/src/generated/endpoint/accounts/OAppRegistry.ts +169 -0
  54. package/src/generated/endpoint/accounts/PayloadHash.ts +169 -0
  55. package/src/generated/endpoint/accounts/PendingInboundNonce.ts +172 -0
  56. package/src/generated/endpoint/accounts/ReceiveLibraryConfig.ts +183 -0
  57. package/src/generated/endpoint/accounts/SendLibraryConfig.ts +171 -0
  58. package/src/generated/endpoint/accounts/index.ts +31 -0
  59. package/src/generated/endpoint/errors/index.ts +428 -0
  60. package/src/generated/endpoint/events/AdminTransferredEvent.ts +23 -0
  61. package/src/generated/endpoint/events/ComposeDeliveredEvent.ts +31 -0
  62. package/src/generated/endpoint/events/ComposeSentEvent.ts +33 -0
  63. package/src/generated/endpoint/events/DefaultReceiveLibrarySetEvent.ts +27 -0
  64. package/src/generated/endpoint/events/DefaultReceiveLibraryTimeoutSetEvent.ts +29 -0
  65. package/src/generated/endpoint/events/DefaultSendLibrarySetEvent.ts +27 -0
  66. package/src/generated/endpoint/events/DelegateSetEvent.ts +22 -0
  67. package/src/generated/endpoint/events/InboundNonceSkippedEvent.ts +31 -0
  68. package/src/generated/endpoint/events/LibraryRegisteredEvent.ts +27 -0
  69. package/src/generated/endpoint/events/LzComposeAlertEvent.ts +43 -0
  70. package/src/generated/endpoint/events/LzReceiveAlertEvent.ts +45 -0
  71. package/src/generated/endpoint/events/LzTokenSetEvent.ts +23 -0
  72. package/src/generated/endpoint/events/OAppRegisteredEvent.ts +27 -0
  73. package/src/generated/endpoint/events/PacketBurntEvent.ts +32 -0
  74. package/src/generated/endpoint/events/PacketDeliveredEvent.ts +31 -0
  75. package/src/generated/endpoint/events/PacketNilifiedEvent.ts +33 -0
  76. package/src/generated/endpoint/events/PacketSentEvent.ts +29 -0
  77. package/src/generated/endpoint/events/PacketVerifiedEvent.ts +33 -0
  78. package/src/generated/endpoint/events/ReceiveLibrarySetEvent.ts +29 -0
  79. package/src/generated/endpoint/events/ReceiveLibraryTimeoutSetEvent.ts +33 -0
  80. package/src/generated/endpoint/events/RentWithdrawnEvent.ts +27 -0
  81. package/src/generated/endpoint/events/SendLibrarySetEvent.ts +29 -0
  82. package/src/generated/endpoint/events/index.ts +22 -0
  83. package/src/generated/endpoint/index.ts +21 -0
  84. package/src/generated/endpoint/instructions/burn.ts +191 -0
  85. package/src/generated/endpoint/instructions/clear.ts +193 -0
  86. package/src/generated/endpoint/instructions/clearCompose.ts +160 -0
  87. package/src/generated/endpoint/instructions/index.ts +32 -0
  88. package/src/generated/endpoint/instructions/initConfig.ts +172 -0
  89. package/src/generated/endpoint/instructions/initDefaultReceiveLibrary.ts +195 -0
  90. package/src/generated/endpoint/instructions/initDefaultSendLibrary.ts +195 -0
  91. package/src/generated/endpoint/instructions/initEndpoint.ts +147 -0
  92. package/src/generated/endpoint/instructions/initNonce.ts +168 -0
  93. package/src/generated/endpoint/instructions/initReceiveLibrary.ts +159 -0
  94. package/src/generated/endpoint/instructions/initSendLibrary.ts +159 -0
  95. package/src/generated/endpoint/instructions/initVerify.ts +159 -0
  96. package/src/generated/endpoint/instructions/lzComposeAlert.ts +148 -0
  97. package/src/generated/endpoint/instructions/lzReceiveAlert.ts +148 -0
  98. package/src/generated/endpoint/instructions/nilify.ts +193 -0
  99. package/src/generated/endpoint/instructions/quote.ts +181 -0
  100. package/src/generated/endpoint/instructions/registerLibrary.ts +183 -0
  101. package/src/generated/endpoint/instructions/registerOapp.ts +183 -0
  102. package/src/generated/endpoint/instructions/send.ts +215 -0
  103. package/src/generated/endpoint/instructions/sendCompose.ts +183 -0
  104. package/src/generated/endpoint/instructions/setConfig.ts +169 -0
  105. package/src/generated/endpoint/instructions/setDefaultReceiveLibrary.ts +184 -0
  106. package/src/generated/endpoint/instructions/setDefaultReceiveLibraryTimeout.ts +185 -0
  107. package/src/generated/endpoint/instructions/setDefaultSendLibrary.ts +184 -0
  108. package/src/generated/endpoint/instructions/setDelegate.ts +160 -0
  109. package/src/generated/endpoint/instructions/setLzToken.ts +160 -0
  110. package/src/generated/endpoint/instructions/setReceiveLibrary.ts +190 -0
  111. package/src/generated/endpoint/instructions/setReceiveLibraryTimeout.ts +184 -0
  112. package/src/generated/endpoint/instructions/setSendLibrary.ts +190 -0
  113. package/src/generated/endpoint/instructions/skip.ts +203 -0
  114. package/src/generated/endpoint/instructions/transferAdmin.ts +160 -0
  115. package/src/generated/endpoint/instructions/verify.ts +205 -0
  116. package/src/generated/endpoint/instructions/withdrawRent.ts +172 -0
  117. package/src/generated/endpoint/types/BurnParams.ts +32 -0
  118. package/src/generated/endpoint/types/ClearComposeParams.ts +31 -0
  119. package/src/generated/endpoint/types/ClearParams.ts +34 -0
  120. package/src/generated/endpoint/types/InitConfigParams.ts +26 -0
  121. package/src/generated/endpoint/types/InitDefaultReceiveLibraryParams.ts +27 -0
  122. package/src/generated/endpoint/types/InitDefaultSendLibraryParams.ts +27 -0
  123. package/src/generated/endpoint/types/InitEndpointParams.ts +27 -0
  124. package/src/generated/endpoint/types/InitNonceParams.ts +28 -0
  125. package/src/generated/endpoint/types/InitReceiveLibraryParams.ts +27 -0
  126. package/src/generated/endpoint/types/InitSendLibraryParams.ts +27 -0
  127. package/src/generated/endpoint/types/InitVerifyParams.ts +30 -0
  128. package/src/generated/endpoint/types/LzComposeAlertParams.ts +41 -0
  129. package/src/generated/endpoint/types/LzReceiveAlertParams.ts +43 -0
  130. package/src/generated/endpoint/types/MessageLibType.ts +25 -0
  131. package/src/generated/endpoint/types/MessagingFee.ts +24 -0
  132. package/src/generated/endpoint/types/MessagingReceipt.ts +27 -0
  133. package/src/generated/endpoint/types/NilifyParams.ts +32 -0
  134. package/src/generated/endpoint/types/QuoteParams.ts +34 -0
  135. package/src/generated/endpoint/types/ReceiveLibraryTimeout.ts +27 -0
  136. package/src/generated/endpoint/types/RegisterLibraryParams.ts +28 -0
  137. package/src/generated/endpoint/types/RegisterOAppParams.ts +23 -0
  138. package/src/generated/endpoint/types/SendComposeParams.ts +31 -0
  139. package/src/generated/endpoint/types/SendParams.ts +32 -0
  140. package/src/generated/endpoint/types/SetConfigParams.ts +31 -0
  141. package/src/generated/endpoint/types/SetDefaultReceiveLibraryParams.ts +29 -0
  142. package/src/generated/endpoint/types/SetDefaultReceiveLibraryTimeoutParams.ts +29 -0
  143. package/src/generated/endpoint/types/SetDefaultSendLibraryParams.ts +27 -0
  144. package/src/generated/endpoint/types/SetDelegateParams.ts +22 -0
  145. package/src/generated/endpoint/types/SetLzTokenParams.ts +23 -0
  146. package/src/generated/endpoint/types/SetReceiveLibraryParams.ts +31 -0
  147. package/src/generated/endpoint/types/SetReceiveLibraryTimeoutParams.ts +31 -0
  148. package/src/generated/endpoint/types/SetSendLibraryParams.ts +29 -0
  149. package/src/generated/endpoint/types/SkipParams.ts +30 -0
  150. package/src/generated/endpoint/types/TransferAdminParams.ts +23 -0
  151. package/src/generated/endpoint/types/VerifyParams.ts +32 -0
  152. package/src/generated/endpoint/types/WithdrawRentParams.ts +21 -0
  153. package/src/generated/endpoint/types/index.ts +36 -0
  154. package/src/generated/executor/accounts/ExecutorConfig.ts +216 -0
  155. package/src/generated/executor/accounts/Nonce.ts +193 -0
  156. package/src/generated/executor/accounts/index.ts +7 -0
  157. package/src/generated/executor/errors/index.ts +434 -0
  158. package/src/generated/executor/events/NativeDropAppliedEvent.ts +38 -0
  159. package/src/generated/executor/events/index.ts +1 -0
  160. package/src/generated/executor/index.ts +21 -0
  161. package/src/generated/executor/instructions/adminSetConfig.ts +136 -0
  162. package/src/generated/executor/instructions/compose.ts +181 -0
  163. package/src/generated/executor/instructions/executable.ts +136 -0
  164. package/src/generated/executor/instructions/execute.ts +181 -0
  165. package/src/generated/executor/instructions/index.ts +8 -0
  166. package/src/generated/executor/instructions/initExecutor.ts +147 -0
  167. package/src/generated/executor/instructions/nativeDrop.ts +171 -0
  168. package/src/generated/executor/instructions/ownerSetConfig.ts +136 -0
  169. package/src/generated/executor/instructions/quoteExecutor.ts +148 -0
  170. package/src/generated/executor/types/Acl.ts +26 -0
  171. package/src/generated/executor/types/AdminSetConfigParams.ts +83 -0
  172. package/src/generated/executor/types/ComposeParams.ts +27 -0
  173. package/src/generated/executor/types/DstConfig.ts +32 -0
  174. package/src/generated/executor/types/ExecutableParams.ts +30 -0
  175. package/src/generated/executor/types/ExecuteParams.ts +31 -0
  176. package/src/generated/executor/types/ExecutionState.ts +26 -0
  177. package/src/generated/executor/types/InitExecutorParams.ts +33 -0
  178. package/src/generated/executor/types/LzComposeParams.ts +35 -0
  179. package/src/generated/executor/types/LzOption.ts +24 -0
  180. package/src/generated/executor/types/LzReceiveParams.ts +33 -0
  181. package/src/generated/executor/types/NativeDropParams.ts +36 -0
  182. package/src/generated/executor/types/NativeDropRequest.ts +26 -0
  183. package/src/generated/executor/types/OwnerSetConfigParams.ts +123 -0
  184. package/src/generated/executor/types/QuoteExecutorParams.ts +34 -0
  185. package/src/generated/executor/types/index.ts +15 -0
  186. package/src/generated/pricefeed/accounts/PriceFeed.ts +220 -0
  187. package/src/generated/pricefeed/accounts/index.ts +5 -0
  188. package/src/generated/pricefeed/errors/index.ts +115 -0
  189. package/src/generated/pricefeed/index.ts +21 -0
  190. package/src/generated/pricefeed/instructions/getFee.ts +121 -0
  191. package/src/generated/pricefeed/instructions/index.ts +6 -0
  192. package/src/generated/pricefeed/instructions/initPriceFeed.ts +147 -0
  193. package/src/generated/pricefeed/instructions/setPrice.ts +133 -0
  194. package/src/generated/pricefeed/instructions/setPriceFeed.ts +136 -0
  195. package/src/generated/pricefeed/instructions/setSolPrice.ts +136 -0
  196. package/src/generated/pricefeed/instructions/transferAdmin.ts +136 -0
  197. package/src/generated/pricefeed/types/GetFeeParams.ts +26 -0
  198. package/src/generated/pricefeed/types/InitPriceFeedParams.ts +27 -0
  199. package/src/generated/pricefeed/types/ModelType.ts +66 -0
  200. package/src/generated/pricefeed/types/Price.ts +31 -0
  201. package/src/generated/pricefeed/types/PriceParams.ts +29 -0
  202. package/src/generated/pricefeed/types/SetPriceFeedParams.ts +29 -0
  203. package/src/generated/pricefeed/types/SetPriceParams.ts +26 -0
  204. package/src/generated/pricefeed/types/SetSolPriceParams.ts +21 -0
  205. package/src/generated/pricefeed/types/TransferAdminParams.ts +23 -0
  206. package/src/generated/pricefeed/types/index.ts +9 -0
  207. package/src/generated/simple_messagelib/accounts/MessageLib.ts +222 -0
  208. package/src/generated/simple_messagelib/accounts/ReceiveConfigStore.ts +168 -0
  209. package/src/generated/simple_messagelib/accounts/SendConfigStore.ts +170 -0
  210. package/src/generated/simple_messagelib/accounts/index.ts +13 -0
  211. package/src/generated/simple_messagelib/errors/index.ts +207 -0
  212. package/src/generated/simple_messagelib/index.ts +21 -0
  213. package/src/generated/simple_messagelib/instructions/index.ts +15 -0
  214. package/src/generated/simple_messagelib/instructions/initConfig.ts +183 -0
  215. package/src/generated/simple_messagelib/instructions/initDefaultConfig.ts +171 -0
  216. package/src/generated/simple_messagelib/instructions/initMessageLib.ts +147 -0
  217. package/src/generated/simple_messagelib/instructions/quote.ts +133 -0
  218. package/src/generated/simple_messagelib/instructions/revertCall.ts +59 -0
  219. package/src/generated/simple_messagelib/instructions/send.ts +154 -0
  220. package/src/generated/simple_messagelib/instructions/sendWithLzToken.ts +207 -0
  221. package/src/generated/simple_messagelib/instructions/setConfig.ts +157 -0
  222. package/src/generated/simple_messagelib/instructions/setDefaultConfig.ts +171 -0
  223. package/src/generated/simple_messagelib/instructions/setFee.ts +133 -0
  224. package/src/generated/simple_messagelib/instructions/setWlCaller.ts +136 -0
  225. package/src/generated/simple_messagelib/instructions/transferAdmin.ts +136 -0
  226. package/src/generated/simple_messagelib/instructions/validatePacket.ts +136 -0
  227. package/src/generated/simple_messagelib/instructions/version.ts +59 -0
  228. package/src/generated/simple_messagelib/instructions/withdrawFees.ts +148 -0
  229. package/src/generated/simple_messagelib/types/InitConfigParams.ts +26 -0
  230. package/src/generated/simple_messagelib/types/InitDefaultConfigParams.ts +27 -0
  231. package/src/generated/simple_messagelib/types/InitMessageLibParams.ts +35 -0
  232. package/src/generated/simple_messagelib/types/MessagingFee.ts +24 -0
  233. package/src/generated/simple_messagelib/types/Packet.ts +36 -0
  234. package/src/generated/simple_messagelib/types/QuoteParams.ts +27 -0
  235. package/src/generated/simple_messagelib/types/SendParams.ts +27 -0
  236. package/src/generated/simple_messagelib/types/SendWithLzTokenParams.ts +34 -0
  237. package/src/generated/simple_messagelib/types/SetConfigParams.ts +31 -0
  238. package/src/generated/simple_messagelib/types/SetDefaultConfigParams.ts +27 -0
  239. package/src/generated/simple_messagelib/types/SetFeeParams.ts +24 -0
  240. package/src/generated/simple_messagelib/types/SetWlCallerParams.ts +22 -0
  241. package/src/generated/simple_messagelib/types/TransferAdminParams.ts +23 -0
  242. package/src/generated/simple_messagelib/types/ValidatePacketParams.ts +21 -0
  243. package/src/generated/simple_messagelib/types/Version.ts +26 -0
  244. package/src/generated/simple_messagelib/types/WithdrawFeesParams.ts +21 -0
  245. package/src/generated/simple_messagelib/types/index.ts +16 -0
  246. package/src/generated/uln/accounts/Confirmations.ts +171 -0
  247. package/src/generated/uln/accounts/ReceiveConfig.ts +169 -0
  248. package/src/generated/uln/accounts/SendConfig.ts +177 -0
  249. package/src/generated/uln/accounts/UlnSettings.ts +195 -0
  250. package/src/generated/uln/accounts/index.ts +16 -0
  251. package/src/generated/uln/errors/index.ts +761 -0
  252. package/src/generated/uln/events/AdminTransferredEvent.ts +23 -0
  253. package/src/generated/uln/events/ConfigSetEvent.ts +30 -0
  254. package/src/generated/uln/events/DefaultConfigSetEvent.ts +31 -0
  255. package/src/generated/uln/events/FeesPaidEvent.ts +28 -0
  256. package/src/generated/uln/events/LzTokenSetEvent.ts +23 -0
  257. package/src/generated/uln/events/PayloadVerifiedEvent.ts +31 -0
  258. package/src/generated/uln/events/RentWithdrawnEvent.ts +27 -0
  259. package/src/generated/uln/events/TreasuryFeeCapSetEvent.ts +21 -0
  260. package/src/generated/uln/events/TreasurySetEvent.ts +22 -0
  261. package/src/generated/uln/events/index.ts +7 -0
  262. package/src/generated/uln/index.ts +21 -0
  263. package/src/generated/uln/instructions/closeVerify.ts +148 -0
  264. package/src/generated/uln/instructions/commitVerification.ts +148 -0
  265. package/src/generated/uln/instructions/index.ts +16 -0
  266. package/src/generated/uln/instructions/initConfig.ts +183 -0
  267. package/src/generated/uln/instructions/initDefaultConfig.ts +195 -0
  268. package/src/generated/uln/instructions/initUln.ts +144 -0
  269. package/src/generated/uln/instructions/initVerify.ts +147 -0
  270. package/src/generated/uln/instructions/quote.ts +157 -0
  271. package/src/generated/uln/instructions/send.ts +220 -0
  272. package/src/generated/uln/instructions/sendWithLzToken.ts +255 -0
  273. package/src/generated/uln/instructions/setConfig.ts +205 -0
  274. package/src/generated/uln/instructions/setDefaultConfig.ts +184 -0
  275. package/src/generated/uln/instructions/setTreasury.ts +160 -0
  276. package/src/generated/uln/instructions/transferAdmin.ts +160 -0
  277. package/src/generated/uln/instructions/verify.ts +157 -0
  278. package/src/generated/uln/instructions/version.ts +59 -0
  279. package/src/generated/uln/instructions/withdrawRent.ts +172 -0
  280. package/src/generated/uln/types/CloseVerifyParams.ts +24 -0
  281. package/src/generated/uln/types/CommitVerificationParams.ts +25 -0
  282. package/src/generated/uln/types/Config.ts +75 -0
  283. package/src/generated/uln/types/ExecutorConfig.ts +26 -0
  284. package/src/generated/uln/types/InitConfigParams.ts +26 -0
  285. package/src/generated/uln/types/InitDefaultConfigParams.ts +31 -0
  286. package/src/generated/uln/types/InitUlnParams.ts +30 -0
  287. package/src/generated/uln/types/InitVerifyParams.ts +28 -0
  288. package/src/generated/uln/types/LzTokenTreasury.ts +26 -0
  289. package/src/generated/uln/types/MessagingFee.ts +24 -0
  290. package/src/generated/uln/types/Packet.ts +36 -0
  291. package/src/generated/uln/types/QuoteParams.ts +27 -0
  292. package/src/generated/uln/types/SendParams.ts +27 -0
  293. package/src/generated/uln/types/SendWithLzTokenParams.ts +34 -0
  294. package/src/generated/uln/types/SetConfigParams.ts +31 -0
  295. package/src/generated/uln/types/SetDefaultConfigParams.ts +31 -0
  296. package/src/generated/uln/types/SetTreasuryParams.ts +22 -0
  297. package/src/generated/uln/types/TransferAdminParams.ts +23 -0
  298. package/src/generated/uln/types/Treasury.ts +31 -0
  299. package/src/generated/uln/types/TreasuryFee.ts +28 -0
  300. package/src/generated/uln/types/UlnConfig.ts +34 -0
  301. package/src/generated/uln/types/VerifyParams.ts +26 -0
  302. package/src/generated/uln/types/Version.ts +26 -0
  303. package/src/generated/uln/types/WithdrawRentParams.ts +21 -0
  304. package/src/generated/uln/types/WorkerFee.ts +26 -0
  305. package/src/generated/uln/types/index.ts +25 -0
  306. package/src/generated/worker_interface/errors/index.ts +75 -0
  307. package/src/generated/worker_interface/index.ts +20 -0
  308. package/src/generated/worker_interface/instructions/index.ts +2 -0
  309. package/src/generated/worker_interface/instructions/quoteDvn.ts +145 -0
  310. package/src/generated/worker_interface/instructions/quoteExecutor.ts +148 -0
  311. package/src/generated/worker_interface/types/LzOption.ts +24 -0
  312. package/src/generated/worker_interface/types/QuoteDvnParams.ts +38 -0
  313. package/src/generated/worker_interface/types/QuoteExecutorParams.ts +34 -0
  314. package/src/generated/worker_interface/types/index.ts +3 -0
  315. package/src/index.ts +120 -0
  316. package/src/pda-deriver.ts +658 -0
  317. package/src/pricefeed.ts +208 -0
  318. package/src/recevie.ts +269 -0
  319. package/src/send-helper.ts +504 -0
  320. package/src/simple-message-lib.ts +303 -0
  321. package/src/types.ts +222 -0
  322. package/src/uln.ts +1045 -0
  323. package/src/utility.ts +592 -0
@@ -0,0 +1,171 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as beet from '@metaplex-foundation/beet'
9
+ import * as web3 from '@solana/web3.js'
10
+ import {
11
+ NativeDropParams,
12
+ nativeDropParamsBeet,
13
+ } from '../types/NativeDropParams'
14
+
15
+ /**
16
+ * @category Instructions
17
+ * @category NativeDrop
18
+ * @category generated
19
+ */
20
+ export type NativeDropInstructionArgs = {
21
+ params: NativeDropParams
22
+ }
23
+ /**
24
+ * @category Instructions
25
+ * @category NativeDrop
26
+ * @category generated
27
+ */
28
+ export const nativeDropStruct = new beet.FixableBeetArgsStruct<
29
+ NativeDropInstructionArgs & {
30
+ instructionDiscriminator: number[] /* size: 8 */
31
+ }
32
+ >(
33
+ [
34
+ ['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
35
+ ['params', nativeDropParamsBeet],
36
+ ],
37
+ 'NativeDropInstructionArgs'
38
+ )
39
+ /**
40
+ * Accounts required by the _nativeDrop_ instruction
41
+ *
42
+ * @property [_writable_, **signer**] executor
43
+ * @property [_writable_] config
44
+ * @property [] eventAuthority
45
+ * @property [] program
46
+ * @category Instructions
47
+ * @category NativeDrop
48
+ * @category generated
49
+ */
50
+ export type NativeDropInstructionAccounts = {
51
+ executor: web3.PublicKey
52
+ config: web3.PublicKey
53
+ systemProgram?: web3.PublicKey
54
+ eventAuthority: web3.PublicKey
55
+ program: web3.PublicKey
56
+ anchorRemainingAccounts?: web3.AccountMeta[]
57
+ }
58
+
59
+ export const nativeDropInstructionDiscriminator = [
60
+ 105, 30, 218, 121, 155, 234, 85, 12,
61
+ ]
62
+
63
+ /**
64
+ * Creates a _NativeDrop_ instruction.
65
+ *
66
+ * @param accounts that will be accessed while the instruction is processed
67
+ * @param args to provide as instruction data to the program
68
+ *
69
+ * @category Instructions
70
+ * @category NativeDrop
71
+ * @category generated
72
+ */
73
+ export function createNativeDropInstruction(
74
+ accounts: NativeDropInstructionAccounts,
75
+ args: NativeDropInstructionArgs,
76
+ programId: web3.PublicKey
77
+ ) {
78
+ const [data] = nativeDropStruct.serialize({
79
+ instructionDiscriminator: nativeDropInstructionDiscriminator,
80
+ ...args,
81
+ })
82
+ const keys: web3.AccountMeta[] = [
83
+ {
84
+ pubkey: accounts.executor,
85
+ isWritable: true,
86
+ isSigner: true,
87
+ },
88
+ {
89
+ pubkey: accounts.config,
90
+ isWritable: true,
91
+ isSigner: false,
92
+ },
93
+ {
94
+ pubkey: accounts.systemProgram ?? web3.SystemProgram.programId,
95
+ isWritable: false,
96
+ isSigner: false,
97
+ },
98
+ {
99
+ pubkey: accounts.eventAuthority,
100
+ isWritable: false,
101
+ isSigner: false,
102
+ },
103
+ {
104
+ pubkey: accounts.program,
105
+ isWritable: false,
106
+ isSigner: false,
107
+ },
108
+ ]
109
+
110
+ if (accounts.anchorRemainingAccounts != null) {
111
+ for (const acc of accounts.anchorRemainingAccounts) {
112
+ keys.push(acc)
113
+ }
114
+ }
115
+
116
+ const ix = new web3.TransactionInstruction({
117
+ programId,
118
+ keys,
119
+ data,
120
+ })
121
+ return ix
122
+ }
123
+
124
+ /**
125
+ * Creates a _NativeDrop_ instructionAccounts.
126
+ *
127
+ * @param accounts that will be accessed while the instruction is processed
128
+ * @category Instructions
129
+ * @category NativeDrop
130
+ * @category generated
131
+ */
132
+ export function createNativeDropInstructionAccounts(
133
+ accounts: NativeDropInstructionAccounts,
134
+ programId: web3.PublicKey
135
+ ) {
136
+ const keys: web3.AccountMeta[] = [
137
+ {
138
+ pubkey: accounts.executor,
139
+ isWritable: true,
140
+ isSigner: true,
141
+ },
142
+ {
143
+ pubkey: accounts.config,
144
+ isWritable: true,
145
+ isSigner: false,
146
+ },
147
+ {
148
+ pubkey: accounts.systemProgram ?? web3.SystemProgram.programId,
149
+ isWritable: false,
150
+ isSigner: false,
151
+ },
152
+ {
153
+ pubkey: accounts.eventAuthority,
154
+ isWritable: false,
155
+ isSigner: false,
156
+ },
157
+ {
158
+ pubkey: accounts.program,
159
+ isWritable: false,
160
+ isSigner: false,
161
+ },
162
+ ]
163
+
164
+ if (accounts.anchorRemainingAccounts != null) {
165
+ for (const acc of accounts.anchorRemainingAccounts) {
166
+ keys.push(acc)
167
+ }
168
+ }
169
+
170
+ return keys
171
+ }
@@ -0,0 +1,136 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as beet from '@metaplex-foundation/beet'
9
+ import * as web3 from '@solana/web3.js'
10
+ import {
11
+ OwnerSetConfigParams,
12
+ ownerSetConfigParamsBeet,
13
+ } from '../types/OwnerSetConfigParams'
14
+
15
+ /**
16
+ * @category Instructions
17
+ * @category OwnerSetConfig
18
+ * @category generated
19
+ */
20
+ export type OwnerSetConfigInstructionArgs = {
21
+ params: OwnerSetConfigParams
22
+ }
23
+ /**
24
+ * @category Instructions
25
+ * @category OwnerSetConfig
26
+ * @category generated
27
+ */
28
+ export const ownerSetConfigStruct = new beet.FixableBeetArgsStruct<
29
+ OwnerSetConfigInstructionArgs & {
30
+ instructionDiscriminator: number[] /* size: 8 */
31
+ }
32
+ >(
33
+ [
34
+ ['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
35
+ ['params', ownerSetConfigParamsBeet],
36
+ ],
37
+ 'OwnerSetConfigInstructionArgs'
38
+ )
39
+ /**
40
+ * Accounts required by the _ownerSetConfig_ instruction
41
+ *
42
+ * @property [**signer**] owner
43
+ * @property [_writable_] config
44
+ * @category Instructions
45
+ * @category OwnerSetConfig
46
+ * @category generated
47
+ */
48
+ export type OwnerSetConfigInstructionAccounts = {
49
+ owner: web3.PublicKey
50
+ config: web3.PublicKey
51
+ anchorRemainingAccounts?: web3.AccountMeta[]
52
+ }
53
+
54
+ export const ownerSetConfigInstructionDiscriminator = [
55
+ 99, 197, 129, 19, 164, 164, 183, 123,
56
+ ]
57
+
58
+ /**
59
+ * Creates a _OwnerSetConfig_ instruction.
60
+ *
61
+ * @param accounts that will be accessed while the instruction is processed
62
+ * @param args to provide as instruction data to the program
63
+ *
64
+ * @category Instructions
65
+ * @category OwnerSetConfig
66
+ * @category generated
67
+ */
68
+ export function createOwnerSetConfigInstruction(
69
+ accounts: OwnerSetConfigInstructionAccounts,
70
+ args: OwnerSetConfigInstructionArgs,
71
+ programId: web3.PublicKey
72
+ ) {
73
+ const [data] = ownerSetConfigStruct.serialize({
74
+ instructionDiscriminator: ownerSetConfigInstructionDiscriminator,
75
+ ...args,
76
+ })
77
+ const keys: web3.AccountMeta[] = [
78
+ {
79
+ pubkey: accounts.owner,
80
+ isWritable: false,
81
+ isSigner: true,
82
+ },
83
+ {
84
+ pubkey: accounts.config,
85
+ isWritable: true,
86
+ isSigner: false,
87
+ },
88
+ ]
89
+
90
+ if (accounts.anchorRemainingAccounts != null) {
91
+ for (const acc of accounts.anchorRemainingAccounts) {
92
+ keys.push(acc)
93
+ }
94
+ }
95
+
96
+ const ix = new web3.TransactionInstruction({
97
+ programId,
98
+ keys,
99
+ data,
100
+ })
101
+ return ix
102
+ }
103
+
104
+ /**
105
+ * Creates a _OwnerSetConfig_ instructionAccounts.
106
+ *
107
+ * @param accounts that will be accessed while the instruction is processed
108
+ * @category Instructions
109
+ * @category OwnerSetConfig
110
+ * @category generated
111
+ */
112
+ export function createOwnerSetConfigInstructionAccounts(
113
+ accounts: OwnerSetConfigInstructionAccounts,
114
+ programId: web3.PublicKey
115
+ ) {
116
+ const keys: web3.AccountMeta[] = [
117
+ {
118
+ pubkey: accounts.owner,
119
+ isWritable: false,
120
+ isSigner: true,
121
+ },
122
+ {
123
+ pubkey: accounts.config,
124
+ isWritable: true,
125
+ isSigner: false,
126
+ },
127
+ ]
128
+
129
+ if (accounts.anchorRemainingAccounts != null) {
130
+ for (const acc of accounts.anchorRemainingAccounts) {
131
+ keys.push(acc)
132
+ }
133
+ }
134
+
135
+ return keys
136
+ }
@@ -0,0 +1,148 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as beet from '@metaplex-foundation/beet'
9
+ import * as web3 from '@solana/web3.js'
10
+ import {
11
+ QuoteExecutorParams,
12
+ quoteExecutorParamsBeet,
13
+ } from '../types/QuoteExecutorParams'
14
+
15
+ /**
16
+ * @category Instructions
17
+ * @category QuoteExecutor
18
+ * @category generated
19
+ */
20
+ export type QuoteExecutorInstructionArgs = {
21
+ params: QuoteExecutorParams
22
+ }
23
+ /**
24
+ * @category Instructions
25
+ * @category QuoteExecutor
26
+ * @category generated
27
+ */
28
+ export const quoteExecutorStruct = new beet.FixableBeetArgsStruct<
29
+ QuoteExecutorInstructionArgs & {
30
+ instructionDiscriminator: number[] /* size: 8 */
31
+ }
32
+ >(
33
+ [
34
+ ['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
35
+ ['params', quoteExecutorParamsBeet],
36
+ ],
37
+ 'QuoteExecutorInstructionArgs'
38
+ )
39
+ /**
40
+ * Accounts required by the _quoteExecutor_ instruction
41
+ *
42
+ * @property [] executorConfig
43
+ * @property [] priceFeedProgram
44
+ * @property [] priceFeedConfig
45
+ * @category Instructions
46
+ * @category QuoteExecutor
47
+ * @category generated
48
+ */
49
+ export type QuoteExecutorInstructionAccounts = {
50
+ executorConfig: web3.PublicKey
51
+ priceFeedProgram: web3.PublicKey
52
+ priceFeedConfig: web3.PublicKey
53
+ anchorRemainingAccounts?: web3.AccountMeta[]
54
+ }
55
+
56
+ export const quoteExecutorInstructionDiscriminator = [
57
+ 84, 246, 255, 191, 82, 65, 164, 92,
58
+ ]
59
+
60
+ /**
61
+ * Creates a _QuoteExecutor_ instruction.
62
+ *
63
+ * @param accounts that will be accessed while the instruction is processed
64
+ * @param args to provide as instruction data to the program
65
+ *
66
+ * @category Instructions
67
+ * @category QuoteExecutor
68
+ * @category generated
69
+ */
70
+ export function createQuoteExecutorInstruction(
71
+ accounts: QuoteExecutorInstructionAccounts,
72
+ args: QuoteExecutorInstructionArgs,
73
+ programId: web3.PublicKey
74
+ ) {
75
+ const [data] = quoteExecutorStruct.serialize({
76
+ instructionDiscriminator: quoteExecutorInstructionDiscriminator,
77
+ ...args,
78
+ })
79
+ const keys: web3.AccountMeta[] = [
80
+ {
81
+ pubkey: accounts.executorConfig,
82
+ isWritable: false,
83
+ isSigner: false,
84
+ },
85
+ {
86
+ pubkey: accounts.priceFeedProgram,
87
+ isWritable: false,
88
+ isSigner: false,
89
+ },
90
+ {
91
+ pubkey: accounts.priceFeedConfig,
92
+ isWritable: false,
93
+ isSigner: false,
94
+ },
95
+ ]
96
+
97
+ if (accounts.anchorRemainingAccounts != null) {
98
+ for (const acc of accounts.anchorRemainingAccounts) {
99
+ keys.push(acc)
100
+ }
101
+ }
102
+
103
+ const ix = new web3.TransactionInstruction({
104
+ programId,
105
+ keys,
106
+ data,
107
+ })
108
+ return ix
109
+ }
110
+
111
+ /**
112
+ * Creates a _QuoteExecutor_ instructionAccounts.
113
+ *
114
+ * @param accounts that will be accessed while the instruction is processed
115
+ * @category Instructions
116
+ * @category QuoteExecutor
117
+ * @category generated
118
+ */
119
+ export function createQuoteExecutorInstructionAccounts(
120
+ accounts: QuoteExecutorInstructionAccounts,
121
+ programId: web3.PublicKey
122
+ ) {
123
+ const keys: web3.AccountMeta[] = [
124
+ {
125
+ pubkey: accounts.executorConfig,
126
+ isWritable: false,
127
+ isSigner: false,
128
+ },
129
+ {
130
+ pubkey: accounts.priceFeedProgram,
131
+ isWritable: false,
132
+ isSigner: false,
133
+ },
134
+ {
135
+ pubkey: accounts.priceFeedConfig,
136
+ isWritable: false,
137
+ isSigner: false,
138
+ },
139
+ ]
140
+
141
+ if (accounts.anchorRemainingAccounts != null) {
142
+ for (const acc of accounts.anchorRemainingAccounts) {
143
+ keys.push(acc)
144
+ }
145
+ }
146
+
147
+ return keys
148
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as web3 from '@solana/web3.js'
9
+ import * as beetSolana from '@metaplex-foundation/beet-solana'
10
+ import * as beet from '@metaplex-foundation/beet'
11
+ export type Acl = {
12
+ allowList: web3.PublicKey[]
13
+ denyList: web3.PublicKey[]
14
+ }
15
+
16
+ /**
17
+ * @category userTypes
18
+ * @category generated
19
+ */
20
+ export const aclBeet = new beet.FixableBeetArgsStruct<Acl>(
21
+ [
22
+ ['allowList', beet.array(beetSolana.publicKey)],
23
+ ['denyList', beet.array(beetSolana.publicKey)],
24
+ ],
25
+ 'Acl'
26
+ )
@@ -0,0 +1,83 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as web3 from '@solana/web3.js'
9
+ import * as beet from '@metaplex-foundation/beet'
10
+ import * as beetSolana from '@metaplex-foundation/beet-solana'
11
+ import { DstConfig, dstConfigBeet } from './DstConfig'
12
+ /**
13
+ * This type is used to derive the {@link AdminSetConfigParams} type as well as the de/serializer.
14
+ * However don't refer to it in your code but use the {@link AdminSetConfigParams} type instead.
15
+ *
16
+ * @category userTypes
17
+ * @category enums
18
+ * @category generated
19
+ * @private
20
+ */
21
+ export type AdminSetConfigParamsRecord = {
22
+ PriceFeed: { fields: [web3.PublicKey] }
23
+ DefaultMultiplierBps: { fields: [number] }
24
+ DstConfigs: { fields: [DstConfig[]] }
25
+ }
26
+
27
+ /**
28
+ * Union type respresenting the AdminSetConfigParams data enum defined in Rust.
29
+ *
30
+ * NOTE: that it includes a `__kind` property which allows to narrow types in
31
+ * switch/if statements.
32
+ * Additionally `isAdminSetConfigParams*` type guards are exposed below to narrow to a specific variant.
33
+ *
34
+ * @category userTypes
35
+ * @category enums
36
+ * @category generated
37
+ */
38
+ export type AdminSetConfigParams =
39
+ beet.DataEnumKeyAsKind<AdminSetConfigParamsRecord>
40
+
41
+ export const isAdminSetConfigParamsPriceFeed = (
42
+ x: AdminSetConfigParams
43
+ ): x is AdminSetConfigParams & { __kind: 'PriceFeed' } =>
44
+ x.__kind === 'PriceFeed'
45
+ export const isAdminSetConfigParamsDefaultMultiplierBps = (
46
+ x: AdminSetConfigParams
47
+ ): x is AdminSetConfigParams & { __kind: 'DefaultMultiplierBps' } =>
48
+ x.__kind === 'DefaultMultiplierBps'
49
+ export const isAdminSetConfigParamsDstConfigs = (
50
+ x: AdminSetConfigParams
51
+ ): x is AdminSetConfigParams & { __kind: 'DstConfigs' } =>
52
+ x.__kind === 'DstConfigs'
53
+
54
+ /**
55
+ * @category userTypes
56
+ * @category generated
57
+ */
58
+ export const adminSetConfigParamsBeet =
59
+ beet.dataEnum<AdminSetConfigParamsRecord>([
60
+ [
61
+ 'PriceFeed',
62
+ new beet.BeetArgsStruct<AdminSetConfigParamsRecord['PriceFeed']>(
63
+ [['fields', beet.fixedSizeTuple([beetSolana.publicKey])]],
64
+ 'AdminSetConfigParamsRecord["PriceFeed"]'
65
+ ),
66
+ ],
67
+ [
68
+ 'DefaultMultiplierBps',
69
+ new beet.BeetArgsStruct<
70
+ AdminSetConfigParamsRecord['DefaultMultiplierBps']
71
+ >(
72
+ [['fields', beet.fixedSizeTuple([beet.u16])]],
73
+ 'AdminSetConfigParamsRecord["DefaultMultiplierBps"]'
74
+ ),
75
+ ],
76
+ [
77
+ 'DstConfigs',
78
+ new beet.FixableBeetArgsStruct<AdminSetConfigParamsRecord['DstConfigs']>(
79
+ [['fields', beet.tuple([beet.array(dstConfigBeet)])]],
80
+ 'AdminSetConfigParamsRecord["DstConfigs"]'
81
+ ),
82
+ ],
83
+ ]) as beet.FixableBeet<AdminSetConfigParams, AdminSetConfigParams>
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as beet from '@metaplex-foundation/beet'
9
+ import { LzComposeParams, lzComposeParamsBeet } from './LzComposeParams'
10
+ export type ComposeParams = {
11
+ lzCompose: LzComposeParams
12
+ computeUnits: beet.bignum
13
+ value: beet.bignum
14
+ }
15
+
16
+ /**
17
+ * @category userTypes
18
+ * @category generated
19
+ */
20
+ export const composeParamsBeet = new beet.FixableBeetArgsStruct<ComposeParams>(
21
+ [
22
+ ['lzCompose', lzComposeParamsBeet],
23
+ ['computeUnits', beet.u64],
24
+ ['value', beet.u64],
25
+ ],
26
+ 'ComposeParams'
27
+ )
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as beet from '@metaplex-foundation/beet'
9
+ export type DstConfig = {
10
+ eid: number
11
+ lzReceiveBaseGas: number
12
+ lzComposeBaseGas: number
13
+ multiplierBps: beet.COption<number>
14
+ floorMarginUsd: beet.COption<beet.bignum>
15
+ nativeDropCap: beet.bignum
16
+ }
17
+
18
+ /**
19
+ * @category userTypes
20
+ * @category generated
21
+ */
22
+ export const dstConfigBeet = new beet.FixableBeetArgsStruct<DstConfig>(
23
+ [
24
+ ['eid', beet.u32],
25
+ ['lzReceiveBaseGas', beet.u32],
26
+ ['lzComposeBaseGas', beet.u32],
27
+ ['multiplierBps', beet.coption(beet.u16)],
28
+ ['floorMarginUsd', beet.coption(beet.u128)],
29
+ ['nativeDropCap', beet.u128],
30
+ ],
31
+ 'DstConfig'
32
+ )
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as web3 from '@solana/web3.js'
9
+ import * as beet from '@metaplex-foundation/beet'
10
+ import * as beetSolana from '@metaplex-foundation/beet-solana'
11
+ export type ExecutableParams = {
12
+ receiver: web3.PublicKey
13
+ srcEid: number
14
+ sender: number[] /* size: 32 */
15
+ nonce: beet.bignum
16
+ }
17
+
18
+ /**
19
+ * @category userTypes
20
+ * @category generated
21
+ */
22
+ export const executableParamsBeet = new beet.BeetArgsStruct<ExecutableParams>(
23
+ [
24
+ ['receiver', beetSolana.publicKey],
25
+ ['srcEid', beet.u32],
26
+ ['sender', beet.uniformFixedSizeArray(beet.u8, 32)],
27
+ ['nonce', beet.u64],
28
+ ],
29
+ 'ExecutableParams'
30
+ )
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+
8
+ import * as web3 from '@solana/web3.js'
9
+ import * as beet from '@metaplex-foundation/beet'
10
+ import * as beetSolana from '@metaplex-foundation/beet-solana'
11
+ import { LzReceiveParams, lzReceiveParamsBeet } from './LzReceiveParams'
12
+ export type ExecuteParams = {
13
+ receiver: web3.PublicKey
14
+ lzReceive: LzReceiveParams
15
+ value: beet.bignum
16
+ computeUnits: beet.bignum
17
+ }
18
+
19
+ /**
20
+ * @category userTypes
21
+ * @category generated
22
+ */
23
+ export const executeParamsBeet = new beet.FixableBeetArgsStruct<ExecuteParams>(
24
+ [
25
+ ['receiver', beetSolana.publicKey],
26
+ ['lzReceive', lzReceiveParamsBeet],
27
+ ['value', beet.u64],
28
+ ['computeUnits', beet.u64],
29
+ ],
30
+ 'ExecuteParams'
31
+ )