velas / velas-chain

Other
70 stars 35 forks source link

Implement whitelist functionality in bridge for gass-less transactions. #385

Closed vldm closed 1 year ago

vldm commented 2 years ago

Some of dApps want to host own bridge and pay fee for their customers.

In order to make it pay off, dApp creators should implement fee logic in their contracts, which is out of scope of velas-chain project.

But also, bridge should allow setting token list that it will process, and pay velas fee for it.

Proposed whitelist format for bridge is an array of pairs (contract_address, input_data_filter)

Where input_data_filter, at first milestone can filter only by starting bytes.

tx.input.start_with(input_data_filter)