Skip to content

Commit

Permalink
feat: bacalhau container
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
  • Loading branch information
md0x committed Jun 15, 2023
1 parent 896b630 commit 49a32a0
Show file tree
Hide file tree
Showing 153 changed files with 28,562 additions and 229 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,17 @@ cd rust-peer
cargo run

TODO:
- [ ] adapters dashboard frontend
- [ ] adapter example
- [ ] lit + ceramic standardise and run it in the background
- [ ] propose frontend
- [ ] vote frontend UI
- [x] adapters dashboard frontend
- [x] adapter example
- [x] lit + ceramic standardise and run it in the background
- [] lit Read adapters from contract
- [x] propose frontend
- [x] vote frontend UI
- [ ] vote ipfs storing and broadcasting logic
- [ ] bacalahou docker image that calculates the vote resolution
- [ ] DIPs frontend ? considering removing dips
- [ ] Finish contracts
- [ ] Deploy contracts in calibration network
- [x] DIPs frontend ? considering removing dips
- [x] Finish contracts
- [x] Deploy contracts in calibration network
- [x] Run rust peer
- [ ] Store the root vote somehow, maybe a client that's always on?
- [ ] Video copy -> Demo narrative
Expand Down
5 changes: 5 additions & 0 deletions addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"token": "0xA6Bb82C8b903a7570E6B1039173ecB340329E9f8",
"governor": "0xF8BB525439b3C908a66430fbb436865C3Dc4ebDF",
"registry": "0xf92a898B111874045bfF3EC3a209C300995D5562"
}
3 changes: 2 additions & 1 deletion bacalhau-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN rm -rf
RUN npm run build

CMD [ "node", "./dist/src/index.js" ]
CMD [ "node", "./dist/index.js" ]
5 changes: 5 additions & 0 deletions bacalhau-container/addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"token": "0xA6Bb82C8b903a7570E6B1039173ecB340329E9f8",
"governor": "0xF8BB525439b3C908a66430fbb436865C3Dc4ebDF",
"registry": "0xf92a898B111874045bfF3EC3a209C300995D5562"
}
141 changes: 141 additions & 0 deletions bacalhau-container/contracts/DefiKicksAdapterRegistry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "ipfsHash",
"type": "string"
}
],
"name": "AdapterAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "AdapterRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "adapters",
"outputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "ipfsHash",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "ipfsHash",
"type": "string"
}
],
"name": "addAdapter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "removeAdapter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 49a32a0

Please sign in to comment.