-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set treasury handler resource with signature
- Loading branch information
1 parent
a0aae3f
commit 8140e1f
Showing
3 changed files
with
51 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1 @@ | ||
use std::collections::HashMap; | ||
|
||
use webb::evm::{ | ||
contract::protocol_solidity::{ | ||
erc20_preset_minter_pauser::ERC20PresetMinterPauserContract, | ||
fungible_token_wrapper::FungibleTokenWrapperContract, | ||
}, | ||
ethers::{signers::LocalWallet, types::Address}, | ||
}; | ||
use webb_proposals::TypedChainId; | ||
|
||
#[derive(Clone, Debug, typed_builder::TypedBuilder)] | ||
pub struct TokenConfig { | ||
pub name: String, | ||
pub symbol: String, | ||
} | ||
|
||
#[derive(Clone, Debug, typed_builder::TypedBuilder)] | ||
pub struct ZkComponents { | ||
pub wasm: Vec<u8>, | ||
pub zkey: Vec<u8>, | ||
pub witness_calculator: Vec<u8>, | ||
} | ||
|
||
#[derive(typed_builder::TypedBuilder)] | ||
pub struct VAnchorBridgeDeploymentArgs<M> { | ||
pub chain_ids: Vec<TypedChainId>, | ||
#[builder(default)] | ||
pub token_configs: HashMap<TypedChainId, TokenConfig>, | ||
#[builder(default)] | ||
pub webb_tokens: HashMap<TypedChainId, FungibleTokenWrapperContract<M>>, | ||
pub vanchor_inputs: HashMap<TypedChainId, Address>, | ||
pub deployers: HashMap<TypedChainId, LocalWallet>, | ||
pub initial_governors: HashMap<TypedChainId, Address>, | ||
} | ||
|
||
#[derive(typed_builder::TypedBuilder)] | ||
pub struct VBridgeDeploymentArgs<M> { | ||
pub chains: Vec<crate::LocalEvmChain>, | ||
pub tokens: Vec<ERC20PresetMinterPauserContract<M>>, | ||
pub deployers: Vec<LocalWallet>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters