1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283 |
- // Code generated - DO NOT EDIT.
- // This file is a generated binding and any manual changes will be lost.
- package metafinance
- import (
- "errors"
- "math/big"
- "strings"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var (
- _ = errors.New
- _ = big.NewInt
- _ = strings.NewReader
- _ = ethereum.NotFound
- _ = bind.Bind
- _ = common.Big1
- _ = types.BloomLookup
- _ = event.NewSubscription
- )
- // ERC20MetaData contains all meta data concerning the ERC20 contract.
- var ERC20MetaData = &bind.MetaData{
- ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}]",
- Sigs: map[string]string{
- "dd62ed3e": "allowance(address,address)",
- "095ea7b3": "approve(address,uint256)",
- "70a08231": "balanceOf(address)",
- "a457c2d7": "decreaseAllowance(address,uint256)",
- "39509351": "increaseAllowance(address,uint256)",
- "18160ddd": "totalSupply()",
- "a9059cbb": "transfer(address,uint256)",
- "23b872dd": "transferFrom(address,address,uint256)",
- },
- Bin: "0x608060405234801561001057600080fd5b506106eb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806370a082311161005b57806370a0823114610149578063a457c2d71461016f578063a9059cbb1461019b578063dd62ed3e146101c757610088565b8063095ea7b31461008d57806318160ddd146100cd57806323b872dd146100e7578063395093511461011d575b600080fd5b6100b9600480360360408110156100a357600080fd5b506001600160a01b0381351690602001356101f5565b604080519115158252519081900360200190f35b6100d561020b565b60408051918252519081900360200190f35b6100b9600480360360608110156100fd57600080fd5b506001600160a01b03813581169160208101359091169060400135610211565b6100b96004803603604081101561013357600080fd5b506001600160a01b038135169060200135610268565b6100d56004803603602081101561015f57600080fd5b50356001600160a01b03166102a4565b6100b96004803603604081101561018557600080fd5b506001600160a01b0381351690602001356102bf565b6100b9600480360360408110156101b157600080fd5b506001600160a01b0381351690602001356102fb565b6100d5600480360360408110156101dd57600080fd5b506001600160a01b0381358116916020013516610308565b6000610202338484610333565b50600192915050565b60025490565b600061021e848484610425565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461025e918691610259908663ffffffff61056d16565b610333565b5060019392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610202918590610259908663ffffffff6105cd16565b6001600160a01b031660009081526020819052604090205490565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610202918590610259908663ffffffff61056d16565b6000610202338484610425565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661037b57604051600160e51b62461bcd02815260040180806020018281038252602481526020018061069c6024913960400191505060405180910390fd5b6001600160a01b0382166103c357604051600160e51b62461bcd0281526004018080602001828103825260228152602001806106556022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661046d57604051600160e51b62461bcd0281526004018080602001828103825260258152602001806106776025913960400191505060405180910390fd5b6001600160a01b0382166104b557604051600160e51b62461bcd0281526004018080602001828103825260238152602001806106326023913960400191505060405180910390fd5b6001600160a01b0383166000908152602081905260409020546104de908263ffffffff61056d16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610513908263ffffffff6105cd16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828211156105c75760408051600160e51b62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561062a5760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a165627a7a723058207c8038da9f5f5781613c5af8a3f29d4a3c580d4c3cb276d8fe309d406fd39dfb0029",
- }
- // ERC20ABI is the input ABI used to generate the binding from.
- // Deprecated: Use ERC20MetaData.ABI instead.
- var ERC20ABI = ERC20MetaData.ABI
- // Deprecated: Use ERC20MetaData.Sigs instead.
- // ERC20FuncSigs maps the 4-byte function signature to its string representation.
- var ERC20FuncSigs = ERC20MetaData.Sigs
- // ERC20Bin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use ERC20MetaData.Bin instead.
- var ERC20Bin = ERC20MetaData.Bin
- // DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.
- func DeployERC20(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ERC20, error) {
- parsed, err := ERC20MetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ERC20Bin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &ERC20{ERC20Caller: ERC20Caller{contract: contract}, ERC20Transactor: ERC20Transactor{contract: contract}, ERC20Filterer: ERC20Filterer{contract: contract}}, nil
- }
- // ERC20 is an auto generated Go binding around an Ethereum contract.
- type ERC20 struct {
- ERC20Caller // Read-only binding to the contract
- ERC20Transactor // Write-only binding to the contract
- ERC20Filterer // Log filterer for contract events
- }
- // ERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
- type ERC20Caller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
- type ERC20Transactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type ERC20Filterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ERC20Session is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type ERC20Session struct {
- Contract *ERC20 // Generic contract binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type ERC20CallerSession struct {
- Contract *ERC20Caller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type ERC20TransactorSession struct {
- Contract *ERC20Transactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // ERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
- type ERC20Raw struct {
- Contract *ERC20 // Generic contract binding to access the raw methods on
- }
- // ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type ERC20CallerRaw struct {
- Contract *ERC20Caller // Generic read-only contract binding to access the raw methods on
- }
- // ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type ERC20TransactorRaw struct {
- Contract *ERC20Transactor // Generic write-only contract binding to access the raw methods on
- }
- // NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.
- func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error) {
- contract, err := bindERC20(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &ERC20{ERC20Caller: ERC20Caller{contract: contract}, ERC20Transactor: ERC20Transactor{contract: contract}, ERC20Filterer: ERC20Filterer{contract: contract}}, nil
- }
- // NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.
- func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error) {
- contract, err := bindERC20(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &ERC20Caller{contract: contract}, nil
- }
- // NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.
- func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error) {
- contract, err := bindERC20(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &ERC20Transactor{contract: contract}, nil
- }
- // NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.
- func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error) {
- contract, err := bindERC20(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &ERC20Filterer{contract: contract}, nil
- }
- // bindERC20 binds a generic wrapper to an already deployed contract.
- func bindERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(ERC20ABI))
- if err != nil {
- return nil, err
- }
- return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _ERC20.Contract.ERC20Caller.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _ERC20.Contract.ERC20Transactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _ERC20.Contract.ERC20Transactor.contract.Transact(opts, method, params...)
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _ERC20.Contract.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _ERC20.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_ERC20 *ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _ERC20.Contract.contract.Transact(opts, method, params...)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) {
- var out []interface{}
- err := _ERC20.contract.Call(opts, &out, "allowance", owner, spender)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _ERC20.Contract.Allowance(&_ERC20.CallOpts, owner, spender)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _ERC20.Contract.Allowance(&_ERC20.CallOpts, owner, spender)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) {
- var out []interface{}
- err := _ERC20.contract.Call(opts, &out, "balanceOf", account)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_ERC20 *ERC20Session) BalanceOf(account common.Address) (*big.Int, error) {
- return _ERC20.Contract.BalanceOf(&_ERC20.CallOpts, account)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_ERC20 *ERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) {
- return _ERC20.Contract.BalanceOf(&_ERC20.CallOpts, account)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
- var out []interface{}
- err := _ERC20.contract.Call(opts, &out, "totalSupply")
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error) {
- return _ERC20.Contract.TotalSupply(&_ERC20.CallOpts)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error) {
- return _ERC20.Contract.TotalSupply(&_ERC20.CallOpts)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _ERC20.contract.Transact(opts, "approve", spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_ERC20 *ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, value)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_ERC20 *ERC20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_ERC20 *ERC20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.DecreaseAllowance(&_ERC20.TransactOpts, spender, subtractedValue)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_ERC20 *ERC20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.DecreaseAllowance(&_ERC20.TransactOpts, spender, subtractedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_ERC20 *ERC20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.contract.Transact(opts, "increaseAllowance", spender, addedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_ERC20 *ERC20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.IncreaseAllowance(&_ERC20.TransactOpts, spender, addedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_ERC20 *ERC20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.IncreaseAllowance(&_ERC20.TransactOpts, spender, addedValue)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.contract.Transact(opts, "transfer", recipient, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.Transfer(&_ERC20.TransactOpts, recipient, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.Transfer(&_ERC20.TransactOpts, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.contract.Transact(opts, "transferFrom", sender, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.TransferFrom(&_ERC20.TransactOpts, sender, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_ERC20 *ERC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _ERC20.Contract.TransferFrom(&_ERC20.TransactOpts, sender, recipient, amount)
- }
- // ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract.
- type ERC20ApprovalIterator struct {
- Event *ERC20Approval // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *ERC20ApprovalIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(ERC20Approval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(ERC20Approval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *ERC20ApprovalIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *ERC20ApprovalIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // ERC20Approval represents a Approval event raised by the ERC20 contract.
- type ERC20Approval struct {
- Owner common.Address
- Spender common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _ERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return &ERC20ApprovalIterator{contract: _ERC20.contract, event: "Approval", logs: logs, sub: sub}, nil
- }
- // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _ERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(ERC20Approval)
- if err := _ERC20.contract.UnpackLog(event, "Approval", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error) {
- event := new(ERC20Approval)
- if err := _ERC20.contract.UnpackLog(event, "Approval", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract.
- type ERC20TransferIterator struct {
- Event *ERC20Transfer // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *ERC20TransferIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(ERC20Transfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(ERC20Transfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *ERC20TransferIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *ERC20TransferIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // ERC20Transfer represents a Transfer event raised by the ERC20 contract.
- type ERC20Transfer struct {
- From common.Address
- To common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _ERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return &ERC20TransferIterator{contract: _ERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil
- }
- // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _ERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(ERC20Transfer)
- if err := _ERC20.contract.UnpackLog(event, "Transfer", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error) {
- event := new(ERC20Transfer)
- if err := _ERC20.contract.UnpackLog(event, "Transfer", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // IERC20MetaData contains all meta data concerning the IERC20 contract.
- var IERC20MetaData = &bind.MetaData{
- ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}]",
- Sigs: map[string]string{
- "dd62ed3e": "allowance(address,address)",
- "095ea7b3": "approve(address,uint256)",
- "70a08231": "balanceOf(address)",
- "18160ddd": "totalSupply()",
- "a9059cbb": "transfer(address,uint256)",
- "23b872dd": "transferFrom(address,address,uint256)",
- },
- }
- // IERC20ABI is the input ABI used to generate the binding from.
- // Deprecated: Use IERC20MetaData.ABI instead.
- var IERC20ABI = IERC20MetaData.ABI
- // Deprecated: Use IERC20MetaData.Sigs instead.
- // IERC20FuncSigs maps the 4-byte function signature to its string representation.
- var IERC20FuncSigs = IERC20MetaData.Sigs
- // IERC20 is an auto generated Go binding around an Ethereum contract.
- type IERC20 struct {
- IERC20Caller // Read-only binding to the contract
- IERC20Transactor // Write-only binding to the contract
- IERC20Filterer // Log filterer for contract events
- }
- // IERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
- type IERC20Caller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
- type IERC20Transactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type IERC20Filterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Session is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type IERC20Session struct {
- Contract *IERC20 // Generic contract binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type IERC20CallerSession struct {
- Contract *IERC20Caller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type IERC20TransactorSession struct {
- Contract *IERC20Transactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // IERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
- type IERC20Raw struct {
- Contract *IERC20 // Generic contract binding to access the raw methods on
- }
- // IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type IERC20CallerRaw struct {
- Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on
- }
- // IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type IERC20TransactorRaw struct {
- Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on
- }
- // NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract.
- func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error) {
- contract, err := bindIERC20(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &IERC20{IERC20Caller: IERC20Caller{contract: contract}, IERC20Transactor: IERC20Transactor{contract: contract}, IERC20Filterer: IERC20Filterer{contract: contract}}, nil
- }
- // NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error) {
- contract, err := bindIERC20(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &IERC20Caller{contract: contract}, nil
- }
- // NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error) {
- contract, err := bindIERC20(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &IERC20Transactor{contract: contract}, nil
- }
- // NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error) {
- contract, err := bindIERC20(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &IERC20Filterer{contract: contract}, nil
- }
- // bindIERC20 binds a generic wrapper to an already deployed contract.
- func bindIERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(IERC20ABI))
- if err != nil {
- return nil, err
- }
- return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IERC20.Contract.IERC20Caller.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IERC20.Contract.IERC20Transactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IERC20.Contract.IERC20Transactor.contract.Transact(opts, method, params...)
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_IERC20 *IERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IERC20.Contract.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_IERC20 *IERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IERC20.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IERC20.Contract.contract.Transact(opts, method, params...)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) {
- var out []interface{}
- err := _IERC20.contract.Call(opts, &out, "allowance", owner, spender)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) {
- var out []interface{}
- err := _IERC20.contract.Call(opts, &out, "balanceOf", account)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_IERC20 *IERC20Session) BalanceOf(account common.Address) (*big.Int, error) {
- return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, account)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address account) view returns(uint256)
- func (_IERC20 *IERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) {
- return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, account)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
- var out []interface{}
- err := _IERC20.contract.Call(opts, &out, "totalSupply")
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error) {
- return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error) {
- return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "approve", spender, amount)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, amount)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 amount) returns(bool)
- func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "transfer", recipient, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, recipient, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "transferFrom", sender, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, sender, recipient, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
- func (_IERC20 *IERC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, sender, recipient, amount)
- }
- // IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract.
- type IERC20ApprovalIterator struct {
- Event *IERC20Approval // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *IERC20ApprovalIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(IERC20Approval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(IERC20Approval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *IERC20ApprovalIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *IERC20ApprovalIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // IERC20Approval represents a Approval event raised by the IERC20 contract.
- type IERC20Approval struct {
- Owner common.Address
- Spender common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _IERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return &IERC20ApprovalIterator{contract: _IERC20.contract, event: "Approval", logs: logs, sub: sub}, nil
- }
- // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _IERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(IERC20Approval)
- if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error) {
- event := new(IERC20Approval)
- if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract.
- type IERC20TransferIterator struct {
- Event *IERC20Transfer // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *IERC20TransferIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(IERC20Transfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(IERC20Transfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *IERC20TransferIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *IERC20TransferIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // IERC20Transfer represents a Transfer event raised by the IERC20 contract.
- type IERC20Transfer struct {
- From common.Address
- To common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _IERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return &IERC20TransferIterator{contract: _IERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil
- }
- // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _IERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(IERC20Transfer)
- if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error) {
- event := new(IERC20Transfer)
- if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceMetaData contains all meta data concerning the Metafinance contract.
- var MetafinanceMetaData = &bind.MetaData{
- ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"initialSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_holder\",\"type\":\"address\"},{\"name\":\"_idx\",\"type\":\"uint256\"}],\"name\":\"lockState\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_holder\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_holder\",\"type\":\"address\"},{\"name\":\"i\",\"type\":\"uint256\"}],\"name\":\"unlock\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"},{\"name\":\"_releaseTime\",\"type\":\"uint256\"}],\"name\":\"transferWithLock\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_holder\",\"type\":\"address\"}],\"name\":\"lockCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_holder\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_releaseTime\",\"type\":\"uint256\"}],\"name\":\"lock\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"}],\"name\":\"OwnershipRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"burner\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"holder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"releaseTime\",\"type\":\"uint256\"}],\"name\":\"Lock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"holder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Unlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}]",
- Sigs: map[string]string{
- "dd62ed3e": "allowance(address,address)",
- "095ea7b3": "approve(address,uint256)",
- "70a08231": "balanceOf(address)",
- "42966c68": "burn(uint256)",
- "313ce567": "decimals()",
- "a457c2d7": "decreaseAllowance(address,uint256)",
- "39509351": "increaseAllowance(address,uint256)",
- "378dc3dc": "initialSupply()",
- "e2ab691d": "lock(address,uint256,uint256)",
- "df034586": "lockCount(address)",
- "46cf1bb5": "lockState(address,uint256)",
- "06fdde03": "name()",
- "8da5cb5b": "owner()",
- "95d89b41": "symbol()",
- "18160ddd": "totalSupply()",
- "a9059cbb": "transfer(address,uint256)",
- "23b872dd": "transferFrom(address,address,uint256)",
- "f2fde38b": "transferOwnership(address)",
- "de6baccb": "transferWithLock(address,uint256,uint256)",
- "7eee288d": "unlock(address,uint256)",
- },
- Bin: "0x60806040523480156200001157600080fd5b5062000036336b033b2e3c9fd0803ce80000006200004e602090811b620016be17901c565b600380546001600160a01b03191633179055620001e5565b6001600160a01b038216620000c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620000e0816002546200016960201b620012d71790919060201c565b6002556001600160a01b0382166000908152602081815260409091205462000113918390620012d762000169821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015620001de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6118cc80620001f56000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80637eee288d116100ad578063dd62ed3e11610071578063dd62ed3e146103ca578063de6baccb146103f8578063df0345861461042a578063e2ab691d14610450578063f2fde38b146104825761012c565b80637eee288d1461031a5780638da5cb5b1461034657806395d89b411461036a578063a457c2d714610372578063a9059cbb1461039e5761012c565b8063378dc3dc116100f4578063378dc3dc1461025c578063395093511461026457806342966c681461029057806346cf1bb5146102af57806370a08231146102f45761012c565b806306fdde0314610131578063095ea7b3146101ae57806318160ddd146101ee57806323b872dd14610208578063313ce5671461023e575b600080fd5b6101396104a8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017357818101518382015260200161015b565b50505050905090810190601f1680156101a05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101da600480360360408110156101c457600080fd5b506001600160a01b0381351690602001356104d2565b604080519115158252519081900360200190f35b6101f66104e8565b60408051918252519081900360200190f35b6101da6004803603606081101561021e57600080fd5b506001600160a01b038135811691602081013590911690604001356104ef565b61024661050d565b6040805160ff9092168252519081900360200190f35b6101f6610512565b6101da6004803603604081101561027a57600080fd5b506001600160a01b038135169060200135610522565b6102ad600480360360208110156102a657600080fd5b5035610563565b005b6102db600480360360408110156102c557600080fd5b506001600160a01b03813516906020013561067b565b6040805192835260208301919091528051918290030190f35b6101f66004803603602081101561030a57600080fd5b50356001600160a01b03166106f4565b6102ad6004803603604081101561033057600080fd5b506001600160a01b03813516906020013561078e565b61034e610a3c565b604080516001600160a01b039092168252519081900360200190f35b610139610a4b565b6101da6004803603604081101561038857600080fd5b506001600160a01b038135169060200135610a6c565b6101da600480360360408110156103b457600080fd5b506001600160a01b038135169060200135610aa8565b6101f6600480360360408110156103e057600080fd5b506001600160a01b0381358116916020013516610abd565b6101da6004803603606081101561040e57600080fd5b506001600160a01b038135169060208101359060400135610ae8565b6101f66004803603602081101561044057600080fd5b50356001600160a01b0316610d47565b6102ad6004803603606081101561046657600080fd5b506001600160a01b038135169060208101359060400135610d62565b6102ad6004803603602081101561049857600080fd5b50356001600160a01b0316610f13565b6040518060400160405280600b8152602001600160a81b6a4d65746166696e616e63650281525081565b60006104df338484610f70565b50600192915050565b6002545b90565b60006104fa84611062565b610505848484611285565b949350505050565b601281565b6b033b2e3c9fd0803ce800000081565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104df91859061055e908663ffffffff6112d716565b610f70565b6003546001600160a01b031633146105b45760408051600160e51b62461bcd0281526020600482015260096024820152600160b91b682737ba1037bbb732b902604482015290519081900360640190fd5b6003546105c9906001600160a01b0316611334565b8111156106205760408051600160e51b62461bcd02815260206004820152601560248201527f42616c616e636520697320746f6f20736d616c6c2e0000000000000000000000604482015290519081900360640190fd5b600354610636906001600160a01b03168261134f565b6003546040805183815290516001600160a01b03909216917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59181900360200190a250565b6001600160a01b03821660009081526004602052604081208054829190849081106106a257fe5b600091825260208083206002909202909101546001600160a01b0387168352600490915260409091208054859081106106d757fe5b906000526020600020906002020160010154915091509250929050565b600080805b6001600160a01b03841660009081526004602052604090205481101561076d576001600160a01b0384166000908152600460205260409020805461076391908390811061074257fe5b906000526020600020906002020160010154836112d790919063ffffffff16565b91506001016106f9565b506107878161077b85611334565b9063ffffffff6112d716565b9392505050565b6003546001600160a01b031633146107df5760408051600160e51b62461bcd0281526020600482015260096024820152600160b91b682737ba1037bbb732b902604482015290519081900360640190fd5b6001600160a01b038216600090815260046020526040902054811061084e5760408051600160e51b62461bcd02815260206004820152601460248201527f4e6f206c6f636b20696e666f726d6174696f6e2e000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038216600090815260046020526040902080546108b091908390811061087757fe5b60009182526020808320600160029093020191909101546001600160a01b0386168352908290526040909120549063ffffffff6112d716565b6001600160a01b03831660008181526020818152604080832094909455600490529190912080547f6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f191908490811061090457fe5b9060005260206000209060020201600101546040518082815260200191505060405180910390a26001600160a01b038216600090815260046020526040812080548390811061094f57fe5b60009182526020808320600160029093020191909101929092556001600160a01b038416815260049091526040902054600019018114610a0e576001600160a01b0382166000908152600460205260409020805460001981019081106109b157fe5b906000526020600020906002020160046000846001600160a01b03166001600160a01b0316815260200190815260200160002082815481106109ef57fe5b6000918252602090912082546002909202019081556001918201549101555b6001600160a01b0382166000908152600460205260409020805490610a37906000198301611676565b505050565b6003546001600160a01b031681565b604051806040016040528060028152602001600160f11b6126a30281525081565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104df91859061055e908663ffffffff61141916565b6000610ab333611062565b6107878383611479565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6003546000906001600160a01b03163314610b3c5760408051600160e51b62461bcd0281526020600482015260096024820152600160b91b682737ba1037bbb732b902604482015290519081900360640190fd5b6001600160a01b038416610b9a5760408051600160e51b62461bcd02815260206004820152600d60248201527f77726f6e67206164647265737300000000000000000000000000000000000000604482015290519081900360640190fd5b600354610baf906001600160a01b0316611334565b831115610c065760408051600160e51b62461bcd02815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000604482015290519081900360640190fd5b81421115610c4857604051600160e51b62461bcd02815260040180806020018281038252603281526020018061186f6032913960400191505060405180910390fd5b6003546001600160a01b0316600090815260208190526040902054610c73908463ffffffff61141916565b600380546001600160a01b039081166000908152602081815260408083209590955588831680835260048252858320865180880188528981528084018b815282546001818101855593875295859020915160029096029091019485555193019290925592548451888152945191949216926000805160206117e5833981519152928290030190a3604080518481526020810184905281516001600160a01b038716927f49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b928290030190a25060019392505050565b6001600160a01b031660009081526004602052604090205490565b6003546001600160a01b03163314610db35760408051600160e51b62461bcd0281526020600482015260096024820152600160b91b682737ba1037bbb732b902604482015290519081900360640190fd5b81610dbd84611334565b1015610e135760408051600160e51b62461bcd02815260206004820152601560248201527f42616c616e636520697320746f6f20736d616c6c2e0000000000000000000000604482015290519081900360640190fd5b80421115610e5557604051600160e51b62461bcd02815260040180806020018281038252603281526020018061186f6032913960400191505060405180910390fd5b6001600160a01b038316600090815260208190526040902054610e7e908363ffffffff61141916565b6001600160a01b0384166000818152602081815260408083209490945560048152838220845180860186528681528083018881528254600181810185559386529484902091516002909502909101938455519201919091558251858152908101849052825191927f49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b92918290030190a2505050565b6003546001600160a01b03163314610f645760408051600160e51b62461bcd0281526020600482015260096024820152600160b91b682737ba1037bbb732b902604482015290519081900360640190fd5b610f6d81611486565b50565b6001600160a01b038316610fb857604051600160e51b62461bcd02815260040180806020018281038252602481526020018061184b6024913960400191505060405180910390fd5b6001600160a01b03821661100057604051600160e51b62461bcd0281526004018080602001828103825260228152602001806117c36022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60005b6001600160a01b038216600090815260046020526040902054811015611281576001600160a01b03821660009081526004602052604090208054429190839081106110ac57fe5b90600052602060002090600202016000015411611279576001600160a01b038216600090815260046020526040902080546110ec91908390811061087757fe5b6001600160a01b03831660008181526020818152604080832094909455600490529190912080547f6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f191908490811061114057fe5b9060005260206000209060020201600101546040518082815260200191505060405180910390a26001600160a01b038216600090815260046020526040812080548390811061118b57fe5b60009182526020808320600160029093020191909101929092556001600160a01b03841681526004909152604090205460001901811461124e576001600160a01b0382166000908152600460205260409020805460001981019081106111ed57fe5b906000526020600020906002020160046000846001600160a01b03166001600160a01b03168152602001908152602001600020828154811061122b57fe5b600091825260209091208254600290920201908155600191820154910155600019015b6001600160a01b0382166000908152600460205260409020805490611277906000198301611676565b505b600101611065565b5050565b6000611292848484611540565b6001600160a01b0384166000908152600160209081526040808320338085529252909120546112cd91869161055e908663ffffffff61141916565b5060019392505050565b6000828201838110156107875760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b031660009081526020819052604090205490565b6001600160a01b03821661139757604051600160e51b62461bcd0281526004018080602001828103825260218152602001806118056021913960400191505060405180910390fd5b6002546113aa908263ffffffff61141916565b6002556001600160a01b0382166000908152602081905260409020546113d6908263ffffffff61141916565b6001600160a01b038316600081815260208181526040808320949094558351858152935191936000805160206117e5833981519152929081900390910190a35050565b6000828211156114735760408051600160e51b62461bcd02815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006104df338484611540565b6001600160a01b0381166114e45760408051600160e51b62461bcd02815260206004820152600d60248201527f416c7265616479204f776e657200000000000000000000000000000000000000604482015290519081900360640190fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03831661158857604051600160e51b62461bcd0281526004018080602001828103825260258152602001806118266025913960400191505060405180910390fd5b6001600160a01b0382166115d057604051600160e51b62461bcd0281526004018080602001828103825260238152602001806117a06023913960400191505060405180910390fd5b6001600160a01b0383166000908152602081905260409020546115f9908263ffffffff61141916565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461162e908263ffffffff6112d716565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716926000805160206117e583398151915292918290030190a3505050565b815481835581811115610a3757600083815260209020610a37916104ec9160029182028101918502015b808211156116ba57600080825560018201556002016116a0565b5090565b6001600160a01b03821661171c5760408051600160e51b62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b60025461172f908263ffffffff6112d716565b6002556001600160a01b03821660009081526020819052604090205461175b908263ffffffff6112d716565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206117e58339815191529281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206265666f72652063757272656e742074696d65a165627a7a72305820d95abef1b28a59c6793cc039497351bf2929749a5ca5b1eb040d78a57cb0b0ca0029",
- }
- // MetafinanceABI is the input ABI used to generate the binding from.
- // Deprecated: Use MetafinanceMetaData.ABI instead.
- var MetafinanceABI = MetafinanceMetaData.ABI
- // Deprecated: Use MetafinanceMetaData.Sigs instead.
- // MetafinanceFuncSigs maps the 4-byte function signature to its string representation.
- var MetafinanceFuncSigs = MetafinanceMetaData.Sigs
- // MetafinanceBin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use MetafinanceMetaData.Bin instead.
- var MetafinanceBin = MetafinanceMetaData.Bin
- // DeployMetafinance deploys a new Ethereum contract, binding an instance of Metafinance to it.
- func DeployMetafinance(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Metafinance, error) {
- parsed, err := MetafinanceMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(MetafinanceBin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &Metafinance{MetafinanceCaller: MetafinanceCaller{contract: contract}, MetafinanceTransactor: MetafinanceTransactor{contract: contract}, MetafinanceFilterer: MetafinanceFilterer{contract: contract}}, nil
- }
- // Metafinance is an auto generated Go binding around an Ethereum contract.
- type Metafinance struct {
- MetafinanceCaller // Read-only binding to the contract
- MetafinanceTransactor // Write-only binding to the contract
- MetafinanceFilterer // Log filterer for contract events
- }
- // MetafinanceCaller is an auto generated read-only Go binding around an Ethereum contract.
- type MetafinanceCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetafinanceTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type MetafinanceTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetafinanceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type MetafinanceFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetafinanceSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type MetafinanceSession struct {
- Contract *Metafinance // Generic contract binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // MetafinanceCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type MetafinanceCallerSession struct {
- Contract *MetafinanceCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // MetafinanceTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type MetafinanceTransactorSession struct {
- Contract *MetafinanceTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // MetafinanceRaw is an auto generated low-level Go binding around an Ethereum contract.
- type MetafinanceRaw struct {
- Contract *Metafinance // Generic contract binding to access the raw methods on
- }
- // MetafinanceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type MetafinanceCallerRaw struct {
- Contract *MetafinanceCaller // Generic read-only contract binding to access the raw methods on
- }
- // MetafinanceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type MetafinanceTransactorRaw struct {
- Contract *MetafinanceTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewMetafinance creates a new instance of Metafinance, bound to a specific deployed contract.
- func NewMetafinance(address common.Address, backend bind.ContractBackend) (*Metafinance, error) {
- contract, err := bindMetafinance(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &Metafinance{MetafinanceCaller: MetafinanceCaller{contract: contract}, MetafinanceTransactor: MetafinanceTransactor{contract: contract}, MetafinanceFilterer: MetafinanceFilterer{contract: contract}}, nil
- }
- // NewMetafinanceCaller creates a new read-only instance of Metafinance, bound to a specific deployed contract.
- func NewMetafinanceCaller(address common.Address, caller bind.ContractCaller) (*MetafinanceCaller, error) {
- contract, err := bindMetafinance(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &MetafinanceCaller{contract: contract}, nil
- }
- // NewMetafinanceTransactor creates a new write-only instance of Metafinance, bound to a specific deployed contract.
- func NewMetafinanceTransactor(address common.Address, transactor bind.ContractTransactor) (*MetafinanceTransactor, error) {
- contract, err := bindMetafinance(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &MetafinanceTransactor{contract: contract}, nil
- }
- // NewMetafinanceFilterer creates a new log filterer instance of Metafinance, bound to a specific deployed contract.
- func NewMetafinanceFilterer(address common.Address, filterer bind.ContractFilterer) (*MetafinanceFilterer, error) {
- contract, err := bindMetafinance(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &MetafinanceFilterer{contract: contract}, nil
- }
- // bindMetafinance binds a generic wrapper to an already deployed contract.
- func bindMetafinance(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(MetafinanceABI))
- if err != nil {
- return nil, err
- }
- return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_Metafinance *MetafinanceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _Metafinance.Contract.MetafinanceCaller.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_Metafinance *MetafinanceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _Metafinance.Contract.MetafinanceTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_Metafinance *MetafinanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _Metafinance.Contract.MetafinanceTransactor.contract.Transact(opts, method, params...)
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_Metafinance *MetafinanceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _Metafinance.Contract.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_Metafinance *MetafinanceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _Metafinance.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_Metafinance *MetafinanceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _Metafinance.Contract.contract.Transact(opts, method, params...)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_Metafinance *MetafinanceCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "allowance", owner, spender)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_Metafinance *MetafinanceSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _Metafinance.Contract.Allowance(&_Metafinance.CallOpts, owner, spender)
- }
- // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
- //
- // Solidity: function allowance(address owner, address spender) view returns(uint256)
- func (_Metafinance *MetafinanceCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) {
- return _Metafinance.Contract.Allowance(&_Metafinance.CallOpts, owner, spender)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address _holder) view returns(uint256 balance)
- func (_Metafinance *MetafinanceCaller) BalanceOf(opts *bind.CallOpts, _holder common.Address) (*big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "balanceOf", _holder)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address _holder) view returns(uint256 balance)
- func (_Metafinance *MetafinanceSession) BalanceOf(_holder common.Address) (*big.Int, error) {
- return _Metafinance.Contract.BalanceOf(&_Metafinance.CallOpts, _holder)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address _holder) view returns(uint256 balance)
- func (_Metafinance *MetafinanceCallerSession) BalanceOf(_holder common.Address) (*big.Int, error) {
- return _Metafinance.Contract.BalanceOf(&_Metafinance.CallOpts, _holder)
- }
- // Decimals is a free data retrieval call binding the contract method 0x313ce567.
- //
- // Solidity: function decimals() view returns(uint8)
- func (_Metafinance *MetafinanceCaller) Decimals(opts *bind.CallOpts) (uint8, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "decimals")
- if err != nil {
- return *new(uint8), err
- }
- out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
- return out0, err
- }
- // Decimals is a free data retrieval call binding the contract method 0x313ce567.
- //
- // Solidity: function decimals() view returns(uint8)
- func (_Metafinance *MetafinanceSession) Decimals() (uint8, error) {
- return _Metafinance.Contract.Decimals(&_Metafinance.CallOpts)
- }
- // Decimals is a free data retrieval call binding the contract method 0x313ce567.
- //
- // Solidity: function decimals() view returns(uint8)
- func (_Metafinance *MetafinanceCallerSession) Decimals() (uint8, error) {
- return _Metafinance.Contract.Decimals(&_Metafinance.CallOpts)
- }
- // InitialSupply is a free data retrieval call binding the contract method 0x378dc3dc.
- //
- // Solidity: function initialSupply() view returns(uint256)
- func (_Metafinance *MetafinanceCaller) InitialSupply(opts *bind.CallOpts) (*big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "initialSupply")
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // InitialSupply is a free data retrieval call binding the contract method 0x378dc3dc.
- //
- // Solidity: function initialSupply() view returns(uint256)
- func (_Metafinance *MetafinanceSession) InitialSupply() (*big.Int, error) {
- return _Metafinance.Contract.InitialSupply(&_Metafinance.CallOpts)
- }
- // InitialSupply is a free data retrieval call binding the contract method 0x378dc3dc.
- //
- // Solidity: function initialSupply() view returns(uint256)
- func (_Metafinance *MetafinanceCallerSession) InitialSupply() (*big.Int, error) {
- return _Metafinance.Contract.InitialSupply(&_Metafinance.CallOpts)
- }
- // LockCount is a free data retrieval call binding the contract method 0xdf034586.
- //
- // Solidity: function lockCount(address _holder) view returns(uint256)
- func (_Metafinance *MetafinanceCaller) LockCount(opts *bind.CallOpts, _holder common.Address) (*big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "lockCount", _holder)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // LockCount is a free data retrieval call binding the contract method 0xdf034586.
- //
- // Solidity: function lockCount(address _holder) view returns(uint256)
- func (_Metafinance *MetafinanceSession) LockCount(_holder common.Address) (*big.Int, error) {
- return _Metafinance.Contract.LockCount(&_Metafinance.CallOpts, _holder)
- }
- // LockCount is a free data retrieval call binding the contract method 0xdf034586.
- //
- // Solidity: function lockCount(address _holder) view returns(uint256)
- func (_Metafinance *MetafinanceCallerSession) LockCount(_holder common.Address) (*big.Int, error) {
- return _Metafinance.Contract.LockCount(&_Metafinance.CallOpts, _holder)
- }
- // LockState is a free data retrieval call binding the contract method 0x46cf1bb5.
- //
- // Solidity: function lockState(address _holder, uint256 _idx) view returns(uint256, uint256)
- func (_Metafinance *MetafinanceCaller) LockState(opts *bind.CallOpts, _holder common.Address, _idx *big.Int) (*big.Int, *big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "lockState", _holder, _idx)
- if err != nil {
- return *new(*big.Int), *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
- return out0, out1, err
- }
- // LockState is a free data retrieval call binding the contract method 0x46cf1bb5.
- //
- // Solidity: function lockState(address _holder, uint256 _idx) view returns(uint256, uint256)
- func (_Metafinance *MetafinanceSession) LockState(_holder common.Address, _idx *big.Int) (*big.Int, *big.Int, error) {
- return _Metafinance.Contract.LockState(&_Metafinance.CallOpts, _holder, _idx)
- }
- // LockState is a free data retrieval call binding the contract method 0x46cf1bb5.
- //
- // Solidity: function lockState(address _holder, uint256 _idx) view returns(uint256, uint256)
- func (_Metafinance *MetafinanceCallerSession) LockState(_holder common.Address, _idx *big.Int) (*big.Int, *big.Int, error) {
- return _Metafinance.Contract.LockState(&_Metafinance.CallOpts, _holder, _idx)
- }
- // Name is a free data retrieval call binding the contract method 0x06fdde03.
- //
- // Solidity: function name() view returns(string)
- func (_Metafinance *MetafinanceCaller) Name(opts *bind.CallOpts) (string, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "name")
- if err != nil {
- return *new(string), err
- }
- out0 := *abi.ConvertType(out[0], new(string)).(*string)
- return out0, err
- }
- // Name is a free data retrieval call binding the contract method 0x06fdde03.
- //
- // Solidity: function name() view returns(string)
- func (_Metafinance *MetafinanceSession) Name() (string, error) {
- return _Metafinance.Contract.Name(&_Metafinance.CallOpts)
- }
- // Name is a free data retrieval call binding the contract method 0x06fdde03.
- //
- // Solidity: function name() view returns(string)
- func (_Metafinance *MetafinanceCallerSession) Name() (string, error) {
- return _Metafinance.Contract.Name(&_Metafinance.CallOpts)
- }
- // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
- //
- // Solidity: function owner() view returns(address)
- func (_Metafinance *MetafinanceCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "owner")
- if err != nil {
- return *new(common.Address), err
- }
- out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
- return out0, err
- }
- // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
- //
- // Solidity: function owner() view returns(address)
- func (_Metafinance *MetafinanceSession) Owner() (common.Address, error) {
- return _Metafinance.Contract.Owner(&_Metafinance.CallOpts)
- }
- // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
- //
- // Solidity: function owner() view returns(address)
- func (_Metafinance *MetafinanceCallerSession) Owner() (common.Address, error) {
- return _Metafinance.Contract.Owner(&_Metafinance.CallOpts)
- }
- // Symbol is a free data retrieval call binding the contract method 0x95d89b41.
- //
- // Solidity: function symbol() view returns(string)
- func (_Metafinance *MetafinanceCaller) Symbol(opts *bind.CallOpts) (string, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "symbol")
- if err != nil {
- return *new(string), err
- }
- out0 := *abi.ConvertType(out[0], new(string)).(*string)
- return out0, err
- }
- // Symbol is a free data retrieval call binding the contract method 0x95d89b41.
- //
- // Solidity: function symbol() view returns(string)
- func (_Metafinance *MetafinanceSession) Symbol() (string, error) {
- return _Metafinance.Contract.Symbol(&_Metafinance.CallOpts)
- }
- // Symbol is a free data retrieval call binding the contract method 0x95d89b41.
- //
- // Solidity: function symbol() view returns(string)
- func (_Metafinance *MetafinanceCallerSession) Symbol() (string, error) {
- return _Metafinance.Contract.Symbol(&_Metafinance.CallOpts)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_Metafinance *MetafinanceCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
- var out []interface{}
- err := _Metafinance.contract.Call(opts, &out, "totalSupply")
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_Metafinance *MetafinanceSession) TotalSupply() (*big.Int, error) {
- return _Metafinance.Contract.TotalSupply(&_Metafinance.CallOpts)
- }
- // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
- //
- // Solidity: function totalSupply() view returns(uint256)
- func (_Metafinance *MetafinanceCallerSession) TotalSupply() (*big.Int, error) {
- return _Metafinance.Contract.TotalSupply(&_Metafinance.CallOpts)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_Metafinance *MetafinanceTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "approve", spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_Metafinance *MetafinanceSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Approve(&_Metafinance.TransactOpts, spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Approve(&_Metafinance.TransactOpts, spender, value)
- }
- // Burn is a paid mutator transaction binding the contract method 0x42966c68.
- //
- // Solidity: function burn(uint256 _value) returns()
- func (_Metafinance *MetafinanceTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "burn", _value)
- }
- // Burn is a paid mutator transaction binding the contract method 0x42966c68.
- //
- // Solidity: function burn(uint256 _value) returns()
- func (_Metafinance *MetafinanceSession) Burn(_value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Burn(&_Metafinance.TransactOpts, _value)
- }
- // Burn is a paid mutator transaction binding the contract method 0x42966c68.
- //
- // Solidity: function burn(uint256 _value) returns()
- func (_Metafinance *MetafinanceTransactorSession) Burn(_value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Burn(&_Metafinance.TransactOpts, _value)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_Metafinance *MetafinanceTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_Metafinance *MetafinanceSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.DecreaseAllowance(&_Metafinance.TransactOpts, spender, subtractedValue)
- }
- // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
- //
- // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.DecreaseAllowance(&_Metafinance.TransactOpts, spender, subtractedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_Metafinance *MetafinanceTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "increaseAllowance", spender, addedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_Metafinance *MetafinanceSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.IncreaseAllowance(&_Metafinance.TransactOpts, spender, addedValue)
- }
- // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
- //
- // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.IncreaseAllowance(&_Metafinance.TransactOpts, spender, addedValue)
- }
- // Lock is a paid mutator transaction binding the contract method 0xe2ab691d.
- //
- // Solidity: function lock(address _holder, uint256 _amount, uint256 _releaseTime) returns()
- func (_Metafinance *MetafinanceTransactor) Lock(opts *bind.TransactOpts, _holder common.Address, _amount *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "lock", _holder, _amount, _releaseTime)
- }
- // Lock is a paid mutator transaction binding the contract method 0xe2ab691d.
- //
- // Solidity: function lock(address _holder, uint256 _amount, uint256 _releaseTime) returns()
- func (_Metafinance *MetafinanceSession) Lock(_holder common.Address, _amount *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Lock(&_Metafinance.TransactOpts, _holder, _amount, _releaseTime)
- }
- // Lock is a paid mutator transaction binding the contract method 0xe2ab691d.
- //
- // Solidity: function lock(address _holder, uint256 _amount, uint256 _releaseTime) returns()
- func (_Metafinance *MetafinanceTransactorSession) Lock(_holder common.Address, _amount *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Lock(&_Metafinance.TransactOpts, _holder, _amount, _releaseTime)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "transfer", _to, _value)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Transfer(&_Metafinance.TransactOpts, _to, _value)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Transfer(&_Metafinance.TransactOpts, _to, _value)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "transferFrom", _from, _to, _value)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferFrom(&_Metafinance.TransactOpts, _from, _to, _value)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferFrom(&_Metafinance.TransactOpts, _from, _to, _value)
- }
- // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
- //
- // Solidity: function transferOwnership(address _newOwner) returns()
- func (_Metafinance *MetafinanceTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "transferOwnership", _newOwner)
- }
- // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
- //
- // Solidity: function transferOwnership(address _newOwner) returns()
- func (_Metafinance *MetafinanceSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferOwnership(&_Metafinance.TransactOpts, _newOwner)
- }
- // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
- //
- // Solidity: function transferOwnership(address _newOwner) returns()
- func (_Metafinance *MetafinanceTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferOwnership(&_Metafinance.TransactOpts, _newOwner)
- }
- // TransferWithLock is a paid mutator transaction binding the contract method 0xde6baccb.
- //
- // Solidity: function transferWithLock(address _to, uint256 _value, uint256 _releaseTime) returns(bool)
- func (_Metafinance *MetafinanceTransactor) TransferWithLock(opts *bind.TransactOpts, _to common.Address, _value *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "transferWithLock", _to, _value, _releaseTime)
- }
- // TransferWithLock is a paid mutator transaction binding the contract method 0xde6baccb.
- //
- // Solidity: function transferWithLock(address _to, uint256 _value, uint256 _releaseTime) returns(bool)
- func (_Metafinance *MetafinanceSession) TransferWithLock(_to common.Address, _value *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferWithLock(&_Metafinance.TransactOpts, _to, _value, _releaseTime)
- }
- // TransferWithLock is a paid mutator transaction binding the contract method 0xde6baccb.
- //
- // Solidity: function transferWithLock(address _to, uint256 _value, uint256 _releaseTime) returns(bool)
- func (_Metafinance *MetafinanceTransactorSession) TransferWithLock(_to common.Address, _value *big.Int, _releaseTime *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.TransferWithLock(&_Metafinance.TransactOpts, _to, _value, _releaseTime)
- }
- // Unlock is a paid mutator transaction binding the contract method 0x7eee288d.
- //
- // Solidity: function unlock(address _holder, uint256 i) returns()
- func (_Metafinance *MetafinanceTransactor) Unlock(opts *bind.TransactOpts, _holder common.Address, i *big.Int) (*types.Transaction, error) {
- return _Metafinance.contract.Transact(opts, "unlock", _holder, i)
- }
- // Unlock is a paid mutator transaction binding the contract method 0x7eee288d.
- //
- // Solidity: function unlock(address _holder, uint256 i) returns()
- func (_Metafinance *MetafinanceSession) Unlock(_holder common.Address, i *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Unlock(&_Metafinance.TransactOpts, _holder, i)
- }
- // Unlock is a paid mutator transaction binding the contract method 0x7eee288d.
- //
- // Solidity: function unlock(address _holder, uint256 i) returns()
- func (_Metafinance *MetafinanceTransactorSession) Unlock(_holder common.Address, i *big.Int) (*types.Transaction, error) {
- return _Metafinance.Contract.Unlock(&_Metafinance.TransactOpts, _holder, i)
- }
- // MetafinanceApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Metafinance contract.
- type MetafinanceApprovalIterator struct {
- Event *MetafinanceApproval // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceApprovalIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceApproval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceApproval)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceApprovalIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceApprovalIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceApproval represents a Approval event raised by the Metafinance contract.
- type MetafinanceApproval struct {
- Owner common.Address
- Spender common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_Metafinance *MetafinanceFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MetafinanceApprovalIterator, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceApprovalIterator{contract: _Metafinance.contract, event: "Approval", logs: logs, sub: sub}, nil
- }
- // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_Metafinance *MetafinanceFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MetafinanceApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) {
- var ownerRule []interface{}
- for _, ownerItem := range owner {
- ownerRule = append(ownerRule, ownerItem)
- }
- var spenderRule []interface{}
- for _, spenderItem := range spender {
- spenderRule = append(spenderRule, spenderItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceApproval)
- if err := _Metafinance.contract.UnpackLog(event, "Approval", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
- //
- // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
- func (_Metafinance *MetafinanceFilterer) ParseApproval(log types.Log) (*MetafinanceApproval, error) {
- event := new(MetafinanceApproval)
- if err := _Metafinance.contract.UnpackLog(event, "Approval", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Metafinance contract.
- type MetafinanceBurnIterator struct {
- Event *MetafinanceBurn // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceBurnIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceBurn)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceBurn)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceBurnIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceBurnIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceBurn represents a Burn event raised by the Metafinance contract.
- type MetafinanceBurn struct {
- Burner common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
- //
- // Solidity: event Burn(address indexed burner, uint256 value)
- func (_Metafinance *MetafinanceFilterer) FilterBurn(opts *bind.FilterOpts, burner []common.Address) (*MetafinanceBurnIterator, error) {
- var burnerRule []interface{}
- for _, burnerItem := range burner {
- burnerRule = append(burnerRule, burnerItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "Burn", burnerRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceBurnIterator{contract: _Metafinance.contract, event: "Burn", logs: logs, sub: sub}, nil
- }
- // WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
- //
- // Solidity: event Burn(address indexed burner, uint256 value)
- func (_Metafinance *MetafinanceFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *MetafinanceBurn, burner []common.Address) (event.Subscription, error) {
- var burnerRule []interface{}
- for _, burnerItem := range burner {
- burnerRule = append(burnerRule, burnerItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "Burn", burnerRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceBurn)
- if err := _Metafinance.contract.UnpackLog(event, "Burn", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseBurn is a log parse operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
- //
- // Solidity: event Burn(address indexed burner, uint256 value)
- func (_Metafinance *MetafinanceFilterer) ParseBurn(log types.Log) (*MetafinanceBurn, error) {
- event := new(MetafinanceBurn)
- if err := _Metafinance.contract.UnpackLog(event, "Burn", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceLockIterator is returned from FilterLock and is used to iterate over the raw logs and unpacked data for Lock events raised by the Metafinance contract.
- type MetafinanceLockIterator struct {
- Event *MetafinanceLock // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceLockIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceLock)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceLock)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceLockIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceLockIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceLock represents a Lock event raised by the Metafinance contract.
- type MetafinanceLock struct {
- Holder common.Address
- Value *big.Int
- ReleaseTime *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterLock is a free log retrieval operation binding the contract event 0x49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b.
- //
- // Solidity: event Lock(address indexed holder, uint256 value, uint256 releaseTime)
- func (_Metafinance *MetafinanceFilterer) FilterLock(opts *bind.FilterOpts, holder []common.Address) (*MetafinanceLockIterator, error) {
- var holderRule []interface{}
- for _, holderItem := range holder {
- holderRule = append(holderRule, holderItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "Lock", holderRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceLockIterator{contract: _Metafinance.contract, event: "Lock", logs: logs, sub: sub}, nil
- }
- // WatchLock is a free log subscription operation binding the contract event 0x49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b.
- //
- // Solidity: event Lock(address indexed holder, uint256 value, uint256 releaseTime)
- func (_Metafinance *MetafinanceFilterer) WatchLock(opts *bind.WatchOpts, sink chan<- *MetafinanceLock, holder []common.Address) (event.Subscription, error) {
- var holderRule []interface{}
- for _, holderItem := range holder {
- holderRule = append(holderRule, holderItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "Lock", holderRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceLock)
- if err := _Metafinance.contract.UnpackLog(event, "Lock", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseLock is a log parse operation binding the contract event 0x49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b.
- //
- // Solidity: event Lock(address indexed holder, uint256 value, uint256 releaseTime)
- func (_Metafinance *MetafinanceFilterer) ParseLock(log types.Log) (*MetafinanceLock, error) {
- event := new(MetafinanceLock)
- if err := _Metafinance.contract.UnpackLog(event, "Lock", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceOwnershipRenouncedIterator is returned from FilterOwnershipRenounced and is used to iterate over the raw logs and unpacked data for OwnershipRenounced events raised by the Metafinance contract.
- type MetafinanceOwnershipRenouncedIterator struct {
- Event *MetafinanceOwnershipRenounced // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceOwnershipRenouncedIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceOwnershipRenounced)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceOwnershipRenounced)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceOwnershipRenouncedIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceOwnershipRenouncedIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceOwnershipRenounced represents a OwnershipRenounced event raised by the Metafinance contract.
- type MetafinanceOwnershipRenounced struct {
- PreviousOwner common.Address
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterOwnershipRenounced is a free log retrieval operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.
- //
- // Solidity: event OwnershipRenounced(address indexed previousOwner)
- func (_Metafinance *MetafinanceFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*MetafinanceOwnershipRenouncedIterator, error) {
- var previousOwnerRule []interface{}
- for _, previousOwnerItem := range previousOwner {
- previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "OwnershipRenounced", previousOwnerRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceOwnershipRenouncedIterator{contract: _Metafinance.contract, event: "OwnershipRenounced", logs: logs, sub: sub}, nil
- }
- // WatchOwnershipRenounced is a free log subscription operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.
- //
- // Solidity: event OwnershipRenounced(address indexed previousOwner)
- func (_Metafinance *MetafinanceFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *MetafinanceOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {
- var previousOwnerRule []interface{}
- for _, previousOwnerItem := range previousOwner {
- previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "OwnershipRenounced", previousOwnerRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceOwnershipRenounced)
- if err := _Metafinance.contract.UnpackLog(event, "OwnershipRenounced", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseOwnershipRenounced is a log parse operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.
- //
- // Solidity: event OwnershipRenounced(address indexed previousOwner)
- func (_Metafinance *MetafinanceFilterer) ParseOwnershipRenounced(log types.Log) (*MetafinanceOwnershipRenounced, error) {
- event := new(MetafinanceOwnershipRenounced)
- if err := _Metafinance.contract.UnpackLog(event, "OwnershipRenounced", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Metafinance contract.
- type MetafinanceOwnershipTransferredIterator struct {
- Event *MetafinanceOwnershipTransferred // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceOwnershipTransferredIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceOwnershipTransferred)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceOwnershipTransferred)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceOwnershipTransferredIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceOwnershipTransferredIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceOwnershipTransferred represents a OwnershipTransferred event raised by the Metafinance contract.
- type MetafinanceOwnershipTransferred struct {
- PreviousOwner common.Address
- NewOwner common.Address
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
- //
- // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
- func (_Metafinance *MetafinanceFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MetafinanceOwnershipTransferredIterator, error) {
- var previousOwnerRule []interface{}
- for _, previousOwnerItem := range previousOwner {
- previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
- }
- var newOwnerRule []interface{}
- for _, newOwnerItem := range newOwner {
- newOwnerRule = append(newOwnerRule, newOwnerItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceOwnershipTransferredIterator{contract: _Metafinance.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
- }
- // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
- //
- // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
- func (_Metafinance *MetafinanceFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MetafinanceOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
- var previousOwnerRule []interface{}
- for _, previousOwnerItem := range previousOwner {
- previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
- }
- var newOwnerRule []interface{}
- for _, newOwnerItem := range newOwner {
- newOwnerRule = append(newOwnerRule, newOwnerItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceOwnershipTransferred)
- if err := _Metafinance.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
- //
- // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
- func (_Metafinance *MetafinanceFilterer) ParseOwnershipTransferred(log types.Log) (*MetafinanceOwnershipTransferred, error) {
- event := new(MetafinanceOwnershipTransferred)
- if err := _Metafinance.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Metafinance contract.
- type MetafinanceTransferIterator struct {
- Event *MetafinanceTransfer // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceTransferIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceTransfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceTransfer)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceTransferIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceTransferIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceTransfer represents a Transfer event raised by the Metafinance contract.
- type MetafinanceTransfer struct {
- From common.Address
- To common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_Metafinance *MetafinanceFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MetafinanceTransferIterator, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceTransferIterator{contract: _Metafinance.contract, event: "Transfer", logs: logs, sub: sub}, nil
- }
- // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_Metafinance *MetafinanceFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MetafinanceTransfer, from []common.Address, to []common.Address) (event.Subscription, error) {
- var fromRule []interface{}
- for _, fromItem := range from {
- fromRule = append(fromRule, fromItem)
- }
- var toRule []interface{}
- for _, toItem := range to {
- toRule = append(toRule, toItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "Transfer", fromRule, toRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceTransfer)
- if err := _Metafinance.contract.UnpackLog(event, "Transfer", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
- //
- // Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
- func (_Metafinance *MetafinanceFilterer) ParseTransfer(log types.Log) (*MetafinanceTransfer, error) {
- event := new(MetafinanceTransfer)
- if err := _Metafinance.contract.UnpackLog(event, "Transfer", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // MetafinanceUnlockIterator is returned from FilterUnlock and is used to iterate over the raw logs and unpacked data for Unlock events raised by the Metafinance contract.
- type MetafinanceUnlockIterator struct {
- Event *MetafinanceUnlock // Event containing the contract specifics and raw log
- contract *bind.BoundContract // Generic contract to use for unpacking event data
- event string // Event name to use for unpacking event data
- logs chan types.Log // Log channel receiving the found contract events
- sub ethereum.Subscription // Subscription for errors, completion and termination
- done bool // Whether the subscription completed delivering logs
- fail error // Occurred error to stop iteration
- }
- // Next advances the iterator to the subsequent event, returning whether there
- // are any more events found. In case of a retrieval or parsing error, false is
- // returned and Error() can be queried for the exact failure.
- func (it *MetafinanceUnlockIterator) Next() bool {
- // If the iterator failed, stop iterating
- if it.fail != nil {
- return false
- }
- // If the iterator completed, deliver directly whatever's available
- if it.done {
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceUnlock)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- default:
- return false
- }
- }
- // Iterator still in progress, wait for either a data or an error event
- select {
- case log := <-it.logs:
- it.Event = new(MetafinanceUnlock)
- if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
- it.fail = err
- return false
- }
- it.Event.Raw = log
- return true
- case err := <-it.sub.Err():
- it.done = true
- it.fail = err
- return it.Next()
- }
- }
- // Error returns any retrieval or parsing error occurred during filtering.
- func (it *MetafinanceUnlockIterator) Error() error {
- return it.fail
- }
- // Close terminates the iteration process, releasing any pending underlying
- // resources.
- func (it *MetafinanceUnlockIterator) Close() error {
- it.sub.Unsubscribe()
- return nil
- }
- // MetafinanceUnlock represents a Unlock event raised by the Metafinance contract.
- type MetafinanceUnlock struct {
- Holder common.Address
- Value *big.Int
- Raw types.Log // Blockchain specific contextual infos
- }
- // FilterUnlock is a free log retrieval operation binding the contract event 0x6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1.
- //
- // Solidity: event Unlock(address indexed holder, uint256 value)
- func (_Metafinance *MetafinanceFilterer) FilterUnlock(opts *bind.FilterOpts, holder []common.Address) (*MetafinanceUnlockIterator, error) {
- var holderRule []interface{}
- for _, holderItem := range holder {
- holderRule = append(holderRule, holderItem)
- }
- logs, sub, err := _Metafinance.contract.FilterLogs(opts, "Unlock", holderRule)
- if err != nil {
- return nil, err
- }
- return &MetafinanceUnlockIterator{contract: _Metafinance.contract, event: "Unlock", logs: logs, sub: sub}, nil
- }
- // WatchUnlock is a free log subscription operation binding the contract event 0x6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1.
- //
- // Solidity: event Unlock(address indexed holder, uint256 value)
- func (_Metafinance *MetafinanceFilterer) WatchUnlock(opts *bind.WatchOpts, sink chan<- *MetafinanceUnlock, holder []common.Address) (event.Subscription, error) {
- var holderRule []interface{}
- for _, holderItem := range holder {
- holderRule = append(holderRule, holderItem)
- }
- logs, sub, err := _Metafinance.contract.WatchLogs(opts, "Unlock", holderRule)
- if err != nil {
- return nil, err
- }
- return event.NewSubscription(func(quit <-chan struct{}) error {
- defer sub.Unsubscribe()
- for {
- select {
- case log := <-logs:
- // New log arrived, parse the event and forward to the user
- event := new(MetafinanceUnlock)
- if err := _Metafinance.contract.UnpackLog(event, "Unlock", log); err != nil {
- return err
- }
- event.Raw = log
- select {
- case sink <- event:
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- case err := <-sub.Err():
- return err
- case <-quit:
- return nil
- }
- }
- }), nil
- }
- // ParseUnlock is a log parse operation binding the contract event 0x6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1.
- //
- // Solidity: event Unlock(address indexed holder, uint256 value)
- func (_Metafinance *MetafinanceFilterer) ParseUnlock(log types.Log) (*MetafinanceUnlock, error) {
- event := new(MetafinanceUnlock)
- if err := _Metafinance.contract.UnpackLog(event, "Unlock", log); err != nil {
- return nil, err
- }
- event.Raw = log
- return event, nil
- }
- // SafeMathMetaData contains all meta data concerning the SafeMath contract.
- var SafeMathMetaData = &bind.MetaData{
- ABI: "[]",
- Bin: "0x604c6023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea165627a7a72305820d57587173918b5bb86f12de84dda4cbbcf91bdec629e0b95e0b3733d84d99dd50029",
- }
- // SafeMathABI is the input ABI used to generate the binding from.
- // Deprecated: Use SafeMathMetaData.ABI instead.
- var SafeMathABI = SafeMathMetaData.ABI
- // SafeMathBin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use SafeMathMetaData.Bin instead.
- var SafeMathBin = SafeMathMetaData.Bin
- // DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.
- func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error) {
- parsed, err := SafeMathMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeMathBin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil
- }
- // SafeMath is an auto generated Go binding around an Ethereum contract.
- type SafeMath struct {
- SafeMathCaller // Read-only binding to the contract
- SafeMathTransactor // Write-only binding to the contract
- SafeMathFilterer // Log filterer for contract events
- }
- // SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract.
- type SafeMathCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type SafeMathTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type SafeMathFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type SafeMathSession struct {
- Contract *SafeMath // Generic contract binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type SafeMathCallerSession struct {
- Contract *SafeMathCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type SafeMathTransactorSession struct {
- Contract *SafeMathTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract.
- type SafeMathRaw struct {
- Contract *SafeMath // Generic contract binding to access the raw methods on
- }
- // SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type SafeMathCallerRaw struct {
- Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on
- }
- // SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type SafeMathTransactorRaw struct {
- Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error) {
- contract, err := bindSafeMath(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil
- }
- // NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error) {
- contract, err := bindSafeMath(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &SafeMathCaller{contract: contract}, nil
- }
- // NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error) {
- contract, err := bindSafeMath(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &SafeMathTransactor{contract: contract}, nil
- }
- // NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error) {
- contract, err := bindSafeMath(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &SafeMathFilterer{contract: contract}, nil
- }
- // bindSafeMath binds a generic wrapper to an already deployed contract.
- func bindSafeMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(SafeMathABI))
- if err != nil {
- return nil, err
- }
- return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _SafeMath.Contract.SafeMathCaller.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _SafeMath.Contract.SafeMathTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _SafeMath.Contract.SafeMathTransactor.contract.Transact(opts, method, params...)
- }
- // Call invokes the (constant) contract method with params as input values and
- // sets the output to result. The result type might be a single field for simple
- // returns, a slice of interfaces for anonymous returns and a struct for named
- // returns.
- func (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _SafeMath.Contract.contract.Call(opts, result, method, params...)
- }
- // Transfer initiates a plain transaction to move funds to the contract, calling
- // its default method if one is available.
- func (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _SafeMath.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _SafeMath.Contract.contract.Transact(opts, method, params...)
- }
|