This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for tokens BNTY and MKR (#4)
* add artifact for BNTY and MKR * add BNTY and MKR in library * update burner address in truffle deploy * add BNTY and MKR in the smartcontract readme
- Loading branch information
Showing
7 changed files
with
700 additions
and
3 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 |
---|---|---|
|
@@ -26,6 +26,8 @@ export enum Currency { | |
BAT, | ||
BNB, | ||
LINK, | ||
BNTY, | ||
MKR, | ||
} | ||
|
||
// State of the Request | ||
|
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
337 changes: 337 additions & 0 deletions
337
packages/requestNetworkArtifacts/RequestERC20/RequestERC20-0.2.7-bnty-main.json
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,337 @@ | ||
{ | ||
"contractName": "RequestERC20", | ||
"abi": [ | ||
{ | ||
"constant": true, | ||
"inputs": [{ "name": "_expectedAmount", "type": "int256" }], | ||
"name": "collectEstimation", | ||
"outputs": [{ "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "rateFeesNumerator", | ||
"outputs": [{ "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_requestId", "type": "bytes32" }, | ||
{ "name": "_payeeAmounts", "type": "uint256[]" }, | ||
{ "name": "_additionalAmounts", "type": "uint256[]" } | ||
], | ||
"name": "paymentAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_requestId", "type": "bytes32" }, | ||
{ "name": "_subtractAmounts", "type": "uint256[]" } | ||
], | ||
"name": "subtractAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "unpause", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_requestData", "type": "bytes" }, | ||
{ "name": "_payeesPaymentAddress", "type": "address[]" }, | ||
{ "name": "_payeeAmounts", "type": "uint256[]" }, | ||
{ "name": "_additionals", "type": "uint256[]" }, | ||
{ "name": "_expirationDate", "type": "uint256" }, | ||
{ "name": "_signature", "type": "bytes" } | ||
], | ||
"name": "broadcastSignedRequestAsPayerAction", | ||
"outputs": [{ "name": "requestId", "type": "bytes32" }], | ||
"payable": true, | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "name": "_requestBurnerContract", "type": "address" }], | ||
"name": "setRequestBurnerContract", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "paused", | ||
"outputs": [{ "name": "", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_payeesIdAddress", "type": "address[]" }, | ||
{ "name": "_payeesPaymentAddress", "type": "address[]" }, | ||
{ "name": "_expectedAmounts", "type": "int256[]" }, | ||
{ "name": "_payer", "type": "address" }, | ||
{ "name": "_payerRefundAddress", "type": "address" }, | ||
{ "name": "_data", "type": "string" } | ||
], | ||
"name": "createRequestAsPayeeAction", | ||
"outputs": [{ "name": "requestId", "type": "bytes32" }], | ||
"payable": true, | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "requestCore", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "rateFeesDenominator", | ||
"outputs": [{ "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "name": "_requestId", "type": "bytes32" }], | ||
"name": "cancelAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_requestId", "type": "bytes32" }, | ||
{ "name": "_additionalAmounts", "type": "uint256[]" } | ||
], | ||
"name": "additionalAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "pause", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "erc20Token", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "name": "", "type": "bytes32" }], | ||
"name": "payerRefundAddress", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "name": "_requestId", "type": "bytes32" }], | ||
"name": "acceptAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "", "type": "bytes32" }, | ||
{ "name": "", "type": "uint256" } | ||
], | ||
"name": "payeesPaymentAddress", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_rateFeesNumerator", "type": "uint256" }, | ||
{ "name": "_rateFeesDenominator", "type": "uint256" } | ||
], | ||
"name": "setRateFees", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_payeesIdAddress", "type": "address[]" }, | ||
{ "name": "_expectedAmounts", "type": "int256[]" }, | ||
{ "name": "_payerRefundAddress", "type": "address" }, | ||
{ "name": "_payeeAmounts", "type": "uint256[]" }, | ||
{ "name": "_additionals", "type": "uint256[]" }, | ||
{ "name": "_data", "type": "string" } | ||
], | ||
"name": "createRequestAsPayerAction", | ||
"outputs": [{ "name": "requestId", "type": "bytes32" }], | ||
"payable": true, | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "name": "_newMaxFees", "type": "uint256" }], | ||
"name": "setMaxCollectable", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "requestBurnerContract", | ||
"outputs": [{ "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "maxFees", | ||
"outputs": [{ "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "_requestId", "type": "bytes32" }, | ||
{ "name": "_amountToRefund", "type": "uint256" } | ||
], | ||
"name": "refundAction", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "name": "newOwner", "type": "address" }], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "name": "_requestCoreAddress", "type": "address" }, | ||
{ "name": "_requestBurnerAddress", "type": "address" }, | ||
{ "name": "_erc20Token", "type": "address" } | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"name": "rateFeesNumerator", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"name": "rateFeesDenominator", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "UpdateRateFees", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": false, "name": "maxFees", "type": "uint256" } | ||
], | ||
"name": "UpdateMaxFees", | ||
"type": "event" | ||
}, | ||
{ "anonymous": false, "inputs": [], "name": "Pause", "type": "event" }, | ||
{ | ||
"anonymous": false, | ||
"inputs": [], | ||
"name": "Unpause", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "name": "previousOwner", "type": "address" }, | ||
{ "indexed": true, "name": "newOwner", "type": "address" } | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
} | ||
], | ||
"version": "0.2.7", | ||
"networks": { | ||
"main": { | ||
"address": "0xfa7b14e5e5e0b59ef6fb86f56928349eb607cbb3", | ||
"blockNumber": 7515803 | ||
} | ||
} | ||
} |
Oops, something went wrong.