Mayukha Vadari
719ba392db
Merge branch 'ripple/smart-escrow' into ripple/se/fees
2026-02-04 18:41:29 -05:00
Mayukha Vadari
cd46b5d999
Merge branch 'wasmi-host-functions' into ripple/se/fees
2026-02-04 18:41:19 -05:00
Mayukha Vadari
de55a5ebfc
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-02-04 18:13:15 -05:00
Mayukha Vadari
2ec4a1114e
Merge branch 'develop' into ripple/wasmi
2026-02-04 18:13:00 -05:00
Mayukha Vadari
f01ac563a9
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2026-02-04 18:07:12 -05:00
Mayukha Vadari
13707dda05
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' into ripple/se/fees
2026-02-04 17:13:50 -05:00
Ayaz Salikhov
7f41012e59
chore: Update secp256k1 and openssl ( #6327 )
2026-02-04 18:27:10 +00:00
Bart
b449a6ee84
chore: Remove unnecessary script ( #6326 )
2026-02-04 11:30:16 -05:00
Bart
34ef577604
refactor: Replace include guards by '#pragma once' ( #6322 )
...
This change replaces all include guards in the `src/` and `include/` directories by `#pragma once`.
2026-02-04 09:50:21 -05:00
Bart
3a172301ce
chore: Remove unity builds ( #6300 )
...
Unity builds were intended to speed up builds, by bundling multiple files into compilation units. However, now that ccache is available on all platforms, there is no need for unity builds anymore, as ccache stores compiled individual build objects for reuse. This change therefore removes the ability to make unity builds.
2026-02-03 22:55:22 +00:00
Olek
ba03a8a9d2
Fix negation of int64_t ( #6296 )
2026-02-03 17:43:54 -05:00
Mayukha Vadari
7c8279ec83
use buffers for uint32 WASM params ( #6291 )
2026-02-03 16:08:46 -05:00
Mayukha Vadari
a1844086d7
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2026-02-03 15:32:21 -05:00
Mayukha Vadari
f625fb993a
Merge branch 'wasmi-host-functions' into ripple/se/fees
2026-02-03 15:19:36 -05:00
Mayukha Vadari
0418ffb26a
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-02-03 14:52:16 -05:00
Mayukha Vadari
b2627039f6
Merge branch 'develop' into ripple/wasmi
2026-02-03 14:51:59 -05:00
Jingchen
6c1a92fe93
refactor: Add ServiceRegistry to help modularization ( #6222 )
...
Currently we're passing the `Application` object around, whereby the `Application` class acts more like a service registry that gives other classes access to other services. In order to allow modularization, we should replace `Application` with a service registry class so that modules depending on `Application` for other services can be moved easily. This change adds the `ServiceRegistry` class.
2026-02-03 19:08:27 +00:00
Copilot
7813683091
fix: Deletes expired NFToken offers from ledger ( #5707 )
...
This change introduces the `fixExpiredNFTokenOfferRemoval` amendment that allows expired offers to pass through `preclaim()` and be deleted in `doApply()`, following the same pattern used for expired credentials.
2026-02-03 16:37:24 +00:00
Vito Tumas
b814a09a08
chore: Add .zed editor config directory to .gitignore ( #6317 )
...
This change adds the project configuration directory to `.gitignore` for the `zed` editor.
As per the [documentation](https://zed.dev/docs/remote-development?highlight=.zed#zed-settings ), the project configuration files are stored in the `.zed` directory at the project root dir.
2026-02-03 10:13:10 -05:00
Mayukha Vadari
8f97ec3bde
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-01-29 13:54:30 -05:00
Mayukha Vadari
e85e7b1b1a
Merge branch 'develop' into ripple/wasmi
2026-01-29 13:53:55 -05:00
Mayukha Vadari
ac173b6827
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2026-01-28 17:14:13 -05:00
Mayukha Vadari
69c61b2235
fix merge issues
2026-01-28 16:52:27 -05:00
Mayukha Vadari
6ae0e860ff
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' into ripple/se/fees
2026-01-28 16:39:44 -05:00
Mayukha Vadari
c077e7f073
Merge commit '4eb34f3' into ripple/se/fees
2026-01-28 16:39:06 -05:00
Mayukha Vadari
803a344c65
fix clang-format
2026-01-28 16:35:02 -05:00
Mayukha Vadari
4eb34f381a
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-01-28 15:56:40 -05:00
Mayukha Vadari
72fffb6e51
Merge branch 'develop' into ripple/wasmi
2026-01-28 15:56:18 -05:00
Mayukha Vadari
f7ee580f01
Merge commit '5f638f55536def0d88b970d1018a465a238e55f4' into ripple/wasmi
2026-01-28 15:56:11 -05:00
Mayukha Vadari
122d405750
Merge commit '92046785d1fea5f9efe5a770d636792ea6cab78b' into ripple/wasmi
2026-01-28 15:56:04 -05:00
Olek
c1c1b4ea67
Reject non-canonical binaries ( #6277 )
...
* Reject non-canonical binaries
* Review fixes
* Cleanup Number2 class
* Use enum instead of 0
2026-01-27 16:30:51 -05:00
Mayukha Vadari
977caea0a5
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2026-01-27 13:26:55 -05:00
Mayukha Vadari
d7ed6d6512
Merge branch 'develop' into ripple/wasmi
2026-01-27 13:26:39 -05:00
Olek
f1f2e2629f
Fix for Big-Endian machines ( #6245 )
2026-01-27 13:05:54 -05:00
Olek
917c610f96
Ensure request size less than int limit ( #6239 )
...
* Ensure request size less than int limit
* Move size check to wasmParams function
2026-01-27 12:37:47 -05:00
Mayukha Vadari
317e533d81
clean up Wasm_test.cpp more ( #6278 )
2026-01-26 15:21:15 -05:00
Olek
4160677878
Switch to series expansion method for ln() ( #6268 )
...
* Switch to series expansion method for ln()
Add float lg() tests to Number tests;
* Rename lg -> log10
* Add check for 0 to log10()
2026-01-26 14:04:03 -05:00
Mayukha Vadari
430696682d
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2026-01-26 09:43:14 -05:00
Mayukha Vadari
4621e4eda3
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2026-01-26 09:29:34 -05:00
Olek
df98db1452
Check wasm return type ( #6240 )
...
* Check wasm return type
* Add more tests
2026-01-23 16:12:14 -05:00
Mayukha Vadari
981ac7abf4
simplify fee code ( #6249 )
...
* simplify lambda
* clean up fee code
* fix tests, better error handling
* simplify source_location
2026-01-23 15:14:24 -05:00
Mayukha Vadari
57d2a91ad5
test large WASM modules ( #6206 )
...
* [WIP] first attempt at large wasm test
* finish large WASM modules
* fix windows build (hopefully)
* Apply suggestions from code review
* respond to comments
* add file and line to fail
* clean up test
* add source_location
* simplify
* fix windows
2026-01-23 14:45:09 -05:00
Mayukha Vadari
673476ef1b
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2026-01-23 13:13:26 -05:00
Mayukha Vadari
8bc6f9cd70
Merge branch 'develop' into ripple/wasmi
2026-01-23 13:13:11 -05:00
Mayukha Vadari
ba5debfecd
update return calculation ( #6250 )
2026-01-22 17:01:56 -05:00
Mayukha Vadari
f4a27c9b6d
minor refactor of Wasm_test ( #6229 )
2026-01-21 18:05:48 -05:00
Olek
fd1cb318e3
Check that max parameters length is multiple of sizeof(int32) ( #6253 )
2026-01-21 17:22:47 -05:00
Olek
94b35a234e
Make hostfunctions object shared ( #6252 )
2026-01-21 15:27:06 -05:00
Mayukha Vadari
b5d0078927
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2026-01-21 13:26:37 -05:00
Mayukha Vadari
43c80edaf4
Merge branch 'wasmi-host-functions' into ripple/se/fees
2026-01-21 12:58:24 -05:00
Mayukha Vadari
8c3544a58c
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-01-21 12:57:47 -05:00
Mayukha Vadari
ed5139d4e3
Merge branch 'develop' into ripple/wasmi
2026-01-21 12:57:29 -05:00
Olek
42494dd4cf
Ensure lifetime of imports ( #6230 )
2026-01-21 12:43:12 -05:00
Mayukha Vadari
ce84cc8b44
improve trace hf code ( #6190 )
...
* adjust trace statements
* add helper function
* use lambda instead
* use same paradigm in TestHostFunctions
* oops
2026-01-15 20:50:55 -05:00
Mayukha Vadari
9a9a7aab01
Add Vector256 support to the locator ( #6131 )
...
* add Vector256 nesting/length support
* [WIP] add tests
* fix tests
* simplify with helper function
* oops typo
* remove static variable
* respond to comments
* STBaseOrUInt256->FieldValue
* oops
* add more tests for coverage
* respond to comments
2026-01-15 20:14:42 -05:00
Olek
209a1a6ffa
Don't throw from hostfunctions stack ( #6221 )
2026-01-15 19:52:22 -05:00
Mayukha Vadari
9538e9b34c
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2026-01-15 14:34:54 -05:00
Mayukha Vadari
384b3608d7
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2026-01-15 14:17:57 -05:00
Oleksandr
fc35a9f9c8
Fix usage of the Number class
2026-01-14 19:36:50 -05:00
Oleksandr
c5e50aa221
Fix merge issues
2026-01-14 14:46:35 -05:00
Mayukha Vadari
074b1f00d5
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-01-14 13:04:28 -05:00
Mayukha Vadari
7a9d245950
Merge branch 'develop' into ripple/wasmi
2026-01-14 13:01:35 -05:00
Mayukha Vadari
1809fe07f2
remove test file
2026-01-14 12:43:12 -05:00
Mayukha Vadari
409c67494a
move helper functions to separate file ( #6178 )
...
* move helper functions to separate file
* break it up into sections, split out float helpers
* split impls into multiple cpp files
* namespace detail
* fix build issue
* fix tests
* clean up
* put float helpers into wasm_float namespace
2026-01-13 20:34:57 -05:00
pwang200
fb97f7b596
fix unit tests failed due to fuel changes ( #6174 )
...
* fix unit tests failed due to fuel changes
* fix tests
* fix tests
---------
Co-authored-by: Mayukha Vadari <mvadari@ripple.com >
2026-01-13 16:48:25 -05:00
Olek
c626b6403a
Fix unaligned access ( #6208 )
2026-01-13 16:40:42 -05:00
Olek
81cbc91927
Fix traces ( #6127 )
...
* Fix traces
* More tests for codecov
* Review fixes
* trace float test
* Fix return value for traces
* Remove SuiteJournalSink2
* Add explicit severity
* Move logs to ApplyView
* Add check for output strings
* Merging fix
2026-01-13 16:38:48 -05:00
Mayukha Vadari
845c503ea6
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2026-01-13 13:48:15 -05:00
Mayukha Vadari
e1513570df
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2026-01-13 13:46:50 -05:00
pwang200
1c812a6c4d
disable Wasm features added in Wasmi 1.0, and fix unit test fuel cost due to Wasmi 1.0 fuel changes ( #6173 )
...
* disable 4 more wasm features
* unit tests for disabled Wasmi 1.0 features
* fix unit tests failed due to fuel changes
* rearrange wasm feature unit tests
* fix gas costs
* Update src/test/app/wasm_fixtures/wat/custom_page_sizes.wat
---------
Co-authored-by: Mayukha Vadari <mvadari@ripple.com >
2026-01-12 22:04:33 -05:00
Mayukha Vadari
0724927799
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2026-01-12 15:17:36 -05:00
Mayukha Vadari
ff39fa59d9
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2026-01-12 14:12:04 -05:00
Olek
d83ec96848
Switch to wasmi v1.0.6 ( #6204 )
2026-01-12 13:36:02 -05:00
Mayukha Vadari
f0d0739528
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2026-01-12 13:28:07 -05:00
Mayukha Vadari
375dd50b35
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2026-01-12 13:19:17 -05:00
Mayukha Vadari
419d53ec4c
Merge branch 'develop' into ripple/wasmi
2026-01-12 13:10:58 -05:00
Mayukha Vadari
d4d70d5675
Merge branch 'develop' into ripple/wasmi
2026-01-12 12:27:48 -05:00
Olek
6ab15f8377
Add checks to allocate ( #6185 )
2026-01-09 14:49:09 -05:00
pwang200
91f3d51f3d
fix start function loop
2026-01-09 11:38:54 -05:00
pwang200
9ed60b45f8
section corruption unit tests
2026-01-08 16:15:36 -05:00
pwang200
d5c53dcfd2
fix Uninitialized import entries lead to undefined behavior During WASM Instantiation
2026-01-08 16:14:49 -05:00
Mayukha Vadari
8015088340
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2026-01-08 11:46:18 -05:00
Mayukha Vadari
103379836a
Merge branch 'wasmi-host-functions' into ripple/se/fees
2026-01-08 11:45:05 -05:00
Mayukha Vadari
e94321fb41
Merge branch 'ripple/wasmi' into wasmi-host-functions
2026-01-08 11:44:15 -05:00
Mayukha Vadari
bbc28b3b1c
Merge branch 'develop' into ripple/wasmi
2026-01-08 11:42:28 -05:00
Mayukha Vadari
843e981c8a
Merge remote-tracking branch 'upstream/ripple/wasmi' into wasmi-host-functions
2026-01-07 16:52:56 -05:00
Mayukha Vadari
5aab274b7a
Merge branch 'develop' into ripple/wasmi
2026-01-07 16:52:10 -05:00
Mayukha Vadari
2c30e41191
use the develop hashes
2026-01-07 16:50:45 -05:00
Mayukha Vadari
8ea5106b0b
Merge branch 'develop' into ripple/wasmi
2026-01-07 14:34:49 -05:00
Mayukha Vadari
f57f67a8ae
infinite loop test ( #6064 )
2026-01-07 11:51:58 -05:00
Mayukha Vadari
61b2fe4f64
fix test
2026-01-06 17:58:22 -05:00
Mayukha Vadari
7ee964f514
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2026-01-06 17:22:42 -05:00
Mayukha Vadari
397bc8781e
fix more merge issues
2026-01-06 14:27:46 -05:00
pwang200
a98269f049
a batch of memory, table, and trap tests ( #6100 )
...
wasm memory, table, and trap unit tests
2026-01-06 14:03:18 -05:00
Mayukha Vadari
8bb8c2e38b
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' into ripple/se/fees
2026-01-06 13:40:53 -05:00
Mayukha Vadari
b66bc47ca9
fix more merge issues
2026-01-06 13:30:30 -05:00
Mayukha Vadari
0e9c7458bb
fix more merge issues
2026-01-05 18:53:14 -05:00
Mayukha Vadari
36ecd3b52b
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' into ripple/se/fees
2026-01-05 18:51:46 -05:00
Mayukha Vadari
1d89940653
merge fixes
2026-01-05 18:48:09 -05:00
Mayukha Vadari
1a1a6806ec
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2026-01-05 18:44:41 -05:00
Mayukha Vadari
1977df9c2e
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
2026-01-05 18:43:49 -05:00
Mayukha Vadari
6ffbef09c2
fix gas in test
2025-12-23 11:00:57 -08:00
Mayukha Vadari
e05f907788
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-12-22 17:02:12 -08:00
Mayukha Vadari
9d1f51b01a
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2025-12-22 17:01:34 -08:00
Mayukha Vadari
6c95548df5
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
2025-12-22 15:51:19 -08:00
Olek
69ab39d658
Fix potential memory leaks found by srlabs ( #6145 )
2025-12-18 14:13:48 -05:00
Mayukha Vadari
b9eb66eecc
fix parameter index desynchronization ( #6148 )
2025-12-17 14:19:34 -08:00
Mayukha Vadari
e916416642
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-12-15 10:47:26 -08:00
Mayukha Vadari
827ecc6e3a
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2025-12-15 10:44:17 -08:00
Mayukha Vadari
6a54ed7f14
fix fee overflow issue in EscrowFinish ( #6130 )
2025-12-12 15:12:43 -08:00
Mayukha Vadari
881087dd3d
Merge remote-tracking branch 'upstream/ripple/wasmi' into wasmi-host-functions
2025-12-08 14:29:47 -05:00
Mayukha Vadari
90e0bbd0fc
Merge branch 'develop' into ripple/wasmi
2025-12-08 14:28:41 -05:00
Olek
b57df290de
Use conan repo for wasmi lib ( #6109 )
...
* Use conan repo for wasmi lib
* Generate lockfile
2025-12-08 13:02:01 -05:00
Mayukha Vadari
8a403f1241
Merge branch 'develop' into ripple/wasmi
2025-12-05 14:32:48 -05:00
Olek
1e0741690d
Fix sign cost ( #6103 )
2025-12-03 18:27:06 -05:00
Mayukha Vadari
6d2640871d
Merge branch 'develop' into ripple/wasmi
2025-12-02 18:40:54 -05:00
Olek
c5d178f152
HF cost for smart escrow ( #6097 )
2025-12-02 13:12:15 -05:00
Mayukha Vadari
5a17940e2a
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-12-02 07:48:22 -05:00
Mayukha Vadari
27ac30208d
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2025-12-02 07:44:22 -05:00
pwang200
c145598ff9
add memory limit and disable float and other advanced instructions
2025-12-02 00:09:20 -05:00
Olek
50e5608d86
wasmi HF cost
2025-12-01 20:21:52 -05:00
Mayukha Vadari
abfcc4ef67
fix tests
2025-11-25 04:17:42 +05:30
Mayukha Vadari
e40a4df777
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
2025-11-25 03:49:06 +05:30
Mayukha Vadari
dba187f8c5
fix build issues
2025-11-25 03:42:38 +05:30
Mayukha Vadari
7a7b96107c
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
2025-11-25 03:42:05 +05:30
Mayukha Vadari
8f2f8d53b4
update gas amounts for wasmi
2025-11-25 03:32:01 +05:30
Mayukha Vadari
49acc61961
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-11-25 03:31:10 +05:30
Olek
500bb68831
Fix win build ( #6076 )
2025-11-24 16:56:23 -05:00
Mayukha Vadari
95d78a8600
Merge branch 'wasmi-host-functions' into ripple/se/fees
2025-11-25 03:26:19 +05:30
Mayukha Vadari
53eb0f60bc
fix another build issue
2025-11-25 03:10:58 +05:30
Mayukha Vadari
41205ae928
Merge branch 'ripple/wasmi' into wasmi-host-functions
2025-11-25 03:01:51 +05:30
Mayukha Vadari
c33b0ae463
fix build issue
2025-11-25 02:58:57 +05:30
Mayukha Vadari
16087c9680
fix merge issue
2025-11-25 02:57:47 +05:30
Mayukha Vadari
56bc6d58f6
Merge branch 'ripple/wasmi' into wasmi-host-functions
2025-11-25 02:45:00 +05:30
Mayukha Vadari
ef5d335e09
update
2025-11-25 02:44:18 +05:30
Mayukha Vadari
25c3060fef
remove conan.lock (temporary)
2025-11-25 02:40:57 +05:30
Mayukha Vadari
ce9f0b38a4
Merge branch 'develop' into ripple/wasmi
2025-11-25 02:33:47 +05:30
Mayukha Vadari
35f7cbf772
update
2025-11-25 02:31:51 +05:30
Mayukha Vadari
def7758a23
remove copyright stuff
2025-11-04 17:53:13 -05:00
Mayukha Vadari
58e5b4ad25
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2025-11-04 17:52:17 -05:00
Mayukha Vadari
578413859c
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-11-04 17:52:00 -05:00
Mayukha Vadari
0db564d261
WASMI data
2025-11-04 15:57:07 -05:00
Mayukha Vadari
427b7ea104
run rename script
2025-11-04 15:29:08 -05:00
Mayukha Vadari
fa8aa49376
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-11-04 14:51:11 -05:00
Mayukha Vadari
3195eb16b2
Merge branch 'wamr-host-functions' into ripple/se/fees
2025-11-04 14:50:31 -05:00
Mayukha Vadari
7bf6878b4b
fix imports
2025-11-04 14:49:45 -05:00
Mayukha Vadari
a891b49c67
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-11-04 14:24:51 -05:00
Mayukha Vadari
eed280d169
Merge branch 'wamr-host-functions' into ripple/se/fees
2025-11-04 13:37:09 -05:00
Mayukha Vadari
0bc1a115ff
Merge branch 'wamr' into wamr-host-functions
2025-11-04 13:36:22 -05:00
Mayukha Vadari
334bcfa5ef
Merge branch 'develop' into wamr
2025-11-04 13:36:01 -05:00
Mayukha Vadari
106dea4559
update fixtures to use the latest version of stdlib
2025-11-04 13:35:25 -05:00
Mayukha Vadari
3ffdcf8114
allow 0-value trace amounts
2025-11-04 13:19:40 -05:00
Olek
4021a7eb28
Wamr and HF security review fixes ( #5965 )
2025-10-31 10:34:31 -04:00
Ayaz Salikhov
0690fda0f1
Merge branch 'develop' into ripple/wamr
2025-10-30 14:12:15 +00:00
Mayukha Vadari
d0cc48c6d3
Update cmake/RippledCore.cmake
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2025-10-29 16:41:11 -04:00
Olek
d66e3c949e
Chores: Sort package list ( #5963 )
2025-10-29 12:55:07 -04:00
Mayukha Vadari
7e2e10f02c
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-24 18:01:33 -04:00
Mayukha Vadari
aebec5378c
Merge branch 'wamr-host-functions' into ripple/se/fees
2025-10-24 18:01:17 -04:00
Mayukha Vadari
0c65a386b5
fix tests
2025-10-24 18:01:01 -04:00
Mayukha Vadari
22ca691e75
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-24 17:14:54 -04:00
Mayukha Vadari
fc6ff69752
fix tests
2025-10-24 17:14:46 -04:00
Mayukha Vadari
079e251aca
fix bug
2025-10-24 16:52:17 -04:00
Mayukha Vadari
67e2c1b563
Merge branch 'wamr-host-functions' into ripple/se/fees
2025-10-24 16:06:02 -04:00
Mayukha Vadari
29f5430881
fix bug
2025-10-24 16:05:38 -04:00
Mayukha Vadari
b6bd268be2
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-24 16:02:23 -04:00
Mayukha Vadari
209ee25c32
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-24 16:02:16 -04:00
Mayukha Vadari
101f285bcd
return size from updateData
2025-10-24 16:01:45 -04:00
Mayukha Vadari
566b85b3d6
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-23 15:41:53 -04:00
Mayukha Vadari
af6beb1d7c
fix ledger used for rules
2025-10-23 15:41:32 -04:00
Mayukha Vadari
7d22fe804d
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-23 15:38:46 -04:00
Mayukha Vadari
ce19c13059
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-23 15:38:37 -04:00
Mayukha Vadari
286dc6322b
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-23 15:38:28 -04:00
Mayukha Vadari
c9346cd40d
Merge branch 'develop' into ripple/wamr
2025-10-23 15:38:04 -04:00
Mayukha Vadari
9cfb7ac340
fix build issue
2025-10-20 17:20:35 -04:00
Mayukha Vadari
3a0e9aab4f
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-20 14:51:15 -04:00
Mayukha Vadari
43caa1ef29
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-20 11:53:56 -04:00
Mayukha Vadari
1c5683ec78
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-20 11:53:22 -04:00
Mayukha Vadari
9bee155d59
Merge branch 'develop' into ripple/wamr
2025-10-20 11:53:03 -04:00
Mayukha Vadari
f34b05f4de
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-16 12:12:05 -04:00
Mayukha Vadari
97ce25f4ce
Merge branch 'develop' into ripple/wamr
2025-10-16 12:11:55 -04:00
Mayukha Vadari
3b6cd22e32
fix
2025-10-14 18:10:11 -04:00
Mayukha Vadari
c9c35780d2
reduce diff more
2025-10-14 18:00:58 -04:00
Mayukha Vadari
17f401f374
reduce diff
2025-10-14 17:58:41 -04:00
Mayukha Vadari
c6c54b3282
resolve todos
2025-10-14 17:56:12 -04:00
Mayukha Vadari
91455b6860
respond to comments
2025-10-13 15:20:03 -04:00
Olek
9e14c14a26
Use xrplf conan repo for wamr ( #5862 )
2025-10-13 15:11:21 -04:00
Mayukha Vadari
f16f243c22
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-13 14:01:11 -04:00
Mayukha Vadari
fe601308e7
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-13 13:58:09 -04:00
Mayukha Vadari
c507880d8f
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-13 13:57:22 -04:00
Mayukha Vadari
3f8328bbf8
Merge branch 'develop' into ripple/wamr
2025-10-13 13:55:07 -04:00
Mayukha Vadari
e41f6a71b7
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-09 17:13:13 -04:00
Mayukha Vadari
51f1be7f5b
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-09 17:10:52 -04:00
Mayukha Vadari
c10a5f9ef6
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-09 17:10:31 -04:00
Mayukha Vadari
3c141de695
Merge branch 'develop' into ripple/wamr
2025-10-09 16:52:25 -04:00
Mayukha Vadari
db263b696c
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-10-06 17:01:32 -04:00
Mayukha Vadari
f57b855d74
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-06 17:01:17 -04:00
Mayukha Vadari
da2b9455f2
fix: remove get_ledger_account_hash and get_ledger_tx_hash host functions ( #5850 )
...
* remove `get_ledger_account_hash` and `get_ledger_tx_hash`
* fix build+tests
2025-10-06 16:38:40 -04:00
Mayukha Vadari
86525d8583
test: add tests for fee voting ( #5747 )
2025-10-06 16:32:04 -04:00
Mayukha Vadari
c41e52f57a
Move Smart Escrow tests to separate file ( #5849 )
2025-10-06 16:27:21 -04:00
Mayukha Vadari
55772a0d07
add sfData preflight checks + tests ( #5839 )
2025-10-02 17:50:43 -04:00
Mayukha Vadari
965a9e89ac
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2025-10-02 15:51:35 -04:00
Mayukha Vadari
51ee06429b
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-10-02 14:35:36 -04:00
Mayukha Vadari
cb622488c0
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-10-02 14:35:25 -04:00
Mayukha Vadari
32f971fec6
Merge branch 'develop' into ripple/wamr
2025-10-02 14:35:13 -04:00
Mayukha Vadari
ca85d09f02
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-09-30 14:43:24 -04:00
Mayukha Vadari
8dea76baa4
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-09-30 14:42:49 -04:00
Mayukha Vadari
299fbe04c4
Merge branch 'develop' into ripple/wamr
2025-09-30 14:42:24 -04:00
Mayukha Vadari
57fc1df7d7
switch from wasm32-unknown-unknown to wasm32v1-none ( #5814 )
2025-09-29 15:43:22 -04:00
Mayukha Vadari
8d266d3941
remove STInt64 ( #5815 )
2025-09-29 15:43:10 -04:00
Mayukha Vadari
a865b4da1c
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-09-26 17:10:10 -04:00
Mayukha Vadari
e59f5f3b01
fix tests
2025-09-26 17:09:53 -04:00
Mayukha Vadari
8729688feb
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/smart-escrow
2025-09-26 16:56:51 -04:00
Mayukha Vadari
c8b06e7de1
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-09-26 16:50:34 -04:00
Mayukha Vadari
eaba76f9e6
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-09-26 16:37:25 -04:00
Mayukha Vadari
cb702cc238
Merge branch 'develop' into ripple/wamr
2025-09-26 16:37:04 -04:00
Mayukha Vadari
f1f798bb85
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-09-26 15:52:22 -04:00
Mayukha Vadari
c3fd52c177
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-09-26 15:51:56 -04:00
Mayukha Vadari
b69b4a0a4a
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-09-26 15:51:48 -04:00
Mayukha Vadari
50d6072a73
Merge branch 'develop' into ripple/wamr
2025-09-26 15:51:40 -04:00
Olek
d24cd50e61
Switch to own wamr fork ( #5808 )
2025-09-23 16:39:21 -04:00
Mayukha Vadari
85bff20ae5
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-09-23 10:22:30 -04:00
Mayukha Vadari
737fab5471
fix issues
2025-09-22 23:55:57 -04:00
Mayukha Vadari
e6592e93a9
Merge branch 'ripple/se/fees' into ripple/smart-escrow
2025-09-22 18:32:36 -04:00
Mayukha Vadari
5a6c4e8ae0
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
2025-09-22 18:23:54 -04:00
Mayukha Vadari
9f5875158c
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-09-22 18:23:45 -04:00
Mayukha Vadari
c3dc33c861
Merge branch 'develop' into ripple/wamr
2025-09-22 18:23:35 -04:00
Mayukha Vadari
7420f47658
SmartEscrow fee voting changes
2025-09-22 18:22:44 -04:00
Olek
6be8f2124c
Latests HF perf test ( #5789 )
2025-09-18 15:51:39 -04:00
Mayukha Vadari
edfed06001
fix merge issues
2025-09-18 15:39:49 -04:00
Mayukha Vadari
1c646dba91
Merge remote-tracking branch 'upstream/ripple/wamr' into wamr-host-functions
2025-09-18 15:29:02 -04:00
Mayukha Vadari
6781068058
Merge branch 'develop' into ripple/wamr
2025-09-18 15:27:54 -04:00
Mayukha Vadari
cfe57c1dfe
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
2025-09-18 14:37:58 -04:00
Mayukha Vadari
c34d09a971
Merge branch 'develop' into ripple/wamr
2025-09-18 14:24:34 -04:00
Mayukha Vadari
ebd90c4742
chore: remove unneeded float stuff ( #5729 )
2025-09-11 18:41:24 -04:00
Mayukha Vadari
ba52d34828
test: improve codecov in HostFuncWrapper.cpp ( #5730 )
2025-09-11 18:09:08 -04:00
Mayukha Vadari
2f869b3cfc
Merge branch 'develop' into ripple/smart-escrow
2025-09-11 16:41:14 -04:00
Mayukha Vadari
ffa21c27a7
fix test
2025-09-11 16:40:59 -04:00
Mayukha Vadari
1b6312afb3
rearrange files
2025-09-11 16:34:03 -04:00
Mayukha Vadari
bf32dc2e72
add fixtures files
2025-09-11 16:28:11 -04:00
Mayukha Vadari
a15d65f7a2
update tests
2025-09-11 16:20:33 -04:00
Mayukha Vadari
2de8488855
add temBAD_WASM
2025-09-11 16:02:17 -04:00
Mayukha Vadari
129aa4bfaa
bring out IOUAmount.h
2025-09-11 13:18:42 -04:00
Mayukha Vadari
b1d70db63b
limits
2025-09-10 15:05:06 -04:00
Mayukha Vadari
f03c3aafe4
misc host function files
2025-09-10 15:02:48 -04:00
Mayukha Vadari
51a9f106d1
CODEOWNERS
2025-09-10 14:59:09 -04:00
Mayukha Vadari
bfc048e3fe
add tests
2025-09-10 14:57:23 -04:00
Mayukha Vadari
83418644f7
add host functions
2025-09-10 14:56:21 -04:00
Mayukha Vadari
dbc9dd5bfc
Add WAMR integration code
2025-09-10 14:56:08 -04:00
Mayukha Vadari
5c480cf883
Merge branch 'develop' into ripple/smart-escrow
2025-09-10 14:51:45 -04:00
Mayukha Vadari
45ab15d4b5
add WAMR dependency
2025-09-10 14:40:48 -04:00
Mayukha Vadari
adc64e7866
Merge branch 'develop' into ripple/smart-escrow
2025-09-10 10:46:51 -04:00
Mayukha Vadari
4d4a1cfe82
Merge branch 'develop' into ripple/smart-escrow
2025-09-09 16:19:27 -04:00
Mayukha Vadari
f2c7da3705
Merge branch 'develop' into ripple/smart-escrow
2025-09-09 14:51:25 -04:00
Mayukha Vadari
3ab0a82cd3
Merge branch 'develop' into ripple/smart-escrow
2025-09-08 15:20:01 -04:00
Mayukha Vadari
a46d772147
fix build and tests ( #5768 )
...
* fix conan.lock
* add conan.lock to triggers
* update on-trigger.yml too
* fix tests
* roll back unrelated changes
2025-09-04 17:05:39 -04:00
Mayukha Vadari
f3c50318e8
Merge branch 'develop' into ripple/smart-escrow
2025-09-04 13:42:59 -04:00
Mayukha Vadari
e7aa924c0e
Merge branch 'develop' into ripple/smart-escrow
2025-09-03 15:54:57 -04:00
Mayukha Vadari
5266f04970
chore: rollback unrelated changes ( #5737 )
2025-09-02 18:26:01 -04:00
Mayukha Vadari
db957cf191
Merge branch 'develop' into ripple/smart-escrow
2025-08-29 16:54:17 -04:00
Mayukha Vadari
8ac514363d
get new fees and reserves working ( #5714 )
2025-08-29 10:58:52 -04:00
Mayukha Vadari
c2ea68cca4
Merge branch 'develop' into ripple/smart-escrow
2025-08-28 14:02:10 -04:00
Mayukha Vadari
3d86881ce7
Merge branch 'develop' into ripple/smart-escrow
2025-08-27 13:58:38 -04:00
Mayukha Vadari
697d1470f4
change: adjust the function signatures for get_ledger_sqn and get_parent_ledger_time ( #5733 )
2025-08-27 13:58:27 -04:00
Mayukha Vadari
0b5f8f4051
Merge remote-tracking branch 'upstream/develop' into ripple/smart-escrow
2025-08-26 17:59:43 -04:00
Mayukha Vadari
0fed78fbcc
Merge branch 'develop' into ripple/smart-escrow
2025-08-26 15:04:33 -04:00
Mayukha Vadari
8c38ef726b
chore: exclude a bunch of code that doesn't need to be tested from codecov ( #5721 )
...
* exclude the bulk of HostFunc.h from codecov
* fix codecov (maybe)
* adjust
* more codecov excl
2025-08-26 15:04:27 -04:00
Mayukha Vadari
2399d90334
Merge branch 'develop' into ripple/smart-escrow
2025-08-25 10:42:48 -04:00
Mayukha Vadari
6367d68d1e
Merge branch 'develop' into ripple/smart-escrow
2025-08-22 14:02:12 -04:00
Mayukha Vadari
155a84c8a3
Merge branch 'develop' into ripple/smart-escrow
2025-08-22 13:24:43 -04:00
Mayukha Vadari
10558c9eff
Merge remote-tracking branch 'upstream/develop' into develop5.5
2025-08-22 10:38:10 -04:00
Mayukha Vadari
dd30d811e6
feat: last set of host functions ( #5674 )
2025-08-15 16:51:30 -04:00
Mayukha Vadari
293d8e4ddb
test: store Rust source code in rippled, instead of just opaque hex strings ( #5653 )
2025-08-15 15:32:36 -04:00
Mayukha Vadari
77875c9133
fix: actually return int instead of bool ( #5651 )
2025-08-15 13:58:38 -04:00
Olek
647b47567e
Fix float point binary format ( #5688 )
2025-08-15 09:51:40 -04:00
Olek
b0a1ad3b06
Disable float point instructions ( #5679 )
2025-08-14 14:59:55 -04:00
Mayukha Vadari
1d141bf2e8
chore: move WASM files to separate folder ( #5666 )
2025-08-14 11:46:10 -04:00
Olek
0d0e279ae2
Float point Hostfunctions unit tests ( #5656 )
...
* Added direct unittests for float hostfunctions
2025-08-14 10:21:21 -04:00
Mayukha Vadari
5dc0cee28a
cache data instead of setting it in updateData ( #5642 )
...
Co-authored-by: Oleksandr <115580134+oleks-rip@users.noreply.github.com >
2025-08-11 15:52:21 -04:00
Mayukha Vadari
c15947da56
fix CI
2025-08-06 12:41:12 -04:00
Mayukha Vadari
9bc04244e7
Merge remote-tracking branch 'upstream/ripple/smart-escrow' into develop5
2025-08-06 12:36:25 -04:00
Mayukha Vadari
38c7a27010
clean up WASM functions a bit ( #5628 )
2025-08-05 18:06:34 -04:00
Mayukha Vadari
58741d2791
feat: return an int instead of boolean from finish, display in metadata ( #5641 )
...
* create STInt32 and STInt64, use it for sfWasmReturnCode in metadata
* get it actually working
* add tests
* update comment
* change type
* respond to comments
2025-08-04 09:25:47 -04:00
Mayukha Vadari
8426470506
feat: add other misc host functions ( #5574 )
2025-07-31 18:39:21 -04:00
Olek
ccc3280b1a
Update wamr to 2.4.1 ( #5640 )
2025-07-31 13:42:53 -04:00
Mayukha Vadari
2847075705
fix: ensure GasUsed shows up in the metadata even on tecWASM_REJECTED ( #5633 )
...
* always set gas used
* fix
* add tests
* clean up
2025-07-31 10:57:56 -04:00
Olek
3108ca0549
Float point HF ( #5611 )
...
- added support for 8-byte float point
2025-07-30 14:38:03 +00:00
Mayukha Vadari
3b849ff497
Add unit tests for host functions ( #5578 )
2025-07-29 17:54:48 -04:00
Mayukha Vadari
66776b6a85
test: codecov for WasmHostFuncWrapper.cpp ( #5601 )
2025-07-29 16:06:21 -04:00
Mayukha Vadari
c8c241b50d
Merge remote-tracking branch 'upstream/develop' into develop4.6
2025-07-29 11:34:44 -04:00
Bronek Kozicki
44cb588371
Build options cleanup ( #5581 )
...
As we no longer support old compiler versions, we are bringing back some warnings by removing no longer relevant `-Wno-...` options.
2025-07-28 13:02:41 -04:00
Oleksandr
6f91b8f8d1
Fix windows
2025-07-28 12:29:39 -04:00
Mayukha Vadari
3d93379132
add header
2025-07-25 15:10:47 -04:00
Mayukha Vadari
84fd7d0126
Merge remote-tracking branch 'upstream/develop' into develop4.6
2025-07-25 14:56:36 -04:00
Mayukha Vadari
7f52287aae
rename variables ( #5609 )
...
* rename variables
* instanceWrapper -> runtime
* size -> srcSize
* begin -> ptr
2025-07-25 11:54:31 -04:00
Mayukha Vadari
98b8986868
fix merge issues (mostly with Conan2 upgrade)
2025-07-23 15:52:03 -04:00
Mayukha Vadari
250f2842ee
Merge remote-tracking branch 'upstream/develop' into develop4.5
2025-07-23 13:43:47 -04:00
Olek
9eca1a3a0c
MPT and IOU support for amount and issue ( #5573 )
...
* MPT and IOU support for ammount and issue
* Fix tests
Update wasm code to the latest version
Remove deprecated tests
Remove deprecated wasm
2025-07-22 17:43:21 +00:00
Mayukha Vadari
24b7a03224
feat: add more keylet host functions ( #5522 )
2025-07-17 12:37:41 -04:00
Mayukha Vadari
9007097d24
Simplify host function boilerplate ( #5534 )
...
* enum for HF errors
* switch getData functions to be templates
* getData<SField> working
* Slice -> Bytes in host functions
* RET -> helper function instead of macro
* get template function working
* more organization/cleanup
* fix failures
* more cleanup
* Bytes -> Slice
* SFieldParam macro -> type alias
* fix return type
* fix bugs
* replace std::make_index_sequence
* remove `failed` from output
* remove complex function
* more uniformity
* respond to comments
* enum class HostFunctionError
* rename variable
* respond to comments
* remove templating
* [WIP] basic getData tests
* weird linker error
* fix issue
2025-07-15 04:28:59 +05:30
Olek
bc445ec6a2
Add hostfunctions schedule table
...
Remove opcode schedule table from wamr
2025-07-11 18:08:36 -04:00
Mayukha Vadari
4fa0ae521e
disallow a computation allowance of 0 ( #5541 )
2025-07-09 00:34:17 +05:30
Olek
7bdf5fa8b8
Fix build.md wamr version ( #5535 )
2025-07-04 00:48:03 +05:30
Olek
65b0b976d9
Sync error codes ( #5527 )
...
* Sync error codes
2025-07-02 17:33:39 -04:00
Elliot.
a0d275feec
chore: Clear CODEOWNERS ( #5528 )
2025-07-02 10:39:57 -07:00
Mayukha Vadari
ece3a8d7be
Merge branch 'develop' into develop4
2025-06-30 21:33:30 +05:30
Olek
463acf51b5
preflight checks for wasm ( #5517 )
2025-06-30 09:34:38 -04:00
Olek
1cd16fab87
Host-functions perf test fixes ( #5514 )
2025-06-27 09:59:28 -04:00
Olek
add55c4f33
Host functions gas cost for wasm_runtime interface ( #5500 )
2025-06-25 14:04:04 +00:00
Olek
51a9c0ff59
Host function gas cost ( #5488 )
...
* Update Wamr to 2.3.1
* Add gas cost per host-function
* Fix windows build
* Fix wasm test
* Add no import test
2025-06-12 15:54:49 -04:00
Mayukha Vadari
6e8a5f0f4e
fix: make host function traces easier to use, fix get_NFT bug ( #5466 )
...
Co-authored-by: Olek <115580134+oleks-rip@users.noreply.github.com >
2025-06-05 14:24:13 -04:00
Mayukha Vadari
8a33702f26
fix merge issues
2025-06-05 12:38:26 -04:00
Mayukha Vadari
a072d49802
Merge remote-tracking branch 'upstream/ripple/smart-escrow' into develop3.5
2025-06-05 11:51:53 -04:00
Mayukha Vadari
a0aeeb8e07
Merge remote-tracking branch 'upstream/develop' into develop3.5
2025-06-05 11:50:38 -04:00
Olek
383b225690
Fix processing nonexistent field ( #5467 )
2025-06-04 17:32:11 -04:00
Mayukha Vadari
ace2247800
Merge remote-tracking branch 'upstream/ripple/smart-escrow' into develop3.5
2025-06-04 14:15:17 -04:00
Olek
6a6fed5dce
More hostfunctions ( #5451 )
...
* Bug fixes:
- Fix bugs found during schedule table tests
- Add more tests
- Add parameters passing for runEscrowWasm function
* Add new host-functions
fix wamr logging
add runtime passing through HF
fix runEscrowWasm interface
* Improve logs
* Fix logging bug
* Set 4k limit for update_data HF
* allHF wasm module fixes
2025-05-30 19:01:27 -04:00
Mayukha Vadari
1f8aece8cd
feat: add a GasUsed parameter to the metadata ( #5456 )
2025-05-29 16:36:55 -04:00
Mayukha Vadari
6c6f8cd4f9
Merge remote-tracking branch 'upstream/develop' into develop3
2025-05-29 13:05:11 -04:00
Mayukha Vadari
fb1311e013
uncomment????
2025-05-28 14:00:50 -04:00
Mayukha Vadari
ce31acf030
debug comments
2025-05-28 13:48:38 -04:00
Mayukha Vadari
31ad5ac63b
Merge remote-tracking branch 'upstream/ripple/smart-escrow' into develop3
2025-05-27 18:29:41 -04:00
Mayukha Vadari
1ede0bdec4
fix: fix fixtures ( #5445 )
2025-05-23 17:37:14 -04:00
Mayukha Vadari
aef32ead2c
better WASM logging to match rippled ( #5395 )
...
* basic logging
* pass in Journal
* log level based on journal level
* clean up
* attempt at adding WAMR logging properly
* improve logline
* maybe_unused
* fix
* fix
* fix segfault
* add test
2025-05-23 10:31:02 -04:00
Mayukha Vadari
5b43ec7f73
refactor: switch function name from ready to finish ( #5430 )
2025-05-20 16:12:19 -04:00
Olek
1e9ff88a00
Fix CI build issues
...
* Mac build fix
* Windows build fix
* Windows instruction counter fix
2025-05-08 12:39:37 -04:00
Mayukha Vadari
bb9bb5f5c5
Merge branch 'ripple/smart-escrow' into develop2
2025-05-01 18:44:06 -04:00
Mayukha Vadari
c533abd8b6
Update size and compute cap defaults ( #5417 )
2025-05-01 18:41:51 -04:00
Olek
bb9bc764bc
Switch to WAMR ( #5416 )
...
* Switch to WAMR
2025-05-01 18:02:06 -04:00
Mayukha Vadari
b4b53a6cb7
Merge branch 'ripple/smart-escrow' into develop2
2025-04-29 15:25:54 -04:00
Mayukha Vadari
9c0204906c
fix reference fee tests
2025-04-29 15:25:00 -04:00
Mayukha Vadari
4670b373c1
try to fix tests
2025-04-29 14:10:27 -04:00
Mayukha Vadari
f03b5883bd
More host functions ( #5411 )
...
* getNFT
* escrow keylet
* account keylet
* credential keylet
* oracle keylet
* hook everything in
* fix stuff
2025-04-29 12:39:12 -04:00
Mayukha Vadari
f8b2fe4dd5
fix imports
2025-04-28 17:43:15 -04:00
Mayukha Vadari
be4a0c9c2b
Merge remote-tracking branch 'upstream/ripple/smart-escrow' into develop2
2025-04-28 17:14:28 -04:00
Mayukha Vadari
f37d52d8e9
Set up fees for WASM processing ( #5393 )
...
* set up fields
* throw error if allowance is too high
* votable gas price
* fix comments
* hook everything together
* make test less flaky (hopefully)
* fix other tests
* fix some tests
* fix tests
* clean up
* add more tests
* uncomment other tests
* respond to comments
* fix build
* respond to comments
2025-04-24 08:47:13 -04:00
Mayukha Vadari
177cdaf550
Connect votable gas limit into VM ( #5360 )
...
* [WIP] add gas limit
* [WIP] host function escrow tests
* finish test
* uncomment out tests
2025-03-25 10:55:33 -04:00
pwang200
1573a443b7
smart escrow devnet 1 host functions ( #5353 )
...
* devnet 1 host functions
* clang-format
* fix build issues
2025-03-24 17:07:17 -04:00
Mayukha Vadari
911c0466c0
Merge develop into ripple/smart-escrow ( #5357 )
...
* Set version to 2.4.0
* refactor: Remove unused and add missing includes (#5293 )
The codebase is filled with includes that are unused, and which thus can be removed. At the same time, the files often do not include all headers that contain the definitions used in those files. This change uses clang-format and clang-tidy to clean up the includes, with minor manual intervention to ensure the code compiles on all platforms.
* refactor: Calculate numFeatures automatically (#5324 )
Requiring manual updates of numFeatures is an annoying manual process that is easily forgotten, and leads to frequent merge conflicts. This change takes advantage of the `XRPL_FEATURE` and `XRPL_FIX` macros, and adds a new `XRPL_RETIRE` macro to automatically set `numFeatures`.
* refactor: Improve ordering of headers with clang-format (#5343 )
Removes all manual header groupings from source and header files by leveraging clang-format options.
* Rename "deadlock" to "stall" in `LoadManager` (#5341 )
What the LoadManager class does is stall detection, which is not the same as deadlock detection. In the condition of severe CPU starvation, LoadManager will currently intentionally crash rippled reporting `LogicError: Deadlock detected`. This error message is misleading as the condition being detected is not a deadlock. This change fixes and refactors the code in response.
* Adds hub.xrpl-commons.org as a new Bootstrap Cluster (#5263 )
* fix: Error message for ledger_entry rpc (#5344 )
Changes the error to `malformedAddress` for `permissioned_domain` in the `ledger_entry` rpc, when the account is not a string. This change makes it more clear to a user what is wrong with their request.
* fix: Handle invalid marker parameter in grpc call (#5317 )
The `end_marker` is used to limit the range of ledger entries to fetch. If `end_marker` is less than `marker`, a crash can occur. This change adds an additional check.
* fix: trust line RPC no ripple flag (#5345 )
The Trustline RPC `no_ripple` flag gets set depending on `lsfDefaultRipple` flag, which is not a flag of a trustline but of the account root. The `lsfDefaultRipple` flag does not provide any insight if this particular trust line has `lsfLowNoRipple` or `lsfHighNoRipple` flag set, so it should not be used here at all. This change simplifies the logic.
* refactor: Updates Conan dependencies: RocksDB (#5335 )
Updates RocksDB to version 9.7.3, the latest version supported in Conan 1.x. A patch for 9.7.4 that fixes a memory leak is included.
* fix: Remove null pointer deref, just do abort (#5338 )
This change removes the existing undefined behavior from `LogicError`, so we can be certain that there will be always a stacktrace.
De-referencing a null pointer is an old trick to generate `SIGSEGV`, which would typically also create a stacktrace. However it is also an undefined behaviour and compilers can do something else. A more robust way to create a stacktrace while crashing the program is to use `std::abort`, which we have also used in this location for a long time. If we combine the two, we might not get the expected behaviour - namely, the nullpointer deref followed by `std::abort`, as handled in certain compiler versions may not immediately cause a crash. We have observed stacktrace being wiped instead, and thread put in indeterminate state, then stacktrace created without any useful information.
* chore: Add PR number to payload (#5310 )
This PR adds one more payload field to the libXRPL compatibility check workflow - the PR number itself.
* chore: Update link to ripple-binary-codec (#5355 )
The link to ripple-binary-codec's definitions.json appears to be outdated. The updated link is also documented here: https://xrpl.org/docs/references/protocol/binary-format#definitions-file
* Prevent consensus from getting stuck in the establish phase (#5277 )
- Detects if the consensus process is "stalled". If it is, then we can declare a
consensus and end successfully even if we do not have 80% agreement on
our proposal.
- "Stalled" is defined as:
- We have a close time consensus
- Each disputed transaction is individually stalled:
- It has been in the final "stuck" 95% requirement for at least 2
(avMIN_ROUNDS) "inner rounds" of phaseEstablish,
- and either all of the other trusted proposers or this validator, if proposing,
have had the same vote(s) for at least 4 (avSTALLED_ROUNDS) "inner
rounds", and at least 80% of the validators (including this one, if
appropriate) agree about the vote (whether yes or no).
- If we have been in the establish phase for more than 10x the previous
consensus establish phase's time, then consensus is considered "expired",
and we will leave the round, which sends a partial validation (indicating
that the node is moving on without validating). Two restrictions avoid
prematurely exiting, or having an extended exit in extreme situations.
- The 10x time is clamped to be within a range of 15s
(ledgerMAX_CONSENSUS) to 120s (ledgerABANDON_CONSENSUS).
- If consensus has not had an opportunity to walk through all avalanche
states (defined as not going through 8 "inner rounds" of phaseEstablish),
then ConsensusState::Expired is treated as ConsensusState::No.
- When enough nodes leave the round, any remaining nodes will see they've
fallen behind, and move on, too, generally before hitting the timeout. Any
validations or partial validations sent during this time will help the
consensus process bring the nodes back together.
---------
Co-authored-by: Michael Legleux <mlegleux@ripple.com >
Co-authored-by: Bart <bthomee@users.noreply.github.com >
Co-authored-by: Ed Hennis <ed@ripple.com >
Co-authored-by: Bronek Kozicki <brok@incorrekt.com >
Co-authored-by: Darius Tumas <Tokeiito@users.noreply.github.com >
Co-authored-by: Sergey Kuznetsov <skuznetsov@ripple.com >
Co-authored-by: cyan317 <120398799+cindyyan317@users.noreply.github.com >
Co-authored-by: Vlad <129996061+vvysokikh1@users.noreply.github.com >
Co-authored-by: Alex Kremer <akremer@ripple.com >
2025-03-20 16:47:14 -04:00
Mayukha Vadari
b6a95f9970
PoC Smart Escrows ( #5340 )
...
* wasmedge in unittest
* add WashVM.h and cpp
* accountID comparison (vector<u8>) working
* json decode tx and ledger object with two buffers working
* wasm return a buffer working
* add a failure test case to P2P3
* host function return ledger sqn
* instruction gas and host function gas
* basics
* add scaffold
* add amendment check
* working PoC
* get test working
* fix clang-format
* prototype #2
* p2p3
* [WIP] P4
* P5
* add calculateBaseFee
* add FinishFunction preflight checks (+ tests)
* additional reserve for sfFinishFunction
* higher fees for EscrowFinish
* rename amendment to SmartEscrow
* make fee voting changes, add basic tests
* clean up
* clean up
* clean up
* more cleanup
* add subscribe tests
* add more tests
* undo formatting
* undo formatting
* remove bad comment
* more debugging statements
* fix clang-format
* fix rebase issues
* fix more rebase issues
* more rebase fixes
* add source code for wasm
* respond to comments
* add const
---------
Co-authored-by: Peng Wang <pwang200@gmail.com >
2025-03-20 14:08:06 -04:00