You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bridge metadata of ERC20 tokens in a trustless way, so anyone can set metadata of bridged tokens.
Proposal:
Create a contract on Ethereum that implements:
structMetadata{token:String,name:String,symbol:String,decimals:u8,}
contract TellMetadata{
fn get_metadata(token: address){// fetch metadata from the token
emit Metadata{ .. }}}
On NEAR side, the factory contains the address of this contract. This address is passed to each bridged token when it is deployed. BridgeToken should look like:
structBridgeToken{
...,tell_metadata_address:EthereumAddress,}implBridgeToken{
...,fnset_metadata(event:Vec<u8>,proof:Proof){// Deserialize Metadata event// Check that it was emited by `TellMetadata`// Check that proof is valid// set metadata}}
The text was updated successfully, but these errors were encountered:
Bridge metadata of ERC20 tokens in a trustless way, so anyone can set metadata of bridged tokens.
Proposal:
Create a contract on Ethereum that implements:
On NEAR side, the factory contains the address of this contract. This address is passed to each bridged token when it is deployed. BridgeToken should look like:
The text was updated successfully, but these errors were encountered: