-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
137 additions
and
46 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
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {parseUnits} from "ethers/lib/utils"; | ||
import { | ||
IERC20Metadata__factory, | ||
MockToken__factory, | ||
UniswapV3Callee__factory, | ||
Univ3TokenSeller__factory, Univ3TokenSellerResolver__factory | ||
} from "../../typechain"; | ||
import {ethers, network} from "hardhat"; | ||
import {Misc} from "../utils/Misc"; | ||
import {RunHelper} from "../utils/RunHelper"; | ||
|
||
/** | ||
* npx hardhat run scripts/token-seller/SetTokenSeller.ts | ||
*/ | ||
async function main() { | ||
const NEW_TOKEN_SELLER = "0x8E294388A3E91cdac5FEA95b5b75f509b85dC5E2"; | ||
const RESOLVER = "0xd2538f5f7c328a7027a5e0dea1938931601d1684"; | ||
|
||
const signer = (await ethers.getSigners())[0]; | ||
console.log("signer", signer.address); | ||
|
||
const net = await ethers.provider.getNetwork(); | ||
console.log(net, `network name="${network.name}"`); | ||
|
||
const resolver = Univ3TokenSellerResolver__factory.connect(RESOLVER, signer); | ||
await RunHelper.runAndWait2ExplicitSigner( | ||
signer, | ||
resolver.populateTransaction.setTokenSeller(NEW_TOKEN_SELLER) | ||
); | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch(error => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
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