@layerzerolabs/protocol-stellar-v2 0.2.51 → 0.2.52

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 (55) hide show
  1. package/.turbo/turbo-build.log +281 -185
  2. package/.turbo/turbo-lint.log +69 -70
  3. package/.turbo/turbo-test.log +2010 -1754
  4. package/Cargo.lock +16 -0
  5. package/Cargo.toml +1 -0
  6. package/contracts/oapps/console-oft/Cargo.toml +30 -0
  7. package/contracts/oapps/console-oft/integration-tests/extensions/mod.rs +5 -0
  8. package/contracts/oapps/console-oft/integration-tests/extensions/test_combined.rs +90 -0
  9. package/contracts/oapps/console-oft/integration-tests/extensions/test_oft_fee.rs +186 -0
  10. package/contracts/oapps/console-oft/integration-tests/extensions/test_ownership.rs +161 -0
  11. package/contracts/oapps/console-oft/integration-tests/extensions/test_pausable.rs +154 -0
  12. package/contracts/oapps/console-oft/integration-tests/extensions/test_rate_limiter.rs +479 -0
  13. package/contracts/oapps/console-oft/integration-tests/mod.rs +3 -0
  14. package/contracts/oapps/console-oft/integration-tests/setup.rs +303 -0
  15. package/contracts/oapps/console-oft/integration-tests/utils.rs +685 -0
  16. package/contracts/oapps/console-oft/src/errors.rs +7 -0
  17. package/contracts/oapps/console-oft/src/extensions/mod.rs +3 -0
  18. package/contracts/oapps/console-oft/src/extensions/oft_fee.rs +239 -0
  19. package/contracts/oapps/console-oft/src/extensions/pausable.rs +185 -0
  20. package/contracts/oapps/console-oft/src/extensions/rate_limiter.rs +478 -0
  21. package/contracts/oapps/console-oft/src/interfaces/mintable.rs +14 -0
  22. package/contracts/oapps/console-oft/src/interfaces/mod.rs +3 -0
  23. package/contracts/oapps/console-oft/src/lib.rs +26 -0
  24. package/contracts/oapps/console-oft/src/oft.rs +208 -0
  25. package/contracts/oapps/console-oft/src/oft_access_control.rs +93 -0
  26. package/contracts/oapps/console-oft/src/oft_types/lock_unlock.rs +50 -0
  27. package/contracts/oapps/console-oft/src/oft_types/mint_burn.rs +50 -0
  28. package/contracts/oapps/console-oft/src/oft_types/mod.rs +24 -0
  29. package/contracts/oapps/console-oft/src/tests/extensions/mod.rs +3 -0
  30. package/contracts/oapps/console-oft/src/tests/extensions/oft_fee.rs +255 -0
  31. package/contracts/oapps/console-oft/src/tests/extensions/pausable.rs +212 -0
  32. package/contracts/oapps/console-oft/src/tests/extensions/rate_limiter.rs +992 -0
  33. package/contracts/oapps/console-oft/src/tests/mod.rs +2 -0
  34. package/contracts/oapps/console-oft/src/tests/oft_types/lock_unlock.rs +185 -0
  35. package/contracts/oapps/console-oft/src/tests/oft_types/mod.rs +1 -0
  36. package/contracts/oapps/oft/src/extensions/oft_fee.rs +5 -2
  37. package/contracts/oapps/oft/src/tests/extensions/oft_fee.rs +1 -1
  38. package/contracts/oapps/sac-manager/src/sac_manager.rs +8 -0
  39. package/contracts/workers/worker/src/worker.rs +8 -1
  40. package/docs/oft-guide.md +2 -2
  41. package/package.json +4 -4
  42. package/sdk/.turbo/turbo-test.log +356 -422
  43. package/sdk/dist/generated/dvn.d.ts +9 -3
  44. package/sdk/dist/generated/dvn.js +4 -4
  45. package/sdk/dist/generated/executor.d.ts +9 -3
  46. package/sdk/dist/generated/executor.js +4 -4
  47. package/sdk/package.json +1 -1
  48. package/sdk/test/oft-sml.test.ts +22 -41
  49. package/sdk/test/sac-manager.test.ts +23 -22
  50. package/sdk/test/secp256k1.ts +59 -0
  51. package/sdk/test/suites/constants.ts +5 -1
  52. package/sdk/test/suites/deploy.ts +14 -8
  53. package/sdk/test/suites/globalSetup.ts +144 -60
  54. package/sdk/test/suites/localnet.ts +20 -25
  55. package/sdk/test/utils.ts +1 -61
@@ -7,7 +7,7 @@
7
7
  🔧 User volumes override 1 default volume(s)
8
8
  ✅ stellar-25.1.0 (Latest stable release)
9
9
  🔧 stellar version: 25.1.0
10
- (node:49413) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
10
+ (node:86691) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
11
11
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
12
12
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
13
13
  (Use `node --trace-warnings ...` to show where the warning was created)
@@ -17,8 +17,8 @@ Error response from daemon: No such image: 438003944538.dkr.ecr.us-east-1.amazon
17
17
  📥 Pulling Docker image from: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/stellar-tooling:stellar_25.1.0
18
18
  $ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/stellar-tooling:stellar_25.1.0
19
19
  stellar_25.1.0: Pulling from layerzerolabs/stellar-tooling
20
- f6bd9104d248: Pulling fs layer
21
- 4617420e017b: Pulling fs layer
20
+ f6bd9104d248: Already exists
21
+ 4617420e017b: Already exists
22
22
  beaaf8a7146e: Pulling fs layer
23
23
  3e1d87a413fa: Pulling fs layer
24
24
  a0f6971ecbd3: Pulling fs layer
@@ -29,42 +29,40 @@ fb456ca5475e: Pulling fs layer
29
29
  efd28cb7ba78: Pulling fs layer
30
30
  14f775f5d67b: Pulling fs layer
31
31
  3f562c99cbe3: Pulling fs layer
32
- a0f6971ecbd3: Waiting
33
32
  5fa3a944df97: Pulling fs layer
34
- beaaf8a7146e: Waiting
35
33
  5fa3a944df97: Waiting
34
+ fb456ca5475e: Waiting
35
+ beaaf8a7146e: Waiting
36
36
  3e1d87a413fa: Waiting
37
+ a0f6971ecbd3: Waiting
37
38
  92a1b3d31b96: Waiting
38
- 963aa7b66e91: Waiting
39
39
  efd28cb7ba78: Waiting
40
- fb456ca5475e: Waiting
41
40
  2c1ce468d9f3: Waiting
41
+ 963aa7b66e91: Waiting
42
42
  14f775f5d67b: Waiting
43
43
  3f562c99cbe3: Waiting
44
- f6bd9104d248: Verifying Checksum
45
- f6bd9104d248: Download complete
46
- f6bd9104d248: Pull complete
47
- 4617420e017b: Download complete
48
- 4617420e017b: Pull complete
49
44
  3e1d87a413fa: Verifying Checksum
50
45
  3e1d87a413fa: Download complete
51
46
  a0f6971ecbd3: Verifying Checksum
52
47
  a0f6971ecbd3: Download complete
53
- 92a1b3d31b96: Download complete
54
- 2c1ce468d9f3: Verifying Checksum
55
- 2c1ce468d9f3: Download complete
48
+ beaaf8a7146e: Verifying Checksum
49
+ beaaf8a7146e: Download complete
56
50
  fb456ca5475e: Verifying Checksum
57
51
  fb456ca5475e: Download complete
58
- efd28cb7ba78: Verifying Checksum
59
- efd28cb7ba78: Download complete
60
- 963aa7b66e91: Verifying Checksum
61
- 963aa7b66e91: Download complete
52
+ 2c1ce468d9f3: Verifying Checksum
53
+ 2c1ce468d9f3: Download complete
54
+ 92a1b3d31b96: Verifying Checksum
55
+ 92a1b3d31b96: Download complete
62
56
  14f775f5d67b: Verifying Checksum
63
57
  14f775f5d67b: Download complete
64
- beaaf8a7146e: Download complete
58
+ efd28cb7ba78: Verifying Checksum
59
+ efd28cb7ba78: Download complete
65
60
  3f562c99cbe3: Verifying Checksum
66
61
  3f562c99cbe3: Download complete
62
+ 5fa3a944df97: Verifying Checksum
67
63
  5fa3a944df97: Download complete
64
+ 963aa7b66e91: Verifying Checksum
65
+ 963aa7b66e91: Download complete
68
66
  beaaf8a7146e: Pull complete
69
67
  3e1d87a413fa: Pull complete
70
68
  a0f6971ecbd3: Pull complete
@@ -93,7 +91,7 @@ info: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is up to date
93
91
 
94
92
  1.90.0-x86_64-unknown-linux-gnu unchanged - rustc 1.90.0 (1159e78c4 2025-09-14)
95
93
 
96
- ⏱️ bash -c mkdir -p $CARGO_HOME/bin && ln -sf /usr/local/cargo/bin/rustup $CARGO_HOME/bin/rustup && rustup toolchain install 1.90.0 --no-self-update --target wasm32v1-none --component rustfmt --component clippy: 3.654s
94
+ ⏱️ bash -c mkdir -p $CARGO_HOME/bin && ln -sf /usr/local/cargo/bin/rustup $CARGO_HOME/bin/rustup && rustup toolchain install 1.90.0 --no-self-update --target wasm32v1-none --component rustfmt --component clippy: 1.912s
97
95
  🔓 Released lock for @layerzerolabs/protocol-stellar-v2 at /home/runner/.cache/vm-tooling/locks/stellar-rustup
98
96
  📦 Using 4 default cache volume(s) for stellar
99
97
  ✅ stellar-25.1.0 (Latest stable release)
@@ -117,89 +115,89 @@ $ docker run --rm -e RUSTC_WRAPPER=/usr/local/bin/sccache -e CARGO_TARGET_X86_64
117
115
  Compiling schemars v0.8.22
118
116
  Checking zeroize v1.8.2
119
117
  Checking cpufeatures v0.2.17
120
- Checking base16ct v0.2.0
121
118
  Checking either v1.15.0
119
+ Checking base16ct v0.2.0
122
120
  Checking once_cell v1.21.3
123
121
  Checking data-encoding v2.9.0
124
122
  Checking libm v0.2.15
125
123
  Compiling thiserror v1.0.69
126
- Checking indexmap-nostd v0.4.0
127
124
  Checking hashbrown v0.16.0
128
- Checking downcast-rs v1.2.1
129
125
  Checking equivalent v1.0.2
130
- Checking spin v0.9.8
131
- Checking wasmi_arena v0.4.1
132
- Checking num-integer v0.1.46
126
+ Checking downcast-rs v1.2.1
127
+ Checking indexmap-nostd v0.4.0
133
128
  Checking semver v1.0.27
134
- Checking wasmi_core v0.13.0
135
- Checking escape-bytes v0.1.1
136
- Checking num-bigint v0.4.6
129
+ Checking hex v0.4.3
130
+ Checking num-integer v0.1.46
131
+ Checking der v0.7.10
137
132
  Checking base64 v0.22.1
138
- Checking wasmparser-nostd v0.100.2
133
+ Checking wasmi_core v0.13.0
134
+ Checking generic-array v0.14.9
139
135
  Checking indexmap v2.12.0
136
+ Checking ethnum v1.5.2
140
137
  Checking itertools v0.10.5
141
138
  Checking byteorder v1.5.0
142
- Checking ethnum v1.5.2
143
- Checking smallvec v1.15.1
144
- Checking generic-array v0.14.9
139
+ Checking wasmparser-nostd v0.100.2
140
+ Checking num-bigint v0.4.6
145
141
  Checking ppv-lite86 v0.2.21
146
- Checking der v0.7.10
147
142
  Checking ahash v0.8.12
148
- Checking hex v0.4.3
149
- Checking wasmparser v0.116.1
143
+ Checking spin v0.9.8
144
+ Checking wasmi_arena v0.4.1
145
+ Checking smallvec v1.15.1
146
+ Checking escape-bytes v0.1.1
150
147
  Checking hash32 v0.3.1
151
- Checking stable_deref_trait v1.2.1
152
- Checking static_assertions v1.1.0
148
+ Checking wasmparser v0.116.1
153
149
  Checking keccak v0.1.5
150
+ Checking static_assertions v1.1.0
154
151
  Compiling soroban-env-host v25.0.1
155
- Checking hex-literal v0.4.1
156
152
  Checking hashbrown v0.13.2
153
+ Checking stable_deref_trait v1.2.1
154
+ Checking itoa v1.0.15
155
+ Checking hex-literal v0.4.1
157
156
  Checking memchr v2.7.6
158
157
  Checking ryu v1.0.20
159
- Checking itoa v1.0.15
160
- Checking heapless v0.8.0
161
158
  Compiling common-macros v0.0.1 (/workspace/contracts/protocol/stellar/contracts/common-macros)
162
- Checking unicode-ident v1.0.22
163
159
  Compiling oapp-macros v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/oapp-macros)
160
+ Checking heapless v0.8.0
161
+ Checking unicode-ident v1.0.22
164
162
  Checking soroban-wasmi v0.31.1-soroban.20.0.1
165
163
  Checking heck v0.5.0
166
- Checking oapps v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps)
167
- Checking workers v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers)
168
- Checking macro-integration-tests v0.0.1 (/workspace/contracts/protocol/stellar/contracts/macro-integration-tests)
164
+ Checking crypto-common v0.1.6
165
+ Checking block-buffer v0.10.4
169
166
  Checking message-libs v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs)
167
+ Checking sec1 v0.7.3
168
+ Checking macro-integration-tests v0.0.1 (/workspace/contracts/protocol/stellar/contracts/macro-integration-tests)
169
+ Checking workers v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers)
170
170
  Checking proc-macro2 v1.0.103
171
- Checking block-buffer v0.10.4
172
- Checking crypto-common v0.1.6
171
+ Checking oapps v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps)
173
172
  Checking itertools v0.14.0
174
- Checking getrandom v0.2.16
175
- Checking sec1 v0.7.3
173
+ Checking digest v0.10.7
176
174
  Checking quote v1.0.41
175
+ Checking getrandom v0.2.16
176
+ Checking sha2 v0.10.9
177
+ Checking hmac v0.12.1
178
+ Checking curve25519-dalek v4.1.3
179
+ Checking sha3 v0.10.8
177
180
  Checking rand_core v0.6.4
178
- Checking digest v0.10.7
181
+ Checking syn v2.0.108
179
182
  Checking rand_chacha v0.3.1
180
183
  Checking ff v0.13.1
181
184
  Checking crypto-bigint v0.5.5
185
+ Checking signature v2.2.0
186
+ Checking rfc6979 v0.4.0
182
187
  Checking group v0.13.0
183
188
  Checking rand v0.8.5
184
- Checking signature v2.2.0
185
- Checking sha2 v0.10.9
186
- Checking hmac v0.12.1
187
- Checking curve25519-dalek v4.1.3
188
- Checking sha3 v0.10.8
189
- Checking syn v2.0.108
190
- Checking ark-std v0.4.0
191
189
  Checking ed25519 v2.2.3
192
- Checking rfc6979 v0.4.0
190
+ Checking ark-std v0.4.0
193
191
  Checking ark-serialize v0.4.2
192
+ Checking ed25519-dalek v2.2.0
194
193
  Checking ark-ff v0.4.2
194
+ Checking serde v1.0.228
195
+ Checking serde_json v1.0.145
195
196
  Checking elliptic-curve v0.13.8
196
- Compiling serde v1.0.228
197
- Compiling serde_json v1.0.145
198
- Checking ed25519-dalek v2.2.0
199
197
  Checking ecdsa v0.16.9
200
198
  Checking primeorder v0.13.6
201
- Checking k256 v0.13.4
202
199
  Checking p256 v0.13.2
200
+ Checking k256 v0.13.4
203
201
  Compiling crate-git-revision v0.0.6
204
202
  Compiling stellar-strkey v0.0.13
205
203
  Compiling stellar-xdr v25.0.0
@@ -209,33 +207,34 @@ $ docker run --rm -e RUSTC_WRAPPER=/usr/local/bin/sccache -e CARGO_TARGET_X86_64
209
207
  Checking ark-poly v0.4.2
210
208
  Compiling serde_with v3.15.1
211
209
  Checking ark-ec v0.4.2
212
- Checking ark-bls12-381 v0.4.0
213
210
  Checking ark-bn254 v0.4.0
214
- Compiling soroban-env-macros v25.0.1
211
+ Checking ark-bls12-381 v0.4.0
215
212
  Compiling soroban-spec v25.1.1
213
+ Compiling soroban-env-macros v25.0.1
216
214
  Compiling soroban-spec-rust v25.1.1
217
215
  Compiling soroban-sdk-macros v25.1.1
218
216
  Checking utils v0.0.1 (/workspace/contracts/protocol/stellar/contracts/utils)
219
217
  Checking fee-lib-interfaces v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/fee-lib-interfaces)
220
218
  Checking endpoint-v2 v0.0.1 (/workspace/contracts/protocol/stellar/contracts/endpoint-v2)
221
219
  Checking worker v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/worker)
222
- Checking dvn-fee-lib v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/dvn-fee-lib)
223
- Checking price-feed v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/price-feed)
224
220
  Checking sac-manager v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/sac-manager)
221
+ Checking price-feed v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/price-feed)
225
222
  Checking upgrader v0.0.1 (/workspace/contracts/protocol/stellar/contracts/upgrader)
223
+ Checking dvn-fee-lib v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/dvn-fee-lib)
226
224
  Checking message-lib-common v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs/message-lib-common)
227
225
  Checking oapp v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/oapp)
228
226
  Checking blocked-message-lib v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs/blocked-message-lib)
229
227
  Checking executor v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/executor)
230
228
  Checking uln302 v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs/uln-302)
231
- Checking dvn v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/dvn)
232
229
  Checking executor-fee-lib v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/executor-fee-lib)
233
230
  Checking simple-message-lib v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs/simple-message-lib)
234
231
  Checking treasury v0.0.1 (/workspace/contracts/protocol/stellar/contracts/message-libs/treasury)
232
+ Checking dvn v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/dvn)
235
233
  Checking oft-core v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/oft-core)
236
234
  Checking counter v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/counter)
237
235
  Checking executor-helper v0.0.1 (/workspace/contracts/protocol/stellar/contracts/workers/executor-helper)
238
236
  Checking layerzero-views v0.0.1 (/workspace/contracts/protocol/stellar/contracts/layerzero-views)
239
237
  Checking oft v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/oft)
240
- Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 56s
241
- ⏱️ bash -c cargo clippy -- -D warnings: 6:57.722 (m:ss.mmm)
238
+ Checking console-oft v0.0.1 (/workspace/contracts/protocol/stellar/contracts/oapps/console-oft)
239
+ Finished `dev` profile [unoptimized + debuginfo] target(s) in 10m 12s
240
+ ⏱️ bash -c cargo clippy -- -D warnings: 10:13.897 (m:ss.mmm)