Skip to content

Commit

Permalink
added new smart contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
isunaslabs committed Apr 24, 2023
1 parent 8ada65b commit ec47cb4
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 2 deletions.
86 changes: 86 additions & 0 deletions packages/app-config/src/abi/darwiniaContract.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
4 changes: 2 additions & 2 deletions packages/app-config/src/chains/darwinia.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -19,7 +19,7 @@ export const darwinia: ChainConfig = {
ethereumDecimals: 18,
},
contractAddresses: {
multisig: "0x227c3e01071C2429766dDec2267A613e32DD463e", //TODO update this accordingly
multisig: "0xEE62B94230F6F8834Fb1E73152C7348e54d60521",
},
contractInterface: {
multisig: multisigContract,
Expand Down

0 comments on commit ec47cb4

Please sign in to comment.