@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.
- package/CHANGELOG.md +10 -0
- package/deployments/solana-sandbox-local/{TokenOneOFT.json → 302/TokenOneOFT.json} +5 -4
- package/deployments/solana-sandbox-local/{TokenThreeOFT.json → 302/TokenThreeOFT.json} +5 -4
- package/deployments/solana-sandbox-local/{TokenTwoOFTAdapter.json → 302/TokenTwoOFTAdapter.json} +5 -4
- package/deployments/solana-testnet/202/TokenOneOFT.json +16 -0
- package/dist/index.cjs +2101 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1349 -269
- package/dist/index.d.ts +1349 -269
- package/dist/index.mjs +2099 -260
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -9
- package/src/consts.ts +5 -0
- package/src/generated/{accounts → oft202/accounts}/lzReceiveTypesAccounts.ts +1 -2
- package/src/generated/{accounts → oft202/accounts}/oFTStore.ts +1 -2
- package/src/generated/oft202/accounts/peerConfig.ts +178 -0
- package/src/generated/oft202/instructions/index.ts +18 -0
- package/src/generated/{instructions → oft202/instructions}/initOft.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/lzReceive.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/lzReceiveTypes.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/quoteOft.ts +1 -2
- package/src/generated/oft202/instructions/quoteSend.ts +149 -0
- package/src/generated/oft202/instructions/send.ts +193 -0
- package/src/generated/{instructions → oft202/instructions}/setOftConfig.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/setPause.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/setPeerConfig.ts +1 -2
- package/src/generated/{instructions → oft202/instructions}/withdrawFee.ts +1 -2
- package/src/generated/{programs → oft202/programs}/oft.ts +2 -2
- package/src/generated/oft202/types/composeParams.ts +35 -0
- package/src/generated/oft202/types/index.ts +22 -0
- package/src/generated/oft202/types/peerConfigParam.ts +143 -0
- package/src/generated/oft302/accounts/index.ts +11 -0
- package/src/generated/oft302/accounts/lzReceiveTypesAccounts.ts +167 -0
- package/src/generated/oft302/accounts/oFTStore.ts +198 -0
- package/src/generated/{accounts → oft302/accounts}/peerConfig.ts +1 -2
- package/src/generated/oft302/errors/index.ts +9 -0
- package/src/generated/oft302/errors/oft.ts +159 -0
- package/src/generated/oft302/index.ts +14 -0
- package/src/generated/oft302/instructions/initOft.ts +179 -0
- package/src/generated/oft302/instructions/lzReceive.ts +203 -0
- package/src/generated/oft302/instructions/lzReceiveTypes.ts +124 -0
- package/src/generated/{instructions → oft302/instructions}/oftVersion.ts +1 -2
- package/src/generated/oft302/instructions/quoteOft.ts +144 -0
- package/src/generated/{instructions → oft302/instructions}/quoteSend.ts +1 -2
- package/src/generated/{instructions → oft302/instructions}/send.ts +1 -2
- package/src/generated/oft302/instructions/setOftConfig.ts +124 -0
- package/src/generated/oft302/instructions/setPause.ts +119 -0
- package/src/generated/oft302/instructions/setPeerConfig.ts +148 -0
- package/src/generated/oft302/instructions/withdrawFee.ts +151 -0
- package/src/generated/oft302/programs/index.ts +9 -0
- package/src/generated/oft302/programs/oft.ts +47 -0
- package/src/generated/oft302/shared/index.ts +117 -0
- package/src/generated/oft302/types/enforcedOptions.ts +31 -0
- package/src/generated/oft302/types/lzAccount.ts +35 -0
- package/src/generated/oft302/types/lzReceiveParams.ts +50 -0
- package/src/generated/oft302/types/messagingFee.ts +29 -0
- package/src/generated/oft302/types/oFTFeeDetail.ts +34 -0
- package/src/generated/oft302/types/oFTLimits.ts +26 -0
- package/src/generated/oft302/types/oFTReceipt.ts +29 -0
- package/src/generated/oft302/types/oFTType.ts +23 -0
- package/src/generated/oft302/types/quoteOFTResult.ts +50 -0
- package/src/generated/oft302/types/rateLimitParams.ts +38 -0
- package/src/generated/oft302/types/rateLimiter.ts +38 -0
- package/src/generated/oft302/types/setOFTConfigParams.ts +124 -0
- package/src/index.ts +5 -46
- package/src/oft202.ts +618 -0
- package/src/{oft.ts → oft302.ts} +54 -55
- package/src/pda.ts +34 -0
- package/src/types.ts +40 -0
- package/deployments/solana-sandbox-local/TokenFourOFTAdapter.json +0 -15
- /package/src/generated/{accounts → oft202/accounts}/index.ts +0 -0
- /package/src/generated/{errors → oft202/errors}/index.ts +0 -0
- /package/src/generated/{errors → oft202/errors}/oft.ts +0 -0
- /package/src/generated/{index.ts → oft202/index.ts} +0 -0
- /package/src/generated/{programs → oft202/programs}/index.ts +0 -0
- /package/src/generated/{shared → oft202/shared}/index.ts +0 -0
- /package/src/generated/{types → oft202/types}/enforcedOptions.ts +0 -0
- /package/src/generated/{types → oft202/types}/lzAccount.ts +0 -0
- /package/src/generated/{types → oft202/types}/lzReceiveParams.ts +0 -0
- /package/src/generated/{types → oft202/types}/messagingFee.ts +0 -0
- /package/src/generated/{types → oft202/types}/oFTFeeDetail.ts +0 -0
- /package/src/generated/{types → oft202/types}/oFTLimits.ts +0 -0
- /package/src/generated/{types → oft202/types}/oFTReceipt.ts +0 -0
- /package/src/generated/{types → oft202/types}/oFTType.ts +0 -0
- /package/src/generated/{types → oft202/types}/quoteOFTResult.ts +0 -0
- /package/src/generated/{types → oft202/types}/rateLimitParams.ts +0 -0
- /package/src/generated/{types → oft202/types}/rateLimiter.ts +0 -0
- /package/src/generated/{types → oft202/types}/setOFTConfigParams.ts +0 -0
- /package/src/generated/{instructions → oft302/instructions}/index.ts +0 -0
- /package/src/generated/{types → oft302/types}/index.ts +0 -0
- /package/src/generated/{types → oft302/types}/peerConfigParam.ts +0 -0
- /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": "
|
|
8
|
-
"tokenEscrow": "
|
|
9
|
-
"address": "
|
|
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": "
|
|
8
|
-
"tokenEscrow": "
|
|
9
|
-
"address": "
|
|
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
|
}
|
package/deployments/solana-sandbox-local/{TokenTwoOFTAdapter.json → 302/TokenTwoOFTAdapter.json}
RENAMED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
"network": "solana-sandbox-local",
|
|
5
5
|
"oftType": "OFTAdapter",
|
|
6
6
|
"oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
|
|
7
|
-
"tokenMint": "
|
|
8
|
-
"tokenEscrow": "
|
|
9
|
-
"address": "
|
|
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
|
+
}
|