-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
184 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_wrb", "type": "address" } | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "uint64", | ||
"name": "", | ||
"type": "uint64" | ||
} | ||
], | ||
"name": "PriceUpdated", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "string", | ||
"name": "", | ||
"type": "string" | ||
} | ||
], | ||
"name": "ResultError", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "ETHUSD3ID", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "lastPrice", | ||
"outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "lastRequestId", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "pending", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "request", | ||
"outputs": [ | ||
{ | ||
"internalType": "contract WitnetRequest", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "timestamp", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "requestUpdate", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function", | ||
"payable": true | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "completeUpdate", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "bytes32", "name": "_id", "type": "bytes32" }], | ||
"name": "valueFor", | ||
"outputs": [ | ||
{ "internalType": "int256", "name": "", "type": "int256" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function", | ||
"constant": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export function containFalsyValues(obj: Object): boolean { | ||
export function containFalsyValues (obj: Object): boolean { | ||
return !Object.values(obj).reduce((prev, val) => prev && val) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters