Skip to content
Open
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
10,207 changes: 6,909 additions & 3,298 deletions src/contracts/PoolFactory.json

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion src/contracts/PoolRecorder.json
Original file line number Diff line number Diff line change
Expand Up @@ -11098,10 +11098,30 @@
"links": {},
"address": "0x59b4baBe32C46f7e628a6e80E97BD09Ff5Ab40B4",
"transactionHash": "0x2b4a134821907b4ae49f7a12c1fcac8708cd71ccb1c6b45a348943bb5a3051c1"
},
"3": {
"events": {
"0x73cca62ab1b520c9715bf4e6c71e3e518c754e7148f65102f43289a7df0efea6": {
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "poolAddress",
"type": "address"
}
],
"name": "PoolAdded",
"type": "event"
}
},
"links": {},
"address": "0xB57438F28d45Fd9c5A22D29228867Cfb6f99A0be",
"transactionHash": "0x1b174484ff00801b6c29bb36181b9b216cce317f55af309d4a8392319a437c7b"
}
},
"schemaVersion": "3.3.2",
"updatedAt": "2021-04-19T00:26:32.533Z",
"updatedAt": "2021-04-19T15:04:37.605Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",
Expand Down
6 changes: 3 additions & 3 deletions src/drizzleOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const options = {
url: 'ws://127.0.0.1:8545'
}
},
contracts: [PoolRecorder],
contracts: [],
events: {
},
polls: {
//check the blockchain every 5s
accounts: 1000,
blocks: 1000
accounts: 5000,
blocks: 5000
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/DetailsPool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
newAddressParticipant: "",
var1: "", var2: "",
compoundCEthContract : null,
ceth_address: '0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5'
ceth_address: '0xd6801a1dffcd0a410336ef88def4320d6df1883e'

};
},
Expand Down
21 changes: 16 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import { mapGetters } from "vuex";
import Card from "../components/home/card-pool.vue";
import Newcard from "../components/home/newcard.vue";
const PoolRecorder = require("../contracts/PoolRecorder.json")

export default {
components: {
Expand Down Expand Up @@ -79,11 +80,21 @@ export default {
},
},
created() {
this.$store.dispatch("drizzle/REGISTER_CONTRACT", {
contractName: "PoolRecorder", // i.e. TwistedAuctionMock
method: "getListPools",
methodArgs: [], // No args required for this method
});
if (!("PoolRecorder" in this.drizzleInstance.contracts)) {
var contractConfig = {
contractName: "PoolRecorder",
web3Contract: new this.drizzleInstance.web3.eth.Contract(
PoolRecorder.abi,
"0xB57438F28d45Fd9c5A22D29228867Cfb6f99A0be"
),
};
this.drizzleInstance.addContract(contractConfig);
this.$store.dispatch("drizzle/REGISTER_CONTRACT", {
contractName: "PoolRecorder", // i.e. TwistedAuctionMock
method: "getListPools",
methodArgs: [], // No args required for this method
});
}
},
};
</script>
Expand Down