Created
May 15, 2021 11:56
-
-
Save korrio/aa6c88c571e88622d5f0faec88ccb61c to your computer and use it in GitHub Desktop.
Full BUSD ABI
This file contains hidden or 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
{ | |
"contractName": "BUSD", | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "name", | |
"type": "string" | |
}, | |
{ | |
"internalType": "string", | |
"name": "symbol", | |
"type": "string" | |
}, | |
{ | |
"internalType": "uint8", | |
"name": "decimal", | |
"type": "uint8" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "supply", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Approval", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Transfer", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
} | |
], | |
"name": "allowance", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "approve", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "balanceOf", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "decimals", | |
"outputs": [ | |
{ | |
"internalType": "uint8", | |
"name": "", | |
"type": "uint8" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "subtractedValue", | |
"type": "uint256" | |
} | |
], | |
"name": "decreaseAllowance", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "addedValue", | |
"type": "uint256" | |
} | |
], | |
"name": "increaseAllowance", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "symbol", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "totalSupply", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "recipient", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "transfer", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "recipient", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimal\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"supply\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/BUSD.sol\":\"BUSD\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/BUSD.sol\":{\"keccak256\":\"0xf22324a0a21ec9e305b840994606e6d06fb06aa96f50211614b845de55a30707\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://96816abbe4d05a6b8dc2023f4ab0caab30ed17683cd25d8233c1132190fd07e2\",\"dweb:/ipfs/QmPqoCQ4PLV2nYLoFoT3FBLAUmR5VvoXxLYvEdmf2Amx8h\"]},\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x3aefc025791d973007a545b773c5669d1e0e520ea53883c6dc3789c9a7f0b791\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://69b943eee8083dcdece0f8b1699b08558391dbed41bfb77fb9a640bf19ae2e5a\",\"dweb:/ipfs/QmX2hAnZW6exoDFyY156bdKETuQHNS2jEgmgzh3dw2Lwbb\"]},\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xab5c7152a7b2a6312d46df6eb13468a8b8b10e7725f13d2a1994c4d8af65b77a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6ac8021890eef8ee6e40c9a4b47daf09271b1646ae307e055454a9c798b9b35\",\"dweb:/ipfs/QmYAbsrBjTG3JrRBZhz6hVrYGsG49bjs3kAhKWiVuqFNAm\"]},\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x8e0302197c71b215fb117051ac0c0caf59cae89f00a9b835afadbbf07bf3a4b1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a1937af1852d025420ada7d42f49b200d5e1dc3dcf4a3dd64d83ffe14b3e12a5\",\"dweb:/ipfs/QmVwtXqhPmjaoPgEGrUcTM9AiRQXd8bHXVmXW8ChEAiNBr\"]},\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/utils/Address.sol\":{\"keccak256\":\"0x17d17ecb13ef5b4fe30032a254a7678fd77ea5e53b40f21be3df90fa6b22b0fc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b486029b7a521a335131783f90e76e7f26f1e894b8b0fe0707200adb6e9fad50\",\"dweb:/ipfs/QmWkqMqQGVWkaA6CJqaf7RD4E8RyNPhC2F4PkQRF5FwSCx\"]},\"/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/utils/Context.sol\":{\"keccak256\":\"0xf407d4288c4c8218d1f8f0ed37daca79f26875a84d88a9799cb5be9ee9642b61\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://55d81cc7bd51da8a26c9d6b3ef40c658c0a2fdceaca2623bd960c84b8baf94c2\",\"dweb:/ipfs/QmQGQNhrwnHYLnWApMt1FEtfFVifUDUiTHXrGduCHZNvbU\"]}},\"version\":1}", | |
"bytecode": "0x60806040523480156200001157600080fd5b5060405162000e2038038062000e20833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b506040908152602082810151929091015186519294509250859185918591620001c8916003919086019062000382565b508151620001de90600490602085019062000382565b506005805460ff191660ff929092169190911790555062000202905033826200020c565b505050506200041e565b6001600160a01b03821662000268576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b62000276600083836200031b565b62000292816002546200032060201b620005731790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002c59183906200057362000320821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b6000828201838110156200037b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003c557805160ff1916838001178555620003f5565b82800160010185558215620003f5579182015b82811115620003f5578251825591602001919060010190620003d8565b506200040392915062000407565b5090565b5b8082111562000403576000815560010162000408565b6109f2806200042e6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c6105d4565b84846105d8565b50600192915050565b60025490565b600061037f8484846106c4565b6103ef8461038b6105d4565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c96105d4565b6001600160a01b03168152602081019190915260400160002054919061081f565b6105d8565b5060019392505050565b60055460ff1690565b600061036361040f6105d4565b846103ea85600160006104206105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610573565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d96105d4565b846103ea8560405180606001604052806025815260200161099860259139600160006105036105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061081f565b60006103636105416105d4565b84846106c4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156105cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661061d5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106625760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107095760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b03821661074e5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6107598383836108b6565b61079681604051806060016040528060268152602001610901602691396001600160a01b038616600090815260208190526040902054919061081f565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107c59082610573565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108ae5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561087357818101518382015260200161085b565b50505050905090810190601f1680156108a05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a6493269905906546c9997caa2cf6c5d2bcac8c032dffe141bf5575aac72243d64736f6c634300060c0033", | |
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c6105d4565b84846105d8565b50600192915050565b60025490565b600061037f8484846106c4565b6103ef8461038b6105d4565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c96105d4565b6001600160a01b03168152602081019190915260400160002054919061081f565b6105d8565b5060019392505050565b60055460ff1690565b600061036361040f6105d4565b846103ea85600160006104206105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610573565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d96105d4565b846103ea8560405180606001604052806025815260200161099860259139600160006105036105d4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061081f565b60006103636105416105d4565b84846106c4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156105cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661061d5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106625760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107095760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b03821661074e5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6107598383836108b6565b61079681604051806060016040528060268152602001610901602691396001600160a01b038616600090815260208190526040902054919061081f565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107c59082610573565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108ae5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561087357818101518382015260200161085b565b50505050905090810190601f1680156108a05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a6493269905906546c9997caa2cf6c5d2bcac8c032dffe141bf5575aac72243d64736f6c634300060c0033", | |
"immutableReferences": {}, | |
"sourceMap": "93:232:0:-:0;;;122:201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122:201:0;;;;;;;;;;-1:-1:-1;122:201:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122:201:0;;;;;;;;;;-1:-1:-1;122:201:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122:201:0;;;;;;;;;;;;;;2129:12:11;;122:201:0;;-1:-1:-1;122:201:0;-1:-1:-1;258:4:0;;264:6;;122:201;;2129:12:11;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2151:16:11;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2177:9:11;:20;;-1:-1:-1;;2177:20:11;;;;;;;;;;;;-1:-1:-1;291:25:0::1;::::0;-1:-1:-1;297:10:0::1;309:6:::0;291:5:::1;:25::i;:::-;122:201:::0;;;;93:232;;8381:370:11;-1:-1:-1;;;;;8464:21:11;;8456:65;;;;;-1:-1:-1;;;8456:65:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;8532:49;8561:1;8565:7;8574:6;8532:20;:49::i;:::-;8607:24;8624:6;8607:12;;:16;;;;;;:24;;;;:::i;:::-;8592:12;:39;-1:-1:-1;;;;;8662:18:11;;:9;:18;;;;;;;;;;;;:30;;8685:6;;8662:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8641:18:11;;:9;:18;;;;;;;;;;;:51;;;;8707:37;;;;;;;8641:18;;:9;;8707:37;;;;;;;;;;8381:370;;:::o;11307:121::-;;;;:::o;874:176:9:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:9:o;93:232:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;93:232:0;;;-1:-1:-1;93:232:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;", | |
"deployedSourceMap": "93:232:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2269:81:11;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4385:202;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4385:202:11;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3312:98;;;:::i;:::-;;;;;;;;;;;;;;;;5047:439;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5047:439:11;;;;;;;;;;;;;;;;;:::i;3171:81::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5881:289;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5881:289:11;;;;;;;;:::i;3468:117::-;;;;;;;;;;;;;;;;-1:-1:-1;3468:117:11;-1:-1:-1;;;;;3468:117:11;;:::i;2463:85::-;;;:::i;6657:386::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6657:386:11;;;;;;;;:::i;3788:208::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3788:208:11;;;;;;;;:::i;4054:193::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4054:193:11;;;;;;;;;;:::i;2269:81::-;2338:5;2331:12;;;;;;;;-1:-1:-1;;2331:12:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2306:13;;2331:12;;2338:5;;2331:12;;2338:5;2331:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2269:81;:::o;4385:202::-;4500:4;4520:39;4529:12;:10;:12::i;:::-;4543:7;4552:6;4520:8;:39::i;:::-;-1:-1:-1;4576:4:11;4385:202;;;;:::o;3312:98::-;3391:12;;3312:98;:::o;5047:439::-;5183:4;5199:36;5209:6;5217:9;5228:6;5199:9;:36::i;:::-;5245:213;5267:6;5287:12;:10;:12::i;:::-;5313:135;5368:6;5313:135;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5313:19:11;;;;;;:11;:19;;;;;;5333:12;:10;:12::i;:::-;-1:-1:-1;;;;;5313:33:11;;;;;;;;;;;;-1:-1:-1;5313:33:11;;;:135;:37;:135::i;:::-;5245:8;:213::i;:::-;-1:-1:-1;5475:4:11;5047:439;;;;;:::o;3171:81::-;3236:9;;;;3171:81;:::o;5881:289::-;5993:4;6013:129;6035:12;:10;:12::i;:::-;6061:7;6082:50;6121:10;6082:11;:25;6094:12;:10;:12::i;:::-;-1:-1:-1;;;;;6082:25:11;;;;;;;;;;;;;;;;;-1:-1:-1;6082:25:11;;;:34;;;;;;;;;;;:38;:50::i;3468:117::-;-1:-1:-1;;;;;3560:18:11;3534:7;3560:18;;;;;;;;;;;;3468:117::o;2463:85::-;2534:7;2527:14;;;;;;;;-1:-1:-1;;2527:14:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2502:13;;2527:14;;2534:7;;2527:14;;2534:7;2527:14;;;;;;;;;;;;;;;;;;;;;;;;6657:386;6774:4;6794:221;6816:12;:10;:12::i;:::-;6842:7;6863:142;6919:15;6863:142;;;;;;;;;;;;;;;;;:11;:25;6875:12;:10;:12::i;:::-;-1:-1:-1;;;;;6863:25:11;;;;;;;;;;;;;;;;;-1:-1:-1;6863:25:11;;;:34;;;;;;;;;;;:142;:38;:142::i;3788:208::-;3906:4;3926:42;3936:12;:10;:12::i;:::-;3950:9;3961:6;3926:9;:42::i;4054:193::-;-1:-1:-1;;;;;4213:18:11;;;4183:7;4213:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;4054:193::o;874:176:9:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:9:o;590:104:20:-;677:10;590:104;:::o;9939:370:11:-;-1:-1:-1;;;;;10070:19:11;;10062:68;;;;-1:-1:-1;;;10062:68:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10148:21:11;;10140:68;;;;-1:-1:-1;;;10140:68:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10219:18:11;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10270:32;;;;;;;;;;;;;;;;;9939:370;;;:::o;7517:594::-;-1:-1:-1;;;;;7652:20:11;;7644:70;;;;-1:-1:-1;;;7644:70:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7732:23:11;;7724:71;;;;-1:-1:-1;;;7724:71:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7806:47;7827:6;7835:9;7846:6;7806:20;:47::i;:::-;7884:105;7919:6;7884:105;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7884:17:11;;:9;:17;;;;;;;;;;;;:105;:21;:105::i;:::-;-1:-1:-1;;;;;7864:17:11;;;:9;:17;;;;;;;;;;;:125;;;;8022:20;;;;;;;:32;;8047:6;8022:24;:32::i;:::-;-1:-1:-1;;;;;7999:20:11;;;:9;:20;;;;;;;;;;;;:55;;;;8069:35;;;;;;;7999:20;;8069:35;;;;;;;;;;;;;7517:594;;;:::o;1746:187:9:-;1832:7;1867:12;1859:6;;;;1851:29;;;;-1:-1:-1;;;1851:29:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1902:5:9;;;1746:187::o;11307:121:11:-;;;;:::o", | |
"source": "// SPDX-License-Identifier: MIT\n\npragma solidity 0.6.12;\n\nimport \"./token/ERC20/ERC20.sol\";\n\ncontract BUSD is ERC20 {\n constructor(\n string memory name,\n string memory symbol,\n uint8 decimal,\n uint256 supply\n ) public ERC20(name, symbol, decimal) {\n _mint(msg.sender, supply);\n }\n}\n", | |
"sourcePath": "/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/BUSD.sol", | |
"ast": { | |
"absolutePath": "/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/BUSD.sol", | |
"exportedSymbols": { | |
"BUSD": [ | |
28 | |
] | |
}, | |
"id": 29, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"0.6", | |
".12" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "33:23:0" | |
}, | |
{ | |
"absolutePath": "/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/token/ERC20/ERC20.sol", | |
"file": "./token/ERC20/ERC20.sol", | |
"id": 2, | |
"nodeType": "ImportDirective", | |
"scope": 29, | |
"sourceUnit": 3768, | |
"src": "58:33:0", | |
"symbolAliases": [], | |
"unitAlias": "" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [ | |
{ | |
"arguments": null, | |
"baseName": { | |
"contractScope": null, | |
"id": 3, | |
"name": "ERC20", | |
"nodeType": "UserDefinedTypeName", | |
"referencedDeclaration": 3767, | |
"src": "110:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_ERC20_$3767", | |
"typeString": "contract ERC20" | |
} | |
}, | |
"id": 4, | |
"nodeType": "InheritanceSpecifier", | |
"src": "110:5:0" | |
} | |
], | |
"contractDependencies": [ | |
3767, | |
3845, | |
5408 | |
], | |
"contractKind": "contract", | |
"documentation": null, | |
"fullyImplemented": true, | |
"id": 28, | |
"linearizedBaseContracts": [ | |
28, | |
3767, | |
3845, | |
5408 | |
], | |
"name": "BUSD", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"body": { | |
"id": 26, | |
"nodeType": "Block", | |
"src": "281:42:0", | |
"statements": [ | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"arguments": [ | |
{ | |
"argumentTypes": null, | |
"expression": { | |
"argumentTypes": null, | |
"id": 21, | |
"name": "msg", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": -15, | |
"src": "297:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_message", | |
"typeString": "msg" | |
} | |
}, | |
"id": 22, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberName": "sender", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": null, | |
"src": "297:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address_payable", | |
"typeString": "address payable" | |
} | |
}, | |
{ | |
"argumentTypes": null, | |
"id": 23, | |
"name": "supply", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 12, | |
"src": "309:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address_payable", | |
"typeString": "address payable" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 20, | |
"name": "_mint", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 3643, | |
"src": "291:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,uint256)" | |
} | |
}, | |
"id": 24, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "291:25:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 25, | |
"nodeType": "ExpressionStatement", | |
"src": "291:25:0" | |
} | |
] | |
}, | |
"documentation": null, | |
"id": 27, | |
"implemented": true, | |
"kind": "constructor", | |
"modifiers": [ | |
{ | |
"arguments": [ | |
{ | |
"argumentTypes": null, | |
"id": 15, | |
"name": "name", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 6, | |
"src": "258:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
{ | |
"argumentTypes": null, | |
"id": 16, | |
"name": "symbol", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 8, | |
"src": "264:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
{ | |
"argumentTypes": null, | |
"id": 17, | |
"name": "decimal", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 10, | |
"src": "272:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"id": 18, | |
"modifierName": { | |
"argumentTypes": null, | |
"id": 14, | |
"name": "ERC20", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 3767, | |
"src": "252:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_ERC20_$3767_$", | |
"typeString": "type(contract ERC20)" | |
} | |
}, | |
"nodeType": "ModifierInvocation", | |
"src": "252:28:0" | |
} | |
], | |
"name": "", | |
"nodeType": "FunctionDefinition", | |
"overrides": null, | |
"parameters": { | |
"id": 13, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 6, | |
"mutability": "mutable", | |
"name": "name", | |
"nodeType": "VariableDeclaration", | |
"overrides": null, | |
"scope": 27, | |
"src": "143:18:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 5, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "143:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 8, | |
"mutability": "mutable", | |
"name": "symbol", | |
"nodeType": "VariableDeclaration", | |
"overrides": null, | |
"scope": 27, | |
"src": "171:20:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 7, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "171:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 10, | |
"mutability": "mutable", | |
"name": "decimal", | |
"nodeType": "VariableDeclaration", | |
"overrides": null, | |
"scope": 27, | |
"src": "201:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
}, | |
"typeName": { | |
"id": 9, | |
"name": "uint8", | |
"nodeType": "ElementaryTypeName", | |
"src": "201:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 12, | |
"mutability": "mutable", | |
"name": "supply", | |
"nodeType": "VariableDeclaration", | |
"overrides": null, | |
"scope": 27, | |
"src": "224:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 11, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "224:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
} | |
], | |
"src": "133:111:0" | |
}, | |
"returnParameters": { | |
"id": 19, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "281:0:0" | |
}, | |
"scope": 28, | |
"src": "122:201:0", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "public" | |
} | |
], | |
"scope": 29, | |
"src": "93:232:0" | |
} | |
], | |
"src": "33:293:0" | |
}, | |
"legacyAST": { | |
"attributes": { | |
"absolutePath": "/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/BUSD.sol", | |
"exportedSymbols": { | |
"BUSD": [ | |
28 | |
] | |
}, | |
"license": "MIT" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"literals": [ | |
"solidity", | |
"0.6", | |
".12" | |
] | |
}, | |
"id": 1, | |
"name": "PragmaDirective", | |
"src": "33:23:0" | |
}, | |
{ | |
"attributes": { | |
"SourceUnit": 3768, | |
"absolutePath": "/Users/hbot/Desktop/saltery/lottery-token-busd/contracts/token/ERC20/ERC20.sol", | |
"file": "./token/ERC20/ERC20.sol", | |
"scope": 29, | |
"symbolAliases": [ | |
null | |
], | |
"unitAlias": "" | |
}, | |
"id": 2, | |
"name": "ImportDirective", | |
"src": "58:33:0" | |
}, | |
{ | |
"attributes": { | |
"abstract": false, | |
"contractDependencies": [ | |
3767, | |
3845, | |
5408 | |
], | |
"contractKind": "contract", | |
"documentation": null, | |
"fullyImplemented": true, | |
"linearizedBaseContracts": [ | |
28, | |
3767, | |
3845, | |
5408 | |
], | |
"name": "BUSD", | |
"scope": 29 | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"arguments": null | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"contractScope": null, | |
"name": "ERC20", | |
"referencedDeclaration": 3767, | |
"type": "contract ERC20" | |
}, | |
"id": 3, | |
"name": "UserDefinedTypeName", | |
"src": "110:5:0" | |
} | |
], | |
"id": 4, | |
"name": "InheritanceSpecifier", | |
"src": "110:5:0" | |
}, | |
{ | |
"attributes": { | |
"documentation": null, | |
"implemented": true, | |
"isConstructor": true, | |
"kind": "constructor", | |
"name": "", | |
"overrides": null, | |
"scope": 28, | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "public" | |
}, | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"attributes": { | |
"constant": false, | |
"mutability": "mutable", | |
"name": "name", | |
"overrides": null, | |
"scope": 27, | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"type": "string", | |
"value": null, | |
"visibility": "internal" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"name": "string", | |
"type": "string" | |
}, | |
"id": 5, | |
"name": "ElementaryTypeName", | |
"src": "143:6:0" | |
} | |
], | |
"id": 6, | |
"name": "VariableDeclaration", | |
"src": "143:18:0" | |
}, | |
{ | |
"attributes": { | |
"constant": false, | |
"mutability": "mutable", | |
"name": "symbol", | |
"overrides": null, | |
"scope": 27, | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"type": "string", | |
"value": null, | |
"visibility": "internal" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"name": "string", | |
"type": "string" | |
}, | |
"id": 7, | |
"name": "ElementaryTypeName", | |
"src": "171:6:0" | |
} | |
], | |
"id": 8, | |
"name": "VariableDeclaration", | |
"src": "171:20:0" | |
}, | |
{ | |
"attributes": { | |
"constant": false, | |
"mutability": "mutable", | |
"name": "decimal", | |
"overrides": null, | |
"scope": 27, | |
"stateVariable": false, | |
"storageLocation": "default", | |
"type": "uint8", | |
"value": null, | |
"visibility": "internal" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"name": "uint8", | |
"type": "uint8" | |
}, | |
"id": 9, | |
"name": "ElementaryTypeName", | |
"src": "201:5:0" | |
} | |
], | |
"id": 10, | |
"name": "VariableDeclaration", | |
"src": "201:13:0" | |
}, | |
{ | |
"attributes": { | |
"constant": false, | |
"mutability": "mutable", | |
"name": "supply", | |
"overrides": null, | |
"scope": 27, | |
"stateVariable": false, | |
"storageLocation": "default", | |
"type": "uint256", | |
"value": null, | |
"visibility": "internal" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"name": "uint256", | |
"type": "uint256" | |
}, | |
"id": 11, | |
"name": "ElementaryTypeName", | |
"src": "224:7:0" | |
} | |
], | |
"id": 12, | |
"name": "VariableDeclaration", | |
"src": "224:14:0" | |
} | |
], | |
"id": 13, | |
"name": "ParameterList", | |
"src": "133:111:0" | |
}, | |
{ | |
"attributes": { | |
"parameters": [ | |
null | |
] | |
}, | |
"children": [], | |
"id": 19, | |
"name": "ParameterList", | |
"src": "281:0:0" | |
}, | |
{ | |
"children": [ | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 3767, | |
"type": "type(contract ERC20)", | |
"value": "ERC20" | |
}, | |
"id": 14, | |
"name": "Identifier", | |
"src": "252:5:0" | |
}, | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 6, | |
"type": "string memory", | |
"value": "name" | |
}, | |
"id": 15, | |
"name": "Identifier", | |
"src": "258:4:0" | |
}, | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 8, | |
"type": "string memory", | |
"value": "symbol" | |
}, | |
"id": 16, | |
"name": "Identifier", | |
"src": "264:6:0" | |
}, | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 10, | |
"type": "uint8", | |
"value": "decimal" | |
}, | |
"id": 17, | |
"name": "Identifier", | |
"src": "272:7:0" | |
} | |
], | |
"id": 18, | |
"name": "ModifierInvocation", | |
"src": "252:28:0" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"isStructConstructorCall": false, | |
"lValueRequested": false, | |
"names": [ | |
null | |
], | |
"tryCall": false, | |
"type": "tuple()", | |
"type_conversion": false | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address_payable", | |
"typeString": "address payable" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 3643, | |
"type": "function (address,uint256)", | |
"value": "_mint" | |
}, | |
"id": 20, | |
"name": "Identifier", | |
"src": "291:5:0" | |
}, | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"member_name": "sender", | |
"referencedDeclaration": null, | |
"type": "address payable" | |
}, | |
"children": [ | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": -15, | |
"type": "msg", | |
"value": "msg" | |
}, | |
"id": 21, | |
"name": "Identifier", | |
"src": "297:3:0" | |
} | |
], | |
"id": 22, | |
"name": "MemberAccess", | |
"src": "297:10:0" | |
}, | |
{ | |
"attributes": { | |
"argumentTypes": null, | |
"overloadedDeclarations": [ | |
null | |
], | |
"referencedDeclaration": 12, | |
"type": "uint256", | |
"value": "supply" | |
}, | |
"id": 23, | |
"name": "Identifier", | |
"src": "309:6:0" | |
} | |
], | |
"id": 24, | |
"name": "FunctionCall", | |
"src": "291:25:0" | |
} | |
], | |
"id": 25, | |
"name": "ExpressionStatement", | |
"src": "291:25:0" | |
} | |
], | |
"id": 26, | |
"name": "Block", | |
"src": "281:42:0" | |
} | |
], | |
"id": 27, | |
"name": "FunctionDefinition", | |
"src": "122:201:0" | |
} | |
], | |
"id": 28, | |
"name": "ContractDefinition", | |
"src": "93:232:0" | |
} | |
], | |
"id": 29, | |
"name": "SourceUnit", | |
"src": "33:293:0" | |
}, | |
"compiler": { | |
"name": "solc", | |
"version": "0.6.12+commit.27d51765.Emscripten.clang" | |
}, | |
"networks": { | |
"42": { | |
"events": {}, | |
"links": {}, | |
"address": "0xC3D992c84aA12d1fB078f0a3c9470A4Ddc3e4A74", | |
"transactionHash": "0x857b11ef8fa0f14a0c39721c1fdc3854d6137038b4579244090db85457f698da" | |
}, | |
"97": { | |
"events": {}, | |
"links": {}, | |
"address": "0x322E4612792dcDD60A50f9802C823e7B51eF1e31", | |
"transactionHash": "0x3920606de35aa69b9598c504880146796149460f2c2dab480d7631b1c57e8231" | |
} | |
}, | |
"schemaVersion": "3.3.4", | |
"updatedAt": "2021-05-11T13:21:22.118Z", | |
"devdoc": { | |
"kind": "dev", | |
"methods": { | |
"allowance(address,address)": { | |
"details": "See {IERC20-allowance}." | |
}, | |
"approve(address,uint256)": { | |
"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." | |
}, | |
"balanceOf(address)": { | |
"details": "See {IERC20-balanceOf}." | |
}, | |
"decimals()": { | |
"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." | |
}, | |
"decreaseAllowance(address,uint256)": { | |
"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." | |
}, | |
"increaseAllowance(address,uint256)": { | |
"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." | |
}, | |
"name()": { | |
"details": "Returns the name of the token." | |
}, | |
"symbol()": { | |
"details": "Returns the symbol of the token, usually a shorter version of the name." | |
}, | |
"totalSupply()": { | |
"details": "See {IERC20-totalSupply}." | |
}, | |
"transfer(address,uint256)": { | |
"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." | |
}, | |
"transferFrom(address,address,uint256)": { | |
"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." | |
} | |
}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment