@layerzerolabs/lz-solana-sdk-v2 3.0.77 → 3.0.79
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 +26 -0
- package/dist/umi.cjs +59 -1
- package/dist/umi.cjs.map +1 -1
- package/dist/umi.d.mts +16 -2
- package/dist/umi.d.ts +16 -2
- package/dist/umi.mjs +59 -3
- package/dist/umi.mjs.map +1 -1
- package/package.json +9 -9
- package/src/index.ts +1 -0
- package/src/next_nonce.ts +3 -2
- package/src/pda.ts +1 -1
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.79",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -39,12 +39,12 @@
|
|
|
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.79",
|
|
43
|
+
"@layerzerolabs/lz-definitions": "^3.0.79",
|
|
44
|
+
"@layerzerolabs/lz-foundation": "^3.0.79",
|
|
45
|
+
"@layerzerolabs/lz-serdes": "^3.0.79",
|
|
46
|
+
"@layerzerolabs/lz-utilities": "^3.0.79",
|
|
47
|
+
"@layerzerolabs/lz-v2-utilities": "^3.0.79",
|
|
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.79",
|
|
70
|
+
"@layerzerolabs/typescript-config-next": "^3.0.79",
|
|
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",
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './config'
|
|
|
13
13
|
export * from './receive'
|
|
14
14
|
export * from './types'
|
|
15
15
|
export * from './deployment'
|
|
16
|
+
export * from './next_nonce'
|
|
16
17
|
|
|
17
18
|
export * as BlockedMessageLibProgram from './generated/kinobi/blocked_messagelib'
|
|
18
19
|
export * as DvnProgram from './generated/kinobi/dvn'
|
package/src/next_nonce.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Commitment, PublicKey, RpcInterface } from '@metaplex-foundation/umi'
|
|
1
|
+
import { Commitment, PublicKey, RpcInterface, publicKeyBytes } from '@metaplex-foundation/umi'
|
|
2
2
|
import {
|
|
3
3
|
Endian,
|
|
4
4
|
Serializer,
|
|
@@ -76,8 +76,9 @@ export async function nextNonce(
|
|
|
76
76
|
|
|
77
77
|
const [nonceAccount] = EDDSA.findPda(fromWeb3JsPublicKey(receiverProgram), [
|
|
78
78
|
Buffer.from('Nonce', 'utf8'),
|
|
79
|
-
params.
|
|
79
|
+
publicKeyBytes(params.receiver),
|
|
80
80
|
u32({ endian: Endian.Big }).serialize(srcEid),
|
|
81
|
+
params.sender,
|
|
81
82
|
])
|
|
82
83
|
const accounts: web3.AccountMeta[] = [
|
|
83
84
|
{
|
package/src/pda.ts
CHANGED
|
@@ -254,7 +254,7 @@ export class UlnPDA extends MessageLibPDA {
|
|
|
254
254
|
* derive address by base oapp program
|
|
255
255
|
*/
|
|
256
256
|
export class OmniAppPDA {
|
|
257
|
-
static
|
|
257
|
+
static PEER_SEED = 'Peer'
|
|
258
258
|
static LZ_RECEIVE_TYPES_SEED = 'LzReceiveTypes'
|
|
259
259
|
static LZ_COMPOSE_TYPES_SEED = 'LzComposeTypes'
|
|
260
260
|
|