XTransferRerouter

Group BancorXtransfer

Modules > BancorXtransfer

XTransferRerouter contract. More...

Modules

Type

Name

module

Settings Table Basic minimal settings.

Public Functions

Type

Name

ACTION

enablerrt (bool enable) can only be called by the contract account

ACTION

reroutetx (uint64_t tx_id, string blockchain, string target) only the original sender may reroute an invalid transaction

Macros

Type

Name

define

EMIT_TX_REROUTE_EVENT (tx_id, blockchain, target) events triggered when an account reroutes an xtransfer transaction

Detailed Description

Allows rerouting transactions sent to BancorX with invalid parameters.

Public Functions Documentation

ACTION enablerrt (
bool enable
)

Parameters:

  • enable - true to enable rerouting xtransfers, false to disable it

ACTION reroutetx (
uint64_t tx_id,
string blockchain,
string target
)

allows an account to change xtransfer transaction details if the original transaction parameters were invalid (e.g non-existent destination blockchain/target)

Parameters:

  • tx_id - unique transaction id

  • blockchain - target blockchain

  • target - target account/address

Macro Definition Documentation

#define EMIT_TX_REROUTE_EVENT (
tx_id,
blockchain,
target
) START_EVENT("txreroute", "1.1") \
EVENTKV("tx_id",tx_id) \
EVENTKV("blockchain",blockchain) \
EVENTKVL("target",target) \
END_EVENT()