[ { "inputs": [ { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" }, { "internalType": "uint112", "name": "_totalSupply", "type": "uint112" }, { "internalType": "address", "name": "_powder", "type": "address" }, { "internalType": "uint256", "name": "_powderCoefficient", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC20InvalidSpender", "type": "error" }, { "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": [], "name": "POWDER", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "WL", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "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": "value", "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": "bellumFactory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "completeTheCurve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "creationTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "curveComplete", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "powderCoefficient", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "noOfWLs", "type": "uint256" } ], "name": "purchaseWL", "outputs": [], "stateMutability": "nonpayable", "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": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
60806040523480156200001157600080fd5b506040516200137038038062001370833981016040819052620000349162000481565b84846003620000448382620005c7565b506004620000538282620005c7565b5050600580546001600160a01b031916339081179091556200008091506001600160701b038516620000b2565b42600855600680546001600160a01b0319166001600160a01b0393909316929092179091556007555062000702915050565b6001600160a01b038216620000e25760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b620000f060008383620000f4565b5050565b6200010183838362000289565b600554600160a01b900460ff1662000284576005546001600160a01b03848116911614806200013d57506005546001600160a01b038381169116145b806200015057506001600160a01b038316155b620001a95760405162461bcd60e51b815260206004820152602260248201527f42656c6c756d3a2043414e4e4f54205452414e5346455220544f4b454e532059604482015261115560f21b6064820152608401620000d9565b600854620001ba90610258620006a9565b42108015620001d757506005546001600160a01b03838116911614155b1562000284576001600160a01b0382166000908152600960205260409020546064906200020360025490565b6200020f9190620006c5565b6200021b9190620006df565b6001600160a01b0383166000908152602081905260409020541115620002845760405162461bcd60e51b815260206004820152601b60248201527f42656c6c756d3a204e4f545f454e4f5547485f574c5f53504f545300000000006044820152606401620000d9565b505050565b6001600160a01b038316620002b8578060026000828254620002ac9190620006a9565b909155506200032c9050565b6001600160a01b038316600090815260208190526040902054818110156200030d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000d9565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166200034a5760028054829003905562000369565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620003af91815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003e457600080fd5b81516001600160401b0380821115620004015762000401620003bc565b604051601f8301601f19908116603f011681019082821181831017156200042c576200042c620003bc565b816040528381526020925086838588010111156200044957600080fd5b600091505b838210156200046d57858201830151818301840152908201906200044e565b600093810190920192909252949350505050565b600080600080600060a086880312156200049a57600080fd5b85516001600160401b0380821115620004b257600080fd5b620004c089838a01620003d2565b96506020880151915080821115620004d757600080fd5b50620004e688828901620003d2565b604088015190955090506001600160701b03811681146200050657600080fd5b60608701519093506001600160a01b03811681146200052457600080fd5b80925050608086015190509295509295909350565b600181811c908216806200054e57607f821691505b6020821081036200056f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028457600081815260208120601f850160051c810160208610156200059e5750805b601f850160051c820191505b81811015620005bf57828155600101620005aa565b505050505050565b81516001600160401b03811115620005e357620005e3620003bc565b620005fb81620005f4845462000539565b8462000575565b602080601f8311600181146200063357600084156200061a5750858301515b600019600386901b1c1916600185901b178555620005bf565b600085815260208120601f198616915b82811015620006645788860151825594840194600190910190840162000643565b5085821015620006835787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b80820180821115620006bf57620006bf62000693565b92915050565b8082028115828204841417620006bf57620006bf62000693565b600082620006fd57634e487b7160e01b600052601260045260246000fd5b500490565b610c5e80620007126000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806357520363116100a2578063a02f518611610071578063a02f518614610232578063a9059cbb14610245578063d8270dce14610258578063dd62ed3e14610261578063fc9033c61461029a57600080fd5b806357520363146101ce57806370a08231146101e1578063877816c01461020a57806395d89b411461022a57600080fd5b806323b872dd116100de57806323b872dd14610177578063305900241461018a578063313ce567146101b55780633a244650146101c457600080fd5b806306fdde0314610110578063095ea7b31461012e57806318160ddd1461015157806320f1b91214610163575b600080fd5b6101186102a3565b6040516101259190610a19565b60405180910390f35b61014161013c366004610a83565b610335565b6040519015158152602001610125565b6002545b604051908152602001610125565b60055461014190600160a01b900460ff1681565b610141610185366004610aad565b61034f565b60065461019d906001600160a01b031681565b6040516001600160a01b039091168152602001610125565b60405160128152602001610125565b6101cc610373565b005b6101cc6101dc366004610ae9565b6103dd565b6101556101ef366004610b02565b6001600160a01b031660009081526020819052604090205490565b610155610218366004610b02565b60096020526000908152604090205481565b610118610590565b60055461019d906001600160a01b031681565b610141610253366004610a83565b61059f565b61015560085481565b61015561026f366004610b24565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61015560075481565b6060600380546102b290610b57565b80601f01602080910402602001604051908101604052809291908181526020018280546102de90610b57565b801561032b5780601f106103005761010080835404028352916020019161032b565b820191906000526020600020905b81548152906001019060200180831161030e57829003601f168201915b5050505050905090565b6000336103438185856105ad565b60019150505b92915050565b60003361035d8582856105bf565b61036885858561063d565b506001949350505050565b6005546001600160a01b031633146103c85760405162461bcd60e51b815260206004820152601360248201527210995b1b1d5b4e881393d517d0531313d5d151606a1b60448201526064015b60405180910390fd5b6005805460ff60a01b1916600160a01b179055565b6008546103ec90610258610ba7565b421061043a5760405162461bcd60e51b815260206004820181905260248201527f42454c4c554d3a2057484954454c49535453204e4f5420415641494c41424c4560448201526064016103bf565b60006008544261044a9190610bba565b61045690610258610bba565b6006546007549192506001600160a01b0316906323b872dd90339061dead90856104808189610bcd565b61048a9190610bcd565b6104949190610bcd565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610be4565b6105685760405162461bcd60e51b815260206004820152602760248201527f42656c6c756d3a205452414e53464552204641494c45442c20434845434b204160448201526614141493d5905360ca1b60648201526084016103bf565b3360009081526009602052604081208054849290610587908490610ba7565b90915550505050565b6060600480546102b290610b57565b60003361034381858561063d565b6105ba838383600161069c565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610637578181101561062857604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016103bf565b6106378484848403600061069c565b50505050565b6001600160a01b03831661066757604051634b637e8f60e11b8152600060048201526024016103bf565b6001600160a01b0382166106915760405163ec442f0560e01b8152600060048201526024016103bf565b6105ba838383610771565b6001600160a01b0384166106c65760405163e602df0560e01b8152600060048201526024016103bf565b6001600160a01b0383166106f057604051634a1406b160e11b8152600060048201526024016103bf565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561063757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161076391815260200190565b60405180910390a350505050565b61077c8383836108ef565b600554600160a01b900460ff166105ba576005546001600160a01b03848116911614806107b657506005546001600160a01b038381169116145b806107c857506001600160a01b038316155b61081f5760405162461bcd60e51b815260206004820152602260248201527f42656c6c756d3a2043414e4e4f54205452414e5346455220544f4b454e532059604482015261115560f21b60648201526084016103bf565b60085461082e90610258610ba7565b4210801561084a57506005546001600160a01b03838116911614155b156105ba576001600160a01b03821660009081526009602052604090205460649061087460025490565b61087e9190610bcd565b6108889190610c06565b6001600160a01b03831660009081526020819052604090205411156105ba5760405162461bcd60e51b815260206004820152601b60248201527f42656c6c756d3a204e4f545f454e4f5547485f574c5f53504f5453000000000060448201526064016103bf565b6001600160a01b03831661091a57806002600082825461090f9190610ba7565b9091555061098c9050565b6001600160a01b0383166000908152602081905260409020548181101561096d5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016103bf565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166109a8576002805482900390556109c7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a0c91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b81811015610a4657858101830151858201604001528201610a2a565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610a7e57600080fd5b919050565b60008060408385031215610a9657600080fd5b610a9f83610a67565b946020939093013593505050565b600080600060608486031215610ac257600080fd5b610acb84610a67565b9250610ad960208501610a67565b9150604084013590509250925092565b600060208284031215610afb57600080fd5b5035919050565b600060208284031215610b1457600080fd5b610b1d82610a67565b9392505050565b60008060408385031215610b3757600080fd5b610b4083610a67565b9150610b4e60208401610a67565b90509250929050565b600181811c90821680610b6b57607f821691505b602082108103610b8b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561034957610349610b91565b8181038181111561034957610349610b91565b808202811582820484141761034957610349610b91565b600060208284031215610bf657600080fd5b81518015158114610b1d57600080fd5b600082610c2357634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122052701667d94f51e9498c3bca5989fd7167c728936a7bae671ae3baa16602c42064736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000ad52f6e009bb2efdc86cc6aae05fea588e8f8fe00000000000000000000000000000000000000000000000006f05b59d3b2000000000000000000000000000000000000000000000000000000000000000000074e696b612041490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e494b4100000000000000000000000000000000000000000000000000000000