Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebrand to provable #90

Merged
merged 14 commits into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
187 changes: 187 additions & 0 deletions .ci/drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
kind: pipeline
name: oraclize-krakenPriceTicker-0.5

steps:
- name: test-url-kraken
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./oraclizeAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/contracts/oraclizeAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
kind: pipeline
name: provable-delegatedMath-0.5

steps:
- name: test-computation-math
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/delegated-math/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/delegated-math/
- sed -i.bu 's/oraclize/provable/g' ./contracts/DelegatedMath.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/DelegatedMath.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
kind: pipeline
name: provable-dieselPrice-0.5

steps:
- name: test-url-diesel
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/diesel-price/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/diesel-price/
- sed -i.bu 's/oraclize/provable/g' ./contracts/DieselPrice.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/DieselPrice.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test
---
kind: pipeline
name: provable-krakenPriceTicker-0.5

steps:
- name: test-url-kraken
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/
- sed -i.bu 's/oraclize/provable/g' ./contracts/KrakenPriceTicker.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/KrakenPriceTicker.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
kind: pipeline
name: provable-streamr-0.5

steps:
- name: test-computation-streamr
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/streamr/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/streamr/
- sed -i.bu 's/oraclize/provable/g' ./contracts/StreamrTweetsCounter.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/StreamrTweetsCounter.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
#kind: pipeline
#name: provable-urlRequests-0.5
#
#steps:
#- name: test-computation-requests
# image: node:lts-alpine
# commands:
# - echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
# - rm -rf ./ethereum-examples/
# - git clone https://github.com/oraclize/ethereum-examples.git
# - cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/url-requests/contracts/provableAPI.sol
# - cd ./ethereum-examples/solidity/truffle-examples/url-requests/
# - sed -i.bu 's/oraclize/provable/g' ./contracts/UrlRequests.sol
# - sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/UrlRequests.sol
# - npm i > /dev/null 2>&1
# - npm i truffle -g --unsafe-perm > /dev/null
# - npm i ganache-cli -g --unsafe-perm > /dev/null
# - ganache-cli -p 9545 > /dev/null &
# - sleep 10
# - npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
# - sleep 50
# - truffle test
#
#---
kind: pipeline
name: provable-wolframAlpha-0.5

steps:
- name: test-wolfram-alpha
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/wolfram-alpha/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/wolfram-alpha/
- sed -i.bu 's/oraclize/provable/g' ./contracts/WolframAlpha.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/WolframAlpha.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
kind: pipeline
name: provable-youtubeViews-0.5

steps:
- name: test-url-youtube
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/youtube-views/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/youtube-views/
- sed -i.bu 's/oraclize/provable/g' ./contracts/YoutubeViews.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/YoutubeViews.sol
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
MIT License

Copyright (c) 2016 Oraclize LTD
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016-2019 Oraclize LTD
Copyright (c) 2019 Provable Things Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
## Oraclize Ethereum API [![Join the chat at https://gitter.im/oraclize/ethereum-api](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/oraclize/ethereum-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Docs@Oraclize.it](https://camo.githubusercontent.com/5e89710c6ae9ce0da822eec138ee1a2f08b34453/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d536c6174652d627269676874677265656e2e737667)](http://docs.oraclize.it) [![HitCount](http://hits.dwyl.io/oraclize/ethereum-api.svg)](http://hits.dwyl.io/oraclize/ethereum-api) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
## Provable Ethereum API [![Join the chat at https://gitter.im/oraclize/ethereum-api](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/oraclize/ethereum-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Docs@Provable.it](https://camo.githubusercontent.com/5e89710c6ae9ce0da822eec138ee1a2f08b34453/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d536c6174652d627269676874677265656e2e737667)](http://docs.oraclize.it) [![HitCount](http://hits.dwyl.io/oraclize/ethereum-api.svg)](http://hits.dwyl.io/oraclize/ethereum-api) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

 

Thanks to this __Ethereum API__, enriching your smart-contracts with external data using __Oraclize__ is very easy!
Thanks to this __Ethereum API__, enriching your smart-contracts with external data using __Provable__ is very easy!

In Solidity it is as simple as inheriting the __`usingOraclize`__ contract that you'll find in this repository.
In Solidity it is as simple as inheriting the __`usingProvable`__ contract that you'll find in this repository.

This will provide your contract with functions like __`oraclize_query(...)`__, which make it trivial for you to leverage our oracle technology straight away.
This will provide your contract with functions like __`provable_query(...)`__, which make it trivial for you to leverage our oracle technology straight away.

If you're using the __[Remix IDE](http://remix.ethereum.org)__ it's even easier still - simply import __Oraclize__ into your contract like so:
If you're using the __[Remix IDE](http://remix.ethereum.org)__ it's even easier still - simply import __Provable__ into your contract like so:

```solidity

import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
import "github.com/oraclize/ethereum-api/provableAPI.sol";

```

To learn more about the Oraclize technology, please refer to our __[documentation here](https://docs.oraclize.it)__.
To learn more about the Provable technology, please refer to our __[documentation here](https://docs.oraclize.it)__.

 

Expand All @@ -26,9 +26,9 @@ To learn more about the Oraclize technology, please refer to our __[documentatio

### :computer: See It In Action!

For working examples of how to integrate the __Oraclize__ API into your own smart-contracts, head on over to the __[Oraclize Examples](https://github.com/oraclize/ethereum-examples)__ repository. Here you'll find various examples that use __Oraclize__ to feed smart-contracts with data from a variety of external sources.
For working examples of how to integrate the __Provable__ API into your own smart-contracts, head on over to the __[Provable Ethereum Examples](https://github.com/oraclize/ethereum-examples)__ repository. Here you'll find various examples that use __Provable__ to feed smart-contracts with data from a variety of external sources.

There are even __[some examples here](https://github.com/oraclize/ethereum-examples/tree/master/solidity/truffle-examples)__ showing you how you can use __Oraclize__ in a local Truffle development environment!
There are even __[some examples here](https://github.com/oraclize/ethereum-examples/tree/master/solidity/truffle-examples)__ showing you how you can use __Provable__ in a local Truffle development environment!

 

Expand Down Expand Up @@ -56,6 +56,10 @@ __❍__ Plus a __[Github](https://github.com/oraclize)__

 

### :hourglass_flowing_sand: __Notice about Oraclize rebranding to Provable:__

Please use the __`provableAPI_0.X.sol`__ contracts going forward. We will continue supporting the oraclize-named versions for a limited time, but they should be considered deprecated and to be removed in the coming months.

### :radioactive: __A Note Regarding Serpent:__

:skull: __CAUTION__: It is highly recommended to avoid using Serpent, especially in production. The serpent version of the __Oraclize__ API herein remains for historical reasons but support for it is no longer maintained. Serpent is considered outdated and audits have shown it to be flawed. Use it at your own risk!
:skull: __CAUTION__: It is highly recommended to avoid using Serpent, especially in production. The serpent version of the __Provable__ API herein remains for historical reasons but support for it is no longer maintained. Serpent is considered outdated and audits have shown it to be flawed. Use it at your own risk!
3 changes: 2 additions & 1 deletion oraclizeAPI.se
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI.sol

# Copyright (c) 2015-2016 Oraclize SRL
# Copyright (c) 2016 Oraclize LTD
# Copyright (c) 2016-2019 Oraclize LTD
# Copyright (c) 2019 Provable Things Limited



Expand Down
Loading