Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ import { NETWORK_CONFIG } from "../config/network";
export const walletConnectSupportedNetworks: Networks = {
// Ethereum mainnet
4: 'https://rinkeby.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161',
97: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
80001: 'https://rpc-mumbai.maticvigil.com',
69: 'https://kovan.optimism.io/'
};

// Network chain ids
export const SUPPORTED_CHAINIDS: number[] | undefined = Object.values(
NETWORK_CONFIG
)?.map((config: any): number => config.network.chainId);

export const ALBT_TOKEN_ADDRESS = "";
export const FACTORY_ADDRESS = "";
export const localStorageKeys: { [key: string]: string } = {
walletConnection: "ventures:connected",
};
Expand Down
141 changes: 141 additions & 0 deletions contracts/Factory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "instantiation",
"type": "address"
}
],
"name": "ContractInstantiation",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
},
{
"internalType": "string",
"name": "_description",
"type": "string"
},
{
"internalType": "address[]",
"name": "_voters",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "_proposers",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "_required",
"type": "uint256"
}
],
"name": "create",
"outputs": [
{
"internalType": "address",
"name": "wallet",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "creator",
"type": "address"
}
],
"name": "getInstantiationCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "creator",
"type": "address"
}
],
"name": "getInstantiations",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "instantiations",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "isInstantiation",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading