abi.go 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876
  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package abi
  4. import (
  5. "math/big"
  6. "strings"
  7. ethereum "github.com/ethereum/go-ethereum"
  8. "github.com/ethereum/go-ethereum/accounts/abi"
  9. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  10. "github.com/ethereum/go-ethereum/common"
  11. "github.com/ethereum/go-ethereum/core/types"
  12. "github.com/ethereum/go-ethereum/event"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var (
  16. _ = big.NewInt
  17. _ = strings.NewReader
  18. _ = ethereum.NotFound
  19. _ = bind.Bind
  20. _ = common.Big1
  21. _ = types.BloomLookup
  22. _ = event.NewSubscription
  23. )
  24. // GovernanceStructsContractUpgrade is an auto generated low-level Go binding around an user-defined struct.
  25. type GovernanceStructsContractUpgrade struct {
  26. Module [32]byte
  27. Action uint8
  28. Chain uint16
  29. NewContract common.Address
  30. }
  31. // GovernanceStructsGuardianSetUpgrade is an auto generated low-level Go binding around an user-defined struct.
  32. type GovernanceStructsGuardianSetUpgrade struct {
  33. Module [32]byte
  34. Action uint8
  35. Chain uint16
  36. NewGuardianSet StructsGuardianSet
  37. NewGuardianSetIndex uint32
  38. }
  39. // GovernanceStructsSetMessageFee is an auto generated low-level Go binding around an user-defined struct.
  40. type GovernanceStructsSetMessageFee struct {
  41. Module [32]byte
  42. Action uint8
  43. Chain uint16
  44. MessageFee *big.Int
  45. }
  46. // GovernanceStructsTransferFees is an auto generated low-level Go binding around an user-defined struct.
  47. type GovernanceStructsTransferFees struct {
  48. Module [32]byte
  49. Action uint8
  50. Chain uint16
  51. Amount *big.Int
  52. Recipient [32]byte
  53. }
  54. // StructsGuardianSet is an auto generated low-level Go binding around an user-defined struct.
  55. type StructsGuardianSet struct {
  56. Keys []common.Address
  57. ExpirationTime uint32
  58. }
  59. // StructsSignature is an auto generated low-level Go binding around an user-defined struct.
  60. type StructsSignature struct {
  61. R [32]byte
  62. S [32]byte
  63. V uint8
  64. GuardianIndex uint8
  65. }
  66. // StructsVM is an auto generated low-level Go binding around an user-defined struct.
  67. type StructsVM struct {
  68. Version uint8
  69. Timestamp uint32
  70. Nonce uint32
  71. EmitterChainId uint16
  72. EmitterAddress [32]byte
  73. Sequence uint64
  74. ConsistencyLevel uint8
  75. Payload []byte
  76. GuardianSetIndex uint32
  77. Signatures []StructsSignature
  78. Hash [32]byte
  79. }
  80. // AbiABI is the input ABI used to generate the binding from.
  81. const AbiABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"}],\"name\":\"ContractUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"name\":\"GuardianSetAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"name\":\"LogMessagePublished\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"chainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentGuardianSetIndex\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"name\":\"getGuardianSet\",\"outputs\":[{\"components\":[{\"internalType\":\"address[]\",\"name\":\"keys\",\"type\":\"address[]\"},{\"internalType\":\"uint32\",\"name\":\"expirationTime\",\"type\":\"uint32\"}],\"internalType\":\"structStructs.GuardianSet\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGuardianSetExpiry\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"governanceActionIsConsumed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceChainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceContract\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"isInitialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messageFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"emitter\",\"type\":\"address\"}],\"name\":\"nextSequence\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVM\",\"type\":\"bytes\"}],\"name\":\"parseAndVerifyVM\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"emitterChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"emitterAddress\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"guardianSetIndex\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"guardianIndex\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.Signature[]\",\"name\":\"signatures\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"internalType\":\"structStructs.VM\",\"name\":\"vm\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedUpgrade\",\"type\":\"bytes\"}],\"name\":\"parseContractUpgrade\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"module\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"chain\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"}],\"internalType\":\"structGovernanceStructs.ContractUpgrade\",\"name\":\"cu\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedUpgrade\",\"type\":\"bytes\"}],\"name\":\"parseGuardianSetUpgrade\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"module\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"chain\",\"type\":\"uint16\"},{\"components\":[{\"internalType\":\"address[]\",\"name\":\"keys\",\"type\":\"address[]\"},{\"internalType\":\"uint32\",\"name\":\"expirationTime\",\"type\":\"uint32\"}],\"internalType\":\"structStructs.GuardianSet\",\"name\":\"newGuardianSet\",\"type\":\"tuple\"},{\"internalType\":\"uint32\",\"name\":\"newGuardianSetIndex\",\"type\":\"uint32\"}],\"internalType\":\"structGovernanceStructs.GuardianSetUpgrade\",\"name\":\"gsu\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedSetMessageFee\",\"type\":\"bytes\"}],\"name\":\"parseSetMessageFee\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"module\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"chain\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"messageFee\",\"type\":\"uint256\"}],\"internalType\":\"structGovernanceStructs.SetMessageFee\",\"name\":\"smf\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedTransferFees\",\"type\":\"bytes\"}],\"name\":\"parseTransferFees\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"module\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"chain\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"}],\"internalType\":\"structGovernanceStructs.TransferFees\",\"name\":\"tf\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVM\",\"type\":\"bytes\"}],\"name\":\"parseVM\",\"outputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"emitterChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"emitterAddress\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"guardianSetIndex\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"guardianIndex\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.Signature[]\",\"name\":\"signatures\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"internalType\":\"structStructs.VM\",\"name\":\"vm\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_vm\",\"type\":\"bytes\"}],\"name\":\"submitContractUpgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_vm\",\"type\":\"bytes\"}],\"name\":\"submitNewGuardianSet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_vm\",\"type\":\"bytes\"}],\"name\":\"submitSetMessageFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_vm\",\"type\":\"bytes\"}],\"name\":\"submitTransferFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"guardianIndex\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.Signature[]\",\"name\":\"signatures\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address[]\",\"name\":\"keys\",\"type\":\"address[]\"},{\"internalType\":\"uint32\",\"name\":\"expirationTime\",\"type\":\"uint32\"}],\"internalType\":\"structStructs.GuardianSet\",\"name\":\"guardianSet\",\"type\":\"tuple\"}],\"name\":\"verifySignatures\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"emitterChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"emitterAddress\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"guardianSetIndex\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"guardianIndex\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.Signature[]\",\"name\":\"signatures\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"internalType\":\"structStructs.VM\",\"name\":\"vm\",\"type\":\"tuple\"}],\"name\":\"verifyVM\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"name\":\"publishMessage\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"initialGuardians\",\"type\":\"address[]\"},{\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"governanceChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"governanceContract\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
  82. // Abi is an auto generated Go binding around an Ethereum contract.
  83. type Abi struct {
  84. AbiCaller // Read-only binding to the contract
  85. AbiTransactor // Write-only binding to the contract
  86. AbiFilterer // Log filterer for contract events
  87. }
  88. // AbiCaller is an auto generated read-only Go binding around an Ethereum contract.
  89. type AbiCaller struct {
  90. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  91. }
  92. // AbiTransactor is an auto generated write-only Go binding around an Ethereum contract.
  93. type AbiTransactor struct {
  94. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  95. }
  96. // AbiFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  97. type AbiFilterer struct {
  98. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  99. }
  100. // AbiSession is an auto generated Go binding around an Ethereum contract,
  101. // with pre-set call and transact options.
  102. type AbiSession struct {
  103. Contract *Abi // Generic contract binding to set the session for
  104. CallOpts bind.CallOpts // Call options to use throughout this session
  105. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  106. }
  107. // AbiCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  108. // with pre-set call options.
  109. type AbiCallerSession struct {
  110. Contract *AbiCaller // Generic contract caller binding to set the session for
  111. CallOpts bind.CallOpts // Call options to use throughout this session
  112. }
  113. // AbiTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  114. // with pre-set transact options.
  115. type AbiTransactorSession struct {
  116. Contract *AbiTransactor // Generic contract transactor binding to set the session for
  117. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  118. }
  119. // AbiRaw is an auto generated low-level Go binding around an Ethereum contract.
  120. type AbiRaw struct {
  121. Contract *Abi // Generic contract binding to access the raw methods on
  122. }
  123. // AbiCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  124. type AbiCallerRaw struct {
  125. Contract *AbiCaller // Generic read-only contract binding to access the raw methods on
  126. }
  127. // AbiTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  128. type AbiTransactorRaw struct {
  129. Contract *AbiTransactor // Generic write-only contract binding to access the raw methods on
  130. }
  131. // NewAbi creates a new instance of Abi, bound to a specific deployed contract.
  132. func NewAbi(address common.Address, backend bind.ContractBackend) (*Abi, error) {
  133. contract, err := bindAbi(address, backend, backend, backend)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return &Abi{AbiCaller: AbiCaller{contract: contract}, AbiTransactor: AbiTransactor{contract: contract}, AbiFilterer: AbiFilterer{contract: contract}}, nil
  138. }
  139. // NewAbiCaller creates a new read-only instance of Abi, bound to a specific deployed contract.
  140. func NewAbiCaller(address common.Address, caller bind.ContractCaller) (*AbiCaller, error) {
  141. contract, err := bindAbi(address, caller, nil, nil)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return &AbiCaller{contract: contract}, nil
  146. }
  147. // NewAbiTransactor creates a new write-only instance of Abi, bound to a specific deployed contract.
  148. func NewAbiTransactor(address common.Address, transactor bind.ContractTransactor) (*AbiTransactor, error) {
  149. contract, err := bindAbi(address, nil, transactor, nil)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return &AbiTransactor{contract: contract}, nil
  154. }
  155. // NewAbiFilterer creates a new log filterer instance of Abi, bound to a specific deployed contract.
  156. func NewAbiFilterer(address common.Address, filterer bind.ContractFilterer) (*AbiFilterer, error) {
  157. contract, err := bindAbi(address, nil, nil, filterer)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return &AbiFilterer{contract: contract}, nil
  162. }
  163. // bindAbi binds a generic wrapper to an already deployed contract.
  164. func bindAbi(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  165. parsed, err := abi.JSON(strings.NewReader(AbiABI))
  166. if err != nil {
  167. return nil, err
  168. }
  169. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  170. }
  171. // Call invokes the (constant) contract method with params as input values and
  172. // sets the output to result. The result type might be a single field for simple
  173. // returns, a slice of interfaces for anonymous returns and a struct for named
  174. // returns.
  175. func (_Abi *AbiRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  176. return _Abi.Contract.AbiCaller.contract.Call(opts, result, method, params...)
  177. }
  178. // Transfer initiates a plain transaction to move funds to the contract, calling
  179. // its default method if one is available.
  180. func (_Abi *AbiRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  181. return _Abi.Contract.AbiTransactor.contract.Transfer(opts)
  182. }
  183. // Transact invokes the (paid) contract method with params as input values.
  184. func (_Abi *AbiRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  185. return _Abi.Contract.AbiTransactor.contract.Transact(opts, method, params...)
  186. }
  187. // Call invokes the (constant) contract method with params as input values and
  188. // sets the output to result. The result type might be a single field for simple
  189. // returns, a slice of interfaces for anonymous returns and a struct for named
  190. // returns.
  191. func (_Abi *AbiCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  192. return _Abi.Contract.contract.Call(opts, result, method, params...)
  193. }
  194. // Transfer initiates a plain transaction to move funds to the contract, calling
  195. // its default method if one is available.
  196. func (_Abi *AbiTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  197. return _Abi.Contract.contract.Transfer(opts)
  198. }
  199. // Transact invokes the (paid) contract method with params as input values.
  200. func (_Abi *AbiTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  201. return _Abi.Contract.contract.Transact(opts, method, params...)
  202. }
  203. // ChainId is a free data retrieval call binding the contract method 0x9a8a0592.
  204. //
  205. // Solidity: function chainId() view returns(uint16)
  206. func (_Abi *AbiCaller) ChainId(opts *bind.CallOpts) (uint16, error) {
  207. var out []interface{}
  208. err := _Abi.contract.Call(opts, &out, "chainId")
  209. if err != nil {
  210. return *new(uint16), err
  211. }
  212. out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
  213. return out0, err
  214. }
  215. // ChainId is a free data retrieval call binding the contract method 0x9a8a0592.
  216. //
  217. // Solidity: function chainId() view returns(uint16)
  218. func (_Abi *AbiSession) ChainId() (uint16, error) {
  219. return _Abi.Contract.ChainId(&_Abi.CallOpts)
  220. }
  221. // ChainId is a free data retrieval call binding the contract method 0x9a8a0592.
  222. //
  223. // Solidity: function chainId() view returns(uint16)
  224. func (_Abi *AbiCallerSession) ChainId() (uint16, error) {
  225. return _Abi.Contract.ChainId(&_Abi.CallOpts)
  226. }
  227. // GetCurrentGuardianSetIndex is a free data retrieval call binding the contract method 0x1cfe7951.
  228. //
  229. // Solidity: function getCurrentGuardianSetIndex() view returns(uint32)
  230. func (_Abi *AbiCaller) GetCurrentGuardianSetIndex(opts *bind.CallOpts) (uint32, error) {
  231. var out []interface{}
  232. err := _Abi.contract.Call(opts, &out, "getCurrentGuardianSetIndex")
  233. if err != nil {
  234. return *new(uint32), err
  235. }
  236. out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
  237. return out0, err
  238. }
  239. // GetCurrentGuardianSetIndex is a free data retrieval call binding the contract method 0x1cfe7951.
  240. //
  241. // Solidity: function getCurrentGuardianSetIndex() view returns(uint32)
  242. func (_Abi *AbiSession) GetCurrentGuardianSetIndex() (uint32, error) {
  243. return _Abi.Contract.GetCurrentGuardianSetIndex(&_Abi.CallOpts)
  244. }
  245. // GetCurrentGuardianSetIndex is a free data retrieval call binding the contract method 0x1cfe7951.
  246. //
  247. // Solidity: function getCurrentGuardianSetIndex() view returns(uint32)
  248. func (_Abi *AbiCallerSession) GetCurrentGuardianSetIndex() (uint32, error) {
  249. return _Abi.Contract.GetCurrentGuardianSetIndex(&_Abi.CallOpts)
  250. }
  251. // GetGuardianSet is a free data retrieval call binding the contract method 0xf951975a.
  252. //
  253. // Solidity: function getGuardianSet(uint32 index) view returns((address[],uint32))
  254. func (_Abi *AbiCaller) GetGuardianSet(opts *bind.CallOpts, index uint32) (StructsGuardianSet, error) {
  255. var out []interface{}
  256. err := _Abi.contract.Call(opts, &out, "getGuardianSet", index)
  257. if err != nil {
  258. return *new(StructsGuardianSet), err
  259. }
  260. out0 := *abi.ConvertType(out[0], new(StructsGuardianSet)).(*StructsGuardianSet)
  261. return out0, err
  262. }
  263. // GetGuardianSet is a free data retrieval call binding the contract method 0xf951975a.
  264. //
  265. // Solidity: function getGuardianSet(uint32 index) view returns((address[],uint32))
  266. func (_Abi *AbiSession) GetGuardianSet(index uint32) (StructsGuardianSet, error) {
  267. return _Abi.Contract.GetGuardianSet(&_Abi.CallOpts, index)
  268. }
  269. // GetGuardianSet is a free data retrieval call binding the contract method 0xf951975a.
  270. //
  271. // Solidity: function getGuardianSet(uint32 index) view returns((address[],uint32))
  272. func (_Abi *AbiCallerSession) GetGuardianSet(index uint32) (StructsGuardianSet, error) {
  273. return _Abi.Contract.GetGuardianSet(&_Abi.CallOpts, index)
  274. }
  275. // GetGuardianSetExpiry is a free data retrieval call binding the contract method 0xeb8d3f12.
  276. //
  277. // Solidity: function getGuardianSetExpiry() view returns(uint32)
  278. func (_Abi *AbiCaller) GetGuardianSetExpiry(opts *bind.CallOpts) (uint32, error) {
  279. var out []interface{}
  280. err := _Abi.contract.Call(opts, &out, "getGuardianSetExpiry")
  281. if err != nil {
  282. return *new(uint32), err
  283. }
  284. out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
  285. return out0, err
  286. }
  287. // GetGuardianSetExpiry is a free data retrieval call binding the contract method 0xeb8d3f12.
  288. //
  289. // Solidity: function getGuardianSetExpiry() view returns(uint32)
  290. func (_Abi *AbiSession) GetGuardianSetExpiry() (uint32, error) {
  291. return _Abi.Contract.GetGuardianSetExpiry(&_Abi.CallOpts)
  292. }
  293. // GetGuardianSetExpiry is a free data retrieval call binding the contract method 0xeb8d3f12.
  294. //
  295. // Solidity: function getGuardianSetExpiry() view returns(uint32)
  296. func (_Abi *AbiCallerSession) GetGuardianSetExpiry() (uint32, error) {
  297. return _Abi.Contract.GetGuardianSetExpiry(&_Abi.CallOpts)
  298. }
  299. // GovernanceActionIsConsumed is a free data retrieval call binding the contract method 0x2c3c02a4.
  300. //
  301. // Solidity: function governanceActionIsConsumed(bytes32 hash) view returns(bool)
  302. func (_Abi *AbiCaller) GovernanceActionIsConsumed(opts *bind.CallOpts, hash [32]byte) (bool, error) {
  303. var out []interface{}
  304. err := _Abi.contract.Call(opts, &out, "governanceActionIsConsumed", hash)
  305. if err != nil {
  306. return *new(bool), err
  307. }
  308. out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
  309. return out0, err
  310. }
  311. // GovernanceActionIsConsumed is a free data retrieval call binding the contract method 0x2c3c02a4.
  312. //
  313. // Solidity: function governanceActionIsConsumed(bytes32 hash) view returns(bool)
  314. func (_Abi *AbiSession) GovernanceActionIsConsumed(hash [32]byte) (bool, error) {
  315. return _Abi.Contract.GovernanceActionIsConsumed(&_Abi.CallOpts, hash)
  316. }
  317. // GovernanceActionIsConsumed is a free data retrieval call binding the contract method 0x2c3c02a4.
  318. //
  319. // Solidity: function governanceActionIsConsumed(bytes32 hash) view returns(bool)
  320. func (_Abi *AbiCallerSession) GovernanceActionIsConsumed(hash [32]byte) (bool, error) {
  321. return _Abi.Contract.GovernanceActionIsConsumed(&_Abi.CallOpts, hash)
  322. }
  323. // GovernanceChainId is a free data retrieval call binding the contract method 0xfbe3c2cd.
  324. //
  325. // Solidity: function governanceChainId() view returns(uint16)
  326. func (_Abi *AbiCaller) GovernanceChainId(opts *bind.CallOpts) (uint16, error) {
  327. var out []interface{}
  328. err := _Abi.contract.Call(opts, &out, "governanceChainId")
  329. if err != nil {
  330. return *new(uint16), err
  331. }
  332. out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
  333. return out0, err
  334. }
  335. // GovernanceChainId is a free data retrieval call binding the contract method 0xfbe3c2cd.
  336. //
  337. // Solidity: function governanceChainId() view returns(uint16)
  338. func (_Abi *AbiSession) GovernanceChainId() (uint16, error) {
  339. return _Abi.Contract.GovernanceChainId(&_Abi.CallOpts)
  340. }
  341. // GovernanceChainId is a free data retrieval call binding the contract method 0xfbe3c2cd.
  342. //
  343. // Solidity: function governanceChainId() view returns(uint16)
  344. func (_Abi *AbiCallerSession) GovernanceChainId() (uint16, error) {
  345. return _Abi.Contract.GovernanceChainId(&_Abi.CallOpts)
  346. }
  347. // GovernanceContract is a free data retrieval call binding the contract method 0xb172b222.
  348. //
  349. // Solidity: function governanceContract() view returns(bytes32)
  350. func (_Abi *AbiCaller) GovernanceContract(opts *bind.CallOpts) ([32]byte, error) {
  351. var out []interface{}
  352. err := _Abi.contract.Call(opts, &out, "governanceContract")
  353. if err != nil {
  354. return *new([32]byte), err
  355. }
  356. out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
  357. return out0, err
  358. }
  359. // GovernanceContract is a free data retrieval call binding the contract method 0xb172b222.
  360. //
  361. // Solidity: function governanceContract() view returns(bytes32)
  362. func (_Abi *AbiSession) GovernanceContract() ([32]byte, error) {
  363. return _Abi.Contract.GovernanceContract(&_Abi.CallOpts)
  364. }
  365. // GovernanceContract is a free data retrieval call binding the contract method 0xb172b222.
  366. //
  367. // Solidity: function governanceContract() view returns(bytes32)
  368. func (_Abi *AbiCallerSession) GovernanceContract() ([32]byte, error) {
  369. return _Abi.Contract.GovernanceContract(&_Abi.CallOpts)
  370. }
  371. // IsInitialized is a free data retrieval call binding the contract method 0xd60b347f.
  372. //
  373. // Solidity: function isInitialized(address impl) view returns(bool)
  374. func (_Abi *AbiCaller) IsInitialized(opts *bind.CallOpts, impl common.Address) (bool, error) {
  375. var out []interface{}
  376. err := _Abi.contract.Call(opts, &out, "isInitialized", impl)
  377. if err != nil {
  378. return *new(bool), err
  379. }
  380. out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
  381. return out0, err
  382. }
  383. // IsInitialized is a free data retrieval call binding the contract method 0xd60b347f.
  384. //
  385. // Solidity: function isInitialized(address impl) view returns(bool)
  386. func (_Abi *AbiSession) IsInitialized(impl common.Address) (bool, error) {
  387. return _Abi.Contract.IsInitialized(&_Abi.CallOpts, impl)
  388. }
  389. // IsInitialized is a free data retrieval call binding the contract method 0xd60b347f.
  390. //
  391. // Solidity: function isInitialized(address impl) view returns(bool)
  392. func (_Abi *AbiCallerSession) IsInitialized(impl common.Address) (bool, error) {
  393. return _Abi.Contract.IsInitialized(&_Abi.CallOpts, impl)
  394. }
  395. // MessageFee is a free data retrieval call binding the contract method 0x1a90a219.
  396. //
  397. // Solidity: function messageFee() view returns(uint256)
  398. func (_Abi *AbiCaller) MessageFee(opts *bind.CallOpts) (*big.Int, error) {
  399. var out []interface{}
  400. err := _Abi.contract.Call(opts, &out, "messageFee")
  401. if err != nil {
  402. return *new(*big.Int), err
  403. }
  404. out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
  405. return out0, err
  406. }
  407. // MessageFee is a free data retrieval call binding the contract method 0x1a90a219.
  408. //
  409. // Solidity: function messageFee() view returns(uint256)
  410. func (_Abi *AbiSession) MessageFee() (*big.Int, error) {
  411. return _Abi.Contract.MessageFee(&_Abi.CallOpts)
  412. }
  413. // MessageFee is a free data retrieval call binding the contract method 0x1a90a219.
  414. //
  415. // Solidity: function messageFee() view returns(uint256)
  416. func (_Abi *AbiCallerSession) MessageFee() (*big.Int, error) {
  417. return _Abi.Contract.MessageFee(&_Abi.CallOpts)
  418. }
  419. // NextSequence is a free data retrieval call binding the contract method 0x4cf842b5.
  420. //
  421. // Solidity: function nextSequence(address emitter) view returns(uint64)
  422. func (_Abi *AbiCaller) NextSequence(opts *bind.CallOpts, emitter common.Address) (uint64, error) {
  423. var out []interface{}
  424. err := _Abi.contract.Call(opts, &out, "nextSequence", emitter)
  425. if err != nil {
  426. return *new(uint64), err
  427. }
  428. out0 := *abi.ConvertType(out[0], new(uint64)).(*uint64)
  429. return out0, err
  430. }
  431. // NextSequence is a free data retrieval call binding the contract method 0x4cf842b5.
  432. //
  433. // Solidity: function nextSequence(address emitter) view returns(uint64)
  434. func (_Abi *AbiSession) NextSequence(emitter common.Address) (uint64, error) {
  435. return _Abi.Contract.NextSequence(&_Abi.CallOpts, emitter)
  436. }
  437. // NextSequence is a free data retrieval call binding the contract method 0x4cf842b5.
  438. //
  439. // Solidity: function nextSequence(address emitter) view returns(uint64)
  440. func (_Abi *AbiCallerSession) NextSequence(emitter common.Address) (uint64, error) {
  441. return _Abi.Contract.NextSequence(&_Abi.CallOpts, emitter)
  442. }
  443. // ParseAndVerifyVM is a free data retrieval call binding the contract method 0xc0fd8bde.
  444. //
  445. // Solidity: function parseAndVerifyVM(bytes encodedVM) view returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm, bool valid, string reason)
  446. func (_Abi *AbiCaller) ParseAndVerifyVM(opts *bind.CallOpts, encodedVM []byte) (struct {
  447. Vm StructsVM
  448. Valid bool
  449. Reason string
  450. }, error) {
  451. var out []interface{}
  452. err := _Abi.contract.Call(opts, &out, "parseAndVerifyVM", encodedVM)
  453. outstruct := new(struct {
  454. Vm StructsVM
  455. Valid bool
  456. Reason string
  457. })
  458. if err != nil {
  459. return *outstruct, err
  460. }
  461. outstruct.Vm = *abi.ConvertType(out[0], new(StructsVM)).(*StructsVM)
  462. outstruct.Valid = *abi.ConvertType(out[1], new(bool)).(*bool)
  463. outstruct.Reason = *abi.ConvertType(out[2], new(string)).(*string)
  464. return *outstruct, err
  465. }
  466. // ParseAndVerifyVM is a free data retrieval call binding the contract method 0xc0fd8bde.
  467. //
  468. // Solidity: function parseAndVerifyVM(bytes encodedVM) view returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm, bool valid, string reason)
  469. func (_Abi *AbiSession) ParseAndVerifyVM(encodedVM []byte) (struct {
  470. Vm StructsVM
  471. Valid bool
  472. Reason string
  473. }, error) {
  474. return _Abi.Contract.ParseAndVerifyVM(&_Abi.CallOpts, encodedVM)
  475. }
  476. // ParseAndVerifyVM is a free data retrieval call binding the contract method 0xc0fd8bde.
  477. //
  478. // Solidity: function parseAndVerifyVM(bytes encodedVM) view returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm, bool valid, string reason)
  479. func (_Abi *AbiCallerSession) ParseAndVerifyVM(encodedVM []byte) (struct {
  480. Vm StructsVM
  481. Valid bool
  482. Reason string
  483. }, error) {
  484. return _Abi.Contract.ParseAndVerifyVM(&_Abi.CallOpts, encodedVM)
  485. }
  486. // ParseContractUpgrade is a free data retrieval call binding the contract method 0x4fdc60fa.
  487. //
  488. // Solidity: function parseContractUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,address) cu)
  489. func (_Abi *AbiCaller) ParseContractUpgrade(opts *bind.CallOpts, encodedUpgrade []byte) (GovernanceStructsContractUpgrade, error) {
  490. var out []interface{}
  491. err := _Abi.contract.Call(opts, &out, "parseContractUpgrade", encodedUpgrade)
  492. if err != nil {
  493. return *new(GovernanceStructsContractUpgrade), err
  494. }
  495. out0 := *abi.ConvertType(out[0], new(GovernanceStructsContractUpgrade)).(*GovernanceStructsContractUpgrade)
  496. return out0, err
  497. }
  498. // ParseContractUpgrade is a free data retrieval call binding the contract method 0x4fdc60fa.
  499. //
  500. // Solidity: function parseContractUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,address) cu)
  501. func (_Abi *AbiSession) ParseContractUpgrade(encodedUpgrade []byte) (GovernanceStructsContractUpgrade, error) {
  502. return _Abi.Contract.ParseContractUpgrade(&_Abi.CallOpts, encodedUpgrade)
  503. }
  504. // ParseContractUpgrade is a free data retrieval call binding the contract method 0x4fdc60fa.
  505. //
  506. // Solidity: function parseContractUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,address) cu)
  507. func (_Abi *AbiCallerSession) ParseContractUpgrade(encodedUpgrade []byte) (GovernanceStructsContractUpgrade, error) {
  508. return _Abi.Contract.ParseContractUpgrade(&_Abi.CallOpts, encodedUpgrade)
  509. }
  510. // ParseGuardianSetUpgrade is a free data retrieval call binding the contract method 0x04ca84cf.
  511. //
  512. // Solidity: function parseGuardianSetUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,(address[],uint32),uint32) gsu)
  513. func (_Abi *AbiCaller) ParseGuardianSetUpgrade(opts *bind.CallOpts, encodedUpgrade []byte) (GovernanceStructsGuardianSetUpgrade, error) {
  514. var out []interface{}
  515. err := _Abi.contract.Call(opts, &out, "parseGuardianSetUpgrade", encodedUpgrade)
  516. if err != nil {
  517. return *new(GovernanceStructsGuardianSetUpgrade), err
  518. }
  519. out0 := *abi.ConvertType(out[0], new(GovernanceStructsGuardianSetUpgrade)).(*GovernanceStructsGuardianSetUpgrade)
  520. return out0, err
  521. }
  522. // ParseGuardianSetUpgrade is a free data retrieval call binding the contract method 0x04ca84cf.
  523. //
  524. // Solidity: function parseGuardianSetUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,(address[],uint32),uint32) gsu)
  525. func (_Abi *AbiSession) ParseGuardianSetUpgrade(encodedUpgrade []byte) (GovernanceStructsGuardianSetUpgrade, error) {
  526. return _Abi.Contract.ParseGuardianSetUpgrade(&_Abi.CallOpts, encodedUpgrade)
  527. }
  528. // ParseGuardianSetUpgrade is a free data retrieval call binding the contract method 0x04ca84cf.
  529. //
  530. // Solidity: function parseGuardianSetUpgrade(bytes encodedUpgrade) pure returns((bytes32,uint8,uint16,(address[],uint32),uint32) gsu)
  531. func (_Abi *AbiCallerSession) ParseGuardianSetUpgrade(encodedUpgrade []byte) (GovernanceStructsGuardianSetUpgrade, error) {
  532. return _Abi.Contract.ParseGuardianSetUpgrade(&_Abi.CallOpts, encodedUpgrade)
  533. }
  534. // ParseSetMessageFee is a free data retrieval call binding the contract method 0x515f3247.
  535. //
  536. // Solidity: function parseSetMessageFee(bytes encodedSetMessageFee) pure returns((bytes32,uint8,uint16,uint256) smf)
  537. func (_Abi *AbiCaller) ParseSetMessageFee(opts *bind.CallOpts, encodedSetMessageFee []byte) (GovernanceStructsSetMessageFee, error) {
  538. var out []interface{}
  539. err := _Abi.contract.Call(opts, &out, "parseSetMessageFee", encodedSetMessageFee)
  540. if err != nil {
  541. return *new(GovernanceStructsSetMessageFee), err
  542. }
  543. out0 := *abi.ConvertType(out[0], new(GovernanceStructsSetMessageFee)).(*GovernanceStructsSetMessageFee)
  544. return out0, err
  545. }
  546. // ParseSetMessageFee is a free data retrieval call binding the contract method 0x515f3247.
  547. //
  548. // Solidity: function parseSetMessageFee(bytes encodedSetMessageFee) pure returns((bytes32,uint8,uint16,uint256) smf)
  549. func (_Abi *AbiSession) ParseSetMessageFee(encodedSetMessageFee []byte) (GovernanceStructsSetMessageFee, error) {
  550. return _Abi.Contract.ParseSetMessageFee(&_Abi.CallOpts, encodedSetMessageFee)
  551. }
  552. // ParseSetMessageFee is a free data retrieval call binding the contract method 0x515f3247.
  553. //
  554. // Solidity: function parseSetMessageFee(bytes encodedSetMessageFee) pure returns((bytes32,uint8,uint16,uint256) smf)
  555. func (_Abi *AbiCallerSession) ParseSetMessageFee(encodedSetMessageFee []byte) (GovernanceStructsSetMessageFee, error) {
  556. return _Abi.Contract.ParseSetMessageFee(&_Abi.CallOpts, encodedSetMessageFee)
  557. }
  558. // ParseTransferFees is a free data retrieval call binding the contract method 0x0319e59c.
  559. //
  560. // Solidity: function parseTransferFees(bytes encodedTransferFees) pure returns((bytes32,uint8,uint16,uint256,bytes32) tf)
  561. func (_Abi *AbiCaller) ParseTransferFees(opts *bind.CallOpts, encodedTransferFees []byte) (GovernanceStructsTransferFees, error) {
  562. var out []interface{}
  563. err := _Abi.contract.Call(opts, &out, "parseTransferFees", encodedTransferFees)
  564. if err != nil {
  565. return *new(GovernanceStructsTransferFees), err
  566. }
  567. out0 := *abi.ConvertType(out[0], new(GovernanceStructsTransferFees)).(*GovernanceStructsTransferFees)
  568. return out0, err
  569. }
  570. // ParseTransferFees is a free data retrieval call binding the contract method 0x0319e59c.
  571. //
  572. // Solidity: function parseTransferFees(bytes encodedTransferFees) pure returns((bytes32,uint8,uint16,uint256,bytes32) tf)
  573. func (_Abi *AbiSession) ParseTransferFees(encodedTransferFees []byte) (GovernanceStructsTransferFees, error) {
  574. return _Abi.Contract.ParseTransferFees(&_Abi.CallOpts, encodedTransferFees)
  575. }
  576. // ParseTransferFees is a free data retrieval call binding the contract method 0x0319e59c.
  577. //
  578. // Solidity: function parseTransferFees(bytes encodedTransferFees) pure returns((bytes32,uint8,uint16,uint256,bytes32) tf)
  579. func (_Abi *AbiCallerSession) ParseTransferFees(encodedTransferFees []byte) (GovernanceStructsTransferFees, error) {
  580. return _Abi.Contract.ParseTransferFees(&_Abi.CallOpts, encodedTransferFees)
  581. }
  582. // ParseVM is a free data retrieval call binding the contract method 0xa9e11893.
  583. //
  584. // Solidity: function parseVM(bytes encodedVM) pure returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm)
  585. func (_Abi *AbiCaller) ParseVM(opts *bind.CallOpts, encodedVM []byte) (StructsVM, error) {
  586. var out []interface{}
  587. err := _Abi.contract.Call(opts, &out, "parseVM", encodedVM)
  588. if err != nil {
  589. return *new(StructsVM), err
  590. }
  591. out0 := *abi.ConvertType(out[0], new(StructsVM)).(*StructsVM)
  592. return out0, err
  593. }
  594. // ParseVM is a free data retrieval call binding the contract method 0xa9e11893.
  595. //
  596. // Solidity: function parseVM(bytes encodedVM) pure returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm)
  597. func (_Abi *AbiSession) ParseVM(encodedVM []byte) (StructsVM, error) {
  598. return _Abi.Contract.ParseVM(&_Abi.CallOpts, encodedVM)
  599. }
  600. // ParseVM is a free data retrieval call binding the contract method 0xa9e11893.
  601. //
  602. // Solidity: function parseVM(bytes encodedVM) pure returns((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm)
  603. func (_Abi *AbiCallerSession) ParseVM(encodedVM []byte) (StructsVM, error) {
  604. return _Abi.Contract.ParseVM(&_Abi.CallOpts, encodedVM)
  605. }
  606. // VerifySignatures is a free data retrieval call binding the contract method 0xa0cce1b3.
  607. //
  608. // Solidity: function verifySignatures(bytes32 hash, (bytes32,bytes32,uint8,uint8)[] signatures, (address[],uint32) guardianSet) pure returns(bool valid, string reason)
  609. func (_Abi *AbiCaller) VerifySignatures(opts *bind.CallOpts, hash [32]byte, signatures []StructsSignature, guardianSet StructsGuardianSet) (struct {
  610. Valid bool
  611. Reason string
  612. }, error) {
  613. var out []interface{}
  614. err := _Abi.contract.Call(opts, &out, "verifySignatures", hash, signatures, guardianSet)
  615. outstruct := new(struct {
  616. Valid bool
  617. Reason string
  618. })
  619. if err != nil {
  620. return *outstruct, err
  621. }
  622. outstruct.Valid = *abi.ConvertType(out[0], new(bool)).(*bool)
  623. outstruct.Reason = *abi.ConvertType(out[1], new(string)).(*string)
  624. return *outstruct, err
  625. }
  626. // VerifySignatures is a free data retrieval call binding the contract method 0xa0cce1b3.
  627. //
  628. // Solidity: function verifySignatures(bytes32 hash, (bytes32,bytes32,uint8,uint8)[] signatures, (address[],uint32) guardianSet) pure returns(bool valid, string reason)
  629. func (_Abi *AbiSession) VerifySignatures(hash [32]byte, signatures []StructsSignature, guardianSet StructsGuardianSet) (struct {
  630. Valid bool
  631. Reason string
  632. }, error) {
  633. return _Abi.Contract.VerifySignatures(&_Abi.CallOpts, hash, signatures, guardianSet)
  634. }
  635. // VerifySignatures is a free data retrieval call binding the contract method 0xa0cce1b3.
  636. //
  637. // Solidity: function verifySignatures(bytes32 hash, (bytes32,bytes32,uint8,uint8)[] signatures, (address[],uint32) guardianSet) pure returns(bool valid, string reason)
  638. func (_Abi *AbiCallerSession) VerifySignatures(hash [32]byte, signatures []StructsSignature, guardianSet StructsGuardianSet) (struct {
  639. Valid bool
  640. Reason string
  641. }, error) {
  642. return _Abi.Contract.VerifySignatures(&_Abi.CallOpts, hash, signatures, guardianSet)
  643. }
  644. // VerifyVM is a free data retrieval call binding the contract method 0x875be02a.
  645. //
  646. // Solidity: function verifyVM((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm) view returns(bool valid, string reason)
  647. func (_Abi *AbiCaller) VerifyVM(opts *bind.CallOpts, vm StructsVM) (struct {
  648. Valid bool
  649. Reason string
  650. }, error) {
  651. var out []interface{}
  652. err := _Abi.contract.Call(opts, &out, "verifyVM", vm)
  653. outstruct := new(struct {
  654. Valid bool
  655. Reason string
  656. })
  657. if err != nil {
  658. return *outstruct, err
  659. }
  660. outstruct.Valid = *abi.ConvertType(out[0], new(bool)).(*bool)
  661. outstruct.Reason = *abi.ConvertType(out[1], new(string)).(*string)
  662. return *outstruct, err
  663. }
  664. // VerifyVM is a free data retrieval call binding the contract method 0x875be02a.
  665. //
  666. // Solidity: function verifyVM((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm) view returns(bool valid, string reason)
  667. func (_Abi *AbiSession) VerifyVM(vm StructsVM) (struct {
  668. Valid bool
  669. Reason string
  670. }, error) {
  671. return _Abi.Contract.VerifyVM(&_Abi.CallOpts, vm)
  672. }
  673. // VerifyVM is a free data retrieval call binding the contract method 0x875be02a.
  674. //
  675. // Solidity: function verifyVM((uint8,uint32,uint32,uint16,bytes32,uint64,uint8,bytes,uint32,(bytes32,bytes32,uint8,uint8)[],bytes32) vm) view returns(bool valid, string reason)
  676. func (_Abi *AbiCallerSession) VerifyVM(vm StructsVM) (struct {
  677. Valid bool
  678. Reason string
  679. }, error) {
  680. return _Abi.Contract.VerifyVM(&_Abi.CallOpts, vm)
  681. }
  682. // Initialize is a paid mutator transaction binding the contract method 0xf6079017.
  683. //
  684. // Solidity: function initialize(address[] initialGuardians, uint16 chainId, uint16 governanceChainId, bytes32 governanceContract) returns()
  685. func (_Abi *AbiTransactor) Initialize(opts *bind.TransactOpts, initialGuardians []common.Address, chainId uint16, governanceChainId uint16, governanceContract [32]byte) (*types.Transaction, error) {
  686. return _Abi.contract.Transact(opts, "initialize", initialGuardians, chainId, governanceChainId, governanceContract)
  687. }
  688. // Initialize is a paid mutator transaction binding the contract method 0xf6079017.
  689. //
  690. // Solidity: function initialize(address[] initialGuardians, uint16 chainId, uint16 governanceChainId, bytes32 governanceContract) returns()
  691. func (_Abi *AbiSession) Initialize(initialGuardians []common.Address, chainId uint16, governanceChainId uint16, governanceContract [32]byte) (*types.Transaction, error) {
  692. return _Abi.Contract.Initialize(&_Abi.TransactOpts, initialGuardians, chainId, governanceChainId, governanceContract)
  693. }
  694. // Initialize is a paid mutator transaction binding the contract method 0xf6079017.
  695. //
  696. // Solidity: function initialize(address[] initialGuardians, uint16 chainId, uint16 governanceChainId, bytes32 governanceContract) returns()
  697. func (_Abi *AbiTransactorSession) Initialize(initialGuardians []common.Address, chainId uint16, governanceChainId uint16, governanceContract [32]byte) (*types.Transaction, error) {
  698. return _Abi.Contract.Initialize(&_Abi.TransactOpts, initialGuardians, chainId, governanceChainId, governanceContract)
  699. }
  700. // PublishMessage is a paid mutator transaction binding the contract method 0xb19a437e.
  701. //
  702. // Solidity: function publishMessage(uint32 nonce, bytes payload, uint8 consistencyLevel) payable returns(uint64 sequence)
  703. func (_Abi *AbiTransactor) PublishMessage(opts *bind.TransactOpts, nonce uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error) {
  704. return _Abi.contract.Transact(opts, "publishMessage", nonce, payload, consistencyLevel)
  705. }
  706. // PublishMessage is a paid mutator transaction binding the contract method 0xb19a437e.
  707. //
  708. // Solidity: function publishMessage(uint32 nonce, bytes payload, uint8 consistencyLevel) payable returns(uint64 sequence)
  709. func (_Abi *AbiSession) PublishMessage(nonce uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error) {
  710. return _Abi.Contract.PublishMessage(&_Abi.TransactOpts, nonce, payload, consistencyLevel)
  711. }
  712. // PublishMessage is a paid mutator transaction binding the contract method 0xb19a437e.
  713. //
  714. // Solidity: function publishMessage(uint32 nonce, bytes payload, uint8 consistencyLevel) payable returns(uint64 sequence)
  715. func (_Abi *AbiTransactorSession) PublishMessage(nonce uint32, payload []byte, consistencyLevel uint8) (*types.Transaction, error) {
  716. return _Abi.Contract.PublishMessage(&_Abi.TransactOpts, nonce, payload, consistencyLevel)
  717. }
  718. // SubmitContractUpgrade is a paid mutator transaction binding the contract method 0x5cb8cae2.
  719. //
  720. // Solidity: function submitContractUpgrade(bytes _vm) returns()
  721. func (_Abi *AbiTransactor) SubmitContractUpgrade(opts *bind.TransactOpts, _vm []byte) (*types.Transaction, error) {
  722. return _Abi.contract.Transact(opts, "submitContractUpgrade", _vm)
  723. }
  724. // SubmitContractUpgrade is a paid mutator transaction binding the contract method 0x5cb8cae2.
  725. //
  726. // Solidity: function submitContractUpgrade(bytes _vm) returns()
  727. func (_Abi *AbiSession) SubmitContractUpgrade(_vm []byte) (*types.Transaction, error) {
  728. return _Abi.Contract.SubmitContractUpgrade(&_Abi.TransactOpts, _vm)
  729. }
  730. // SubmitContractUpgrade is a paid mutator transaction binding the contract method 0x5cb8cae2.
  731. //
  732. // Solidity: function submitContractUpgrade(bytes _vm) returns()
  733. func (_Abi *AbiTransactorSession) SubmitContractUpgrade(_vm []byte) (*types.Transaction, error) {
  734. return _Abi.Contract.SubmitContractUpgrade(&_Abi.TransactOpts, _vm)
  735. }
  736. // SubmitNewGuardianSet is a paid mutator transaction binding the contract method 0x6606b4e0.
  737. //
  738. // Solidity: function submitNewGuardianSet(bytes _vm) returns()
  739. func (_Abi *AbiTransactor) SubmitNewGuardianSet(opts *bind.TransactOpts, _vm []byte) (*types.Transaction, error) {
  740. return _Abi.contract.Transact(opts, "submitNewGuardianSet", _vm)
  741. }
  742. // SubmitNewGuardianSet is a paid mutator transaction binding the contract method 0x6606b4e0.
  743. //
  744. // Solidity: function submitNewGuardianSet(bytes _vm) returns()
  745. func (_Abi *AbiSession) SubmitNewGuardianSet(_vm []byte) (*types.Transaction, error) {
  746. return _Abi.Contract.SubmitNewGuardianSet(&_Abi.TransactOpts, _vm)
  747. }
  748. // SubmitNewGuardianSet is a paid mutator transaction binding the contract method 0x6606b4e0.
  749. //
  750. // Solidity: function submitNewGuardianSet(bytes _vm) returns()
  751. func (_Abi *AbiTransactorSession) SubmitNewGuardianSet(_vm []byte) (*types.Transaction, error) {
  752. return _Abi.Contract.SubmitNewGuardianSet(&_Abi.TransactOpts, _vm)
  753. }
  754. // SubmitSetMessageFee is a paid mutator transaction binding the contract method 0xf42bc641.
  755. //
  756. // Solidity: function submitSetMessageFee(bytes _vm) returns()
  757. func (_Abi *AbiTransactor) SubmitSetMessageFee(opts *bind.TransactOpts, _vm []byte) (*types.Transaction, error) {
  758. return _Abi.contract.Transact(opts, "submitSetMessageFee", _vm)
  759. }
  760. // SubmitSetMessageFee is a paid mutator transaction binding the contract method 0xf42bc641.
  761. //
  762. // Solidity: function submitSetMessageFee(bytes _vm) returns()
  763. func (_Abi *AbiSession) SubmitSetMessageFee(_vm []byte) (*types.Transaction, error) {
  764. return _Abi.Contract.SubmitSetMessageFee(&_Abi.TransactOpts, _vm)
  765. }
  766. // SubmitSetMessageFee is a paid mutator transaction binding the contract method 0xf42bc641.
  767. //
  768. // Solidity: function submitSetMessageFee(bytes _vm) returns()
  769. func (_Abi *AbiTransactorSession) SubmitSetMessageFee(_vm []byte) (*types.Transaction, error) {
  770. return _Abi.Contract.SubmitSetMessageFee(&_Abi.TransactOpts, _vm)
  771. }
  772. // SubmitTransferFees is a paid mutator transaction binding the contract method 0x93df337e.
  773. //
  774. // Solidity: function submitTransferFees(bytes _vm) returns()
  775. func (_Abi *AbiTransactor) SubmitTransferFees(opts *bind.TransactOpts, _vm []byte) (*types.Transaction, error) {
  776. return _Abi.contract.Transact(opts, "submitTransferFees", _vm)
  777. }
  778. // SubmitTransferFees is a paid mutator transaction binding the contract method 0x93df337e.
  779. //
  780. // Solidity: function submitTransferFees(bytes _vm) returns()
  781. func (_Abi *AbiSession) SubmitTransferFees(_vm []byte) (*types.Transaction, error) {
  782. return _Abi.Contract.SubmitTransferFees(&_Abi.TransactOpts, _vm)
  783. }
  784. // SubmitTransferFees is a paid mutator transaction binding the contract method 0x93df337e.
  785. //
  786. // Solidity: function submitTransferFees(bytes _vm) returns()
  787. func (_Abi *AbiTransactorSession) SubmitTransferFees(_vm []byte) (*types.Transaction, error) {
  788. return _Abi.Contract.SubmitTransferFees(&_Abi.TransactOpts, _vm)
  789. }
  790. // Fallback is a paid mutator transaction binding the contract fallback function.
  791. //
  792. // Solidity: fallback() payable returns()
  793. func (_Abi *AbiTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error) {
  794. return _Abi.contract.RawTransact(opts, calldata)
  795. }
  796. // Fallback is a paid mutator transaction binding the contract fallback function.
  797. //
  798. // Solidity: fallback() payable returns()
  799. func (_Abi *AbiSession) Fallback(calldata []byte) (*types.Transaction, error) {
  800. return _Abi.Contract.Fallback(&_Abi.TransactOpts, calldata)
  801. }
  802. // Fallback is a paid mutator transaction binding the contract fallback function.
  803. //
  804. // Solidity: fallback() payable returns()
  805. func (_Abi *AbiTransactorSession) Fallback(calldata []byte) (*types.Transaction, error) {
  806. return _Abi.Contract.Fallback(&_Abi.TransactOpts, calldata)
  807. }
  808. // Receive is a paid mutator transaction binding the contract receive function.
  809. //
  810. // Solidity: receive() payable returns()
  811. func (_Abi *AbiTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
  812. return _Abi.contract.RawTransact(opts, nil) // calldata is disallowed for receive function
  813. }
  814. // Receive is a paid mutator transaction binding the contract receive function.
  815. //
  816. // Solidity: receive() payable returns()
  817. func (_Abi *AbiSession) Receive() (*types.Transaction, error) {
  818. return _Abi.Contract.Receive(&_Abi.TransactOpts)
  819. }
  820. // Receive is a paid mutator transaction binding the contract receive function.
  821. //
  822. // Solidity: receive() payable returns()
  823. func (_Abi *AbiTransactorSession) Receive() (*types.Transaction, error) {
  824. return _Abi.Contract.Receive(&_Abi.TransactOpts)
  825. }
  826. // AbiAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the Abi contract.
  827. type AbiAdminChangedIterator struct {
  828. Event *AbiAdminChanged // Event containing the contract specifics and raw log
  829. contract *bind.BoundContract // Generic contract to use for unpacking event data
  830. event string // Event name to use for unpacking event data
  831. logs chan types.Log // Log channel receiving the found contract events
  832. sub ethereum.Subscription // Subscription for errors, completion and termination
  833. done bool // Whether the subscription completed delivering logs
  834. fail error // Occurred error to stop iteration
  835. }
  836. // Next advances the iterator to the subsequent event, returning whether there
  837. // are any more events found. In case of a retrieval or parsing error, false is
  838. // returned and Error() can be queried for the exact failure.
  839. func (it *AbiAdminChangedIterator) Next() bool {
  840. // If the iterator failed, stop iterating
  841. if it.fail != nil {
  842. return false
  843. }
  844. // If the iterator completed, deliver directly whatever's available
  845. if it.done {
  846. select {
  847. case log := <-it.logs:
  848. it.Event = new(AbiAdminChanged)
  849. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  850. it.fail = err
  851. return false
  852. }
  853. it.Event.Raw = log
  854. return true
  855. default:
  856. return false
  857. }
  858. }
  859. // Iterator still in progress, wait for either a data or an error event
  860. select {
  861. case log := <-it.logs:
  862. it.Event = new(AbiAdminChanged)
  863. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  864. it.fail = err
  865. return false
  866. }
  867. it.Event.Raw = log
  868. return true
  869. case err := <-it.sub.Err():
  870. it.done = true
  871. it.fail = err
  872. return it.Next()
  873. }
  874. }
  875. // Error returns any retrieval or parsing error occurred during filtering.
  876. func (it *AbiAdminChangedIterator) Error() error {
  877. return it.fail
  878. }
  879. // Close terminates the iteration process, releasing any pending underlying
  880. // resources.
  881. func (it *AbiAdminChangedIterator) Close() error {
  882. it.sub.Unsubscribe()
  883. return nil
  884. }
  885. // AbiAdminChanged represents a AdminChanged event raised by the Abi contract.
  886. type AbiAdminChanged struct {
  887. PreviousAdmin common.Address
  888. NewAdmin common.Address
  889. Raw types.Log // Blockchain specific contextual infos
  890. }
  891. // FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
  892. //
  893. // Solidity: event AdminChanged(address previousAdmin, address newAdmin)
  894. func (_Abi *AbiFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*AbiAdminChangedIterator, error) {
  895. logs, sub, err := _Abi.contract.FilterLogs(opts, "AdminChanged")
  896. if err != nil {
  897. return nil, err
  898. }
  899. return &AbiAdminChangedIterator{contract: _Abi.contract, event: "AdminChanged", logs: logs, sub: sub}, nil
  900. }
  901. // WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
  902. //
  903. // Solidity: event AdminChanged(address previousAdmin, address newAdmin)
  904. func (_Abi *AbiFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *AbiAdminChanged) (event.Subscription, error) {
  905. logs, sub, err := _Abi.contract.WatchLogs(opts, "AdminChanged")
  906. if err != nil {
  907. return nil, err
  908. }
  909. return event.NewSubscription(func(quit <-chan struct{}) error {
  910. defer sub.Unsubscribe()
  911. for {
  912. select {
  913. case log := <-logs:
  914. // New log arrived, parse the event and forward to the user
  915. event := new(AbiAdminChanged)
  916. if err := _Abi.contract.UnpackLog(event, "AdminChanged", log); err != nil {
  917. return err
  918. }
  919. event.Raw = log
  920. select {
  921. case sink <- event:
  922. case err := <-sub.Err():
  923. return err
  924. case <-quit:
  925. return nil
  926. }
  927. case err := <-sub.Err():
  928. return err
  929. case <-quit:
  930. return nil
  931. }
  932. }
  933. }), nil
  934. }
  935. // ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
  936. //
  937. // Solidity: event AdminChanged(address previousAdmin, address newAdmin)
  938. func (_Abi *AbiFilterer) ParseAdminChanged(log types.Log) (*AbiAdminChanged, error) {
  939. event := new(AbiAdminChanged)
  940. if err := _Abi.contract.UnpackLog(event, "AdminChanged", log); err != nil {
  941. return nil, err
  942. }
  943. event.Raw = log
  944. return event, nil
  945. }
  946. // AbiBeaconUpgradedIterator is returned from FilterBeaconUpgraded and is used to iterate over the raw logs and unpacked data for BeaconUpgraded events raised by the Abi contract.
  947. type AbiBeaconUpgradedIterator struct {
  948. Event *AbiBeaconUpgraded // Event containing the contract specifics and raw log
  949. contract *bind.BoundContract // Generic contract to use for unpacking event data
  950. event string // Event name to use for unpacking event data
  951. logs chan types.Log // Log channel receiving the found contract events
  952. sub ethereum.Subscription // Subscription for errors, completion and termination
  953. done bool // Whether the subscription completed delivering logs
  954. fail error // Occurred error to stop iteration
  955. }
  956. // Next advances the iterator to the subsequent event, returning whether there
  957. // are any more events found. In case of a retrieval or parsing error, false is
  958. // returned and Error() can be queried for the exact failure.
  959. func (it *AbiBeaconUpgradedIterator) Next() bool {
  960. // If the iterator failed, stop iterating
  961. if it.fail != nil {
  962. return false
  963. }
  964. // If the iterator completed, deliver directly whatever's available
  965. if it.done {
  966. select {
  967. case log := <-it.logs:
  968. it.Event = new(AbiBeaconUpgraded)
  969. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  970. it.fail = err
  971. return false
  972. }
  973. it.Event.Raw = log
  974. return true
  975. default:
  976. return false
  977. }
  978. }
  979. // Iterator still in progress, wait for either a data or an error event
  980. select {
  981. case log := <-it.logs:
  982. it.Event = new(AbiBeaconUpgraded)
  983. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  984. it.fail = err
  985. return false
  986. }
  987. it.Event.Raw = log
  988. return true
  989. case err := <-it.sub.Err():
  990. it.done = true
  991. it.fail = err
  992. return it.Next()
  993. }
  994. }
  995. // Error returns any retrieval or parsing error occurred during filtering.
  996. func (it *AbiBeaconUpgradedIterator) Error() error {
  997. return it.fail
  998. }
  999. // Close terminates the iteration process, releasing any pending underlying
  1000. // resources.
  1001. func (it *AbiBeaconUpgradedIterator) Close() error {
  1002. it.sub.Unsubscribe()
  1003. return nil
  1004. }
  1005. // AbiBeaconUpgraded represents a BeaconUpgraded event raised by the Abi contract.
  1006. type AbiBeaconUpgraded struct {
  1007. Beacon common.Address
  1008. Raw types.Log // Blockchain specific contextual infos
  1009. }
  1010. // FilterBeaconUpgraded is a free log retrieval operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
  1011. //
  1012. // Solidity: event BeaconUpgraded(address indexed beacon)
  1013. func (_Abi *AbiFilterer) FilterBeaconUpgraded(opts *bind.FilterOpts, beacon []common.Address) (*AbiBeaconUpgradedIterator, error) {
  1014. var beaconRule []interface{}
  1015. for _, beaconItem := range beacon {
  1016. beaconRule = append(beaconRule, beaconItem)
  1017. }
  1018. logs, sub, err := _Abi.contract.FilterLogs(opts, "BeaconUpgraded", beaconRule)
  1019. if err != nil {
  1020. return nil, err
  1021. }
  1022. return &AbiBeaconUpgradedIterator{contract: _Abi.contract, event: "BeaconUpgraded", logs: logs, sub: sub}, nil
  1023. }
  1024. // WatchBeaconUpgraded is a free log subscription operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
  1025. //
  1026. // Solidity: event BeaconUpgraded(address indexed beacon)
  1027. func (_Abi *AbiFilterer) WatchBeaconUpgraded(opts *bind.WatchOpts, sink chan<- *AbiBeaconUpgraded, beacon []common.Address) (event.Subscription, error) {
  1028. var beaconRule []interface{}
  1029. for _, beaconItem := range beacon {
  1030. beaconRule = append(beaconRule, beaconItem)
  1031. }
  1032. logs, sub, err := _Abi.contract.WatchLogs(opts, "BeaconUpgraded", beaconRule)
  1033. if err != nil {
  1034. return nil, err
  1035. }
  1036. return event.NewSubscription(func(quit <-chan struct{}) error {
  1037. defer sub.Unsubscribe()
  1038. for {
  1039. select {
  1040. case log := <-logs:
  1041. // New log arrived, parse the event and forward to the user
  1042. event := new(AbiBeaconUpgraded)
  1043. if err := _Abi.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil {
  1044. return err
  1045. }
  1046. event.Raw = log
  1047. select {
  1048. case sink <- event:
  1049. case err := <-sub.Err():
  1050. return err
  1051. case <-quit:
  1052. return nil
  1053. }
  1054. case err := <-sub.Err():
  1055. return err
  1056. case <-quit:
  1057. return nil
  1058. }
  1059. }
  1060. }), nil
  1061. }
  1062. // ParseBeaconUpgraded is a log parse operation binding the contract event 0x1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e.
  1063. //
  1064. // Solidity: event BeaconUpgraded(address indexed beacon)
  1065. func (_Abi *AbiFilterer) ParseBeaconUpgraded(log types.Log) (*AbiBeaconUpgraded, error) {
  1066. event := new(AbiBeaconUpgraded)
  1067. if err := _Abi.contract.UnpackLog(event, "BeaconUpgraded", log); err != nil {
  1068. return nil, err
  1069. }
  1070. event.Raw = log
  1071. return event, nil
  1072. }
  1073. // AbiContractUpgradedIterator is returned from FilterContractUpgraded and is used to iterate over the raw logs and unpacked data for ContractUpgraded events raised by the Abi contract.
  1074. type AbiContractUpgradedIterator struct {
  1075. Event *AbiContractUpgraded // Event containing the contract specifics and raw log
  1076. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1077. event string // Event name to use for unpacking event data
  1078. logs chan types.Log // Log channel receiving the found contract events
  1079. sub ethereum.Subscription // Subscription for errors, completion and termination
  1080. done bool // Whether the subscription completed delivering logs
  1081. fail error // Occurred error to stop iteration
  1082. }
  1083. // Next advances the iterator to the subsequent event, returning whether there
  1084. // are any more events found. In case of a retrieval or parsing error, false is
  1085. // returned and Error() can be queried for the exact failure.
  1086. func (it *AbiContractUpgradedIterator) Next() bool {
  1087. // If the iterator failed, stop iterating
  1088. if it.fail != nil {
  1089. return false
  1090. }
  1091. // If the iterator completed, deliver directly whatever's available
  1092. if it.done {
  1093. select {
  1094. case log := <-it.logs:
  1095. it.Event = new(AbiContractUpgraded)
  1096. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1097. it.fail = err
  1098. return false
  1099. }
  1100. it.Event.Raw = log
  1101. return true
  1102. default:
  1103. return false
  1104. }
  1105. }
  1106. // Iterator still in progress, wait for either a data or an error event
  1107. select {
  1108. case log := <-it.logs:
  1109. it.Event = new(AbiContractUpgraded)
  1110. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1111. it.fail = err
  1112. return false
  1113. }
  1114. it.Event.Raw = log
  1115. return true
  1116. case err := <-it.sub.Err():
  1117. it.done = true
  1118. it.fail = err
  1119. return it.Next()
  1120. }
  1121. }
  1122. // Error returns any retrieval or parsing error occurred during filtering.
  1123. func (it *AbiContractUpgradedIterator) Error() error {
  1124. return it.fail
  1125. }
  1126. // Close terminates the iteration process, releasing any pending underlying
  1127. // resources.
  1128. func (it *AbiContractUpgradedIterator) Close() error {
  1129. it.sub.Unsubscribe()
  1130. return nil
  1131. }
  1132. // AbiContractUpgraded represents a ContractUpgraded event raised by the Abi contract.
  1133. type AbiContractUpgraded struct {
  1134. OldContract common.Address
  1135. NewContract common.Address
  1136. Raw types.Log // Blockchain specific contextual infos
  1137. }
  1138. // FilterContractUpgraded is a free log retrieval operation binding the contract event 0x2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a49.
  1139. //
  1140. // Solidity: event ContractUpgraded(address indexed oldContract, address indexed newContract)
  1141. func (_Abi *AbiFilterer) FilterContractUpgraded(opts *bind.FilterOpts, oldContract []common.Address, newContract []common.Address) (*AbiContractUpgradedIterator, error) {
  1142. var oldContractRule []interface{}
  1143. for _, oldContractItem := range oldContract {
  1144. oldContractRule = append(oldContractRule, oldContractItem)
  1145. }
  1146. var newContractRule []interface{}
  1147. for _, newContractItem := range newContract {
  1148. newContractRule = append(newContractRule, newContractItem)
  1149. }
  1150. logs, sub, err := _Abi.contract.FilterLogs(opts, "ContractUpgraded", oldContractRule, newContractRule)
  1151. if err != nil {
  1152. return nil, err
  1153. }
  1154. return &AbiContractUpgradedIterator{contract: _Abi.contract, event: "ContractUpgraded", logs: logs, sub: sub}, nil
  1155. }
  1156. // WatchContractUpgraded is a free log subscription operation binding the contract event 0x2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a49.
  1157. //
  1158. // Solidity: event ContractUpgraded(address indexed oldContract, address indexed newContract)
  1159. func (_Abi *AbiFilterer) WatchContractUpgraded(opts *bind.WatchOpts, sink chan<- *AbiContractUpgraded, oldContract []common.Address, newContract []common.Address) (event.Subscription, error) {
  1160. var oldContractRule []interface{}
  1161. for _, oldContractItem := range oldContract {
  1162. oldContractRule = append(oldContractRule, oldContractItem)
  1163. }
  1164. var newContractRule []interface{}
  1165. for _, newContractItem := range newContract {
  1166. newContractRule = append(newContractRule, newContractItem)
  1167. }
  1168. logs, sub, err := _Abi.contract.WatchLogs(opts, "ContractUpgraded", oldContractRule, newContractRule)
  1169. if err != nil {
  1170. return nil, err
  1171. }
  1172. return event.NewSubscription(func(quit <-chan struct{}) error {
  1173. defer sub.Unsubscribe()
  1174. for {
  1175. select {
  1176. case log := <-logs:
  1177. // New log arrived, parse the event and forward to the user
  1178. event := new(AbiContractUpgraded)
  1179. if err := _Abi.contract.UnpackLog(event, "ContractUpgraded", log); err != nil {
  1180. return err
  1181. }
  1182. event.Raw = log
  1183. select {
  1184. case sink <- event:
  1185. case err := <-sub.Err():
  1186. return err
  1187. case <-quit:
  1188. return nil
  1189. }
  1190. case err := <-sub.Err():
  1191. return err
  1192. case <-quit:
  1193. return nil
  1194. }
  1195. }
  1196. }), nil
  1197. }
  1198. // ParseContractUpgraded is a log parse operation binding the contract event 0x2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a49.
  1199. //
  1200. // Solidity: event ContractUpgraded(address indexed oldContract, address indexed newContract)
  1201. func (_Abi *AbiFilterer) ParseContractUpgraded(log types.Log) (*AbiContractUpgraded, error) {
  1202. event := new(AbiContractUpgraded)
  1203. if err := _Abi.contract.UnpackLog(event, "ContractUpgraded", log); err != nil {
  1204. return nil, err
  1205. }
  1206. event.Raw = log
  1207. return event, nil
  1208. }
  1209. // AbiGuardianSetAddedIterator is returned from FilterGuardianSetAdded and is used to iterate over the raw logs and unpacked data for GuardianSetAdded events raised by the Abi contract.
  1210. type AbiGuardianSetAddedIterator struct {
  1211. Event *AbiGuardianSetAdded // Event containing the contract specifics and raw log
  1212. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1213. event string // Event name to use for unpacking event data
  1214. logs chan types.Log // Log channel receiving the found contract events
  1215. sub ethereum.Subscription // Subscription for errors, completion and termination
  1216. done bool // Whether the subscription completed delivering logs
  1217. fail error // Occurred error to stop iteration
  1218. }
  1219. // Next advances the iterator to the subsequent event, returning whether there
  1220. // are any more events found. In case of a retrieval or parsing error, false is
  1221. // returned and Error() can be queried for the exact failure.
  1222. func (it *AbiGuardianSetAddedIterator) Next() bool {
  1223. // If the iterator failed, stop iterating
  1224. if it.fail != nil {
  1225. return false
  1226. }
  1227. // If the iterator completed, deliver directly whatever's available
  1228. if it.done {
  1229. select {
  1230. case log := <-it.logs:
  1231. it.Event = new(AbiGuardianSetAdded)
  1232. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1233. it.fail = err
  1234. return false
  1235. }
  1236. it.Event.Raw = log
  1237. return true
  1238. default:
  1239. return false
  1240. }
  1241. }
  1242. // Iterator still in progress, wait for either a data or an error event
  1243. select {
  1244. case log := <-it.logs:
  1245. it.Event = new(AbiGuardianSetAdded)
  1246. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1247. it.fail = err
  1248. return false
  1249. }
  1250. it.Event.Raw = log
  1251. return true
  1252. case err := <-it.sub.Err():
  1253. it.done = true
  1254. it.fail = err
  1255. return it.Next()
  1256. }
  1257. }
  1258. // Error returns any retrieval or parsing error occurred during filtering.
  1259. func (it *AbiGuardianSetAddedIterator) Error() error {
  1260. return it.fail
  1261. }
  1262. // Close terminates the iteration process, releasing any pending underlying
  1263. // resources.
  1264. func (it *AbiGuardianSetAddedIterator) Close() error {
  1265. it.sub.Unsubscribe()
  1266. return nil
  1267. }
  1268. // AbiGuardianSetAdded represents a GuardianSetAdded event raised by the Abi contract.
  1269. type AbiGuardianSetAdded struct {
  1270. Index uint32
  1271. Raw types.Log // Blockchain specific contextual infos
  1272. }
  1273. // FilterGuardianSetAdded is a free log retrieval operation binding the contract event 0x2384dbc52f7b617fb7c5aa71e5455a21ff21d58604bb6daef6af2bb44aadebdd.
  1274. //
  1275. // Solidity: event GuardianSetAdded(uint32 indexed index)
  1276. func (_Abi *AbiFilterer) FilterGuardianSetAdded(opts *bind.FilterOpts, index []uint32) (*AbiGuardianSetAddedIterator, error) {
  1277. var indexRule []interface{}
  1278. for _, indexItem := range index {
  1279. indexRule = append(indexRule, indexItem)
  1280. }
  1281. logs, sub, err := _Abi.contract.FilterLogs(opts, "GuardianSetAdded", indexRule)
  1282. if err != nil {
  1283. return nil, err
  1284. }
  1285. return &AbiGuardianSetAddedIterator{contract: _Abi.contract, event: "GuardianSetAdded", logs: logs, sub: sub}, nil
  1286. }
  1287. // WatchGuardianSetAdded is a free log subscription operation binding the contract event 0x2384dbc52f7b617fb7c5aa71e5455a21ff21d58604bb6daef6af2bb44aadebdd.
  1288. //
  1289. // Solidity: event GuardianSetAdded(uint32 indexed index)
  1290. func (_Abi *AbiFilterer) WatchGuardianSetAdded(opts *bind.WatchOpts, sink chan<- *AbiGuardianSetAdded, index []uint32) (event.Subscription, error) {
  1291. var indexRule []interface{}
  1292. for _, indexItem := range index {
  1293. indexRule = append(indexRule, indexItem)
  1294. }
  1295. logs, sub, err := _Abi.contract.WatchLogs(opts, "GuardianSetAdded", indexRule)
  1296. if err != nil {
  1297. return nil, err
  1298. }
  1299. return event.NewSubscription(func(quit <-chan struct{}) error {
  1300. defer sub.Unsubscribe()
  1301. for {
  1302. select {
  1303. case log := <-logs:
  1304. // New log arrived, parse the event and forward to the user
  1305. event := new(AbiGuardianSetAdded)
  1306. if err := _Abi.contract.UnpackLog(event, "GuardianSetAdded", log); err != nil {
  1307. return err
  1308. }
  1309. event.Raw = log
  1310. select {
  1311. case sink <- event:
  1312. case err := <-sub.Err():
  1313. return err
  1314. case <-quit:
  1315. return nil
  1316. }
  1317. case err := <-sub.Err():
  1318. return err
  1319. case <-quit:
  1320. return nil
  1321. }
  1322. }
  1323. }), nil
  1324. }
  1325. // ParseGuardianSetAdded is a log parse operation binding the contract event 0x2384dbc52f7b617fb7c5aa71e5455a21ff21d58604bb6daef6af2bb44aadebdd.
  1326. //
  1327. // Solidity: event GuardianSetAdded(uint32 indexed index)
  1328. func (_Abi *AbiFilterer) ParseGuardianSetAdded(log types.Log) (*AbiGuardianSetAdded, error) {
  1329. event := new(AbiGuardianSetAdded)
  1330. if err := _Abi.contract.UnpackLog(event, "GuardianSetAdded", log); err != nil {
  1331. return nil, err
  1332. }
  1333. event.Raw = log
  1334. return event, nil
  1335. }
  1336. // AbiLogMessagePublishedIterator is returned from FilterLogMessagePublished and is used to iterate over the raw logs and unpacked data for LogMessagePublished events raised by the Abi contract.
  1337. type AbiLogMessagePublishedIterator struct {
  1338. Event *AbiLogMessagePublished // Event containing the contract specifics and raw log
  1339. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1340. event string // Event name to use for unpacking event data
  1341. logs chan types.Log // Log channel receiving the found contract events
  1342. sub ethereum.Subscription // Subscription for errors, completion and termination
  1343. done bool // Whether the subscription completed delivering logs
  1344. fail error // Occurred error to stop iteration
  1345. }
  1346. // Next advances the iterator to the subsequent event, returning whether there
  1347. // are any more events found. In case of a retrieval or parsing error, false is
  1348. // returned and Error() can be queried for the exact failure.
  1349. func (it *AbiLogMessagePublishedIterator) Next() bool {
  1350. // If the iterator failed, stop iterating
  1351. if it.fail != nil {
  1352. return false
  1353. }
  1354. // If the iterator completed, deliver directly whatever's available
  1355. if it.done {
  1356. select {
  1357. case log := <-it.logs:
  1358. it.Event = new(AbiLogMessagePublished)
  1359. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1360. it.fail = err
  1361. return false
  1362. }
  1363. it.Event.Raw = log
  1364. return true
  1365. default:
  1366. return false
  1367. }
  1368. }
  1369. // Iterator still in progress, wait for either a data or an error event
  1370. select {
  1371. case log := <-it.logs:
  1372. it.Event = new(AbiLogMessagePublished)
  1373. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1374. it.fail = err
  1375. return false
  1376. }
  1377. it.Event.Raw = log
  1378. return true
  1379. case err := <-it.sub.Err():
  1380. it.done = true
  1381. it.fail = err
  1382. return it.Next()
  1383. }
  1384. }
  1385. // Error returns any retrieval or parsing error occurred during filtering.
  1386. func (it *AbiLogMessagePublishedIterator) Error() error {
  1387. return it.fail
  1388. }
  1389. // Close terminates the iteration process, releasing any pending underlying
  1390. // resources.
  1391. func (it *AbiLogMessagePublishedIterator) Close() error {
  1392. it.sub.Unsubscribe()
  1393. return nil
  1394. }
  1395. // AbiLogMessagePublished represents a LogMessagePublished event raised by the Abi contract.
  1396. type AbiLogMessagePublished struct {
  1397. Sender common.Address
  1398. Sequence uint64
  1399. Nonce uint32
  1400. Payload []byte
  1401. ConsistencyLevel uint8
  1402. Raw types.Log // Blockchain specific contextual infos
  1403. }
  1404. // FilterLogMessagePublished is a free log retrieval operation binding the contract event 0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2.
  1405. //
  1406. // Solidity: event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel)
  1407. func (_Abi *AbiFilterer) FilterLogMessagePublished(opts *bind.FilterOpts, sender []common.Address) (*AbiLogMessagePublishedIterator, error) {
  1408. var senderRule []interface{}
  1409. for _, senderItem := range sender {
  1410. senderRule = append(senderRule, senderItem)
  1411. }
  1412. logs, sub, err := _Abi.contract.FilterLogs(opts, "LogMessagePublished", senderRule)
  1413. if err != nil {
  1414. return nil, err
  1415. }
  1416. return &AbiLogMessagePublishedIterator{contract: _Abi.contract, event: "LogMessagePublished", logs: logs, sub: sub}, nil
  1417. }
  1418. // WatchLogMessagePublished is a free log subscription operation binding the contract event 0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2.
  1419. //
  1420. // Solidity: event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel)
  1421. func (_Abi *AbiFilterer) WatchLogMessagePublished(opts *bind.WatchOpts, sink chan<- *AbiLogMessagePublished, sender []common.Address) (event.Subscription, error) {
  1422. var senderRule []interface{}
  1423. for _, senderItem := range sender {
  1424. senderRule = append(senderRule, senderItem)
  1425. }
  1426. logs, sub, err := _Abi.contract.WatchLogs(opts, "LogMessagePublished", senderRule)
  1427. if err != nil {
  1428. return nil, err
  1429. }
  1430. return event.NewSubscription(func(quit <-chan struct{}) error {
  1431. defer sub.Unsubscribe()
  1432. for {
  1433. select {
  1434. case log := <-logs:
  1435. // New log arrived, parse the event and forward to the user
  1436. event := new(AbiLogMessagePublished)
  1437. if err := _Abi.contract.UnpackLog(event, "LogMessagePublished", log); err != nil {
  1438. return err
  1439. }
  1440. event.Raw = log
  1441. select {
  1442. case sink <- event:
  1443. case err := <-sub.Err():
  1444. return err
  1445. case <-quit:
  1446. return nil
  1447. }
  1448. case err := <-sub.Err():
  1449. return err
  1450. case <-quit:
  1451. return nil
  1452. }
  1453. }
  1454. }), nil
  1455. }
  1456. // ParseLogMessagePublished is a log parse operation binding the contract event 0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2.
  1457. //
  1458. // Solidity: event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel)
  1459. func (_Abi *AbiFilterer) ParseLogMessagePublished(log types.Log) (*AbiLogMessagePublished, error) {
  1460. event := new(AbiLogMessagePublished)
  1461. if err := _Abi.contract.UnpackLog(event, "LogMessagePublished", log); err != nil {
  1462. return nil, err
  1463. }
  1464. event.Raw = log
  1465. return event, nil
  1466. }
  1467. // AbiUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Abi contract.
  1468. type AbiUpgradedIterator struct {
  1469. Event *AbiUpgraded // Event containing the contract specifics and raw log
  1470. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1471. event string // Event name to use for unpacking event data
  1472. logs chan types.Log // Log channel receiving the found contract events
  1473. sub ethereum.Subscription // Subscription for errors, completion and termination
  1474. done bool // Whether the subscription completed delivering logs
  1475. fail error // Occurred error to stop iteration
  1476. }
  1477. // Next advances the iterator to the subsequent event, returning whether there
  1478. // are any more events found. In case of a retrieval or parsing error, false is
  1479. // returned and Error() can be queried for the exact failure.
  1480. func (it *AbiUpgradedIterator) Next() bool {
  1481. // If the iterator failed, stop iterating
  1482. if it.fail != nil {
  1483. return false
  1484. }
  1485. // If the iterator completed, deliver directly whatever's available
  1486. if it.done {
  1487. select {
  1488. case log := <-it.logs:
  1489. it.Event = new(AbiUpgraded)
  1490. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1491. it.fail = err
  1492. return false
  1493. }
  1494. it.Event.Raw = log
  1495. return true
  1496. default:
  1497. return false
  1498. }
  1499. }
  1500. // Iterator still in progress, wait for either a data or an error event
  1501. select {
  1502. case log := <-it.logs:
  1503. it.Event = new(AbiUpgraded)
  1504. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1505. it.fail = err
  1506. return false
  1507. }
  1508. it.Event.Raw = log
  1509. return true
  1510. case err := <-it.sub.Err():
  1511. it.done = true
  1512. it.fail = err
  1513. return it.Next()
  1514. }
  1515. }
  1516. // Error returns any retrieval or parsing error occurred during filtering.
  1517. func (it *AbiUpgradedIterator) Error() error {
  1518. return it.fail
  1519. }
  1520. // Close terminates the iteration process, releasing any pending underlying
  1521. // resources.
  1522. func (it *AbiUpgradedIterator) Close() error {
  1523. it.sub.Unsubscribe()
  1524. return nil
  1525. }
  1526. // AbiUpgraded represents a Upgraded event raised by the Abi contract.
  1527. type AbiUpgraded struct {
  1528. Implementation common.Address
  1529. Raw types.Log // Blockchain specific contextual infos
  1530. }
  1531. // FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
  1532. //
  1533. // Solidity: event Upgraded(address indexed implementation)
  1534. func (_Abi *AbiFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*AbiUpgradedIterator, error) {
  1535. var implementationRule []interface{}
  1536. for _, implementationItem := range implementation {
  1537. implementationRule = append(implementationRule, implementationItem)
  1538. }
  1539. logs, sub, err := _Abi.contract.FilterLogs(opts, "Upgraded", implementationRule)
  1540. if err != nil {
  1541. return nil, err
  1542. }
  1543. return &AbiUpgradedIterator{contract: _Abi.contract, event: "Upgraded", logs: logs, sub: sub}, nil
  1544. }
  1545. // WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
  1546. //
  1547. // Solidity: event Upgraded(address indexed implementation)
  1548. func (_Abi *AbiFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *AbiUpgraded, implementation []common.Address) (event.Subscription, error) {
  1549. var implementationRule []interface{}
  1550. for _, implementationItem := range implementation {
  1551. implementationRule = append(implementationRule, implementationItem)
  1552. }
  1553. logs, sub, err := _Abi.contract.WatchLogs(opts, "Upgraded", implementationRule)
  1554. if err != nil {
  1555. return nil, err
  1556. }
  1557. return event.NewSubscription(func(quit <-chan struct{}) error {
  1558. defer sub.Unsubscribe()
  1559. for {
  1560. select {
  1561. case log := <-logs:
  1562. // New log arrived, parse the event and forward to the user
  1563. event := new(AbiUpgraded)
  1564. if err := _Abi.contract.UnpackLog(event, "Upgraded", log); err != nil {
  1565. return err
  1566. }
  1567. event.Raw = log
  1568. select {
  1569. case sink <- event:
  1570. case err := <-sub.Err():
  1571. return err
  1572. case <-quit:
  1573. return nil
  1574. }
  1575. case err := <-sub.Err():
  1576. return err
  1577. case <-quit:
  1578. return nil
  1579. }
  1580. }
  1581. }), nil
  1582. }
  1583. // ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
  1584. //
  1585. // Solidity: event Upgraded(address indexed implementation)
  1586. func (_Abi *AbiFilterer) ParseUpgraded(log types.Log) (*AbiUpgraded, error) {
  1587. event := new(AbiUpgraded)
  1588. if err := _Abi.contract.UnpackLog(event, "Upgraded", log); err != nil {
  1589. return nil, err
  1590. }
  1591. event.Raw = log
  1592. return event, nil
  1593. }