Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Dapp Challenge #31

Open
wants to merge 34 commits into
base: dapp-challenge
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3f61eaa
add iexec-oracle-contract to deps
sulliwane Oct 4, 2017
e44acc0
add gitignore
sulliwane Oct 4, 2017
104105e
use IexecOracleAPI from npm instead of local
sulliwane Oct 4, 2017
0334db3
add DAPP_PRICE
Oct 17, 2017
d80832b
Update package.json
Oct 18, 2017
bf373ca
Update truffle.js
Oct 18, 2017
7485cf8
Update truffle.js
Oct 18, 2017
a8d115e
Update truffle.js
Oct 18, 2017
be235cb
Update MyContract.sol
Oct 25, 2017
8534944
Update iexec.js
Nov 10, 2017
188f445
Update package.json
Nov 10, 2017
d0627ab
missing coma
Nov 10, 2017
b1c5568
Adding missing comma to truffle.js
Andy92Pac Nov 11, 2017
4712e23
Merge pull request #6 from Andy92Pac/patch-1
sulliwane Nov 12, 2017
5830dc2
add README
Dec 8, 2017
3c54f1d
update oracle to v1.1.1
sulliwane Dec 13, 2017
5ac2792
immprove readme
sulliwane Dec 18, 2017
0172905
remove truffle.js
sulliwane Dec 18, 2017
19b5781
add example fields
sulliwane Dec 18, 2017
bdaaf5e
improve description
sulliwane Dec 19, 2017
527791d
improve desc
sulliwane Dec 19, 2017
58c6f39
improve readme
sulliwane Dec 19, 2017
55a95af
add License
sulliwane Dec 19, 2017
63b924e
remove deps
sulliwane Dec 19, 2017
fadd08b
Improve readme
sulliwane Dec 19, 2017
4b16baa
update init dapp readme
Dec 20, 2017
2d2e861
update init dapp readme
Dec 20, 2017
11fc114
update init dapp readme
Dec 20, 2017
b4db05b
Merge pull request #15 from iExecBlockchainComputing/IEXPROD-212-init
sulliwane Dec 20, 2017
0a8fa65
remove lock
sulliwane Jan 25, 2018
1e6a2b1
dockerize init app
sulliwane Feb 16, 2018
8c9f848
add logo
sulliwane Mar 1, 2018
58a5249
move to master branch explanations
sulliwane Mar 1, 2018
6a0957a
remove examples folder
sulliwane Mar 1, 2018
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
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Coverage directory used by tools like istanbul
coverage

# node-waf configuration
.lock-wscript

# Dependency directory
node_modules

# Compiled JS directory
/dist/*
!/dist/iexec.js

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2017 iExec Blockchain Tech, https://iex.ec

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# iexec dapps samples

This is the registry for sample iexec dapps, used by the iexec-sdk cli.

Each branch name of this repo can be used as an argument to iexec init command.

ex:

```bash
iexec init
iexec init factorial
iexec init echo
```
![dapp logo](./logo.png)
# My Dapp name
## Description
My Dapp description here...
## [Dapp params](./iexec.js)
7 changes: 7 additions & 0 deletions apps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Your iExec Dapp is composed of two parts:

* under the ```apps``` directory :
Put the offchain app (any kind of legacy application). The offchain app will be executed by the iExec decentralized cloud.

* under the ```contracts``` directory :
A smart contract that interfaces with your iExec Dapp, it will serve as a gateway from Ethereum to your offchain app.
436 changes: 436 additions & 0 deletions build/contracts/MyContract.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions contracts/MyContract.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
pragma solidity ^0.4.11;
import "./IexecOracleAPI.sol";
import "iexec-oracle-contract/contracts/IexecOracleAPI.sol";
contract MyContract is IexecOracleAPI{

function MyContract (address _iexecOracleAddress) IexecOracleAPI(_iexecOracleAddress){
uint public constant DAPP_PRICE = 0;
string public constant DAPP_NAME = "init";

function MyContract (address _iexecOracleAddress) IexecOracleAPI(_iexecOracleAddress,DAPP_PRICE,DAPP_NAME){

}

}
}
14 changes: 9 additions & 5 deletions iexec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = {
name: 'MyContract',
constructorArgs: ['0xb34406538112bd2b3036b2c417c7cff827777a11'], // oracle v0.1.2 ropsten
// constructorArgs: ['0x98275d4b6511ef05ed063d127dd82b72588326c9'], // oracle v0.1.2 rinkeby
// constructorArgs: ['0xb81d38d843cb526a3d0c3130d568fe09799135aa'], // oracle v0.1.2 kovan
};
name: 'MyContract',
app: {
type: 'DOCKER',
envvars: 'XWDOCKERIMAGE=docker-image-name',
},
work: {
cmdline: 'cli arguments',
}
};
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "?",
"version": "1.0.0",
"description": "?",
"main": "iexec.js",
"repository": {
"type": "git",
"url": "git+https://github.com/iExecBlockchainComputing/iexec-dapp-samples.git"
},
"author": {
"name": "?"
},
"license": "?",
"homepage": "https://github.com/iExecBlockchainComputing/iexec-dapp-samples/tree/init#readme",
"logo": "logo.png"
}
31 changes: 0 additions & 31 deletions truffle.js

This file was deleted.