2020-06-03 21:05:05 +00:00
|
|
|
// This test exists to ensure that the abigen macro works "reasonably" well with popular contracts
|
|
|
|
use ethers::contract::abigen;
|
|
|
|
|
|
|
|
abigen!(
|
|
|
|
KeepBonding,
|
|
|
|
"etherscan:0x7137701e90C6a80B0dA36922cd83942b32A8fc95"
|
|
|
|
);
|
|
|
|
abigen!(cDAI, "etherscan:0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643");
|
|
|
|
abigen!(
|
|
|
|
Comptroller,
|
|
|
|
"etherscan:0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b"
|
|
|
|
);
|
2020-06-16 12:08:42 +00:00
|
|
|
|
|
|
|
// https://github.com/vyperlang/vyper/issues/1931
|
|
|
|
// abigen!(
|
|
|
|
// Curve,
|
|
|
|
// "etherscan:0xa2b47e3d5c44877cca798226b7b8118f9bfb7a56"
|
|
|
|
// );
|
2020-06-03 21:05:05 +00:00
|
|
|
abigen!(
|
|
|
|
UmaAdmin,
|
|
|
|
"etherscan:0x4E6CCB1dA3C7844887F9A5aF4e8450d9fd90317A"
|
|
|
|
);
|
|
|
|
|
|
|
|
// e.g. aave's `initialize` methods exist multiple times, so we should rename it
|
|
|
|
abigen!(
|
|
|
|
AavePoolCore,
|
|
|
|
"etherscan:0x3dfd23a6c5e8bbcfc9581d2e864a68feb6a076d3",
|
|
|
|
methods {
|
|
|
|
initialize(address,bytes) as initialize_proxy;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2020-06-29 08:03:01 +00:00
|
|
|
// The DyDxLimitOrders contract uses Abi Encoder v2 with nested tuples
|
|
|
|
abigen!(
|
|
|
|
DyDxLimitOrders,
|
|
|
|
"etherscan:0xDEf136D9884528e1EB302f39457af0E4d3AD24EB"
|
|
|
|
);
|