tripio
Version:
Tripio SDK for JavaScript
558 lines (551 loc) • 12.4 kB
JavaScript
export default [
{
"constant": false,
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "_ipfs",
"type": "bytes32"
}
],
"name": "createRatePlan",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_date",
"type": "uint256"
},
{
"name": "_token",
"type": "uint256"
}
],
"name": "priceOfDate",
"outputs": [
{
"name": "_inventory",
"type": "uint16"
},
{
"name": "_price",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_dates",
"type": "uint256[]"
},
{
"name": "_token",
"type": "uint256"
}
],
"name": "pricesAndInventoriesOfDate",
"outputs": [
{
"name": "",
"type": "uint256[]"
},
{
"name": "",
"type": "uint16[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_name",
"type": "string"
},
{
"name": "_ipfs",
"type": "bytes32"
}
],
"name": "modifyRatePlan",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_rpid",
"type": "uint256"
}
],
"name": "ratePlanOfVendor",
"outputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "_timestamp",
"type": "uint256"
},
{
"name": "_ipfs",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_from",
"type": "uint256"
},
{
"name": "_limit",
"type": "uint256"
}
],
"name": "ratePlansOfVendor",
"outputs": [
{
"name": "",
"type": "uint256[]"
},
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_tokens",
"type": "uint256[]"
},
{
"name": "_prices",
"type": "uint256[]"
},
{
"name": "_inventory",
"type": "uint16"
}
],
"name": "updateBasePrice",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_dates",
"type": "uint256[]"
},
{
"name": "_token",
"type": "uint256"
}
],
"name": "pricesOfDate",
"outputs": [
{
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
],
"name": "acceptOwnership",
"outputs": [
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_dates",
"type": "uint256[]"
},
{
"name": "_inventory",
"type": "uint16"
},
{
"name": "_tokens",
"type": "uint256[]"
},
{
"name": "_prices",
"type": "uint256[]"
}
],
"name": "updatePrices",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_vendorId",
"type": "uint256"
},
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_dates",
"type": "uint256[]"
}
],
"name": "inventoriesOfDate",
"outputs": [
{
"name": "",
"type": "uint16[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "newOwner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_rpid",
"type": "uint256"
}
],
"name": "removeRatePlan",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_rpid",
"type": "uint256"
},
{
"name": "_dates",
"type": "uint256[]"
},
{
"name": "_inventory",
"type": "uint16"
}
],
"name": "updateInventories",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"name": "_dataSource",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_vendor",
"type": "address"
},
{
"indexed": false,
"name": "_name",
"type": "string"
},
{
"indexed": true,
"name": "_ipfs",
"type": "bytes32"
}
],
"name": "RatePlanCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_vendor",
"type": "address"
},
{
"indexed": true,
"name": "_rpid",
"type": "uint256"
}
],
"name": "RatePlanRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_vendor",
"type": "address"
},
{
"indexed": true,
"name": "_rpid",
"type": "uint256"
},
{
"indexed": false,
"name": "name",
"type": "string"
},
{
"indexed": false,
"name": "_ipfs",
"type": "bytes32"
}
],
"name": "RatePlanModified",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_rpid",
"type": "uint256"
}
],
"name": "RatePlanPriceChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_rpid",
"type": "uint256"
}
],
"name": "RatePlanInventoryChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_rpid",
"type": "uint256"
}
],
"name": "RatePlanBasePriceChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
],
"name": "destroy",
"outputs": [
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
];