mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updated addresses for optimism-test-script
This commit is contained in:
parent
a560efd0c1
commit
893ec0b0d7
|
@ -1,7 +1,7 @@
|
|||
export const addresses: Record<string, any> = {
|
||||
connectors: {
|
||||
basic: "",
|
||||
auth: "",
|
||||
basic: "0xe5398f279175962E56fE4c5E0b62dc7208EF36c6",
|
||||
auth: "0xd1aff9f2acf800c876c409100d6f39aea93fc3d9",
|
||||
},
|
||||
core: {
|
||||
connectorsV2: "0x127d8cD0E2b2E0366D522DeA53A787bfE9002C14",
|
||||
|
|
|
@ -7,18 +7,11 @@ const mineTx = async (tx: any) => {
|
|||
};
|
||||
|
||||
export const tokens = {
|
||||
matic: {
|
||||
type: "token",
|
||||
symbol: "MATIC",
|
||||
name: "Matic",
|
||||
address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
||||
decimals: 18,
|
||||
},
|
||||
eth: {
|
||||
type: "token",
|
||||
symbol: "ETH",
|
||||
name: "Ethereum",
|
||||
address: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
|
||||
name: "Eth",
|
||||
address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
||||
decimals: 18,
|
||||
},
|
||||
dai: {
|
||||
|
@ -39,7 +32,7 @@ export const tokens = {
|
|||
|
||||
export const tokenMapping: Record<string, any> = {
|
||||
usdc: {
|
||||
impersonateSigner: "0x6e7a5fafcec6bb1e78bae2a1f0b612012bf14827",
|
||||
impersonateSigner: "0x31efc4aeaa7c39e54a33fdc3c46ee2bd70ae0a09",
|
||||
address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
||||
abi: [
|
||||
"function mint(address _to, uint256 _amount) external returns (bool);",
|
||||
|
@ -51,8 +44,8 @@ export const tokenMapping: Record<string, any> = {
|
|||
},
|
||||
},
|
||||
dai: {
|
||||
impersonateSigner: "0x4a35582a710e1f4b2030a3f826da20bfb6703c09",
|
||||
address: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
|
||||
impersonateSigner: "0x31efc4aeaa7c39e54a33fdc3c46ee2bd70ae0a09",
|
||||
address: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
||||
abi: ["function transfer(address to, uint value)"],
|
||||
process: async function (owner: Signer | Provider, to: any, amt: any) {
|
||||
const contract = new ethers.Contract(this.address, this.abi, owner);
|
||||
|
@ -60,8 +53,8 @@ export const tokenMapping: Record<string, any> = {
|
|||
},
|
||||
},
|
||||
usdt: {
|
||||
impersonateSigner: "0x0d0707963952f2fba59dd06f2b425ace40b492fe",
|
||||
address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
||||
impersonateSigner: "0x31efc4aeaa7c39e54a33fdc3c46ee2bd70ae0a09",
|
||||
address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
||||
abi: [
|
||||
"function issue(uint amount)",
|
||||
"function transfer(address to, uint value)",
|
||||
|
@ -74,21 +67,21 @@ export const tokenMapping: Record<string, any> = {
|
|||
},
|
||||
},
|
||||
wbtc: {
|
||||
impersonateSigner: "0xdc9232e2df177d7a12fdff6ecbab114e2231198d",
|
||||
address: "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6",
|
||||
impersonateSigner: "0x3aa76aa74bdfa09d68d9ebeb462c5f40d727283f",
|
||||
address: "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
|
||||
abi: ["function mint(address _to, uint256 _amount) public returns (bool)"],
|
||||
process: async function (owner: Signer | Provider, address: any, amt: any) {
|
||||
const contract = new ethers.Contract(this.address, this.abi, owner);
|
||||
await mineTx(contract.mint(address, amt));
|
||||
},
|
||||
},
|
||||
inst: {
|
||||
impersonateSigner: "0xf1f22f25f748f79263d44735198e023b72806ab1",
|
||||
address: "0xf50d05a1402d0adafa880d36050736f9f6ee7dee",
|
||||
abi: ["function transfer(address to, uint value)"],
|
||||
process: async function (owner: Signer | Provider, address: any, amt: any) {
|
||||
const contract = new ethers.Contract(this.address, this.abi, owner);
|
||||
await mineTx(contract.transfer(address, amt));
|
||||
},
|
||||
// inst: {
|
||||
// impersonateSigner: "0xf1f22f25f748f79263d44735198e023b72806ab1",
|
||||
// address: "0x6f40d4A6237C257fff2dB00FA0510DeEECd303eb",
|
||||
// abi: ["function transfer(address to, uint value)"],
|
||||
// process: async function (owner: Signer | Provider, address: any, amt: any) {
|
||||
// const contract = new ethers.Contract(this.address, this.abi, owner);
|
||||
// await mineTx(contract.transfer(address, amt));
|
||||
// },
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user