nomad-xyz / nomad-monorepo

Contracts, off-chain agents, and libraries for Nomad
https://nomad.xyz
77 stars 16 forks source link

feature: deploy custom tokens (if configured) #201

Closed prestwich closed 2 years ago

prestwich commented 2 years ago

Adds a deploy-time custom representation feature. This allows us to pre-define custom reprs for migration-less changeover later. To allow maximum flexibility, each representation is deployed with its own UBC and beacon. These reprs are set to delegate to the BridgeToken deploy initially.

To use:

e.g.

{ 
    customs: [
        {domain: 3000, id:"0xabcd.......1234", name: 'My Token', symbol: 'MYTOK', decimals: 8},
    ]
}