Browse Source

Add events to drizzle, bump solc

develop
Ezerous 4 years ago
parent
commit
e0dda66d45
  1. 1
      packages/concordia-app/src/options/drizzleOptions.js
  2. 2
      packages/concordia-contracts/contracts/Forum.sol
  3. 2
      packages/concordia-contracts/contracts/Migrations.sol
  4. 2
      packages/concordia-contracts/contracts/Voting.sol
  5. 2
      packages/concordia-contracts/test/TestVoting.sol
  6. 4
      packages/concordia-contracts/truffle-config.js

1
packages/concordia-app/src/options/drizzleOptions.js

@ -9,6 +9,7 @@ const drizzleOptions = {
contracts, contracts,
events: { events: {
Forum: ['UserSignedUp', 'UsernameUpdated', 'TopicCreated', 'PostCreated'], Forum: ['UserSignedUp', 'UsernameUpdated', 'TopicCreated', 'PostCreated'],
Voting: ['PollCreated', 'UserVoted'],
}, },
reloadWindowOnNetworkChange: true, reloadWindowOnNetworkChange: true,
reloadWindowOnAccountChange: true, // We need it to reinitialize breeze and create new Orbit databases reloadWindowOnAccountChange: true, // We need it to reinitialize breeze and create new Orbit databases

2
packages/concordia-contracts/contracts/Forum.sol

@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT //SPDX-License-Identifier: MIT
pragma solidity 0.7.4; pragma solidity 0.7.5;
contract Forum { contract Forum {

2
packages/concordia-contracts/contracts/Migrations.sol

@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT //SPDX-License-Identifier: MIT
pragma solidity 0.7.4; pragma solidity 0.7.5;
contract Migrations { contract Migrations {
address public owner; address public owner;

2
packages/concordia-contracts/contracts/Voting.sol

@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT //SPDX-License-Identifier: MIT
pragma solidity 0.7.4; pragma solidity 0.7.5;
import "./Forum.sol"; import "./Forum.sol";

2
packages/concordia-contracts/test/TestVoting.sol

@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT //SPDX-License-Identifier: MIT
pragma solidity 0.7.4; pragma solidity 0.7.5;
import "truffle/Assert.sol"; import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol"; import "truffle/DeployedAddresses.sol";

4
packages/concordia-contracts/truffle-config.js

@ -8,7 +8,7 @@ module.exports = {
// to customize your Truffle configuration! // to customize your Truffle configuration!
compilers: { compilers: {
solc: { solc: {
version: '0.7.4', version: '0.7.5',
}, },
}, },
contracts_build_directory: path.join(__dirname, 'build/'), contracts_build_directory: path.join(__dirname, 'build/'),
@ -20,7 +20,7 @@ module.exports = {
}, },
test: { test: {
host: GANACHE_HOST || '127.0.0.1', host: GANACHE_HOST || '127.0.0.1',
port: GANACHE_PORT || '8545', port: GANACHE_PORT || '8546',
network_id: '*', network_id: '*',
}, },
}, },

Loading…
Cancel
Save