@layerzerolabs/protocol-stellar-v2 0.2.45 → 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.
- package/.turbo/turbo-build.log +337 -75
- package/.turbo/turbo-lint.log +96 -132
- package/.turbo/turbo-test.log +1755 -1961
- package/contracts/common-macros/src/lib.rs +17 -1
- package/contracts/macro-integration-tests/tests/runtime/oapp/mod.rs +3 -3
- package/contracts/oapps/counter/src/tests/mod.rs +2 -2
- package/contracts/oapps/oapp/src/oapp_core.rs +5 -5
- package/contracts/oapps/oapp/src/oapp_options_type3.rs +3 -3
- package/contracts/oapps/oapp/src/tests/mod.rs +3 -3
- package/contracts/oapps/oft/integration-tests/setup.rs +2 -2
- package/contracts/oapps/oft/integration-tests/utils.rs +10 -10
- package/contracts/oapps/oft/src/extensions/oft_fee.rs +7 -7
- package/contracts/oapps/oft/src/extensions/rate_limiter.rs +4 -4
- package/contracts/oapps/oft/src/tests/extensions/oft_fee.rs +3 -3
- package/contracts/oapps/oft/src/tests/extensions/rate_limiter.rs +3 -3
- package/contracts/oapps/oft-core/integration-tests/setup.rs +4 -4
- package/contracts/oapps/oft-core/src/oft_core.rs +4 -4
- package/contracts/oapps/oft-core/src/tests/test_msg_inspector.rs +3 -3
- package/contracts/oapps/oft-core/src/tests/test_utils.rs +4 -4
- package/package.json +4 -4
- package/sdk/.turbo/turbo-test.log +288 -299
- package/sdk/dist/generated/counter.d.ts +6 -6
- package/sdk/dist/generated/counter.js +6 -6
- package/sdk/dist/generated/oft.d.ts +12 -12
- package/sdk/dist/generated/oft.js +11 -11
- package/sdk/package.json +1 -1
- package/sdk/test/counter-sml.test.ts +4 -4
- package/sdk/test/counter-uln.test.ts +4 -4
- package/sdk/test/oft-sml.test.ts +5 -5
|
@@ -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
|
|
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: '
|
|
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: '
|
|
201
|
+
role: 'OAPP_MANAGER_ROLE',
|
|
202
202
|
caller: DEFAULT_DEPLOYER.publicKey(),
|
|
203
203
|
});
|
|
204
204
|
await assembledTxB.signAndSend();
|
|
205
205
|
|
|
206
|
-
console.log('✅
|
|
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
|
|
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: '
|
|
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: '
|
|
134
|
+
role: 'OAPP_MANAGER_ROLE',
|
|
135
135
|
caller: DEFAULT_DEPLOYER.publicKey(),
|
|
136
136
|
});
|
|
137
137
|
await assembledTxB.signAndSend();
|
|
138
138
|
|
|
139
|
-
console.log('✅
|
|
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 () => {
|
package/sdk/test/oft-sml.test.ts
CHANGED
|
@@ -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
|
|
350
|
-
// OFT's `set_peer` is protected by `#[only_role(operator,
|
|
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: '
|
|
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: '
|
|
361
|
+
role: 'OAPP_MANAGER_ROLE',
|
|
362
362
|
caller: DEFAULT_DEPLOYER.publicKey(),
|
|
363
363
|
});
|
|
364
364
|
await assembledTxB.signAndSend();
|
|
365
365
|
|
|
366
|
-
console.log('✅
|
|
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 () => {
|