Skip to content

Commit 6fcdb32

Browse files
author
Galen Simmons
committed
oracleResponse issue
1 parent 30d9e91 commit 6fcdb32

File tree

5,447 files changed

+80232
-334099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,447 files changed

+80232
-334099
lines changed

.vscode/settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"git.ignoreLimitWarning": true
2+
"git.ignoreLimitWarning": true,
3+
"dart.analysisExcludedFolders": [
4+
"./project4/src/flutter_dapp/lib/generated_plugin_registrant.dart"
5+
]
36
}

project4/1_compile_contracts.sh

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22

3+
rm -rf src/flutter_dapp/assets/contracts/*
4+
35
ganache-cli \
46
-m "summer wolf absurd truck hire say exit impact below marriage exclude liberty" \
57
--defaultBalanceEther=1000 \
68
--accounts=50 \
7-
-l 80000000 \
8-
--networkId = 212 \
9-
--account_keys_path "./src/flutter_dapp/assets/contracts/accounts.json"
9+
-l=99999999 \
10+
--account_keys_path=./src/flutter_dapp/assets/contracts/accounts.json

project4/2_compile_contracts.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
docker run -v $(pwd)/contracts:/sources ethereum/solc:0.4.26 -o /sources/build --overwrite --abi /sources/FlightSuretyApp.sol
4+
5+
cp -rf contracts/build src/flutter_dapp/assets/contracts/

project4/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ it("Cannot re-register an airline that has already been registered", async () =>
8383
});
8484
```
8585

86+
### Gas Estimation
87+
I used the `eth-gas-reporter` npm package to estimate gas costs. Given the high gas costs a user would incur by calling these contracts, there is definitely room to improve the implementation. The ![gas reporter file](fs-gas-report.rst) contains the measurements of gas consumption for the `flightSurety.js` tests.
88+
8689
## Running the dApp
8790
The frontend of the dApp can be run locally by simply executing `npm run server` and `npm run dapp:prod`. **Note:** in order for the dapp to run properly, the contracts must have been deployed by running `npx truffle deploy --reset`. This will deploy the contracts onto a local Ethereum node.
8891

0 commit comments

Comments
 (0)