From 77199025f1dc4d70254addb07b6a777f9d5f0c1c Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Mon, 11 Jul 2022 17:21:21 -0400 Subject: [PATCH] Update definitions.json --- .../src/enums/definitions.json | 180 +++++++++++++++++- 1 file changed, 179 insertions(+), 1 deletion(-) diff --git a/packages/ripple-binary-codec/src/enums/definitions.json b/packages/ripple-binary-codec/src/enums/definitions.json index 317e1feb..be000f9d 100644 --- a/packages/ripple-binary-codec/src/enums/definitions.json +++ b/packages/ripple-binary-codec/src/enums/definitions.json @@ -21,6 +21,10 @@ "UInt192": 21, "UInt384": 22, "UInt512": 23, + "Bridge": 24, + "XChainAttestations": 25, + "XChainAttestationBatch": 26, + "XChainClaimProof": 27, "Transaction": 10001, "LedgerEntry": 10002, "Validation": 10003, @@ -34,8 +38,10 @@ "Ticket": 84, "SignerList": 83, "Offer": 111, + "Bridge": 105, "LedgerHashes": 104, "Amendments": 102, + "XChainClaimID": 113, "FeeSettings": 115, "Escrow": 117, "PayChannel": 120, @@ -231,6 +237,16 @@ "type": "UInt8" } ], + [ + "WasLockingChainSend", + { + "nth": 19, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "UInt8" + } + ], [ "LedgerEntryType", { @@ -931,6 +947,36 @@ "type": "UInt64" } ], + [ + "XChainClaimID", + { + "nth": 20, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "UInt64" + } + ], + [ + "XChainAccountCreateCount", + { + "nth": 21, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "UInt64" + } + ], + [ + "XChainAccountClaimCount", + { + "nth": 22, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "UInt64" + } + ], [ "EmailHash", { @@ -1421,6 +1467,36 @@ "type": "Amount" } ], + [ + "XChainFee", + { + "nth": 20, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "Amount" + } + ], + [ + "SignatureReward", + { + "nth": 21, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "Amount" + } + ], + [ + "MinAccountCreateAmount", + { + "nth": 22, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "Amount" + } + ], [ "PublicKey", { @@ -1761,6 +1837,36 @@ "type": "AccountID" } ], + [ + "ThisChainAccount", + { + "nth": 17, + "isVLEncoded": true, + "isSerialized": true, + "isSigningField": true, + "type": "AccountID" + } + ], + [ + "OtherChainAccount", + { + "nth": 18, + "isVLEncoded": true, + "isSerialized": true, + "isSigningField": true, + "type": "AccountID" + } + ], + [ + "AttestationRewardAccount", + { + "nth": 19, + "isVLEncoded": true, + "isSerialized": true, + "isSigningField": true, + "type": "AccountID" + } + ], [ "Indexes", { @@ -1811,6 +1917,36 @@ "type": "PathSet" } ], + [ + "Bridge", + { + "nth": 1, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "Bridge" + } + ], + [ + "XChainClaimProof", + { + "nth": 1, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "XChainClaimProof" + } + ], + [ + "XChainAttestations", + { + "nth": 1, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "XChainAttestations" + } + ], [ "TransactionMetaData", { @@ -2021,6 +2157,16 @@ "type": "STObject" } ], + [ + "XChainProofSig", + { + "nth": 25, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "STObject" + } + ], [ "Signers", { @@ -2160,6 +2306,16 @@ "isSigningField": true, "type": "STArray" } + ], + [ + "XChainProofSigs", + { + "nth": 21, + "isVLEncoded": false, + "isSerialized": true, + "isSigningField": true, + "type": "STArray" + } ] ], "TRANSACTION_RESULTS": { @@ -2215,6 +2371,12 @@ "temUNKNOWN": -264, "temSEQ_AND_TICKET": -263, "temBAD_NFTOKEN_TRANSFER_FEE": -262, + "temEQUAL_DOOR_ACCOUNTS": -261, + "temBAD_XCHAIN_PROOF": -260, + "temSIDECHAIN_BAD_ISSUES": -259, + "temSIDECHAIN_NONDOOR_OWNER": -258, + "temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -257, + "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -256, "tefFAILURE": -199, "tefALREADY": -198, @@ -2298,7 +2460,16 @@ "tecCANT_ACCEPT_OWN_NFTOKEN_OFFER": 158, "tecINSUFFICIENT_FUNDS": 159, "tecOBJECT_NOT_FOUND": 160, - "tecINSUFFICIENT_PAYMENT": 161 + "tecINSUFFICIENT_PAYMENT": 161, + "tecBAD_XCHAIN_TRANSFER_ISSUE": 162, + "tecBAD_XCHAIN_CLAIM_ID": 163, + "tecXCHAIN_CLAIM_NO_QUORUM": 164, + "tecXCHAIN_PROOF_UNKNOWN_KEY": 165, + "tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 166, + "tecXCHAIN_CLAIM_ACCOUNT_DST_EXISTS": 167, + "tecXCHAIN_CLAIM_WRONG_CHAIN": 168, + "tecXCHAIN_REWARD_MISMATCH": 169, + "tecXCHAIN_NO_SIGNERS_LIST": 170 }, "TRANSACTION_TYPES": { "Invalid": -1, @@ -2330,6 +2501,13 @@ "NFTokenCreateOffer": 27, "NFTokenCancelOffer": 28, "NFTokenAcceptOffer": 29, + "XChainCreateBridge": 30, + "XChainCreateClaimID": 31, + "XChainCommit": 32, + "XChainClaim": 33, + "SidechainXChainAccountCreate": 34, + "SidechainXChainAccountClaim": 35, + "XChainAddAttestation": 36, "EnableAmendment": 100, "SetFee": 101, "UNLModify": 102