Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Balancer Event Handler for WeightedPool2TokenFactory #717

Merged
merged 18 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions contracts/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ fn main() {
)),
)
});
generate_contract_with_config("BalancerV2WeightedPool2TokensFactory", |builder| {
builder
.with_contract_mod_override(Some("balancer_v2_weighted_pool_2_tokens_factory"))
.add_deployment(
1,
addr("0xa5bf2ddf098bb0ef6d120c98217dd6b141c74ee0"),
Some(tx(
"0xf40c05058422d730b7035c254f8b765722935a5d3003ac37b13a61860adbaf08",
)),
)
.add_deployment(
4,
addr("0xa5bf2ddf098bb0ef6d120c98217dd6b141c74ee0"),
Some(tx(
"0xbe28062b575c2743b3b4525c3a175b9acad36695c15dba1c69af5f3fc3ceca37",
)),
)
});
generate_contract("BalancerV2WeightedPool");
generate_contract("ERC20");
generate_contract("ERC20Mintable");
Expand Down
4 changes: 4 additions & 0 deletions contracts/src/bin/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ fn run() -> Result<()> {
"BalancerV2WeightedPoolFactory",
"balancer-labs/balancer-v2-monorepo/a3b570a2aa655d4c4941a67e3db6a06fbd72ef09/pkg/deployments/deployed/mainnet/WeightedPoolFactory.json",
)?
.github(
"BalancerV2WeightedPool2TokensFactory",
"balancer-labs/balancer-v2-monorepo/a3b570a2aa655d4c4941a67e3db6a06fbd72ef09/pkg/deployments/deployed/mainnet/WeightedPool2TokensFactory.json",
)?
.npm(
"ERC20Mintable",
"@openzeppelin/[email protected]/build/contracts/ERC20Mintable.json",
Expand Down
6 changes: 6 additions & 0 deletions contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ include!(concat!(
env!("OUT_DIR"),
"/BalancerV2WeightedPoolFactory.rs"
));
include!(concat!(
env!("OUT_DIR"),
"/BalancerV2WeightedPool2TokensFactory.rs"
));
include!(concat!(env!("OUT_DIR"), "/ERC20.rs"));
include!(concat!(env!("OUT_DIR"), "/ERC20Mintable.rs"));
include!(concat!(env!("OUT_DIR"), "/GPv2AllowListAuthentication.rs"));
Expand Down Expand Up @@ -76,6 +80,7 @@ mod tests {
for network in &[1, 4] {
assert_has_deployment_address!(BalancerV2Vault for *network);
assert_has_deployment_address!(BalancerV2WeightedPoolFactory for *network);
assert_has_deployment_address!(BalancerV2WeightedPool2TokensFactory for *network);
}
}

Expand All @@ -95,6 +100,7 @@ mod tests {
for network in &[1, 4] {
assert_has_deployment_information!(BalancerV2Vault for *network);
assert_has_deployment_information!(BalancerV2WeightedPoolFactory for *network);
assert_has_deployment_information!(BalancerV2WeightedPool2TokensFactory for *network);
}
}
}
Loading