@layerzerolabs/lz-solana-sdk-v2 2.3.15 → 2.3.17

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 (34) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/deployments/solana-sandbox-local/blocked_messagelib.json +9 -0
  3. package/deployments/solana-sandbox-local/dvn-gcda.json +9 -0
  4. package/deployments/solana-sandbox-local/dvn.json +1 -1
  5. package/deployments/solana-sandbox-local/executor.json +1 -1
  6. package/deployments/solana-sandbox-local/oft.json +9 -0
  7. package/deployments/solana-sandbox-local/omnicounter.json +9 -0
  8. package/deployments/solana-sandbox-local/pricefeed.json +1 -1
  9. package/deployments/solana-testnet/blocked_messagelib.json +9 -0
  10. package/deployments/solana-testnet/dvn.json +9 -0
  11. package/deployments/solana-testnet/endpoint.json +9 -0
  12. package/deployments/solana-testnet/executor.json +9 -0
  13. package/deployments/solana-testnet/pricefeed.json +9 -0
  14. package/deployments/solana-testnet/uln.json +9 -0
  15. package/dist/index.cjs +7044 -3944
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.mts +3627 -1684
  18. package/dist/index.d.ts +3627 -1684
  19. package/dist/index.mjs +7130 -4022
  20. package/dist/index.mjs.map +1 -1
  21. package/package.json +24 -16
  22. package/deployments/default-keypair/blocked_messagelib-keypair.json +0 -1
  23. package/deployments/default-keypair/dvn-keypair.json +0 -1
  24. package/deployments/default-keypair/endpoint-keypair.json +0 -6
  25. package/deployments/default-keypair/executor-keypair.json +0 -1
  26. package/deployments/default-keypair/oft-keypair.json +0 -1
  27. package/deployments/default-keypair/omnicounter-keypair.json +0 -6
  28. package/deployments/default-keypair/pricefeed-keypair.json +0 -1
  29. package/deployments/default-keypair/simple_messagelib-keypair.json +0 -6
  30. package/deployments/default-keypair/uln-keypair.json +0 -1
  31. package/deployments/solana-testnet/blocked_messagelib-keypair.json +0 -1
  32. package/deployments/solana-testnet/endpoint-keypair.json +0 -1
  33. package/deployments/solana-testnet/omnicounter-keypair.json +0 -1
  34. package/deployments/solana-testnet/simple_messagelib-keypair.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/lz-solana-sdk-v2",
3
- "version": "2.3.15",
3
+ "version": "2.3.17",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -8,7 +8,8 @@
8
8
  "import": "./dist/index.mjs",
9
9
  "require": "./dist/index.cjs"
10
10
  },
11
- "./package.json": "./package.json"
11
+ "./package.json": "./package.json",
12
+ "./deployments/*": "./deployments/*"
12
13
  },
13
14
  "main": "./dist/index.cjs",
14
15
  "types": "./dist/index.d.ts",
@@ -18,24 +19,30 @@
18
19
  ],
19
20
  "scripts": {
20
21
  "api-gen": "$npm_execpath gen-idl && $npm_execpath ts-node scripts/generate.ts",
21
- "api-gen:skip-idl": "cp ../target/idl/*.json ./idl && $npm_execpath ts-node scripts/generate.ts",
22
- "backupKeypair": "cp ../target/deploy/*.json ../keypair",
23
- "build": "$npm_execpath api-gen && $npm_execpath build-ts",
22
+ "build": "$npm_execpath clean-prebuild && $npm_execpath sync-target && $npm_execpath api-gen && $npm_execpath build-ts",
24
23
  "build-ts": "$npm_execpath tsc --noEmit && $npm_execpath tsup",
25
- "clean": "rimraf .turbo dist",
26
- "gen-idl": "anchor build && cp ../target/idl/*.json ./idl",
27
- "test": "cargo-test-sbf && anchor test",
24
+ "clean": "$npm_execpath clean-prebuild",
25
+ "clean-prebuild": "rimraf .turbo target dist",
26
+ "gen-idl": "$npm_execpath sync-target-idl && rsync -avc --delete target/idl/ ./idl/",
27
+ "sync-target": "$npm_execpath sync-target-deploy && $npm_execpath sync-target-idl",
28
+ "sync-target-deploy": "mkdir -p target/deploy && rsync -avc --delete ../solana/target/deploy/ target/deploy/",
29
+ "sync-target-idl": "mkdir -p target/idl && rsync -avc --delete ../solana/target/idl/ target/idl/",
30
+ "test": "anchor test --skip-build",
28
31
  "test-endpoint": "TEST_SCOPES=endpoint anchor test --skip-build",
29
- "test-skip-build": "anchor test --skip-build",
30
- "test-standard": "anchor test --arch sbf",
31
32
  "test-uln": "TEST_SCOPES=uln anchor test --skip-build"
32
33
  },
33
34
  "dependencies": {
34
35
  "@coral-xyz/anchor": "^0.29.0",
35
- "@layerzerolabs/lz-corekit-solana": "^2.3.15",
36
- "@layerzerolabs/lz-definitions": "^2.3.15",
37
- "@layerzerolabs/lz-utilities": "^2.3.15",
38
- "@layerzerolabs/lz-v2-utilities": "^2.3.15",
36
+ "@ethersproject/abi": "^5.7.0",
37
+ "@ethersproject/address": "^5.7.0",
38
+ "@ethersproject/bignumber": "^5.7.0",
39
+ "@ethersproject/bytes": "^5.7.0",
40
+ "@ethersproject/keccak256": "^5.7.0",
41
+ "@ethersproject/solidity": "^5.7.0",
42
+ "@layerzerolabs/lz-corekit-solana": "^2.3.17",
43
+ "@layerzerolabs/lz-definitions": "^2.3.17",
44
+ "@layerzerolabs/lz-utilities": "^2.3.17",
45
+ "@layerzerolabs/lz-v2-utilities": "^2.3.17",
39
46
  "@metaplex-foundation/beet": "^0.7.1",
40
47
  "@metaplex-foundation/beet-solana": "^0.4.0",
41
48
  "@metaplex-foundation/solita": "^0.20.1",
@@ -48,8 +55,9 @@
48
55
  "tiny-invariant": "^1.3.1"
49
56
  },
50
57
  "devDependencies": {
51
- "@layerzerolabs/tsup-config-next": "^2.3.15",
52
- "@layerzerolabs/typescript-config-next": "^2.3.15",
58
+ "@layerzerolabs/layerzero-v2-solana": "^0.0.0",
59
+ "@layerzerolabs/tsup-config-next": "^2.3.17",
60
+ "@layerzerolabs/typescript-config-next": "^2.3.17",
53
61
  "@types/bn.js": "^5.1.5",
54
62
  "@types/chai": "^4.3.11",
55
63
  "@types/chai-as-promised": "^7.1.0",
@@ -1 +0,0 @@
1
- [233,101,252,72,29,35,98,10,62,100,149,246,39,76,27,129,139,22,249,76,12,227,120,231,89,207,67,87,136,165,63,232,22,195,34,235,187,254,199,233,72,38,105,213,134,226,51,252,206,49,85,5,130,22,204,22,236,182,249,5,229,19,128,112]
@@ -1 +0,0 @@
1
- [214,38,153,130,216,225,95,217,133,23,253,242,51,42,64,25,245,149,63,212,93,28,178,75,252,225,247,231,29,151,177,55,250,218,236,205,68,120,70,50,20,217,169,69,55,191,166,135,161,233,23,110,18,164,136,136,73,29,149,2,247,218,206,33]
@@ -1,6 +0,0 @@
1
- [
2
- 172, 228, 110, 226, 134, 68, 50, 45, 131, 107, 122, 157, 152, 27, 156, 150,
3
- 30, 174, 150, 201, 177, 88, 76, 48, 168, 117, 186, 77, 132, 177, 234, 219, 90,
4
- 173, 118, 218, 81, 75, 110, 29, 207, 17, 3, 126, 144, 77, 172, 61, 55, 95, 82,
5
- 92, 159, 186, 252, 177, 149, 7, 183, 137, 7, 216, 193, 139
6
- ]
@@ -1 +0,0 @@
1
- [59,243,54,129,94,65,111,176,195,71,54,81,232,210,117,38,86,184,158,50,86,88,247,95,194,96,140,61,141,16,64,53,83,184,33,66,242,151,50,165,111,182,200,143,164,2,253,24,161,221,202,19,116,29,107,167,61,63,207,154,232,16,33,193]
@@ -1 +0,0 @@
1
- [13,153,214,42,32,73,18,155,55,156,208,18,55,106,48,183,155,141,218,45,175,84,171,147,252,26,224,163,38,144,149,143,243,250,101,163,31,181,119,81,182,195,208,167,231,14,8,12,111,131,238,171,238,230,52,26,86,207,178,201,77,123,217,65]
@@ -1,6 +0,0 @@
1
- [
2
- 246, 20, 193, 37, 2, 18, 51, 173, 139, 67, 57, 196, 241, 111, 114, 108, 156,
3
- 79, 4, 186, 196, 118, 98, 42, 222, 19, 132, 206, 39, 135, 107, 156, 241, 145,
4
- 62, 208, 24, 99, 20, 137, 213, 62, 92, 203, 224, 187, 113, 238, 149, 111, 78,
5
- 49, 230, 187, 96, 36, 171, 187, 210, 204, 152, 253, 217, 62
6
- ]
@@ -1 +0,0 @@
1
- [169,209,102,200,228,151,49,104,21,41,179,135,107,224,68,84,78,159,92,40,2,1,160,77,80,102,197,127,41,251,123,55,112,163,163,43,240,81,61,169,43,5,190,215,222,217,123,115,146,7,180,84,236,117,17,247,8,3,239,251,215,202,126,214]
@@ -1,6 +0,0 @@
1
- [
2
- 219, 233, 108, 235, 188, 61, 107, 70, 98, 164, 171, 252, 43, 166, 46, 77, 120,
3
- 25, 243, 34, 128, 50, 67, 155, 99, 224, 40, 6, 36, 74, 228, 45, 78, 91, 142,
4
- 238, 155, 19, 161, 51, 107, 105, 162, 19, 153, 26, 96, 43, 30, 70, 40, 246,
5
- 124, 35, 200, 63, 112, 145, 127, 80, 124, 169, 0, 52
6
- ]
@@ -1 +0,0 @@
1
- [105,44,152,145,210,227,27,105,188,164,48,193,222,192,234,42,194,44,188,10,255,42,199,6,64,105,178,25,186,41,153,227,97,158,66,154,29,230,120,84,189,69,94,230,100,63,86,141,98,54,205,232,233,68,42,58,191,2,159,1,111,170,230,48]
@@ -1 +0,0 @@
1
- [255,14,134,232,248,59,243,246,255,34,198,0,52,142,134,83,2,8,118,210,199,142,79,167,105,49,216,6,234,118,36,234,250,14,220,253,157,161,131,229,196,6,197,10,230,100,117,175,111,229,127,166,155,94,247,47,19,100,103,1,173,79,12,118]
@@ -1 +0,0 @@
1
- [69,128,99,55,173,118,209,85,241,45,162,169,147,174,73,139,70,171,116,1,40,213,82,119,14,220,151,101,196,199,20,214,197,219,144,50,224,210,184,150,187,167,2,157,187,149,255,51,93,114,237,28,15,111,99,191,37,183,180,247,74,186,253,110]
@@ -1 +0,0 @@
1
- [212,215,253,74,34,207,123,206,124,29,157,63,83,245,142,79,95,220,124,216,89,154,115,212,115,46,213,33,220,71,105,185,217,180,174,190,169,122,117,197,117,235,75,65,42,11,215,107,36,161,51,159,116,252,2,199,174,200,24,84,17,206,82,25]
@@ -1 +0,0 @@
1
- [177,207,194,230,216,87,239,212,207,167,227,203,33,139,247,190,148,94,157,139,70,83,94,179,75,170,178,149,20,133,137,172,90,175,109,167,148,195,10,144,247,235,238,115,78,13,8,114,104,133,181,187,125,188,172,218,234,97,175,115,28,46,216,97]