@layerzerolabs/protocol-stellar-v2 0.2.44 → 0.2.46

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 (30) hide show
  1. package/.turbo/turbo-build.log +331 -66
  2. package/.turbo/turbo-lint.log +88 -153
  3. package/.turbo/turbo-test.log +1814 -1764
  4. package/LICENSE +42 -0
  5. package/contracts/common-macros/src/lib.rs +17 -1
  6. package/contracts/macro-integration-tests/tests/runtime/oapp/mod.rs +3 -3
  7. package/contracts/oapps/counter/src/tests/mod.rs +2 -2
  8. package/contracts/oapps/oapp/src/oapp_core.rs +5 -5
  9. package/contracts/oapps/oapp/src/oapp_options_type3.rs +3 -3
  10. package/contracts/oapps/oapp/src/tests/mod.rs +3 -3
  11. package/contracts/oapps/oft/integration-tests/setup.rs +2 -2
  12. package/contracts/oapps/oft/integration-tests/utils.rs +10 -10
  13. package/contracts/oapps/oft/src/extensions/oft_fee.rs +7 -7
  14. package/contracts/oapps/oft/src/extensions/rate_limiter.rs +4 -4
  15. package/contracts/oapps/oft/src/tests/extensions/oft_fee.rs +3 -3
  16. package/contracts/oapps/oft/src/tests/extensions/rate_limiter.rs +3 -3
  17. package/contracts/oapps/oft-core/integration-tests/setup.rs +4 -4
  18. package/contracts/oapps/oft-core/src/oft_core.rs +4 -4
  19. package/contracts/oapps/oft-core/src/tests/test_msg_inspector.rs +3 -3
  20. package/contracts/oapps/oft-core/src/tests/test_utils.rs +4 -4
  21. package/package.json +7 -5
  22. package/sdk/.turbo/turbo-test.log +282 -280
  23. package/sdk/dist/generated/counter.d.ts +6 -6
  24. package/sdk/dist/generated/counter.js +6 -6
  25. package/sdk/dist/generated/oft.d.ts +12 -12
  26. package/sdk/dist/generated/oft.js +11 -11
  27. package/sdk/package.json +3 -2
  28. package/sdk/test/counter-sml.test.ts +4 -4
  29. package/sdk/test/counter-uln.test.ts +4 -4
  30. package/sdk/test/oft-sml.test.ts +5 -5
package/sdk/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/lz-v2-stellar-sdk",
3
- "version": "0.2.44",
3
+ "version": "0.2.46",
4
4
  "private": false,
5
5
  "description": "TypeScript SDK for endpoint-v2 Stellar contract",
6
6
  "repository": {
@@ -39,7 +39,8 @@
39
39
  },
40
40
  "externalRepoConfig": {
41
41
  "targets": [
42
- "audit-external"
42
+ "audit-external",
43
+ "everdawn-asset0"
43
44
  ]
44
45
  },
45
46
  "implicitDependencies": {
@@ -188,22 +188,22 @@ describe('Counter Cross-Chain Testing (SML)', async () => {
188
188
  console.log('✅ Counter B receive library set to SML for EID_A');
189
189
  });
190
190
 
191
- it('Grant OAPP_ADMIN_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
191
+ it('Grant OAPP_MANAGER_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
192
192
  const assembledTxA = await counterClientA.grant_role({
193
193
  account: DEFAULT_DEPLOYER.publicKey(),
194
- role: 'OAPP_ADMIN_ROLE',
194
+ role: 'OAPP_MANAGER_ROLE',
195
195
  caller: DEFAULT_DEPLOYER.publicKey(),
196
196
  });
197
197
  await assembledTxA.signAndSend();
198
198
 
199
199
  const assembledTxB = await counterClientB.grant_role({
200
200
  account: DEFAULT_DEPLOYER.publicKey(),
201
- role: 'OAPP_ADMIN_ROLE',
201
+ role: 'OAPP_MANAGER_ROLE',
202
202
  caller: DEFAULT_DEPLOYER.publicKey(),
203
203
  });
204
204
  await assembledTxB.signAndSend();
205
205
 
206
- console.log('✅ OAPP_ADMIN_ROLE granted to DEFAULT_DEPLOYER on both Counters');
206
+ console.log('✅ OAPP_MANAGER_ROLE granted to DEFAULT_DEPLOYER on both Counters');
207
207
  });
208
208
 
209
209
  it('Set Counter A Peer to Counter B', async () => {
@@ -121,22 +121,22 @@ describe('Counter Cross-Chain Testing (ULN302)', async () => {
121
121
  console.log('✅ Counter B deployed on Chain B:', counterBAddress);
122
122
  });
123
123
 
124
- it('Grant OAPP_ADMIN_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
124
+ it('Grant OAPP_MANAGER_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
125
125
  const assembledTxA = await counterClientA.grant_role({
126
126
  account: DEFAULT_DEPLOYER.publicKey(),
127
- role: 'OAPP_ADMIN_ROLE',
127
+ role: 'OAPP_MANAGER_ROLE',
128
128
  caller: DEFAULT_DEPLOYER.publicKey(),
129
129
  });
130
130
  await assembledTxA.signAndSend();
131
131
 
132
132
  const assembledTxB = await counterClientB.grant_role({
133
133
  account: DEFAULT_DEPLOYER.publicKey(),
134
- role: 'OAPP_ADMIN_ROLE',
134
+ role: 'OAPP_MANAGER_ROLE',
135
135
  caller: DEFAULT_DEPLOYER.publicKey(),
136
136
  });
137
137
  await assembledTxB.signAndSend();
138
138
 
139
- console.log('✅ OAPP_ADMIN_ROLE granted to DEFAULT_DEPLOYER on both Counters');
139
+ console.log('✅ OAPP_MANAGER_ROLE granted to DEFAULT_DEPLOYER on both Counters');
140
140
  });
141
141
 
142
142
  it('Set Counter A Peer to Counter B', async () => {
@@ -346,24 +346,24 @@ describe('OFT Cross-Chain E2E Testing with SAC (SML)', async () => {
346
346
  console.log('✅ Mint/Burn OFT (Chain B) receive library set to SML for EID_A');
347
347
  });
348
348
 
349
- it('Grant OAPP_ADMIN_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
350
- // OFT's `set_peer` is protected by `#[only_role(operator, OAPP_ADMIN_ROLE)]`
349
+ it('Grant OAPP_MANAGER_ROLE to DEFAULT_DEPLOYER (required for set_peer)', async () => {
350
+ // OFT's `set_peer` is protected by `#[only_role(operator, OAPP_MANAGER_ROLE)]`
351
351
  // so we must grant that role to the operator before wiring peers.
352
352
  const assembledTxA = await lockUnlockOftClient.grant_role({
353
353
  account: DEFAULT_DEPLOYER.publicKey(),
354
- role: 'OAPP_ADMIN_ROLE',
354
+ role: 'OAPP_MANAGER_ROLE',
355
355
  caller: DEFAULT_DEPLOYER.publicKey(),
356
356
  });
357
357
  await assembledTxA.signAndSend();
358
358
 
359
359
  const assembledTxB = await mintBurnOftClient.grant_role({
360
360
  account: DEFAULT_DEPLOYER.publicKey(),
361
- role: 'OAPP_ADMIN_ROLE',
361
+ role: 'OAPP_MANAGER_ROLE',
362
362
  caller: DEFAULT_DEPLOYER.publicKey(),
363
363
  });
364
364
  await assembledTxB.signAndSend();
365
365
 
366
- console.log('✅ OAPP_ADMIN_ROLE granted to DEFAULT_DEPLOYER on both OFTs');
366
+ console.log('✅ OAPP_MANAGER_ROLE granted to DEFAULT_DEPLOYER on both OFTs');
367
367
  });
368
368
 
369
369
  it('Set Lock/Unlock OFT (Chain A) Peer to Mint/Burn OFT (Chain B)', async () => {