@layerzerolabs/oft-v2-solana-sdk 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 (92) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/deployments/solana-sandbox-local/{TokenOneOFT.json → 302/TokenOneOFT.json} +5 -4
  3. package/deployments/solana-sandbox-local/{TokenThreeOFT.json → 302/TokenThreeOFT.json} +5 -4
  4. package/deployments/solana-sandbox-local/{TokenTwoOFTAdapter.json → 302/TokenTwoOFTAdapter.json} +5 -4
  5. package/deployments/solana-testnet/202/TokenOneOFT.json +16 -0
  6. package/dist/index.cjs +2101 -266
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.mts +1349 -269
  9. package/dist/index.d.ts +1349 -269
  10. package/dist/index.mjs +2099 -260
  11. package/dist/index.mjs.map +1 -1
  12. package/package.json +11 -9
  13. package/src/consts.ts +5 -0
  14. package/src/generated/{accounts → oft202/accounts}/lzReceiveTypesAccounts.ts +1 -2
  15. package/src/generated/{accounts → oft202/accounts}/oFTStore.ts +1 -2
  16. package/src/generated/oft202/accounts/peerConfig.ts +178 -0
  17. package/src/generated/oft202/instructions/index.ts +18 -0
  18. package/src/generated/{instructions → oft202/instructions}/initOft.ts +1 -2
  19. package/src/generated/{instructions → oft202/instructions}/lzReceive.ts +1 -2
  20. package/src/generated/{instructions → oft202/instructions}/lzReceiveTypes.ts +1 -2
  21. package/src/generated/{instructions → oft202/instructions}/quoteOft.ts +1 -2
  22. package/src/generated/oft202/instructions/quoteSend.ts +149 -0
  23. package/src/generated/oft202/instructions/send.ts +193 -0
  24. package/src/generated/{instructions → oft202/instructions}/setOftConfig.ts +1 -2
  25. package/src/generated/{instructions → oft202/instructions}/setPause.ts +1 -2
  26. package/src/generated/{instructions → oft202/instructions}/setPeerConfig.ts +1 -2
  27. package/src/generated/{instructions → oft202/instructions}/withdrawFee.ts +1 -2
  28. package/src/generated/{programs → oft202/programs}/oft.ts +2 -2
  29. package/src/generated/oft202/types/composeParams.ts +35 -0
  30. package/src/generated/oft202/types/index.ts +22 -0
  31. package/src/generated/oft202/types/peerConfigParam.ts +143 -0
  32. package/src/generated/oft302/accounts/index.ts +11 -0
  33. package/src/generated/oft302/accounts/lzReceiveTypesAccounts.ts +167 -0
  34. package/src/generated/oft302/accounts/oFTStore.ts +198 -0
  35. package/src/generated/{accounts → oft302/accounts}/peerConfig.ts +1 -2
  36. package/src/generated/oft302/errors/index.ts +9 -0
  37. package/src/generated/oft302/errors/oft.ts +159 -0
  38. package/src/generated/oft302/index.ts +14 -0
  39. package/src/generated/oft302/instructions/initOft.ts +179 -0
  40. package/src/generated/oft302/instructions/lzReceive.ts +203 -0
  41. package/src/generated/oft302/instructions/lzReceiveTypes.ts +124 -0
  42. package/src/generated/{instructions → oft302/instructions}/oftVersion.ts +1 -2
  43. package/src/generated/oft302/instructions/quoteOft.ts +144 -0
  44. package/src/generated/{instructions → oft302/instructions}/quoteSend.ts +1 -2
  45. package/src/generated/{instructions → oft302/instructions}/send.ts +1 -2
  46. package/src/generated/oft302/instructions/setOftConfig.ts +124 -0
  47. package/src/generated/oft302/instructions/setPause.ts +119 -0
  48. package/src/generated/oft302/instructions/setPeerConfig.ts +148 -0
  49. package/src/generated/oft302/instructions/withdrawFee.ts +151 -0
  50. package/src/generated/oft302/programs/index.ts +9 -0
  51. package/src/generated/oft302/programs/oft.ts +47 -0
  52. package/src/generated/oft302/shared/index.ts +117 -0
  53. package/src/generated/oft302/types/enforcedOptions.ts +31 -0
  54. package/src/generated/oft302/types/lzAccount.ts +35 -0
  55. package/src/generated/oft302/types/lzReceiveParams.ts +50 -0
  56. package/src/generated/oft302/types/messagingFee.ts +29 -0
  57. package/src/generated/oft302/types/oFTFeeDetail.ts +34 -0
  58. package/src/generated/oft302/types/oFTLimits.ts +26 -0
  59. package/src/generated/oft302/types/oFTReceipt.ts +29 -0
  60. package/src/generated/oft302/types/oFTType.ts +23 -0
  61. package/src/generated/oft302/types/quoteOFTResult.ts +50 -0
  62. package/src/generated/oft302/types/rateLimitParams.ts +38 -0
  63. package/src/generated/oft302/types/rateLimiter.ts +38 -0
  64. package/src/generated/oft302/types/setOFTConfigParams.ts +124 -0
  65. package/src/index.ts +5 -46
  66. package/src/oft202.ts +618 -0
  67. package/src/{oft.ts → oft302.ts} +54 -55
  68. package/src/pda.ts +34 -0
  69. package/src/types.ts +40 -0
  70. package/deployments/solana-sandbox-local/TokenFourOFTAdapter.json +0 -15
  71. /package/src/generated/{accounts → oft202/accounts}/index.ts +0 -0
  72. /package/src/generated/{errors → oft202/errors}/index.ts +0 -0
  73. /package/src/generated/{errors → oft202/errors}/oft.ts +0 -0
  74. /package/src/generated/{index.ts → oft202/index.ts} +0 -0
  75. /package/src/generated/{programs → oft202/programs}/index.ts +0 -0
  76. /package/src/generated/{shared → oft202/shared}/index.ts +0 -0
  77. /package/src/generated/{types → oft202/types}/enforcedOptions.ts +0 -0
  78. /package/src/generated/{types → oft202/types}/lzAccount.ts +0 -0
  79. /package/src/generated/{types → oft202/types}/lzReceiveParams.ts +0 -0
  80. /package/src/generated/{types → oft202/types}/messagingFee.ts +0 -0
  81. /package/src/generated/{types → oft202/types}/oFTFeeDetail.ts +0 -0
  82. /package/src/generated/{types → oft202/types}/oFTLimits.ts +0 -0
  83. /package/src/generated/{types → oft202/types}/oFTReceipt.ts +0 -0
  84. /package/src/generated/{types → oft202/types}/oFTType.ts +0 -0
  85. /package/src/generated/{types → oft202/types}/quoteOFTResult.ts +0 -0
  86. /package/src/generated/{types → oft202/types}/rateLimitParams.ts +0 -0
  87. /package/src/generated/{types → oft202/types}/rateLimiter.ts +0 -0
  88. /package/src/generated/{types → oft202/types}/setOFTConfigParams.ts +0 -0
  89. /package/src/generated/{instructions → oft302/instructions}/index.ts +0 -0
  90. /package/src/generated/{types → oft302/types}/index.ts +0 -0
  91. /package/src/generated/{types → oft302/types}/peerConfigParam.ts +0 -0
  92. /package/src/generated/{types → oft302/types}/version.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @layerzerolabs/oft-v2-solana-sdk
2
2
 
3
+ ## 3.0.48
4
+
5
+ ### Patch Changes
6
+
7
+ - 06754c6: monad testnet
8
+ - Updated dependencies [06754c6]
9
+ - @layerzerolabs/lz-foundation@3.0.48
10
+ - @layerzerolabs/lz-solana-sdk-v2@3.0.48
11
+ - @layerzerolabs/lz-v2-utilities@3.0.48
12
+
3
13
  ## 3.0.47
4
14
 
5
15
  ### Patch Changes
@@ -4,12 +4,13 @@
4
4
  "network": "solana-sandbox-local",
5
5
  "oftType": "OFT",
6
6
  "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
- "tokenMint": "EpZ48rUsSFvkjpT6gBhSWUx9TCQ6tEb6sVXLEb2zu45Q",
8
- "tokenEscrow": "29r9LSs2ETiPrpquBEUkTsnY1sb9gPmBafM9ikZz5QVM",
9
- "address": "2KUe6TgcdwTRDZtmiqt4WWjDifQVoYvW5X8jEtBiJv8W",
7
+ "tokenMint": "6N1vhTK2NSJ16hz6t7sG8uUL1toTpjT964M8Nc2Qipjh",
8
+ "tokenEscrow": "GnJDDQWwpZKXLrXmRRXuYvs1PENKWtroWj4A4V6CBiqo",
9
+ "address": "BtmanLww8cU2nX9nbDXL69UAy9hBMKGNXEb1ezhpcnZA",
10
10
  "compatibleVersions": [
11
11
  "v2"
12
12
  ],
13
13
  "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
- "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf"
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
15
16
  }
@@ -4,12 +4,13 @@
4
4
  "network": "solana-sandbox-local",
5
5
  "oftType": "OFT",
6
6
  "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
- "tokenMint": "7q54AzNDFi5WsAT14sgsNB6j1umV1FN2WvFCqwnnSfWW",
8
- "tokenEscrow": "bWvhhfaZx9bAGKwciiLYMUKe5WSFzJBDiFc99V1CSXy",
9
- "address": "F3apanqJzZA2xrd7zXXVhfbkcpcGFP79pfHrCVfnVY7T",
7
+ "tokenMint": "86iff7eXfuzVY1KiauuuDWf4gVM8o5RdmyNB3uU1MCrH",
8
+ "tokenEscrow": "3NUyGP6mMytCudySfVtPfbvgaXtJ9ZtwuWqF1Z7vxA8D",
9
+ "address": "5vQSyfAMoXxi45pmqTDXEdv7cKtzVbyw87mpxDmZJg8M",
10
10
  "compatibleVersions": [
11
11
  "v2"
12
12
  ],
13
13
  "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
- "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf"
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
15
16
  }
@@ -4,12 +4,13 @@
4
4
  "network": "solana-sandbox-local",
5
5
  "oftType": "OFTAdapter",
6
6
  "oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
7
- "tokenMint": "9VSwZHk24MnpY6YCHN5Y7AtVwT3rd6SBNckWcr8MUjZW",
8
- "tokenEscrow": "FX2t3zWG7PNiR4YR6B9TfTWSCHWdTaXimnb1cM76NyxK",
9
- "address": "A8TVS7wLLKasXZfrghZPwC8HZKpxJ3vGA2d6s7WVF36f",
7
+ "tokenMint": "4q3yyDNV69ga4xjRn3SUK5T1fKPHDV6bXk6Ee2kvWnm9",
8
+ "tokenEscrow": "3xub9G4SMMSKm7NpELrPn5zRX6zsJa51uKetHzhHQYh8",
9
+ "address": "5kSUWPqNWzLigpVuKyZNy4EnKqFQrNAt148uAt1JWneD",
10
10
  "compatibleVersions": [
11
11
  "v2"
12
12
  ],
13
13
  "deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
14
- "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf"
14
+ "admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
15
+ "oftVersion": "302"
15
16
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "source": "@layerzerolabs/oft-v2-solana-sdk",
3
+ "name": "TokenOneOFT",
4
+ "network": "solana-testnet",
5
+ "oftType": "OFT",
6
+ "oftProgramId": "3ThC8DDzimnnrt4mvJSKFpWQA3UvnbzKM3mT6SHoNQKu",
7
+ "tokenMint": "A7yiTMSS7cP9Xs9AzCY6VZSYGVnheMkiExAUpDSXBbYa",
8
+ "tokenEscrow": "FCtApQSoHSiWsvXU1puSWcid3Yns1GKFaMnNJi7tgr3y",
9
+ "address": "3VMrugsBeTWU47bqScSxqm6xHty94qxjvswdFNED6F9c",
10
+ "compatibleVersions": [
11
+ "v2"
12
+ ],
13
+ "deployer": "8Av75SWJqZtUt3Jm1NPLedAiQyGg4ayp6pf2AoWUhJ3n",
14
+ "admin": "8Av75SWJqZtUt3Jm1NPLedAiQyGg4ayp6pf2AoWUhJ3n",
15
+ "oftVersion": "202"
16
+ }