@layerzerolabs/oft-v2-solana-sdk 3.0.135 → 3.0.137-sui.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.
- package/CHANGELOG.md +20 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/oft302.ts +9 -5
- package/deployments/solana-sandbox-local/302/TokenOneOFT.json +0 -16
- package/deployments/solana-sandbox-local/302/TokenThreeOFT.json +0 -16
- package/deployments/solana-sandbox-local/302/TokenTwoOFTAdapter.json +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-v2-solana-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.137-sui.0",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ethersproject/bytes": "^5.8.0",
|
|
34
|
-
"@layerzerolabs/lz-foundation": "^3.0.
|
|
35
|
-
"@layerzerolabs/lz-solana-sdk-v2": "^3.0.
|
|
36
|
-
"@layerzerolabs/lz-v2-utilities": "^3.0.
|
|
34
|
+
"@layerzerolabs/lz-foundation": "^3.0.137-sui.0",
|
|
35
|
+
"@layerzerolabs/lz-solana-sdk-v2": "^3.0.137-sui.0",
|
|
36
|
+
"@layerzerolabs/lz-v2-utilities": "^3.0.137-sui.0",
|
|
37
37
|
"@metaplex-foundation/beet": "^0.7.1",
|
|
38
38
|
"@metaplex-foundation/beet-solana": "^0.4.0",
|
|
39
39
|
"@metaplex-foundation/umi": "^0.9.2",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@kinobi-so/nodes-from-anchor": "^0.21.2",
|
|
51
51
|
"@kinobi-so/renderers": "^0.21.3",
|
|
52
52
|
"@kinobi-so/renderers-js-umi": "^0.21.6",
|
|
53
|
-
"@layerzerolabs/lz-definitions": "^3.0.
|
|
53
|
+
"@layerzerolabs/lz-definitions": "^3.0.137-sui.0",
|
|
54
54
|
"@layerzerolabs/oft-v2-solana": "^0.0.0",
|
|
55
|
-
"@layerzerolabs/tsup-config-next": "^3.0.
|
|
56
|
-
"@layerzerolabs/typescript-config-next": "^3.0.
|
|
55
|
+
"@layerzerolabs/tsup-config-next": "^3.0.137-sui.0",
|
|
56
|
+
"@layerzerolabs/typescript-config-next": "^3.0.137-sui.0",
|
|
57
57
|
"@metaplex-foundation/mpl-toolbox": "^0.9.2",
|
|
58
58
|
"@metaplex-foundation/solita": "^0.20.1",
|
|
59
59
|
"@metaplex-foundation/umi": "^0.9.2",
|
package/src/oft302.ts
CHANGED
|
@@ -271,9 +271,9 @@ export function setPeerConfig(
|
|
|
271
271
|
fields: [
|
|
272
272
|
param.rateLimit
|
|
273
273
|
? some({
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
refillPerSecond: some(param.rateLimit.refillPerSecond),
|
|
275
|
+
capacity: some(param.rateLimit.capacity),
|
|
276
|
+
})
|
|
277
277
|
: null,
|
|
278
278
|
],
|
|
279
279
|
}
|
|
@@ -586,7 +586,7 @@ export async function quote(
|
|
|
586
586
|
endpoint?: PublicKey
|
|
587
587
|
},
|
|
588
588
|
remainingAccounts?: AccountMeta[],
|
|
589
|
-
|
|
589
|
+
addressLookupTables?: PublicKey | PublicKey[]
|
|
590
590
|
): Promise<{ nativeFee: bigint; lzTokenFee: bigint }> {
|
|
591
591
|
const { dstEid, to, amountLd, minAmountLd, options, payInLzToken, composeMsg } = quoteParams
|
|
592
592
|
const { payer, tokenMint, tokenEscrow } = accounts
|
|
@@ -647,7 +647,11 @@ export async function quote(
|
|
|
647
647
|
EndpointProgram.types.getMessagingFeeSerializer(),
|
|
648
648
|
'confirmed',
|
|
649
649
|
undefined,
|
|
650
|
-
|
|
650
|
+
addressLookupTables !== undefined
|
|
651
|
+
? Array.isArray(addressLookupTables)
|
|
652
|
+
? addressLookupTables.map(toWeb3JsPublicKey)
|
|
653
|
+
: toWeb3JsPublicKey(addressLookupTables)
|
|
654
|
+
: undefined
|
|
651
655
|
)
|
|
652
656
|
}
|
|
653
657
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "@layerzerolabs/oft-v2-solana-sdk",
|
|
3
|
-
"name": "TokenOneOFT",
|
|
4
|
-
"network": "solana-sandbox-local",
|
|
5
|
-
"oftType": "OFT",
|
|
6
|
-
"oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
|
|
7
|
-
"tokenMint": "6N1vhTK2NSJ16hz6t7sG8uUL1toTpjT964M8Nc2Qipjh",
|
|
8
|
-
"tokenEscrow": "GnJDDQWwpZKXLrXmRRXuYvs1PENKWtroWj4A4V6CBiqo",
|
|
9
|
-
"address": "BtmanLww8cU2nX9nbDXL69UAy9hBMKGNXEb1ezhpcnZA",
|
|
10
|
-
"compatibleVersions": [
|
|
11
|
-
"v2"
|
|
12
|
-
],
|
|
13
|
-
"deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
14
|
-
"admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
15
|
-
"oftVersion": "302"
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "@layerzerolabs/oft-v2-solana-sdk",
|
|
3
|
-
"name": "TokenThreeOFT",
|
|
4
|
-
"network": "solana-sandbox-local",
|
|
5
|
-
"oftType": "OFT",
|
|
6
|
-
"oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
|
|
7
|
-
"tokenMint": "86iff7eXfuzVY1KiauuuDWf4gVM8o5RdmyNB3uU1MCrH",
|
|
8
|
-
"tokenEscrow": "3NUyGP6mMytCudySfVtPfbvgaXtJ9ZtwuWqF1Z7vxA8D",
|
|
9
|
-
"address": "5vQSyfAMoXxi45pmqTDXEdv7cKtzVbyw87mpxDmZJg8M",
|
|
10
|
-
"compatibleVersions": [
|
|
11
|
-
"v2"
|
|
12
|
-
],
|
|
13
|
-
"deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
14
|
-
"admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
15
|
-
"oftVersion": "302"
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "@layerzerolabs/oft-v2-solana-sdk",
|
|
3
|
-
"name": "TokenTwoOFTAdapter",
|
|
4
|
-
"network": "solana-sandbox-local",
|
|
5
|
-
"oftType": "OFTAdapter",
|
|
6
|
-
"oftProgramId": "9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT",
|
|
7
|
-
"tokenMint": "4q3yyDNV69ga4xjRn3SUK5T1fKPHDV6bXk6Ee2kvWnm9",
|
|
8
|
-
"tokenEscrow": "3xub9G4SMMSKm7NpELrPn5zRX6zsJa51uKetHzhHQYh8",
|
|
9
|
-
"address": "5kSUWPqNWzLigpVuKyZNy4EnKqFQrNAt148uAt1JWneD",
|
|
10
|
-
"compatibleVersions": [
|
|
11
|
-
"v2"
|
|
12
|
-
],
|
|
13
|
-
"deployer": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
14
|
-
"admin": "2dh2G3zSEjQ14suomJvmrxV3QCoqcD6xzNjzbPuidxWf",
|
|
15
|
-
"oftVersion": "302"
|
|
16
|
-
}
|