export const exchangeABI = [
{
'constant': true,
'inputs': [],
'name': 'name',
'outputs': [
{
'name': '',
'type': 'string',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'tokenTransferProxy',
'outputs': [
{
'name': '',
'type': 'address',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'target',
'type': 'address',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'extradata',
'type': 'bytes',
},
],
'name': 'staticCall',// 静态调用
'outputs': [
{
'name': 'result',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'newMinimumMakerProtocolFee',
'type': 'uint256',
},
],
'name': 'changeMinimumMakerProtocolFee',// 更改最低 Maker 协议费用
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'newMinimumTakerProtocolFee',
'type': 'uint256',
},
],
'name': 'changeMinimumTakerProtocolFee',// 更改最低接受者协议费用
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'array',
'type': 'bytes',
},
{
'name': 'desired',
'type': 'bytes',
},
{
'name': 'mask',
'type': 'bytes',
},
],
'name': 'guardedArrayReplace',// 边界守卫数组替换
'outputs': [
{
'name': '',
'type': 'bytes',
},
],
'payable': false,
'stateMutability': 'pure',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'minimumTakerProtocolFee',// 最低收费标准
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'codename',// 代号
'outputs': [
{
'name': '',
'type': 'string',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
],
'name': 'calculateCurrentPrice_',// 计算当前价格
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'newProtocolFeeRecipient',
'type': 'address',
},
],
'name': 'changeProtocolFeeRecipient', // 改变协议费用收件人
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'version',
'outputs': [
{
'name': '',
'type': 'string',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'buyCalldata',
'type': 'bytes',
},
{
'name': 'buyReplacementPattern',
'type': 'bytes',
},
{
'name': 'sellCalldata',
'type': 'bytes',
},
{
'name': 'sellReplacementPattern',
'type': 'bytes',
},
],
'name': 'orderCalldataCanMatch',// 订单调用数据匹配
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'pure',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
{
'name': 'v',
'type': 'uint8',
},
{
'name': 'r',
'type': 'bytes32',
},
{
'name': 's',
'type': 'bytes32',
},
],
'name': 'validateOrder_',// 校验订单
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'basePrice',
'type': 'uint256',
},
{
'name': 'extra',
'type': 'uint256',
},
{
'name': 'listingTime',
'type': 'uint256',
},
{
'name': 'expirationTime',
'type': 'uint256',
},
],
'name': 'calculateFinalPrice',// 计算最终的价格
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'protocolFeeRecipient',//协议费用收件人
'outputs': [
{
'name': '',
'type': 'address',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
],
'name': 'hashOrder_',
'outputs': [
{
'name': '',
'type': 'bytes32',
},
],
'payable': false,
'stateMutability': 'pure',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[14]',
},
{
'name': 'uints',
'type': 'uint256[18]',
},
{
'name': 'feeMethodsSidesKindsHowToCalls',
'type': 'uint8[8]',
},
{
'name': 'calldataBuy',
'type': 'bytes',
},
{
'name': 'calldataSell',
'type': 'bytes',
},
{
'name': 'replacementPatternBuy',
'type': 'bytes',
},
{
'name': 'replacementPatternSell',
'type': 'bytes',
},
{
'name': 'staticExtradataBuy',
'type': 'bytes',
},
{
'name': 'staticExtradataSell',
'type': 'bytes',
},
],
'name': 'ordersCanMatch_', // 匹配订单
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
{
'name': 'orderbookInclusionDesired',
'type': 'bool',
},
],
'name': 'approveOrder_',// 审核订单
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'registry',
'outputs': [
{
'name': '',
'type': 'address',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'minimumMakerProtocolFee',// 最低制造商协议费
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': '',
'type': 'bytes32',
},
],
'name': 'cancelledOrFinalized', // 取消或者完成
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'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': 'exchangeToken',// 交换Token
'outputs': [
{
'name': '',
'type': 'address',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
{
'name': 'v',
'type': 'uint8',
},
{
'name': 'r',
'type': 'bytes32',
},
{
'name': 's',
'type': 'bytes32',
},
],
'name': 'cancelOrder_',// 取消订单
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'addrs',
'type': 'address[14]',
},
{
'name': 'uints',
'type': 'uint256[18]',
},
{
'name': 'feeMethodsSidesKindsHowToCalls',
'type': 'uint8[8]',
},
{
'name': 'calldataBuy',
'type': 'bytes',
},
{
'name': 'calldataSell',
'type': 'bytes',
},
{
'name': 'replacementPatternBuy',
'type': 'bytes',
},
{
'name': 'replacementPatternSell',
'type': 'bytes',
},
{
'name': 'staticExtradataBuy',
'type': 'bytes',
},
{
'name': 'staticExtradataSell',
'type': 'bytes',
},
{
'name': 'vs',
'type': 'uint8[2]',
},
{
'name': 'rssMetadata',
'type': 'bytes32[5]',
},
],
'name': 'atomicMatch_',// 原子化匹配、支付
'outputs': [],
'payable': true,
'stateMutability': 'payable',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[7]',
},
{
'name': 'uints',
'type': 'uint256[9]',
},
{
'name': 'feeMethod',
'type': 'uint8',
},
{
'name': 'side',
'type': 'uint8',
},
{
'name': 'saleKind',
'type': 'uint8',
},
{
'name': 'howToCall',
'type': 'uint8',
},
{
'name': 'calldata',
'type': 'bytes',
},
{
'name': 'replacementPattern',
'type': 'bytes',
},
{
'name': 'staticExtradata',
'type': 'bytes',
},
],
'name': 'validateOrderParameters_',// 校验订单参数
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [],
'name': 'INVERSE_BASIS_POINT',// 反基点
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': 'addrs',
'type': 'address[14]',
},
{
'name': 'uints',
'type': 'uint256[18]',
},
{
'name': 'feeMethodsSidesKindsHowToCalls',
'type': 'uint8[8]',
},
{
'name': 'calldataBuy',
'type': 'bytes',
},
{
'name': 'calldataSell',
'type': 'bytes',
},
{
'name': 'replacementPatternBuy',
'type': 'bytes',
},
{
'name': 'replacementPatternSell',
'type': 'bytes',
},
{
'name': 'staticExtradataBuy',
'type': 'bytes',
},
{
'name': 'staticExtradataSell',
'type': 'bytes',
},
],
'name': 'calculateMatchPrice_',//计算匹配价格
'outputs': [
{
'name': '',
'type': 'uint256',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': true,
'inputs': [
{
'name': '',
'type': 'bytes32',
},
],
'name': 'approvedOrders',//批准的订单
'outputs': [
{
'name': '',
'type': 'bool',
},
],
'payable': false,
'stateMutability': 'view',
'type': 'function',
},
{
'constant': false,
'inputs': [
{
'name': 'newOwner',
'type': 'address',
},
],
'name': 'transferOwnership',// 所有权转让
'outputs': [],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'function',
},
{
'inputs': [
{
'name': 'registryAddress',
'type': 'address',
},
{
'name': 'tokenTransferProxyAddress',
'type': 'address',
},
{
'name': 'tokenAddress',
'type': 'address',
},
{
'name': 'protocolFeeAddress',
'type': 'address',
},
],
'payable': false,
'stateMutability': 'nonpayable',
'type': 'constructor',
},
{
'anonymous': false,
'inputs': [
{
'indexed': true,
'name': 'hash',
'type': 'bytes32',
},
{
'indexed': false,
'name': 'exchange',
'type': 'address',
},
{
'indexed': true,
'name': 'maker',
'type': 'address',
},
{
'indexed': false,
'name': 'taker',
'type': 'address',
},
{
'indexed': false,
'name': 'makerRelayerFee',
'type': 'uint256',
},
{
'indexed': false,
'name': 'takerRelayerFee',
'type': 'uint256',
},
{
'indexed': false,
'name': 'makerProtocolFee',
'type': 'uint256',
},
{
'indexed': false,
'name': 'takerProtocolFee',
'type': 'uint256',
},
{
'indexed': true,
'name': 'feeRecipient',
'type': 'address',
},
{
'indexed': false,
'name': 'feeMethod',
'type': 'uint8',
},
{
'indexed': false,
'name': 'side',
'type': 'uint8',
},
{
'indexed': false,
'name': 'saleKind',
'type': 'uint8',
},
{
'indexed': false,
'name': 'target',
'type': 'address',
},
],
'name': 'OrderApprovedPartOne',//订单批准部分
'type': 'event',
},
{
'anonymous': false,
'inputs': [
{
'indexed': true,
'name': 'hash',
'type': 'bytes32',
},
{
'indexed': false,
'name': 'howToCall',
'type': 'uint8',
},
{
'indexed': false,
'name': 'calldata',
'type': 'bytes',
},
{
'indexed': false,
'name': 'replacementPattern',
'type': 'bytes',
},
{
'indexed': false,
'name': 'staticTarget',
'type': 'address',
},
{
'indexed': false,
'name': 'staticExtradata',
'type': 'bytes',
},
{
'indexed': false,
'name': 'paymentToken',
'type': 'address',
},
{
'indexed': false,
'name': 'basePrice',
'type': 'uint256',
},
{
'indexed': false,
'name': 'extra',
'type': 'uint256',
},
{
'indexed': false,
'name': 'listingTime',
'type': 'uint256',
},
{
'indexed': false,
'name': 'expirationTime',
'type': 'uint256',
},
{
'indexed': false,
'name': 'salt',
'type': 'uint256',
},
{
'indexed': false,
'name': 'orderbookInclusionDesired',
'type': 'bool',
},
],
'name': 'OrderApprovedPartTwo',//订单批准第二部分
'type': 'event',
},
{
'anonymous': false,
'inputs': [
{
'indexed': true,
'name': 'hash',
'type': 'bytes32',
},
],
'name': 'OrderCancelled',// 订单取消
'type': 'event',
},
{
'anonymous': false,
'inputs': [
{
'indexed': false,
'name': 'buyHash',
'type': 'bytes32',
},
{
'indexed': false,
'name': 'sellHash',
'type': 'bytes32',
},
{
'indexed': true,
'name': 'maker',
'type': 'address',
},
{
'indexed': true,
'name': 'taker',
'type': 'address',
},
{
'indexed': false,
'name': 'price',
'type': 'uint256',
},
{
'indexed': true,
'name': 'metadata',
'type': 'bytes32',
},
],
'name': 'OrdersMatched',//匹配订单
'type': 'event',
},
{
'anonymous': false,
'inputs': [
{
'indexed': true,
'name': 'previousOwner',
'type': 'address',
},
{
'indexed': true,
'name': 'newOwner',
'type': 'address',
},
],
'name': 'OwnershipTransferred', // 所有权转让
'type': 'event',
},
];
// tslint:disable:max-file-line-count