UNPKG

blackbull-sdk

Version:

An SDK for building applications on top of Blackbullswap

247 lines (246 loc) 19 kB
{ "_format": "hh-sol-artifact-1", "contractName": "RouterEventEmitter", "sourceName": "contracts/pangolin-periphery/test/RouterEventEmitter.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } ], "name": "Amounts", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapAVAXForExactTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapExactAVAXForTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapExactTokensForAVAX", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapExactTokensForTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapTokensForExactAVAX", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "router", "type": "address" }, { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "swapTokensForExactTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ], "bytecode": "0x608060405234801561001057600080fd5b50610d12806100206000396000f3fe6080604052600436106100695760003560e01c8063375734d911610043578063375734d91461026f57806342011206146103175780638a3a5fd5146103ab57610070565b80630fb5112d146100755780631b48304f1461011f57806322b58410146101c757610070565b3661007057005b600080fd5b34801561008157600080fd5b5061011d600480360360c081101561009857600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156100cf57600080fd5b8201836020820111156100e157600080fd5b8035906020019184602083028401116401000000008311171561010357600080fd5b91935091506001600160a01b03813516906020013561043f565b005b34801561012b57600080fd5b5061011d600480360360c081101561014257600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561017957600080fd5b82018360208201111561018b57600080fd5b803590602001918460208302840111640100000000831117156101ad57600080fd5b91935091506001600160a01b0381351690602001356106ba565b3480156101d357600080fd5b5061011d600480360360c08110156101ea57600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561022157600080fd5b82018360208201111561023357600080fd5b8035906020019184602083028401116401000000008311171561025557600080fd5b91935091506001600160a01b0381351690602001356107a3565b34801561027b57600080fd5b5061011d600480360360c081101561029257600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156102c957600080fd5b8201836020820111156102db57600080fd5b803590602001918460208302840111640100000000831117156102fd57600080fd5b91935091506001600160a01b03813516906020013561088c565b61011d600480360360a081101561032d57600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561035d57600080fd5b82018360208201111561036f57600080fd5b8035906020019184602083028401116401000000008311171561039157600080fd5b91935091506001600160a01b038135169060200135610975565b61011d600480360360a08110156103c157600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156103f157600080fd5b82018360208201111561040357600080fd5b8035906020019184602083028401116401000000008311171561042557600080fd5b91935091506001600160a01b038135169060200135610be7565b60006060886001600160a01b0316637a42416a60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106105295780518252601f19909201916020918201910161050a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610589576040519150601f19603f3d011682016040523d82523d6000602084013e61058e565b606091505b50915091508161059a57fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156105d057600080fd5b81019080805160405193929190846401000000008211156105f057600080fd5b90830190602082018581111561060557600080fd5b825186602082028301116401000000008211171561062257600080fd5b82525081516020918201928201910280838360005b8381101561064f578181015183820152602001610637565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561069c578181015183820152602001610684565b505050509050019250505060405180910390a1505050505050505050565b60006060886001600160a01b031663676528d160e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060886001600160a01b0316638803dbee60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060886001600160a01b03166338ed173960e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060876001600160a01b0316638a657e6760e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b60208310610a575780518252601f199092019160209182019101610a38565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610ab7576040519150601f19603f3d011682016040523d82523d6000602084013e610abc565b606091505b509150915081610ac857fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b3818060200190516020811015610afe57600080fd5b8101908080516040519392919084640100000000821115610b1e57600080fd5b908301906020820185811115610b3357600080fd5b8251866020820283011164010000000082111715610b5057600080fd5b82525081516020918201928201910280838360005b83811015610b7d578181015183820152602001610b65565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610bca578181015183820152602001610bb2565b505050509050019250505060405180910390a15050505050505050565b60006060876001600160a01b031663a2a1623d60e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825286868281815260200192506020028082843760008382015260408051601f909201601f199081169094018281039094018252928352602080820180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909d169c909c178c5292518151919b909a508a995097509550859450879350869250508310610a575780518252601f199092019160209182019101610a3856fea2646970667358221220a230c2b7e1347cb7853bf8fa9941b93e27c478124caa7bc352bdc008500bb0c364736f6c63430006060033", "deployedBytecode": "0x6080604052600436106100695760003560e01c8063375734d911610043578063375734d91461026f57806342011206146103175780638a3a5fd5146103ab57610070565b80630fb5112d146100755780631b48304f1461011f57806322b58410146101c757610070565b3661007057005b600080fd5b34801561008157600080fd5b5061011d600480360360c081101561009857600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156100cf57600080fd5b8201836020820111156100e157600080fd5b8035906020019184602083028401116401000000008311171561010357600080fd5b91935091506001600160a01b03813516906020013561043f565b005b34801561012b57600080fd5b5061011d600480360360c081101561014257600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561017957600080fd5b82018360208201111561018b57600080fd5b803590602001918460208302840111640100000000831117156101ad57600080fd5b91935091506001600160a01b0381351690602001356106ba565b3480156101d357600080fd5b5061011d600480360360c08110156101ea57600080fd5b6001600160a01b03823516916020810135916040820135919081019060808101606082013564010000000081111561022157600080fd5b82018360208201111561023357600080fd5b8035906020019184602083028401116401000000008311171561025557600080fd5b91935091506001600160a01b0381351690602001356107a3565b34801561027b57600080fd5b5061011d600480360360c081101561029257600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156102c957600080fd5b8201836020820111156102db57600080fd5b803590602001918460208302840111640100000000831117156102fd57600080fd5b91935091506001600160a01b03813516906020013561088c565b61011d600480360360a081101561032d57600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561035d57600080fd5b82018360208201111561036f57600080fd5b8035906020019184602083028401116401000000008311171561039157600080fd5b91935091506001600160a01b038135169060200135610975565b61011d600480360360a08110156103c157600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156103f157600080fd5b82018360208201111561040357600080fd5b8035906020019184602083028401116401000000008311171561042557600080fd5b91935091506001600160a01b038135169060200135610be7565b60006060886001600160a01b0316637a42416a60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106105295780518252601f19909201916020918201910161050a565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610589576040519150601f19603f3d011682016040523d82523d6000602084013e61058e565b606091505b50915091508161059a57fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156105d057600080fd5b81019080805160405193929190846401000000008211156105f057600080fd5b90830190602082018581111561060557600080fd5b825186602082028301116401000000008211171561062257600080fd5b82525081516020918201928201910280838360005b8381101561064f578181015183820152602001610637565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561069c578181015183820152602001610684565b505050509050019250505060405180910390a1505050505050505050565b60006060886001600160a01b031663676528d160e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060886001600160a01b0316638803dbee60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060886001600160a01b03166338ed173960e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051808280519060200190808383602083106105295780518252601f19909201916020918201910161050a565b60006060876001600160a01b0316638a657e6760e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b60208310610a575780518252601f199092019160209182019101610a38565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610ab7576040519150601f19603f3d011682016040523d82523d6000602084013e610abc565b606091505b509150915081610ac857fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b3818060200190516020811015610afe57600080fd5b8101908080516040519392919084640100000000821115610b1e57600080fd5b908301906020820185811115610b3357600080fd5b8251866020820283011164010000000082111715610b5057600080fd5b82525081516020918201928201910280838360005b83811015610b7d578181015183820152602001610b65565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610bca578181015183820152602001610bb2565b505050509050019250505060405180910390a15050505050505050565b60006060876001600160a01b031663a2a1623d60e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825286868281815260200192506020028082843760008382015260408051601f909201601f199081169094018281039094018252928352602080820180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909d169c909c178c5292518151919b909a508a995097509550859450879350869250508310610a575780518252601f199092019160209182019101610a3856fea2646970667358221220a230c2b7e1347cb7853bf8fa9941b93e27c478124caa7bc352bdc008500bb0c364736f6c63430006060033", "linkReferences": {}, "deployedLinkReferences": {} }