diff --git a/config/warp_tokens.ts b/config/warp_tokens.ts index 670e99e..94864b8 100644 --- a/config/warp_tokens.ts +++ b/config/warp_tokens.ts @@ -11,19 +11,19 @@ export const warpRouteConfig: WarpRouteConfig = { type: TokenType.native, // TokenType.native or TokenType.collateral // If type is collateral, a token address is required: // address: '0x123...' - // Optionally, specify owner, mailbox, and interchainGasPaymaster addresses // If not specified, the Permissionless Deployment artifacts or the SDK's defaults will be used + //votable:true, if you enable this option you will be able to delegate the voting power of the locked tokens + }, synthetics: [ { chainName: 'anvil2', - // Optionally specify a name, symbol, and totalSupply // If not specified, the base token's properties will be used - // Optionally, specify owner, mailbox, and interchainGasPaymaster addresses // If not specified, the Permissionless Deployment artifacts or the SDK's defaults will be used + //votable:true, if you enable this option then ERC20 votable synthetic token will be deployed }, ], -}; +}; \ No newline at end of file diff --git a/src/warp/WarpRouteDeployer.ts b/src/warp/WarpRouteDeployer.ts index f35f4a6..5287450 100644 --- a/src/warp/WarpRouteDeployer.ts +++ b/src/warp/WarpRouteDeployer.ts @@ -66,12 +66,10 @@ export class WarpRouteDeployer { async deploy(): Promise { const { configMap, baseToken } = await this.buildHypERC20Config(); - this.logger('Initiating HypERC20 deployments'); const deployer = new HypERC20Deployer(this.multiProvider); await deployer.deploy(configMap); this.logger('HypERC20 deployments complete'); - this.writeDeploymentResult( deployer.deployedContracts, configMap, @@ -101,6 +99,7 @@ export class WarpRouteDeployer { const configMap: ChainMap = { [baseChainName]: { + votable: base.votable, type: baseType, token: baseTokenAddr, owner, @@ -122,6 +121,7 @@ export class WarpRouteDeployer { for (const synthetic of synthetics) { const sChainName = synthetic.chainName; configMap[sChainName] = { + votable: synthetic.votable, type: TokenType.synthetic, name: synthetic.name || baseTokenMetadata.name, symbol: synthetic.symbol || baseTokenMetadata.symbol, diff --git a/src/warp/config.ts b/src/warp/config.ts index 972a009..cb67fc1 100644 --- a/src/warp/config.ts +++ b/src/warp/config.ts @@ -9,15 +9,18 @@ type WarpBaseToken = { } & Partial; export interface WarpNativeTokenConfig extends WarpBaseToken { + votable?: boolean; type: TokenType.native; } export interface WarpCollateralTokenConfig extends WarpBaseToken { + votable?: boolean; type: TokenType.collateral; address: string; } export type WarpSyntheticTokenConfig = { + votable?:boolean; chainName: string; name?: string; symbol?: string;