Support Cron Amendment (#32)

This commit is contained in:
tequ
2025-10-17 17:44:07 +09:00
committed by GitHub
parent b5f15ac075
commit e454c61994
10 changed files with 252 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
"LEDGER_ENTRY_TYPES": {
"Invalid": -1,
"AccountRoot": 97,
"Cron": 65,
"DirectoryNode": 100,
"RippleState": 114,
"Ticket": 84,
@@ -798,6 +799,26 @@
"type": "UInt32"
}
],
[
"RepeatCount",
{
"nth": 94,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt32"
}
],
[
"DelaySeconds",
{
"nth": 95,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "UInt32"
}
],
[
"XahauActivationLgrSeq",
{
@@ -1488,6 +1509,16 @@
"type": "Hash256"
}
],
[
"Cron",
{
"nth": 95,
"isVLEncoded": false,
"isSerialized": true,
"isSigningField": true,
"type": "Hash256"
}
],
[
"Amount",
{
@@ -2835,6 +2866,8 @@
"URITokenBuy": 47,
"URITokenCreateSellOffer": 48,
"URITokenCancelSellOffer": 49,
"Cron": 92,
"CronSet": 93,
"SetRemarks": 94,
"Remit": 95,
"GenesisMint": 96,

View File

@@ -74,7 +74,13 @@ class XrplDefinitionsBase {
.filter(([_key, value]) => value >= 0)
.map(([key, _value]) => key)
const ignoreList = ['EnableAmendment', 'SetFee', 'UNLModify', 'EmitFailure']
const ignoreList = [
'EnableAmendment',
'SetFee',
'UNLModify',
'EmitFailure',
'Cron',
]
this.transactionMap = Object.assign(
{},
...Object.entries(enums.TRANSACTION_TYPES)