UNPKG

test-contracts-sovryn

Version:

Smart contracts for the Sovryn protocol and external integrations.

359 lines (358 loc) 17 kB
{ "_format": "hh-sol-artifact-1", "contractName": "TestWrbtc", "sourceName": "contracts/testhelpers/TestWrbtc.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "guy", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "dst", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dst", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "src", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "Withdrawal", "type": "event" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "guy", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" } ], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "deposit", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_value", "type": "uint256" } ], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "wad", "type": "uint256" } ], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x60c0604052600b60808190526a577261707065642042544360a81b60a090815261002c9160009190610079565b5060408051808201909152600580825264575242544360d81b602090920191825261005991600191610079565b506002805460ff1916601217905534801561007357600080fd5b50610114565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ba57805160ff19168380011785556100e7565b828001600101855582156100e7579182015b828111156100e75782518255916020019190600101906100cc565b506100f39291506100f7565b5090565b61011191905b808211156100f357600081556001016100fd565b90565b6108d9806101236000396000f3fe6080604052600436106100c25760003560e01c806340c10f191161007f5780639dc29fac116100595780639dc29fac146102e3578063a9059cbb1461031c578063d0e30db0146100c2578063dd62ed3e14610355576100c2565b806340c10f191461026257806370a082311461029b57806395d89b41146102ce576100c2565b806306fdde03146100cc578063095ea7b31461015657806318160ddd146101a357806323b872dd146101ca5780632e1a7d4d1461020d578063313ce56714610237575b6100ca610390565b005b3480156100d857600080fd5b506100e16103df565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561011b578181015183820152602001610103565b50505050905090810190601f1680156101485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016257600080fd5b5061018f6004803603604081101561017957600080fd5b506001600160a01b03813516906020013561046d565b604080519115158252519081900360200190f35b3480156101af57600080fd5b506101b86104d3565b60408051918252519081900360200190f35b3480156101d657600080fd5b5061018f600480360360608110156101ed57600080fd5b506001600160a01b038135811691602081013590911690604001356104d7565b34801561021957600080fd5b506100ca6004803603602081101561023057600080fd5b503561060b565b34801561024357600080fd5b5061024c6106a0565b6040805160ff9092168252519081900360200190f35b34801561026e57600080fd5b506100ca6004803603604081101561028557600080fd5b506001600160a01b0381351690602001356106a9565b3480156102a757600080fd5b506101b8600480360360208110156102be57600080fd5b50356001600160a01b031661074d565b3480156102da57600080fd5b506100e161075f565b3480156102ef57600080fd5b506100ca6004803603604081101561030657600080fd5b506001600160a01b0381351690602001356107b9565b34801561032857600080fd5b5061018f6004803603604081101561033f57600080fd5b506001600160a01b038135169060200135610873565b34801561036157600080fd5b506101b86004803603604081101561037857600080fd5b506001600160a01b0381358116916020013516610887565b33600081815260036020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b820191906000526020600020905b81548152906001019060200180831161044857829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b4790565b6001600160a01b0383166000908152600360205260408120548211156104fc57600080fd5b6001600160a01b038416331480159061053a57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b1561059a576001600160a01b038416600090815260046020908152604080832033845290915290205482111561056f57600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091529020805483900390555b6001600160a01b03808516600081815260036020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b3360009081526003602052604090205481111561062757600080fd5b33600081815260036020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610666573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b60025460ff1681565b6001600160a01b0382166106f6576040805162461bcd60e51b815260206004820152600f60248201526e1b9bc8189d5c9b88185b1b1bddd959608a1b604482015290519081900360640190fd5b6001600160a01b0382166000818152600360209081526040808320805486019055805185815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60036020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b6001600160a01b038216600090815260036020526040902054811115610818576040805162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b604482015290519081900360640190fd5b6001600160a01b038216600081815260036020908152604080832080548690039055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60006108803384846104d7565b9392505050565b60046020908152600092835260408084209091529082529020548156fea265627a7a72315820547a72244a5cd43b179c19aa46f7933694c44676214598484673e4c31e800f2764736f6c63430005110032", "deployedBytecode": "0x6080604052600436106100c25760003560e01c806340c10f191161007f5780639dc29fac116100595780639dc29fac146102e3578063a9059cbb1461031c578063d0e30db0146100c2578063dd62ed3e14610355576100c2565b806340c10f191461026257806370a082311461029b57806395d89b41146102ce576100c2565b806306fdde03146100cc578063095ea7b31461015657806318160ddd146101a357806323b872dd146101ca5780632e1a7d4d1461020d578063313ce56714610237575b6100ca610390565b005b3480156100d857600080fd5b506100e16103df565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561011b578181015183820152602001610103565b50505050905090810190601f1680156101485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016257600080fd5b5061018f6004803603604081101561017957600080fd5b506001600160a01b03813516906020013561046d565b604080519115158252519081900360200190f35b3480156101af57600080fd5b506101b86104d3565b60408051918252519081900360200190f35b3480156101d657600080fd5b5061018f600480360360608110156101ed57600080fd5b506001600160a01b038135811691602081013590911690604001356104d7565b34801561021957600080fd5b506100ca6004803603602081101561023057600080fd5b503561060b565b34801561024357600080fd5b5061024c6106a0565b6040805160ff9092168252519081900360200190f35b34801561026e57600080fd5b506100ca6004803603604081101561028557600080fd5b506001600160a01b0381351690602001356106a9565b3480156102a757600080fd5b506101b8600480360360208110156102be57600080fd5b50356001600160a01b031661074d565b3480156102da57600080fd5b506100e161075f565b3480156102ef57600080fd5b506100ca6004803603604081101561030657600080fd5b506001600160a01b0381351690602001356107b9565b34801561032857600080fd5b5061018f6004803603604081101561033f57600080fd5b506001600160a01b038135169060200135610873565b34801561036157600080fd5b506101b86004803603604081101561037857600080fd5b506001600160a01b0381358116916020013516610887565b33600081815260036020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b820191906000526020600020905b81548152906001019060200180831161044857829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b4790565b6001600160a01b0383166000908152600360205260408120548211156104fc57600080fd5b6001600160a01b038416331480159061053a57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b1561059a576001600160a01b038416600090815260046020908152604080832033845290915290205482111561056f57600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091529020805483900390555b6001600160a01b03808516600081815260036020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b3360009081526003602052604090205481111561062757600080fd5b33600081815260036020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610666573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b60025460ff1681565b6001600160a01b0382166106f6576040805162461bcd60e51b815260206004820152600f60248201526e1b9bc8189d5c9b88185b1b1bddd959608a1b604482015290519081900360640190fd5b6001600160a01b0382166000818152600360209081526040808320805486019055805185815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60036020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b6001600160a01b038216600090815260036020526040902054811115610818576040805162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b604482015290519081900360640190fd5b6001600160a01b038216600081815260036020908152604080832080548690039055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b60006108803384846104d7565b9392505050565b60046020908152600092835260408084209091529082529020548156fea265627a7a72315820547a72244a5cd43b179c19aa46f7933694c44676214598484673e4c31e800f2764736f6c63430005110032", "linkReferences": {}, "deployedLinkReferences": {} }