@layerzerolabs/lz-solana-sdk-v2 3.0.73 → 3.0.75-test.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 +13 -0
- package/README.md +9 -5
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @layerzerolabs/lz-solana-sdk-v2
|
|
2
2
|
|
|
3
|
+
## 3.0.74
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cca7389: refactor ton unit tests
|
|
8
|
+
- Updated dependencies [cca7389]
|
|
9
|
+
- @layerzerolabs/lz-corekit-solana@3.0.74
|
|
10
|
+
- @layerzerolabs/lz-definitions@3.0.74
|
|
11
|
+
- @layerzerolabs/lz-foundation@3.0.74
|
|
12
|
+
- @layerzerolabs/lz-serdes@3.0.74
|
|
13
|
+
- @layerzerolabs/lz-utilities@3.0.74
|
|
14
|
+
- @layerzerolabs/lz-v2-utilities@3.0.74
|
|
15
|
+
|
|
3
16
|
## 3.0.73
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -90,9 +90,11 @@ const connection = new Connection("https://api.mainnet-beta.solana.com");
|
|
|
90
90
|
const program = new PublicKey("programPublicKey");
|
|
91
91
|
const signature = "transactionSignature";
|
|
92
92
|
|
|
93
|
-
extractSentPacketEventByTxHash(connection, program, signature).then(
|
|
93
|
+
extractSentPacketEventByTxHash(connection, program, signature).then(
|
|
94
|
+
(events) => {
|
|
94
95
|
console.log(`Sent Packet Events: ${events}`);
|
|
95
|
-
}
|
|
96
|
+
},
|
|
97
|
+
);
|
|
96
98
|
```
|
|
97
99
|
|
|
98
100
|
### Price Feed Management
|
|
@@ -110,9 +112,11 @@ const payer = new PublicKey("payerPublicKey");
|
|
|
110
112
|
const admin = new PublicKey("adminPublicKey");
|
|
111
113
|
const updaters = [new PublicKey("updaterPublicKey")];
|
|
112
114
|
|
|
113
|
-
priceFeedProgram
|
|
115
|
+
priceFeedProgram
|
|
116
|
+
.initPriceFeed(connection, payer, admin, updaters)
|
|
117
|
+
.then((instruction) => {
|
|
114
118
|
console.log(`Transaction Instruction: ${instruction}`);
|
|
115
|
-
});
|
|
119
|
+
});
|
|
116
120
|
```
|
|
117
121
|
|
|
118
122
|
### Utility Functions
|
|
@@ -129,4 +133,4 @@ const oappId = new PublicKey("oappId");
|
|
|
129
133
|
|
|
130
134
|
const [pda, bump] = deriveLzReceiveTypesAccountsPDA(program, oappId);
|
|
131
135
|
console.log(`PDA: ${pda.toBase58()}, Bump: ${bump}`);
|
|
132
|
-
```
|
|
136
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/lz-solana-sdk-v2",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.75-test.0",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"clean-prebuild": "rimraf .turbo target dist",
|
|
32
32
|
"gen-idl": "$npm_execpath sync-target-idl && rsync -avc --delete target/idl/ ./idl/",
|
|
33
33
|
"sync-target": "$npm_execpath sync-target-deploy && $npm_execpath sync-target-idl",
|
|
34
|
-
"sync-target-deploy": "mkdir -p target/deploy && rsync -avc --delete ../
|
|
35
|
-
"sync-target-idl": "mkdir -p target/idl && rsync -avc --delete ../
|
|
34
|
+
"sync-target-deploy": "mkdir -p target/deploy && rsync -avc --delete ../contracts/target/deploy/ target/deploy/",
|
|
35
|
+
"sync-target-idl": "mkdir -p target/idl && rsync -avc --delete ../contracts/target/idl/ target/idl/",
|
|
36
36
|
"test": "anchor test --skip-build",
|
|
37
37
|
"test-endpoint": "TEST_SCOPES=endpoint anchor test --skip-build",
|
|
38
38
|
"test-extend": "yarn run ts-mocha -b -p ./tsconfig.json -t 10000000 tests/extend_account.test.ts",
|
|
39
39
|
"test-uln": "TEST_SCOPES=uln anchor test --skip-build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@layerzerolabs/lz-corekit-solana": "^3.0.
|
|
43
|
-
"@layerzerolabs/lz-definitions": "^3.0.
|
|
44
|
-
"@layerzerolabs/lz-foundation": "^3.0.
|
|
45
|
-
"@layerzerolabs/lz-serdes": "^3.0.
|
|
46
|
-
"@layerzerolabs/lz-utilities": "^3.0.
|
|
47
|
-
"@layerzerolabs/lz-v2-utilities": "^3.0.
|
|
42
|
+
"@layerzerolabs/lz-corekit-solana": "^3.0.75-test.0",
|
|
43
|
+
"@layerzerolabs/lz-definitions": "^3.0.75-test.0",
|
|
44
|
+
"@layerzerolabs/lz-foundation": "^3.0.75-test.0",
|
|
45
|
+
"@layerzerolabs/lz-serdes": "^3.0.75-test.0",
|
|
46
|
+
"@layerzerolabs/lz-utilities": "^3.0.75-test.0",
|
|
47
|
+
"@layerzerolabs/lz-v2-utilities": "^3.0.75-test.0",
|
|
48
48
|
"@metaplex-foundation/beet": "^0.7.1",
|
|
49
49
|
"@metaplex-foundation/beet-solana": "^0.4.0",
|
|
50
50
|
"@metaplex-foundation/umi": "^0.9.2",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@kinobi-so/renderers": "^0.21.3",
|
|
67
67
|
"@kinobi-so/renderers-js-umi": "^0.21.6",
|
|
68
68
|
"@layerzerolabs/layerzero-v2-solana": "^0.0.0",
|
|
69
|
-
"@layerzerolabs/tsup-config-next": "^3.0.
|
|
70
|
-
"@layerzerolabs/typescript-config-next": "^3.0.
|
|
69
|
+
"@layerzerolabs/tsup-config-next": "^3.0.75-test.0",
|
|
70
|
+
"@layerzerolabs/typescript-config-next": "^3.0.75-test.0",
|
|
71
71
|
"@metaplex-foundation/umi-bundle-defaults": "^0.9.2",
|
|
72
72
|
"@types/bn.js": "^5.1.5",
|
|
73
73
|
"@types/chai": "^4.3.11",
|