Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
413 commits
Select commit Hold shift + click to select a range
43caa1e
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
mvadari Oct 20, 2025
3a0e9aa
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 20, 2025
9cfb7ac
fix build issue
mvadari Oct 20, 2025
c9346cd
Merge branch 'develop' into ripple/wamr
mvadari Oct 23, 2025
286dc63
Merge branch 'ripple/wamr' into ripple/wamr-host-functions
mvadari Oct 23, 2025
ce19c13
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
mvadari Oct 23, 2025
7d22fe8
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 23, 2025
af6beb1
fix ledger used for rules
mvadari Oct 23, 2025
566b85b
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 23, 2025
101f285
return size from updateData
mvadari Oct 24, 2025
209ee25
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
mvadari Oct 24, 2025
b6bd268
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 24, 2025
29f5430
fix bug
mvadari Oct 24, 2025
67e2c1b
Merge branch 'wamr-host-functions' into ripple/se/fees
mvadari Oct 24, 2025
079e251
fix bug
mvadari Oct 24, 2025
fc6ff69
fix tests
mvadari Oct 24, 2025
22ca691
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 24, 2025
0c65a38
fix tests
mvadari Oct 24, 2025
aebec53
Merge branch 'wamr-host-functions' into ripple/se/fees
mvadari Oct 24, 2025
7e2e10f
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Oct 24, 2025
d66e3c9
Chores: Sort package list (#5963)
oleks-rip Oct 29, 2025
d0cc48c
Update cmake/RippledCore.cmake
mvadari Oct 29, 2025
0690fda
Merge branch 'develop' into ripple/wamr
mathbunnyru Oct 30, 2025
4021a7e
Wamr and HF security review fixes (#5965)
oleks-rip Oct 31, 2025
3ffdcf8
allow 0-value trace amounts
mvadari Nov 4, 2025
106dea4
update fixtures to use the latest version of stdlib
mvadari Nov 4, 2025
334bcfa
Merge branch 'develop' into wamr
mvadari Nov 4, 2025
0bc1a11
Merge branch 'wamr' into wamr-host-functions
mvadari Nov 4, 2025
eed280d
Merge branch 'wamr-host-functions' into ripple/se/fees
mvadari Nov 4, 2025
a891b49
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Nov 4, 2025
7bf6878
fix imports
mvadari Nov 4, 2025
3195eb1
Merge branch 'wamr-host-functions' into ripple/se/fees
mvadari Nov 4, 2025
fa8aa49
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Nov 4, 2025
427b7ea
run rename script
mvadari Nov 4, 2025
0db564d
WASMI data
mvadari Nov 4, 2025
5784138
Merge branch 'ripple/wamr-host-functions' into ripple/se/fees
mvadari Nov 4, 2025
58e5b4a
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Nov 4, 2025
def7758
remove copyright stuff
mvadari Nov 4, 2025
35f7cbf
update
mvadari Nov 24, 2025
ce9f0b3
Merge branch 'develop' into ripple/wasmi
mvadari Nov 24, 2025
25c3060
remove conan.lock (temporary)
mvadari Nov 24, 2025
ef5d335
update
mvadari Nov 24, 2025
56bc6d5
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Nov 24, 2025
16087c9
fix merge issue
mvadari Nov 24, 2025
c33b0ae
fix build issue
mvadari Nov 24, 2025
41205ae
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Nov 24, 2025
53eb0f6
fix another build issue
mvadari Nov 24, 2025
95d78a8
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Nov 24, 2025
500bb68
Fix win build (#6076)
oleks-rip Nov 24, 2025
49acc61
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Nov 24, 2025
8f2f8d5
update gas amounts for wasmi
mvadari Nov 24, 2025
7a7b961
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Nov 24, 2025
dba187f
fix build issues
mvadari Nov 24, 2025
e40a4df
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Nov 24, 2025
abfcc4e
fix tests
mvadari Nov 24, 2025
50e5608
wasmi HF cost
oleks-rip Dec 2, 2025
c145598
add memory limit and disable float and other advanced instructions
pwang200 Dec 2, 2025
27ac302
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Dec 2, 2025
5a17940
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Dec 2, 2025
c5d178f
HF cost for smart escrow (#6097)
oleks-rip Dec 2, 2025
6d26408
Merge branch 'develop' into ripple/wasmi
mvadari Dec 2, 2025
1e07416
Fix sign cost (#6103)
oleks-rip Dec 3, 2025
8a403f1
Merge branch 'develop' into ripple/wasmi
mvadari Dec 5, 2025
b57df29
Use conan repo for wasmi lib (#6109)
oleks-rip Dec 8, 2025
90e0bbd
Merge branch 'develop' into ripple/wasmi
mvadari Dec 8, 2025
881087d
Merge remote-tracking branch 'upstream/ripple/wasmi' into wasmi-host-…
mvadari Dec 8, 2025
6a54ed7
fix fee overflow issue in `EscrowFinish` (#6130)
mvadari Dec 12, 2025
827ecc6
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Dec 15, 2025
e916416
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Dec 15, 2025
b9eb66e
fix parameter index desynchronization (#6148)
mvadari Dec 17, 2025
69ab39d
Fix potential memory leaks found by srlabs (#6145)
oleks-rip Dec 18, 2025
6c95548
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
mvadari Dec 22, 2025
9d1f51b
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Dec 23, 2025
e05f907
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Dec 23, 2025
6ffbef0
fix gas in test
mvadari Dec 23, 2025
1977df9
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
mvadari Jan 5, 2026
1a1a680
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Jan 5, 2026
1d89940
merge fixes
mvadari Jan 5, 2026
36ecd3b
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' i…
mvadari Jan 5, 2026
0e9c745
fix more merge issues
mvadari Jan 5, 2026
b66bc47
fix more merge issues
mvadari Jan 6, 2026
8bb8c2e
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' i…
mvadari Jan 6, 2026
a98269f
a batch of memory, table, and trap tests (#6100)
pwang200 Jan 6, 2026
397bc87
fix more merge issues
mvadari Jan 6, 2026
7ee964f
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Jan 6, 2026
61b2fe4
fix test
mvadari Jan 6, 2026
f57f67a
infinite loop test (#6064)
mvadari Jan 7, 2026
8ea5106
Merge branch 'develop' into ripple/wasmi
mvadari Jan 7, 2026
2c30e41
use the develop hashes
mvadari Jan 7, 2026
5aab274
Merge branch 'develop' into ripple/wasmi
mvadari Jan 7, 2026
843e981
Merge remote-tracking branch 'upstream/ripple/wasmi' into wasmi-host-…
mvadari Jan 7, 2026
bbc28b3
Merge branch 'develop' into ripple/wasmi
mvadari Jan 8, 2026
e94321f
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Jan 8, 2026
1033798
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Jan 8, 2026
8015088
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Jan 8, 2026
d5c53dc
fix Uninitialized import entries lead to undefined behavior During WA…
pwang200 Jan 8, 2026
9ed60b4
section corruption unit tests
pwang200 Jan 8, 2026
91f3d51
fix start function loop
pwang200 Jan 9, 2026
6ab15f8
Add checks to allocate (#6185)
oleks-rip Jan 9, 2026
d4d70d5
Merge branch 'develop' into ripple/wasmi
mvadari Jan 12, 2026
419d53e
Merge branch 'develop' into ripple/wasmi
mvadari Jan 12, 2026
375dd50
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Jan 12, 2026
f0d0739
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Jan 12, 2026
d83ec96
Switch to wasmi v1.0.6 (#6204)
oleks-rip Jan 12, 2026
ff39fa5
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Jan 12, 2026
0724927
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Jan 12, 2026
1c812a6
disable Wasm features added in Wasmi 1.0, and fix unit test fuel cost…
pwang200 Jan 13, 2026
e151357
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Jan 13, 2026
845c503
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Jan 13, 2026
81cbc91
Fix traces (#6127)
oleks-rip Jan 13, 2026
c626b64
Fix unaligned access (#6208)
oleks-rip Jan 13, 2026
fb97f7b
fix unit tests failed due to fuel changes (#6174)
pwang200 Jan 13, 2026
409c674
move helper functions to separate file (#6178)
mvadari Jan 14, 2026
1809fe0
remove test file
mvadari Jan 14, 2026
7a9d245
Merge branch 'develop' into ripple/wasmi
mvadari Jan 14, 2026
074b1f0
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Jan 14, 2026
c5e50aa
Fix merge issues
oleks-rip Jan 14, 2026
fc35a9f
Fix usage of the Number class
oleks-rip Jan 15, 2026
384b360
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Jan 15, 2026
9538e9b
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Jan 15, 2026
209a1a6
Don't throw from hostfunctions stack (#6221)
oleks-rip Jan 16, 2026
9a9a7aa
Add `Vector256` support to the locator (#6131)
mvadari Jan 16, 2026
ce84cc8
improve trace hf code (#6190)
mvadari Jan 16, 2026
42494dd
Ensure lifetime of imports (#6230)
oleks-rip Jan 21, 2026
ed5139d
Merge branch 'develop' into ripple/wasmi
mvadari Jan 21, 2026
8c3544a
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Jan 21, 2026
43c80ed
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Jan 21, 2026
b5d0078
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Jan 21, 2026
94b35a2
Make hostfunctions object shared (#6252)
oleks-rip Jan 21, 2026
fd1cb31
Check that max parameters length is multiple of sizeof(int32) (#6253)
oleks-rip Jan 21, 2026
f4a27c9
minor refactor of Wasm_test (#6229)
mvadari Jan 21, 2026
ba5debf
update return calculation (#6250)
mvadari Jan 22, 2026
8bc6f9c
Merge branch 'develop' into ripple/wasmi
mvadari Jan 23, 2026
673476e
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Jan 23, 2026
57d2a91
test large WASM modules (#6206)
mvadari Jan 23, 2026
981ac7a
simplify fee code (#6249)
mvadari Jan 23, 2026
df98db1
Check wasm return type (#6240)
oleks-rip Jan 23, 2026
4621e4e
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Jan 26, 2026
4306966
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Jan 26, 2026
4160677
Switch to series expansion method for ln() (#6268)
oleks-rip Jan 26, 2026
317e533
clean up Wasm_test.cpp more (#6278)
mvadari Jan 26, 2026
917c610
Ensure request size less than int limit (#6239)
oleks-rip Jan 27, 2026
f1f2e26
Fix for Big-Endian machines (#6245)
oleks-rip Jan 27, 2026
d7ed6d6
Merge branch 'develop' into ripple/wasmi
mvadari Jan 27, 2026
977caea
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Jan 27, 2026
c1c1b4e
Reject non-canonical binaries (#6277)
oleks-rip Jan 27, 2026
122d405
Merge commit '92046785d1fea5f9efe5a770d636792ea6cab78b' into ripple/w…
mvadari Jan 28, 2026
f7ee580
Merge commit '5f638f55536def0d88b970d1018a465a238e55f4' into ripple/w…
mvadari Jan 28, 2026
72fffb6
Merge branch 'develop' into ripple/wasmi
mvadari Jan 28, 2026
4eb34f3
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Jan 28, 2026
803a344
fix clang-format
mvadari Jan 28, 2026
c077e7f
Merge commit '4eb34f3' into ripple/se/fees
mvadari Jan 28, 2026
6ae0e86
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' i…
mvadari Jan 28, 2026
69c61b2
fix merge issues
mvadari Jan 28, 2026
ac173b6
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Jan 28, 2026
e85e7b1
Merge branch 'develop' into ripple/wasmi
mvadari Jan 29, 2026
8f97ec3
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Jan 29, 2026
b262703
Merge branch 'develop' into ripple/wasmi
mvadari Feb 3, 2026
0418ffb
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Feb 3, 2026
f625fb9
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Feb 3, 2026
a184408
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Feb 3, 2026
7c8279e
use buffers for uint32 WASM params (#6291)
mvadari Feb 3, 2026
ba03a8a
Fix negation of int64_t (#6296)
oleks-rip Feb 3, 2026
13707dd
Merge remote-tracking branch 'upstream/ripple/wasmi-host-functions' i…
mvadari Feb 4, 2026
f01ac56
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Feb 4, 2026
2ec4a11
Merge branch 'develop' into ripple/wasmi
mvadari Feb 4, 2026
de55a5e
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Feb 4, 2026
cd46b5d
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Feb 4, 2026
719ba39
Merge branch 'ripple/smart-escrow' into ripple/se/fees
mvadari Feb 4, 2026
a9a94fb
fix tests
mvadari Feb 5, 2026
d451014
fix build issue
mvadari Feb 5, 2026
e6ee492
try again
mvadari Feb 5, 2026
4318b2e
fix build issue
mvadari Feb 6, 2026
65f9cf8
add readme to src/xrpld/app/wasm (#6340)
mvadari Feb 9, 2026
fd14054
update preflight checks (#6094)
mvadari Feb 9, 2026
bd16f79
Merge branch 'develop' into ripple/wasmi
mvadari Feb 10, 2026
c1381f8
Merge branch 'ripple/wasmi' into wasmi-host-functions
mvadari Feb 10, 2026
7767366
fix cspell issues in tests (#6348)
mvadari Feb 10, 2026
eb2d44d
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Feb 10, 2026
446ad36
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Feb 10, 2026
6728ab5
Add tests for wasm functions with many parameters (#6343)
oleks-rip Feb 10, 2026
4fe508c
fix comments
mvadari Feb 12, 2026
f73d8a6
clean up some hf code (#6354)
mvadari Feb 13, 2026
9c3c028
Merge branch 'develop' into ripple/wasmi
mvadari Feb 18, 2026
495dda7
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Feb 18, 2026
fd524c4
fix pre-commit
mvadari Feb 18, 2026
1b4a564
fix build issues
mvadari Feb 18, 2026
5148098
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Feb 18, 2026
0392846
UT for wasm parameters (#6413)
oleks-rip Feb 25, 2026
1d9ec84
Test invalid opcodes (#6392)
oleks-rip Feb 26, 2026
953b9a3
Disable reusing wasm module (#6364)
oleks-rip Feb 26, 2026
77dfd56
Merge branch 'develop' into ripple/wasmi
mvadari Feb 27, 2026
dc413ae
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Feb 27, 2026
b08bcf5
Merge branch 'develop' into ripple/wasmi
mvadari Feb 27, 2026
125df7a
Merge remote-tracking branch 'upstream/ripple/wasmi' into wasmi-host-…
mvadari Feb 27, 2026
00eeab6
Merge branch 'wasmi-host-functions' into ripple/se/fees
mvadari Feb 27, 2026
50a74b8
add defensive check for sfData length (#6449)
mvadari Mar 2, 2026
4df7d1a
rename variable
mvadari Mar 2, 2026
a3f71b1
Merge branch 'develop' into ripple/wasmi
mvadari Mar 2, 2026
61bcb76
Merge branch 'develop' into ripple/wasmi
mvadari Mar 3, 2026
1775251
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Mar 3, 2026
7004d21
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Mar 3, 2026
bc5ec3c
assorted fixes (#6376)
mvadari Mar 4, 2026
5afe8cc
Fix clang tidy (#6463)
oleks-rip Mar 4, 2026
a9ebf78
Modularise wasm (#6441)
a1q123456 Mar 4, 2026
3a825a4
Merge branch 'develop' into ripple/wasmi
mvadari Mar 5, 2026
9c25d18
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Mar 5, 2026
864d88a
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Mar 5, 2026
a76bd83
Merge remote-tracking branch 'upstream/ripple/se/fees' into ripple/sm…
mvadari Mar 5, 2026
fdfdf4f
fix pre-commit
mvadari Mar 5, 2026
654338f
Merge branch 'develop' into ripple/wasmi
mvadari Mar 6, 2026
780380d
Modularization fixes (#6488)
oleks-rip Mar 10, 2026
bce5d91
Merge branch 'develop' into ripple/wasmi
mvadari Mar 12, 2026
27468dd
Add import / export sections test (#6497)
oleks-rip Mar 19, 2026
196e6a1
Clang-format fixtures.cpp (#6610)
oleks-rip Mar 20, 2026
913e4b9
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
mvadari Mar 24, 2026
b6514b6
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Mar 24, 2026
51458a9
Merge branch 'ripple/wasmi-host-functions' into ripple/se/fees
mvadari Mar 24, 2026
f8a149c
Merge branch 'ripple/se/fees' into ripple/smart-escrow
mvadari Mar 24, 2026
888ca2e
fix build
mvadari Mar 24, 2026
90397e1
more build fixes
mvadari Mar 24, 2026
531e8b6
fix clang-tidy
mvadari Mar 24, 2026
9dbb301
more clang-tidy fixes
mvadari Mar 24, 2026
2930ef2
Merge remote-tracking branch 'upstream/develop' into ripple/wasmi
mvadari Mar 24, 2026
e0073a4
Merge branch 'ripple/wasmi' into ripple/wasmi-host-functions
mvadari Mar 24, 2026
a7ab8ee
clang-tidy fixes
mvadari Mar 24, 2026
d006433
Base divison of large fixtures (#6637)
oleks-rip Mar 25, 2026
4b34102
test: Use proper length limits in codecov_tests (#6626)
mvadari Mar 25, 2026
1d4a3c0
Merge branch 'develop' of https://github.com/XRPLF/rippled into rippl…
mvadari Apr 2, 2026
9b013b5
Merge branch 'ripple/wasmi' of https://github.com/XRPLF/rippled into …
mvadari Apr 2, 2026
d606f88
Merge branch 'ripple/wasmi-host-functions' of https://github.com/XRPL…
mvadari Apr 2, 2026
0deb6bc
fix build
mvadari Apr 2, 2026
63d09f9
Merge branch 'ripple/wasmi-host-functions' of https://github.com/XRPL…
mvadari Apr 2, 2026
c5598a4
fix clang-tidy issues
mvadari Apr 2, 2026
82e7f7e
Merge branch 'ripple/wasmi-host-functions' of https://github.com/XRPL…
mvadari Apr 2, 2026
63bd5fc
fix clang-tidy issues
mvadari Apr 2, 2026
309fdfc
Merge branch 'ripple/se/fees' of https://github.com/XRPLF/rippled int…
mvadari Apr 2, 2026
0acfa1c
fix merge issues
mvadari Apr 2, 2026
65322d9
fix Clang-tidy
oleks-rip Apr 3, 2026
4fc1778
fix clang-tidy issues
mvadari Apr 3, 2026
1338062
Merge branch 'develop' of https://github.com/XRPLF/rippled into rippl…
mvadari Apr 3, 2026
7ef2564
Merge branch 'ripple/wasmi' of https://github.com/XRPLF/rippled into …
mvadari Apr 3, 2026
22054a5
Merge branch 'ripple/wasmi-host-functions' of https://github.com/XRPL…
mvadari Apr 3, 2026
6afa511
Merge branch 'ripple/se/fees' of https://github.com/XRPLF/rippled int…
mvadari Apr 3, 2026
fe2e5ce
fix clang-tidy issues
mvadari Apr 3, 2026
42cbecb
feature
dangell7 Dec 23, 2025
5351d4f
Fix STJson and multiple emitted transactions (#6724)
mvadari Apr 11, 2026
e6eb6cc
fix merge error
dangell7 Apr 11, 2026
d411448
remove unused fields
mvadari Apr 23, 2026
0d36ce2
Merge develop into feature-p256 (AI-resolved)
dangell8 May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Allow anyone to review any change by default.
*
1 change: 1 addition & 0 deletions .github/scripts/levelization/results/ordering.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ xrpl.core > xrpl.json
xrpl.core > xrpl.protocol
xrpl.json > xrpl.basics
xrpl.ledger > xrpl.basics
xrpl.ledger > xrpl.core
xrpl.ledger > xrpl.protocol
xrpl.ledger > xrpl.server
xrpl.ledger > xrpl.shamap
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ find_package(OpenSSL REQUIRED)
find_package(secp256k1 REQUIRED)
find_package(SOCI REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(wasmi REQUIRED)
find_package(xxHash REQUIRED)

target_link_libraries(
Expand Down
33 changes: 33 additions & 0 deletions cfg/xrpld-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,39 @@
# Example:
# owner_reserve = 200000 # 0.2 XRP
#
# extension_compute_limit = <gas>
#
# The extension compute limit is the maximum amount of gas that can be
# consumed by a single transaction. The gas limit is used to prevent
# transactions from consuming too many resources.
#
# If this parameter is unspecified, xrpld will use an internal
# default. Don't change this without understanding the consequences.
#
# Example:
# extension_compute_limit = 1000000 # 1 million gas
#
# extension_size_limit = <bytes>
#
# The extension size limit is the maximum size of a WASM extension in
# bytes. The size limit is used to prevent extensions from consuming
# too many resources.
#
# If this parameter is unspecified, xrpld will use an internal
# default. Don't change this without understanding the consequences.
#
# Example:
# extension_size_limit = 100000 # 100 kb
#
# gas_price = <bytes>
#
# The gas price is the conversion between WASM gas and its price in drops.
#
# If this parameter is unspecified, xrpld will use an internal
# default. Don't change this without understanding the consequences.
#
# Example:
# gas_price = 1000000 # 1 drop per gas
#-------------------------------------------------------------------------------
#
# 9. Misc Settings
Expand Down
1 change: 1 addition & 0 deletions cmake/XrplCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ target_link_libraries(
Xrpl::opts
Xrpl::syslibs
secp256k1::secp256k1
wasmi::wasmi
xrpl.libpb
xxHash::xxhash
$<$<BOOL:${voidstar}>:antithesis-sdk-cpp>
Expand Down
1 change: 1 addition & 0 deletions conan.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"requires": [
"zlib/1.3.2#1cb806da49011867778ffb6ac7190fcb%1777558780.503",
"xxhash/0.8.3#681d36a0a6111fc56e5e45ea182c19cc%1765850149.987",
"wasmi/1.0.6#407c9db14601a8af1c7dd3b388f3e4cd%1768164779.349",
"sqlite3/3.53.0#324ada52333108388a9a6108bfa96734%1776096494.149",
"soci/4.0.3#fe32b9ad5eb47e79ab9e45a68f363945%1774450067.231",
"snappy/1.1.10#968fef506ff261592ec30c574d4a7809%1765850147.878",
Expand Down
2 changes: 2 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Xrpl(ConanFile):
"openssl/3.6.2",
"secp256k1/0.7.1",
"soci/4.0.3",
"wasmi/1.0.6",
"zlib/1.3.2",
]

Expand Down Expand Up @@ -214,6 +215,7 @@ def package_info(self):
"soci::soci",
"secp256k1::secp256k1",
"sqlite3::sqlite",
"wasmi::wasmi",
"xxhash::xxhash",
"zlib::zlib",
]
Expand Down
5 changes: 5 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ignorePaths:
- cmake/**
- LICENSE.md
- .clang-tidy
- src/test/app/wasm_fixtures/**/*.wat
- src/test/app/wasm_fixtures/*.c
language: en
allowCompoundWords: true # TODO (#6334)
ignoreRandomStrings: true
Expand Down Expand Up @@ -65,6 +67,7 @@ words:
- Btrfs
- Buildx
- canonicality
- cdylib
- changespq
- checkme
- choco
Expand Down Expand Up @@ -103,6 +106,7 @@ words:
- distro
- doxyfile
- dxrpl
- emittance
- enabled
- enablerepo
- endmacro
Expand Down Expand Up @@ -266,6 +270,7 @@ words:
- statsd
- STATSDCOLLECTOR
- stissue
- stjson
- stnum
- stobj
- stobject
Expand Down
4 changes: 4 additions & 0 deletions include/xrpl/basics/Number.h
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,10 @@ abs(Number x) noexcept
Number
power(Number const& f, unsigned n);

// logarithm with base 10
Number
log10(Number const& value, int iterations = 50);

// Returns f^(1/d)
// Uses Newton–Raphson iterations until the result stops changing
// to find the root of the polynomial g(x) = x^d - f
Expand Down
4 changes: 4 additions & 0 deletions include/xrpl/core/ServiceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <xrpl/basics/Blob.h>
#include <xrpl/basics/SHAMapHash.h>
#include <xrpl/basics/TaggedCache.h>
#include <xrpl/protocol/Fees.h>

#include <boost/asio.hpp>

Expand Down Expand Up @@ -238,6 +239,9 @@ class ServiceRegistry
virtual DatabaseCon&
getWalletDB() = 0;

virtual Fees
getFees() const = 0;

// Temporary: Get the underlying Application for functions that haven't
// been migrated yet. This should be removed once all code is migrated.
virtual Application&
Expand Down
14 changes: 14 additions & 0 deletions include/xrpl/ledger/ApplyViewImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ class ApplyViewImpl final : public detail::ApplyViewBase
deliver_ = amount;
}

void
setGasUsed(std::optional<std::uint32_t> const gasUsed)
{
gasUsed_ = gasUsed;
}

void
setWasmReturnCode(std::int32_t const wasmReturnCode)
{
wasmReturnCode_ = wasmReturnCode;
}

/** Get the number of modified entries
*/
std::size_t
Expand All @@ -72,6 +84,8 @@ class ApplyViewImpl final : public detail::ApplyViewBase

private:
std::optional<STAmount> deliver_;
std::optional<std::uint32_t> gasUsed_;
std::optional<std::int32_t> wasmReturnCode_;
};

} // namespace xrpl
82 changes: 82 additions & 0 deletions include/xrpl/ledger/OpenViewSandbox.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#pragma once

#include <xrpl/ledger/OpenView.h>

#include <memory>

namespace xrpl {

class OpenViewSandbox
{
private:
OpenView& parent_;
std::unique_ptr<OpenView> sandbox_;

public:
using key_type = ReadView::key_type;

OpenViewSandbox(OpenView& parent)
: parent_(parent), sandbox_(std::make_unique<OpenView>(kBatchView, parent))
{
}

void
rawErase(std::shared_ptr<SLE> const& sle)
{
sandbox_->rawErase(sle);
}

void
rawInsert(std::shared_ptr<SLE> const& sle)
{
sandbox_->rawInsert(sle);
}

void
rawReplace(std::shared_ptr<SLE> const& sle)
{
sandbox_->rawReplace(sle);
}

void
rawDestroyXRP(XRPAmount const& fee)
{
sandbox_->rawDestroyXRP(fee);
}

void
rawTxInsert(
key_type const& key,
std::shared_ptr<Serializer const> const& txn,
std::shared_ptr<Serializer const> const& metaData)
{
sandbox_->rawTxInsert(key, txn, metaData);
}

void
commit()
{
sandbox_->apply(parent_);
sandbox_ = std::make_unique<OpenView>(kBatchView, parent_);
}

void
discard()
{
sandbox_ = std::make_unique<OpenView>(kBatchView, parent_);
}

OpenView const&
view() const
{
return *sandbox_;
}

OpenView&
view()
{
return *sandbox_;
}
};

} // namespace xrpl
25 changes: 25 additions & 0 deletions include/xrpl/ledger/View.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#include <xrpl/beast/utility/Journal.h>
#include <xrpl/ledger/ApplyView.h>
#include <xrpl/ledger/ReadView.h>
#include <xrpl/ledger/helpers/MPTokenHelpers.h>
#include <xrpl/ledger/helpers/OfferHelpers.h>
#include <xrpl/ledger/helpers/RippleStateHelpers.h>
#include <xrpl/ledger/helpers/TokenHelpers.h>
#include <xrpl/protocol/MPTIssue.h>
#include <xrpl/protocol/Protocol.h>
#include <xrpl/protocol/STLedgerEntry.h>
Expand Down Expand Up @@ -211,6 +215,27 @@ doWithdraw(
STAmount const& amount,
beast::Journal j);

enum class SendIssuerHandling { ihSENDER_NOT_ALLOWED, ihRECEIVER_NOT_ALLOWED, ihIGNORE };
enum class SendEscrowHandling { ehIGNORE, ehCHECK };
enum class SendAuthHandling { ahCHECK_SENDER, ahCHECK_RECEIVER, ahBOTH, ahNEITHER };
enum class SendFreezeHandling { fhCHECK_SENDER, fhCHECK_RECEIVER, fhBOTH, fhNEITHER };
enum class SendTransferHandling { thIGNORE, thCHECK };
enum class SendBalanceHandling { bhIGNORE, bhCHECK };

TER
canTransferFT(
ReadView const& view,
AccountID const& sender,
AccountID const& receiver,
STAmount const& amount,
beast::Journal j,
SendIssuerHandling issuerHandling,
SendEscrowHandling escrowHandling,
SendAuthHandling authHandling,
SendFreezeHandling freezeHandling,
SendTransferHandling transferHandling,
SendBalanceHandling balanceHandling);

/** Deleter function prototype. Returns the status of the entry deletion
* (if should not be skipped) and if the entry should be skipped. The status
* is always tesSUCCESS if the entry should be skipped.
Expand Down
2 changes: 2 additions & 0 deletions include/xrpl/ledger/detail/ApplyStateTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class ApplyStateTable
TER ter,
std::optional<STAmount> const& deliver,
std::optional<uint256 const> const& parentBatchId,
std::optional<std::uint32_t> const& gasUsed,
std::optional<std::int32_t> const& wasmReturnCode,
bool isDryRun,
beast::Journal j);

Expand Down
Loading