From ec47cb48ca1fb4ed4ef108f21ee143cfc9f182e3 Mon Sep 17 00:00:00 2001 From: "Ismail Mbarack (Nas)" Date: Mon, 24 Apr 2023 21:54:19 +0800 Subject: [PATCH] added new smart contract address --- .../app-config/src/abi/darwiniaContract.json | 86 +++++++++++++++++++ packages/app-config/src/chains/darwinia.ts | 4 +- 2 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 packages/app-config/src/abi/darwiniaContract.json diff --git a/packages/app-config/src/abi/darwiniaContract.json b/packages/app-config/src/abi/darwiniaContract.json new file mode 100644 index 0000000..df22214 --- /dev/null +++ b/packages/app-config/src/abi/darwiniaContract.json @@ -0,0 +1,86 @@ +[ + { + "name": "Deployed", + "type": "event", + "inputs": [ + { + "name": "addr", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "name": "bytecode", + "type": "function", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "stateMutability": "view" + }, + { + "name": "computeAddress", + "type": "function", + "inputs": [ + { + "name": "public_key", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "owners", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "threhold", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "name": "deploy", + "type": "function", + "inputs": [ + { + "name": "public_key", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "owners", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "threhold", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "addr", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + } +] diff --git a/packages/app-config/src/chains/darwinia.ts b/packages/app-config/src/chains/darwinia.ts index 04ac123..812dac3 100644 --- a/packages/app-config/src/chains/darwinia.ts +++ b/packages/app-config/src/chains/darwinia.ts @@ -1,5 +1,5 @@ import { ChainConfig } from "@darwinia/app-types"; -import multisigContract from "../abi/contract.json"; +import multisigContract from "../abi/darwiniaContract.json"; export const darwinia: ChainConfig = { name: "Darwinia", @@ -19,7 +19,7 @@ export const darwinia: ChainConfig = { ethereumDecimals: 18, }, contractAddresses: { - multisig: "0x227c3e01071C2429766dDec2267A613e32DD463e", //TODO update this accordingly + multisig: "0xEE62B94230F6F8834Fb1E73152C7348e54d60521", }, contractInterface: { multisig: multisigContract,