Gregory Tsipenyuk
233f060b0b
Introduce AMM support (XLS-30d): ( #4294 )
...
Add AMM functionality:
- InstanceCreate
- Deposit
- Withdraw
- Governance
- Auctioning
- payment engine integration
To support this functionality, add:
- New RPC method, `amm_info`, to fetch pool and LPT balances
- AMM Root Account
- trust line for each IOU AMM token
- trust line to track Liquidity Provider Tokens (LPT)
- `ltAMM` object
The `ltAMM` object tracks:
- fee votes
- auction slot bids
- AMM tokens pair
- total outstanding tokens balance
- `AMMID` to AMM `RootAccountID` mapping
Add new classes to facilitate AMM integration into the payment engine.
`BookStep` uses these classes to infer if AMM liquidity can be consumed.
The AMM formula implementation uses the new Number class added in #4192 .
IOUAmount and STAmount use Number arithmetic.
Add AMM unit tests for all features.
AMM requires the following amendments:
- featureAMM
- fixUniversalNumber
- featureFlowCross
Notes:
- Current trading fee threshold is 1%
- AMM currency is generated by: 0x03 + 152 bits of sha256{cur1, cur2}
- Current max AMM Offers is 30
---------
Co-authored-by: Howard Hinnant <howard.hinnant@gmail.com >
2026-02-20 06:38:25 +09:00
tequ
67a6970031
Outgoing/Incoming HookOn ( #457 )
2026-02-18 09:32:56 +10:00
tequ
efd5f9f6db
prepare Hook API (#413 )
2026-02-17 20:25:20 +10:00
tequ
fb7a0d71de
Hook API Refactor3: Consolidate the Hook API definitions from Enum.h and ApplyHook.h into a single file. ( #622 )
2026-02-15 20:08:44 +10:00
tequ
79fdafe638
Support Cron in util_keylet Hook API ( #612 )
2025-10-27 14:35:01 +10:00
tequ
6f148a8ac7
ExtendedHookState ( #406 )
2025-10-23 18:57:38 +10:00
tequ
96222baf5e
Add hook header generators and CI verification workflow ( #597 )
2025-10-22 15:25:38 +10:00
tequ
6fa6a96e3a
Introduce StartTime in CronSet and improve next execution scheduling ( #596 )
2025-10-21 14:17:53 +10:00
tequ
f6d2bf819d
Fix governance vote purge ( #221 )
...
governance hook should be independently and deterministically recompiled before being voted in
2025-06-16 17:12:06 +10:00
tequ
e4b7e8f0f2
Update sfcodes script ( #479 )
2025-04-10 09:44:31 +10:00
Denis Angell
8ba37a3138
Add Script for SfCode generation ( #358 )
...
Co-authored-by: RichardAH <richard.holland@starstone.co.nz >
Co-authored-by: tequ <git@tequ.dev >
2024-11-09 14:17:49 +10:00
tequ
766f5d7ee1
Update macro.h ( #366 )
2024-10-25 10:10:43 +10:00
Denis Angell
497e52fcc6
Update Macros ( #279 )
...
* add common macros
* remove old/unused macros
2024-03-25 08:43:46 +11:00
Denis Angell
75aba531d6
Amendment: featureRemit ( #278 )
...
* Remit Amendment
Co-authored-by: Denis Angell <dangell@transia.co >
Co-authored-by: Richard Holland <richard.holland@starstone.co.nz >
2024-03-11 09:29:39 +11:00
Denis Angell
475b6f7347
Amendment: Fix Xahau v1 ( #231 )
...
* FXV1: Meta Amount (#225 )
* FXV1: Optional Offer Sequence (#224 )
* FXV1: Patch Hooks OwnerDir (#236 )
* FXV1: Fix `Import` Quorum (#235 )
* FXV1: Namespace Limit (#220 )
* FXV1: allow duplicate entries in genesis mint transactor (#239 )
* FXV1: Fix URIToken (#243 )
* lite fixes for tsh issues (#244 )
Co-authored-by: RichardAH <richard.holland@starstone.co.nz >
2023-12-21 16:21:17 +01:00
Denis Angell
7dee512991
Housekeeping ( #170 )
...
* Update pull_request_template.md
* strip out unused files
* Update CONTRIBUTING.md
* fix docker
* remove conan stuff
* update license
* update hook directory
* Delete .codecov.yml
* Update .dockerignore
* Update genesis.json
* update validator list example
* Update rippled-standalone.cfg
* Update CONTRIBUTING.md
2023-11-01 14:56:12 +01:00
Richard Holland
ac5ff4ca32
remove completely the codepath for undoing l2 votes
2023-10-25 11:54:58 +00:00
Richard Holland
263c6342cf
fix for https://github.com/Xahau/xahaud/issues/149
2023-10-20 13:21:30 +00:00
Richard Holland
6dc86a9611
more genesismint tests
2023-09-28 20:53:45 +00:00
Richard Holland
150749291f
start of genesis mint tests
2023-09-28 12:45:54 +00:00
Richard Holland
0f04ada876
change default reward rate in tests to the correct updated value
2023-09-28 08:35:23 +00:00
Dominique Blomsma
834442132b
Governance updates ( #113 )
...
* Reward delay type corrected to XFL
* Fixed Governance Initial Reward Rate
2023-09-25 22:35:40 +02:00
Richard Holland
40631c1a7c
remove tn11, dead validator
2023-09-25 10:14:44 +00:00
Denis Angell
e44eeec631
Update reward.c hook ( #111 )
...
* fix include
* fix include
* update invariant
* update comment
* Update reward.c
* Update reward.c
* Update reward.c
2023-09-25 11:46:40 +02:00
Richard Holland
75525c2d38
v3 governance keys
2023-09-25 09:39:12 +00:00
Denis Angell
cfa46934ed
Sync extern.h ( #101 )
...
* update hook error codes
* reorder and remove unused externs
* add HOOK_STATE_DIR keylet
* Delete types.h
* move transaction types
2023-09-19 11:24:09 +02:00
Richard Holland
9b089bee94
more layer2 tests
2023-09-19 09:22:28 +00:00
Richard Holland
ab67ddeeb6
modify xahaugenesis to support l2 table setup
2023-09-15 16:16:46 +00:00
Richard Holland
4d87210e01
more governance testing
2023-09-15 10:23:57 +00:00
Richard Holland
457c64088b
governance L1 hook topic tests
2023-09-14 12:19:43 +00:00
Richard Holland
9bcf186aa2
fixes for reward delay
2023-09-13 17:56:56 +00:00
Richard Holland
269909d5f9
fix some trace apis in hooks to exclude trailing nul characters, more governance hook debugging
2023-09-12 20:22:52 +00:00
Richard Holland
db8fc670c5
more governance bug fixes
2023-09-06 12:52:49 +00:00
Richard Holland
5e96402770
more governance debugging
2023-09-05 20:19:26 +00:00
Richard Holland
571ad5c60d
add more governance testcases, governance bug fixes
2023-09-04 14:59:15 +00:00
Richard Holland
c2f8b1354a
various governance fixes, tests
2023-08-31 13:20:24 +00:00
Richard Holland
01a4df0584
fix uritoken buy bug, add dynamic memo fees
2023-08-17 10:36:55 +00:00
Richard Holland
e5bf299e39
ensure that XahauGenesis amendment will effectively disable DeletableAccounts
2023-08-15 10:38:51 +00:00
Richard Holland
53a7408f18
make import starting bonus based on fee object where it exists. compiling not tested. this is the final feature going in, feature freeze at this commit.
2023-07-17 09:04:02 +00:00
Richard Holland
d0295da992
reintroduce L2 functionality into the governance hook, compiling not tested
2023-07-14 13:45:53 +00:00
Richard Holland
17df89c075
fix up NFToken xpop hook
2023-07-14 09:26:18 +00:00
Richard Holland
076b8e3e11
example burn2mint xls20->uritoken
2023-07-11 21:06:48 +00:00
Richard Holland
6b4f45f0eb
validator account setregularkey script
2023-06-29 08:58:32 +00:00
Richard Holland
8c1e483416
rewards to validators working
2023-06-26 12:45:37 +00:00
Richard Holland
48dc6b29bf
update governance (to remove L2 stuff) and reward hook (to add UNLReport) not tested yet in consensus
2023-06-26 10:31:11 +00:00
Richard Holland
d31ee509a9
rework of governance hook (WIP) needs be split to form separate L1 and L2 hooks
2023-06-12 12:29:55 +00:00
Richard Holland
8926a95af3
update reward hook to use genesis mint
2023-06-06 12:51:30 +00:00
Richard Holland
68b3db602b
optimised genesis mint population inside test hook
2023-06-05 13:21:49 +00:00
Richard Holland
1ae08afb02
genesis mint working
2023-06-05 12:08:59 +00:00
Richard Holland
58d71b8c96
update invariant check for ttGENESIS_MINT, update tx structure too
2023-06-05 09:53:03 +00:00