mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
A bridge connects two blockchains: a locking chain and an issuing chain (also called a mainchain and a sidechain). Both are independent ledgers, with their own validators and potentially their own custom transactions. Importantly, there is a way to move assets from the locking chain to the issuing chain and a way to return those assets from the issuing chain back to the locking chain: the bridge. This key operation is called a cross-chain transfer. A cross-chain transfer is not a single transaction. It happens on two chains, requires multiple transactions, and involves an additional server type called a "witness". A bridge does not exchange assets between two ledgers. Instead, it locks assets on one ledger (the "locking chain") and represents those assets with wrapped assets on another chain (the "issuing chain"). A good model to keep in mind is a box with an infinite supply of wrapped assets. Putting an asset from the locking chain into the box will release a wrapped asset onto the issuing chain. Putting a wrapped asset from the issuing chain back into the box will release one of the existing locking chain assets back onto the locking chain. There is no other way to get assets into or out of the box. Note that there is no way for the box to "run out of" wrapped assets - it has an infinite supply. Co-authored-by: Gregory Popovitch <greg7mdp@gmail.com>
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
// For documentation please see: https://xrpl-hooks.readme.io/reference/
|
|
// Generated using generate_tts.sh
|
|
#define ttPAYMENT 0
|
|
#define ttESCROW_CREATE 1
|
|
#define ttESCROW_FINISH 2
|
|
#define ttACCOUNT_SET 3
|
|
#define ttESCROW_CANCEL 4
|
|
#define ttREGULAR_KEY_SET 5
|
|
// #define ttNICKNAME_SET 6 // deprecated
|
|
#define ttOFFER_CREATE 7
|
|
#define ttOFFER_CANCEL 8
|
|
// #define ttCONTRACT 9 // deprecated
|
|
#define ttTICKET_CREATE 10
|
|
// #define ttSPINAL_TAP 11 // deprecated
|
|
#define ttSIGNER_LIST_SET 12
|
|
#define ttPAYCHAN_CREATE 13
|
|
#define ttPAYCHAN_FUND 14
|
|
#define ttPAYCHAN_CLAIM 15
|
|
#define ttCHECK_CREATE 16
|
|
#define ttCHECK_CASH 17
|
|
#define ttCHECK_CANCEL 18
|
|
#define ttDEPOSIT_PREAUTH 19
|
|
#define ttTRUST_SET 20
|
|
#define ttACCOUNT_DELETE 21
|
|
#define ttHOOK_SET 22
|
|
#define ttNFTOKEN_MINT 25
|
|
#define ttNFTOKEN_BURN 26
|
|
#define ttNFTOKEN_CREATE_OFFER 27
|
|
#define ttNFTOKEN_CANCEL_OFFER 28
|
|
#define ttNFTOKEN_ACCEPT_OFFER 29
|
|
#define ttCLAWBACK 30
|
|
#define ttAMM_CREATE 35
|
|
#define ttAMM_DEPOSIT 36
|
|
#define ttAMM_WITHDRAW 37
|
|
#define ttAMM_VOTE 38
|
|
#define ttAMM_BID 39
|
|
#define ttAMM_DELETE 40
|
|
#define ttURITOKEN_MINT 45
|
|
#define ttURITOKEN_BURN 46
|
|
#define ttURITOKEN_BUY 47
|
|
#define ttURITOKEN_CREATE_SELL_OFFER 48
|
|
#define ttURITOKEN_CANCEL_SELL_OFFER 49
|
|
#define ttXCHAIN_CREATE_CLAIM_ID 50
|
|
#define ttXCHAIN_COMMIT 51
|
|
#define ttXCHAIN_CLAIM 52
|
|
#define ttXCHAIN_ACCOUNT_CREATE_COMMIT 53
|
|
#define ttXCHAIN_ADD_CLAIM_ATTESTATION 54
|
|
#define ttXCHAIN_ADD_ACCOUNT_CREATE_ATTESTATION 55
|
|
#define ttXCHAIN_MODIFY_BRIDGE 56
|
|
#define ttXCHAIN_CREATE_BRIDGE 57
|
|
#define ttCRON 92
|
|
#define ttCRON_SET 93
|
|
#define ttREMARKS_SET 94
|
|
#define ttREMIT 95
|
|
#define ttGENESIS_MINT 96
|
|
#define ttIMPORT 97
|
|
#define ttCLAIM_REWARD 98
|
|
#define ttINVOKE 99
|
|
#define ttAMENDMENT 100
|
|
#define ttFEE 101
|
|
#define ttUNL_MODIFY 102
|
|
#define ttEMIT_FAILURE 103
|
|
#define ttUNL_REPORT 104
|