Skip to content

Commit 5815601

Browse files
author
Augusto Lemble
authored
Merge pull request #329 from levelkdev/develop
openraise-dapp v0.2.2
2 parents 9d7f47d + eca603b commit 5815601

35 files changed

Lines changed: 2506 additions & 2011 deletions

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v10.16.3
1+
10.16.3

.openzeppelin/kovan.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@
489489
},
490490
"solidityLibs": {},
491491
"proxies": {
492-
"BC-DAPP/DecentralizedAutonomousTrust": [
492+
"openraise-dapp/DecentralizedAutonomousTrust": [
493493
{
494494
"address": "0xDd25BaE0659fC06a8d00CD06C7f5A98D71bfB715",
495495
"version": "0.1.0",
@@ -498,14 +498,14 @@
498498
"kind": "Upgradeable"
499499
}
500500
],
501-
"BC-DAPP/Multicall": [
501+
"openraise-dapp/Multicall": [
502502
{
503503
"address": "0xc58930e7d81E97D3B82B324eF59e8AfF4bD723BB",
504504
"kind": "NonProxy",
505505
"bytecodeHash": "daa7a021eecb7d6e3a847506aa7589e5a9bbdabd6fe91c538a1d9fb37b7fd577"
506506
}
507507
],
508-
"BC-DAPP/TokenVesting": [
508+
"openraise-dapp/TokenVesting": [
509509
{
510510
"address": "0x26A20D2585fbFb8D33c766a0E19555A666D42128",
511511
"kind": "NonProxy",

.openzeppelin/mainnet.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@
489489
},
490490
"solidityLibs": {},
491491
"proxies": {
492-
"BC-DAPP/DecentralizedAutonomousTrust": [
492+
"openraise-dapp/DecentralizedAutonomousTrust": [
493493
{
494494
"address": "0xa1d65E8fB6e87b60FECCBc582F7f97804B725521",
495495
"version": "0.1.0",
@@ -498,14 +498,14 @@
498498
"kind": "Upgradeable"
499499
}
500500
],
501-
"BC-DAPP/Multicall": [
501+
"openraise-dapp/Multicall": [
502502
{
503503
"address": "0x742121cD0BB9784c1f17f25B8da1bF3445b93ED4",
504504
"kind": "NonProxy",
505505
"bytecodeHash": "daa7a021eecb7d6e3a847506aa7589e5a9bbdabd6fe91c538a1d9fb37b7fd577"
506506
}
507507
],
508-
"BC-DAPP/TokenVesting": [
508+
"openraise-dapp/TokenVesting": [
509509
{
510510
"address": "0xBd12eBb77eF167a5FF93b7E572b33f2526aE3fd0",
511511
"kind": "NonProxy",

.openzeppelin/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"TokenVesting": "TokenVesting"
77
},
88
"dependencies": {},
9-
"name": "BC-DAPP",
9+
"name": "openraise-dapp",
1010
"version": "0.1.0",
1111
"compiler": {
1212
"compilerSettings": {

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# BC-DAPP
1+
# OpenRaise
22

3-
The **Bonding Curve Decentralized Application** will be used to raise funds to support the development of decentralized finance focused applications governed and maintained by the [DXdao](https://dxdao.daostack.io/).
3+
The **OpenRaise Dapp** is used to raise funds for decentralized organizations.
44

5-
## Project Status
6-
7-
The project development can be followed in the milestones section https://github.com/levelkdev/BC-DAPP/milestones.
85

96
## Technical Description
107

11-
The Bonding Curve Dapp is designed to be completely client side, which means that it runs entirely on the browser of the user and only consumes necessary information and interacts when needed with the Ethereum blockchain.
8+
The OpenRaise Dapp is designed to be completely client side, which means that it runs entirely on the browser of the user and only consumes necessary information and interacts when needed with the Ethereum blockchain.
129
The dapp is written in javascript and typescrypt, it uses ReactJS and Webapack.
1310
The contracts used in the dapp are the c-org contracts from fairmint. https://github.com/Fairmint/c-org.
1411

@@ -115,7 +112,7 @@ Executable can be downloaded from https://swarm-gateways.net/bzz:/swarm.eth/down
115112

116113
The build can be upload to swarm with the following command:
117114
```
118-
~/swarm --bzzapi https://swarm-gateways.net/ --defaultpath PATH_TO_BC-DAPP/build/index.html --recursive up PATH_TO_BC-DAPP/BC-DAPP/build
115+
~/swarm --bzzapi https://swarm-gateways.net/ --defaultpath PATH_TO_OPENRAISE-DAPP/build/index.html --recursive up PATH_TO_OPENRAISE-DAPP/OPENRAISE-DAPP/build
119116
```
120117

121118
### Smart Contracts

config/webpack.config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ const imageInlineSizeLimit = parseInt(
3939
process.env.IMAGE_INLINE_SIZE_LIMIT || '10000'
4040
);
4141

42+
// Get short commit hash from git
43+
const GitRevisionPlugin = require('git-revision-webpack-plugin')
44+
const gitRevisionPlugin = new GitRevisionPlugin()
45+
const shortCommitHash = gitRevisionPlugin.commithash().substring(0,8);
46+
4247
// Check if TypeScript is setup
4348
const useTypeScript = fs.existsSync(paths.appTsConfig);
4449

@@ -177,13 +182,13 @@ module.exports = function(webpackEnv) {
177182
// There will be one main bundle, and one file per asynchronous chunk.
178183
// In development, it does not produce real files.
179184
filename: isEnvProduction
180-
? 'static/js/[name].js'
185+
? 'static/js/[name].'+shortCommitHash+'.js'
181186
: isEnvDevelopment && 'static/js/bundle.js',
182187
// TODO: remove this when upgrading to webpack 5
183188
futureEmitAssets: true,
184189
// There are also additional JS chunk files if you use code splitting.
185190
chunkFilename: isEnvProduction
186-
? 'static/js/[name].chunk.js'
191+
? 'static/js/[name].'+shortCommitHash+'.chunk.js'
187192
: isEnvDevelopment && 'static/js/[name].chunk.js',
188193
// We inferred the "public path" (such as / or /my-project) from homepage.
189194
// We use "/" in development.
@@ -208,6 +213,7 @@ module.exports = function(webpackEnv) {
208213
},
209214
optimization: {
210215
minimize: isEnvProduction,
216+
moduleIds: 'hashed',
211217
minimizer: [
212218
// This is only used in production mode
213219
new TerserPlugin({
@@ -602,7 +608,7 @@ module.exports = function(webpackEnv) {
602608
new MiniCssExtractPlugin({
603609
// Options similar to the same options in webpackOptions.output
604610
// both options are optional
605-
filename: 'static/css/[name].css',
611+
filename: 'static/css/[name].'+shortCommitHash+'.css',
606612
chunkFilename:
607613
'static/css/[name].chunk.css',
608614
}),

config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = function(proxy, allowedHost) {
9696
// We do this in development to avoid hitting the production cache if
9797
// it used the same host and port.
9898
// https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
99-
app.use(noopServiceWorkerMiddleware());
99+
app.use(noopServiceWorkerMiddleware('/custom-service-worker.js'));
100100
},
101101
};
102102
};

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html><head><title>BC-DAPP</title></head><body><div id="root"></div><script src="index.js"></script></body></html>
1+
<!doctype html><html><head><title>OpenRaise</title></head><body><div id="root"></div><script src="index.js"></script></body></html>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
{
2-
"name": "BC-DAPP",
3-
"version": "0.2.1",
2+
"name": "openraise-dapp",
3+
"version": "0.2.2",
44
"description": "Decentralized app for fundraising in DXdao.",
55
"scripts": {
66
"start": "./scripts/start.sh",
77
"dev": "./scripts/dev.sh",
88
"deploy": "node scripts/deploy.js",
99
"deploy-contracts": "node scripts/deployContracts.js",
10-
"build": "node scripts/build.js",
10+
"build": "rm -rif build && node scripts/build.js",
1111
"test": "node scripts/test.js",
1212
"loadDeployments": "node scripts/loadDeployments.js"
1313
},
14+
"engines": {
15+
"node": "10.16.3"
16+
},
1417
"repository": {
1518
"type": "git",
16-
"url": "git+https://github.com/levelkdev/BC-DAPP.git"
19+
"url": "git+https://github.com/levelkdev/openraise-dapp.git"
1720
},
18-
"authors": "John Kelleher <john.kelleher@levelk.io>, Thomas Pulber <corkus@pm.me>, Thomas Spofford <tspofford@pm.me>, Augusto Lemble <me@augustol.com>",
1921
"bugs": {
20-
"url": "https://github.com/levelkdev/BC-DAPP/issues"
22+
"url": "https://github.com/levelkdev/openraise-dapp/issues"
2123
},
2224
"homepage": "./",
2325
"eslintConfig": {
@@ -146,6 +148,7 @@
146148
"ethereumjs-util": "^6.1.0",
147149
"ethers": "^4.0.45",
148150
"file-loader": "3.0.1",
151+
"git-revision-webpack-plugin": "^3.0.6",
149152
"hdkey": "^1.1.1",
150153
"html-webpack-plugin": "4.0.0-beta.5",
151154
"identity-obj-proxy": "3.0.0",

0 commit comments

Comments
 (0)