velas / velas-chain

Other
70 stars 35 forks source link

Feat(evm-bridge): add whitelist to pay for evm transactions #392

Closed gBaGu closed 1 year ago

gBaGu commented 1 year ago

Added --whitelist-path arg to bridge. It expects a path to json file with array of filters

Only "InputStartsWith" is supported so far. Whitelist config example:

[
    { "InputStartsWith": [ "0xC56c3022a16FC3f7eA7538034266D6aDf290B095", "0xe2a2d66a" ] }
]

This means that all transactions to 0xC56c3022a16FC3f7eA7538034266D6aDf290B095 that will have it's input starting with 0xe2a2d66a will be payed by a bridge.