diff --git a/configs/networks.go b/configs/networks.go index 4203bd2dc..a5a51a889 100644 --- a/configs/networks.go +++ b/configs/networks.go @@ -69,3 +69,11 @@ func SupportsMEVBoost(network string) bool { out, ok := networksConfigs[network] return ok && out.SupportsMEVBoost } + +func GetPublicRPCs(network string) ([]string, error) { + rpcs, exists := networkRPCs[network] + if !exists { + return nil, fmt.Errorf("invalid network") + } + return rpcs.PublicRPCs, nil +} diff --git a/configs/public_rpcs.go b/configs/public_rpcs.go new file mode 100644 index 000000000..f014eb92a --- /dev/null +++ b/configs/public_rpcs.go @@ -0,0 +1,29 @@ +package configs + +type RPC struct { + NetworkName string + PublicRPCs []string +} + +var networkRPCs = map[string]RPC{ + NetworkMainnet: { + NetworkName: NetworkMainnet, + PublicRPCs: []string{ + "https://eth.llamarpc.com", + "https://eth-pokt.nodies.app", + "https://rpc.mevblocker.io", + "https://ethereum-rpc.publicnode.com", + "https://rpc.flashbots.net", + }, + }, + NetworkHolesky: { + NetworkName: NetworkHolesky, + PublicRPCs: []string{ + "https://1rpc.io/holesky", + "https://holesky.drpc.org", + "https://ethereum-holesky-rpc.publicnode.com", + "https://endpoints.omniatech.io/v1/eth/holesky/public", + "https://ethereum-holesky.blockpi.network/v1/rpc/public", + }, + }, +} diff --git a/go.mod b/go.mod index b7e30b030..7a345ca11 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/NethermindEth/sedge -go 1.19 +go 1.21 require ( github.com/AlecAivazis/survey/v2 v2.3.6 @@ -10,6 +10,7 @@ require ( github.com/compose-spec/compose-go v1.12.0 github.com/distribution/reference v0.5.0 github.com/docker/docker v24.0.7+incompatible + github.com/ethereum/go-ethereum v1.14.5 github.com/golang/mock v1.6.0 github.com/google/go-github/v47 v47.1.0 github.com/google/uuid v1.4.0 @@ -18,65 +19,80 @@ require ( github.com/opencontainers/image-spec v1.0.2 github.com/otiai10/copy v1.9.0 github.com/protolambda/go-keystorev4 v0.0.0-20211007151826-f20444f6d564 - github.com/protolambda/zrnt v0.30.0 + github.com/protolambda/zrnt v0.32.2 github.com/protolambda/ztyp v0.2.2 github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 - github.com/sirupsen/logrus v1.9.0 + github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.6.1 github.com/stretchr/testify v1.9.0 github.com/tyler-smith/go-bip39 v1.1.0 github.com/wealdtech/go-eth2-types/v2 v2.8.0 github.com/wealdtech/go-eth2-util v1.8.0 - golang.org/x/sync v0.5.0 + golang.org/x/sync v0.7.0 gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools/v3 v3.4.0 ) require ( - github.com/Microsoft/go-winio v0.6.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/StackExchange/wmi v1.2.1 // indirect + github.com/bits-and-blooms/bitset v1.10.0 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect + github.com/consensys/bavard v0.1.13 // indirect + github.com/consensys/gnark-crypto v0.12.1 // indirect + github.com/crate-crypto/go-kzg-4844 v1.0.0 // indirect github.com/creack/pty v1.1.18 // indirect github.com/davecgh/go-spew v1.1.1 // indirect + github.com/deckarep/golang-set/v2 v2.6.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect github.com/distribution/distribution/v3 v3.0.0-20230223072852-e5d5810851d1 // indirect github.com/docker/distribution v2.8.3+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect + github.com/ethereum/c-kzg-4844 v1.0.0 // indirect github.com/ferranbt/fastssz v0.1.3 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/go-ole/go-ole v1.3.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/holiman/uint256 v1.2.1 // indirect + github.com/gorilla/websocket v1.4.2 // indirect + github.com/holiman/uint256 v1.2.4 // indirect github.com/imdario/mergo v0.3.13 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kilic/bls12-381 v0.1.0 // indirect github.com/klauspost/cpuid/v2 v2.2.4 // indirect - github.com/kr/pretty v0.3.0 // indirect - github.com/mattn/go-colorable v0.1.2 // indirect - github.com/mattn/go-isatty v0.0.8 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/mattn/go-shellwords v1.0.12 // indirect github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/minio/sha256-simd v1.0.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mmcloughlin/addchain v0.4.0 // indirect github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect github.com/morikuni/aec v1.0.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/protolambda/bls12-381-util v0.0.0-20220416220906-d8552aa452c7 // indirect + github.com/protolambda/bls12-381-util v0.1.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect + github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect github.com/spf13/pflag v1.0.5 // indirect + github.com/supranational/blst v0.3.11 // indirect + github.com/tklauser/go-sysconf v0.3.12 // indirect + github.com/tklauser/numcpus v0.6.1 // indirect github.com/wealdtech/go-bytesutil v1.2.0 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - golang.org/x/crypto v0.16.0 // indirect - golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/crypto v0.22.0 // indirect + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.6.0 // indirect + rsc.io/tmplfunc v0.0.3 // indirect ) diff --git a/go.sum b/go.sum index cea7f3a07..07facd2ef 100644 --- a/go.sum +++ b/go.sum @@ -1,26 +1,69 @@ github.com/AlecAivazis/survey/v2 v2.3.6 h1:NvTuVHISgTHEHeBFqt6BHOe4Ny/NwGZr7w+F8S9ziyw= github.com/AlecAivazis/survey/v2 v2.3.6/go.mod h1:4AuI9b7RjAR+G7v9+C4YSlX/YL3K3cWNXgWXOhllqvI= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= -github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= -github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= +github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= +github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= +github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= +github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI= +github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI= github.com/alexeyco/simpletable v1.0.0 h1:ZQ+LvJ4bmoeHb+dclF64d0LX+7QAi7awsfCrptZrpHk= github.com/alexeyco/simpletable v1.0.0/go.mod h1:VJWVTtGUnW7EKbMRH8cE13SigKGx/1fO2SeeOiGeBkk= github.com/antonfisher/nested-logrus-formatter v1.3.1 h1:NFJIr+pzwv5QLHTPyKz9UMEoHck02Q9L0FP13b/xSbQ= github.com/antonfisher/nested-logrus-formatter v1.3.1/go.mod h1:6WTfyWFkBc9+zyBaKIqRrg/KwMqBbodBjgbHjDz7zjA= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= +github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k= +github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4= github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk= +github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v1.1.0 h1:pcFh8CdCIt2kmEpK0OIatq67Ln9uGDYY3d5XnE0LJG4= +github.com/cockroachdb/pebble v1.1.0/go.mod h1:sEHm5NOXxyiAoKWhoFxT8xMgd/f3RA6qUqQ1BXKrh2E= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/compose-spec/compose-go v1.12.0 h1:MSyWW//yijispnqmTqJSMv1ptRTlKU1sLPHJdc2ACnA= github.com/compose-spec/compose-go v1.12.0/go.mod h1:0/X/dTehChV+KBB696nOOl+HYzKn+XaIm4i12phUB5U= +github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= +github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= +github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M= +github.com/consensys/gnark-crypto v0.12.1/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY= +github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c h1:uQYC5Z1mdLRPrZhHjHxufI8+2UG/i25QG92j0Er9p6I= +github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs= +github.com/crate-crypto/go-kzg-4844 v1.0.0 h1:TsSgHwrkTKecKJ4kadtHi4b3xHW5dCFUDFnUp1TsawI= +github.com/crate-crypto/go-kzg-4844 v1.0.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc= github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set/v2 v2.6.0 h1:XfcQbWM1LlMB8BsJ8N9vW5ehnnPVIw0je80NsVHagjM= +github.com/deckarep/golang-set/v2 v2.6.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= +github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 h1:YLtO71vCjJRCBcrPMtQ9nqBsqpA1m5sE92cU+pd5Mcc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= github.com/distribution/distribution/v3 v3.0.0-20230223072852-e5d5810851d1 h1:OtfRoaZ54jKZ7jl9WuxqekousLR9T63iJf0y2EdC2S4= github.com/distribution/distribution/v3 v3.0.0-20230223072852-e5d5810851d1/go.mod h1:r5XLH1cp+Wau2jxdptkYsFvvvzPPQTIe8eUuQ0vq30Q= github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= @@ -33,13 +76,37 @@ github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKoh github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA= +github.com/ethereum/c-kzg-4844 v1.0.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0= +github.com/ethereum/go-ethereum v1.14.5 h1:szuFzO1MhJmweXjoM5nSAeDvjNUH3vIQoMzzQnfvjpw= +github.com/ethereum/go-ethereum v1.14.5/go.mod h1:VEDGGhSxY7IEjn98hJRFXl/uFvpRgbIIf2PpXiyGGgc= +github.com/ethereum/go-verkle v0.1.1-0.20240306133620-7d920df305f0 h1:KrE8I4reeVvf7C1tm8elRjj4BdscTYzz/WAbYyf/JI4= +github.com/ethereum/go-verkle v0.1.1-0.20240306133620-7d920df305f0/go.mod h1:D9AJLVXSyZQXJQVk8oh1EwjISE+sJTn2duYIZC0dy3w= github.com/ferranbt/fastssz v0.1.3 h1:ZI+z3JH05h4kgmFXdHuR1aWYsgrg7o+Fw7/NCzM16Mo= github.com/ferranbt/fastssz v0.1.3/go.mod h1:0Y9TEd/9XuFlh7mskMPfXiI2Dkw4Ddg9EyXt1W7MRvE= +github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA= +github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI= +github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= +github.com/getsentry/sentry-go v0.18.0 h1:MtBW5H9QgdcJabtZcuJG80BMOwaBpkRDZkxRkNC1sN0= +github.com/getsentry/sentry-go v0.18.0/go.mod h1:Kgon4Mby+FJ7ZWHFUAZgVaIa8sxHtnRJRLTXZr51aKQ= +github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= +github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= +github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= @@ -48,21 +115,36 @@ github.com/google/go-github/v47 v47.1.0 h1:Cacm/WxQBOa9lF0FT0EMjZ2BWMetQ1TQfyurn github.com/google/go-github/v47 v47.1.0/go.mod h1:VPZBXNbFSJGjyjFRUKo9vZGawTajnWzC/YjGw/oFKi0= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/hashicorp/go-bexpr v0.1.10 h1:9kuI5PFotCboP3dkDYFr/wi0gg0QVbSNz5oFRpxn4uE= +github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/herumi/bls-eth-go-binary v1.29.1 h1:XcNSHYTyNjEUVfWDCE2gtG5r95biTwd7MJUJF09LtSE= github.com/herumi/bls-eth-go-binary v1.29.1/go.mod h1:luAnRm3OsMQeokhGzpYmc0ZKwawY7o87PUEP11Z7r7U= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= +github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4 h1:X4egAf/gcS1zATw6wn4Ej8vjuVGxeHdan+bRb2ebyv4= +github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4/go.mod h1:5GuXa7vkL8u9FkFuWdVvfR5ix8hRB7DbOAaYULamFpc= +github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao= +github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= -github.com/holiman/uint256 v1.2.1 h1:XRtyuda/zw2l+Bq/38n5XUoEF72aSOu/77Thd9pPp2o= -github.com/holiman/uint256 v1.2.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= +github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU= +github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= +github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= +github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= +github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jarcoal/httpmock v1.2.0 h1:gSvTxxFR/MEMfsGrvRbdfpRUMBStovlSRLw0Ep1bwwc= github.com/jarcoal/httpmock v1.2.0/go.mod h1:oCoTsnAz4+UoOUIf5lJOWV2QQIW5UoeUI6aM2YnWAZk= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= @@ -71,37 +153,52 @@ github.com/kilic/bls12-381 v0.1.0 h1:encrdjqKMEvabVQ7qYOKu1OvhqpK4s47wDYtNiPtlp4 github.com/kilic/bls12-381 v0.1.0/go.mod h1:vDTTHJONJ6G+P2R74EhnyotQDTliQDnFEwhdmfzw1ig= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.15.15 h1:EF27CXIuDsYJ6mmvtBRlEuB2UVOqHG1tAXgZ7yIO+lw= +github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4= github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= +github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-shellwords v1.0.12 h1:M2zGm7EW6UQJvDeQxo4T51eKPurbeFbe8WtebGE2xrk= github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= +github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= +github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/maxatome/go-testdeep v1.11.0 h1:Tgh5efyCYyJFGUYiT0qxBSIDeXw0F5zSoatlou685kk= +github.com/maxatome/go-testdeep v1.11.0/go.mod h1:011SgQ6efzZYAen6fDn4BqQ+lUR72ysdyKe7Dyogw70= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= +github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= +github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iPfkHRY= +github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= +github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU= github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA= github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= @@ -117,40 +214,64 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/protolambda/bls12-381-util v0.0.0-20210720105258-a772f2aac13e/go.mod h1:MPZvj2Pr0N8/dXyTPS5REeg2sdLG7t8DRzC1rLv925w= -github.com/protolambda/bls12-381-util v0.0.0-20220416220906-d8552aa452c7 h1:cZC+usqsYgHtlBaGulVnZ1hfKAi8iWtujBnRLQE698c= -github.com/protolambda/bls12-381-util v0.0.0-20220416220906-d8552aa452c7/go.mod h1:IToEjHuttnUzwZI5KBSM/LOOW3qLbbrHOEfp3SbECGY= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a h1:CmF68hwI0XsOQ5UwlBopMi2Ow4Pbg32akc4KIVCOm+Y= +github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/protolambda/bls12-381-util v0.1.0 h1:05DU2wJN7DTU7z28+Q+zejXkIsA/MF8JZQGhtBZZiWk= +github.com/protolambda/bls12-381-util v0.1.0/go.mod h1:cdkysJTRpeFeuUVx/TXGDQNMTiRAalk1vQw3TYTHcE4= github.com/protolambda/go-keystorev4 v0.0.0-20211007151826-f20444f6d564 h1:yCXGkFjrZ8EggxW+Y7ueRZesNcBk0avLU0mVU/I2KtU= github.com/protolambda/go-keystorev4 v0.0.0-20211007151826-f20444f6d564/go.mod h1:Xda3KO8+DMyWaTr+LwUUpVRTB5SdFzoKu0ivXNI6p1s= -github.com/protolambda/messagediff v1.4.0/go.mod h1:LboJp0EwIbJsePYpzh5Op/9G1/4mIztMRYzzwR0dR2M= -github.com/protolambda/zrnt v0.30.0 h1:pHEn69ZgaDFGpLGGYG1oD7DvYI7RDirbMBPfbC+8p4g= -github.com/protolambda/zrnt v0.30.0/go.mod h1:qcdX9CXFeVNCQK/q0nswpzhd+31RHMk2Ax/2lMsJ4Jw= +github.com/protolambda/zrnt v0.32.2 h1:KZ48T+3UhsPXNdtE/5QEvGc9DGjUaRI17nJaoznoIaM= +github.com/protolambda/zrnt v0.32.2/go.mod h1:A0fezkp9Tt3GBLATSPIbuY4ywYESyAuc/FFmPKg8Lqs= github.com/protolambda/ztyp v0.2.2 h1:rVcL3vBu9W/aV646zF6caLS/dyn9BN8NYiuJzicLNyY= github.com/protolambda/ztyp v0.2.2/go.mod h1:9bYgKGqg3wJqT9ac1gI2hnVb0STQq7p/1lapqrqY1dU= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 h1:WCcC4vZDS1tYNxjWlwRJZQy28r8CMoggKnxNzxsVDMQ= github.com/santhosh-tekuri/jsonschema/v5 v5.2.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/status-im/keycard-go v0.2.0 h1:QDLFswOQu1r5jsycloeQh3bVU8n/NatHHaZobtDnDzA= +github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbeoEm4= +github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= +github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= github.com/umbracle/gohashtree v0.0.2-alpha.0.20230207094856-5b775a815c10 h1:CQh33pStIp/E30b7TxDlXfM0145bn2e8boI30IxAhTg= +github.com/umbracle/gohashtree v0.0.2-alpha.0.20230207094856-5b775a815c10/go.mod h1:x/Pa0FF5Te9kdrlZKJK82YmAkvL8+f989USgz6Jiw7M= +github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= +github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/wealdtech/go-bytesutil v1.2.0 h1:GEIzvAZEIgqOoRfnEAaMRNL73gl8e+YlQzqxhFyR30Y= github.com/wealdtech/go-bytesutil v1.2.0/go.mod h1:FHQSlwhzfSZGffu1osaUGdnNtl5C8tBKwmqvPdB66pM= github.com/wealdtech/go-eth2-types/v2 v2.8.0 h1:Cts9J78ryXVp8jwotdSSVU75S+QWJrgVCArXreD2X8A= @@ -164,6 +285,8 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= @@ -171,30 +294,31 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= -golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -205,12 +329,18 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY= -golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= @@ -223,22 +353,24 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc= +gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o= gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g= +rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= +rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= diff --git a/internal/lido/contracts/feeRecipient.go b/internal/lido/contracts/feeRecipient.go new file mode 100644 index 000000000..080c774fd --- /dev/null +++ b/internal/lido/contracts/feeRecipient.go @@ -0,0 +1,25 @@ +package contracts + +import ( + "github.com/NethermindEth/sedge/configs" +) + +type FeeRecipientConfig struct { + Network string + FeeRecipientAddress string +} + +var FeeRecipient = map[string]FeeRecipientConfig{ + configs.NetworkMainnet: { + Network: configs.NetworkMainnet, + FeeRecipientAddress: "0x388C818CA8B9251b393131C08a736A67ccB19297", + }, + configs.NetworkHolesky: { + Network: configs.NetworkHolesky, + FeeRecipientAddress: "0xE73a3602b99f1f913e72F8bdcBC235e206794Ac8", + }, + configs.NetworkSepolia: { + Network: configs.NetworkSepolia, + FeeRecipientAddress: "0x94B1B8e2680882f8652882e7F196169dE3d9a3B2", + }, +} diff --git a/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.abi b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.abi new file mode 100644 index 000000000..ee235c99a --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.abi @@ -0,0 +1 @@ +[{"name": "RelayAdded", "inputs": [{"name": "uri_hash", "type": "string", "indexed": true}, {"name": "relay", "type": "tuple", "components": [{"name": "uri", "type": "string"}, {"name": "operator", "type": "string"}, {"name": "is_mandatory", "type": "bool"}, {"name": "description", "type": "string"}], "indexed": false}], "anonymous": false, "type": "event"}, {"name": "RelayRemoved", "inputs": [{"name": "uri_hash", "type": "string", "indexed": true}, {"name": "uri", "type": "string", "indexed": false}], "anonymous": false, "type": "event"}, {"name": "AllowedListUpdated", "inputs": [{"name": "allowed_list_version", "type": "uint256", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "OwnerChanged", "inputs": [{"name": "new_owner", "type": "address", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "ManagerChanged", "inputs": [{"name": "new_manager", "type": "address", "indexed": true}], "anonymous": false, "type": "event"}, {"name": "ERC20Recovered", "inputs": [{"name": "token", "type": "address", "indexed": true}, {"name": "amount", "type": "uint256", "indexed": false}, {"name": "recipient", "type": "address", "indexed": true}], "anonymous": false, "type": "event"}, {"stateMutability": "nonpayable", "type": "constructor", "inputs": [{"name": "owner", "type": "address"}], "outputs": []}, {"stateMutability": "view", "type": "function", "name": "get_relays_amount", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "view", "type": "function", "name": "get_owner", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "get_manager", "inputs": [], "outputs": [{"name": "", "type": "address"}]}, {"stateMutability": "view", "type": "function", "name": "get_relays", "inputs": [], "outputs": [{"name": "", "type": "tuple[]", "components": [{"name": "uri", "type": "string"}, {"name": "operator", "type": "string"}, {"name": "is_mandatory", "type": "bool"}, {"name": "description", "type": "string"}]}]}, {"stateMutability": "view", "type": "function", "name": "get_relay_by_uri", "inputs": [{"name": "relay_uri", "type": "string"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "uri", "type": "string"}, {"name": "operator", "type": "string"}, {"name": "is_mandatory", "type": "bool"}, {"name": "description", "type": "string"}]}]}, {"stateMutability": "view", "type": "function", "name": "get_allowed_list_version", "inputs": [], "outputs": [{"name": "", "type": "uint256"}]}, {"stateMutability": "nonpayable", "type": "function", "name": "add_relay", "inputs": [{"name": "uri", "type": "string"}, {"name": "operator", "type": "string"}, {"name": "is_mandatory", "type": "bool"}, {"name": "description", "type": "string"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "remove_relay", "inputs": [{"name": "uri", "type": "string"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "change_owner", "inputs": [{"name": "owner", "type": "address"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "set_manager", "inputs": [{"name": "manager", "type": "address"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "dismiss_manager", "inputs": [], "outputs": []}, {"stateMutability": "nonpayable", "type": "function", "name": "recover_erc20", "inputs": [{"name": "token", "type": "address"}, {"name": "amount", "type": "uint256"}, {"name": "recipient", "type": "address"}], "outputs": []}, {"stateMutability": "nonpayable", "type": "fallback"}] diff --git a/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.bin b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.bin new file mode 100644 index 000000000..5baecc750 --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.bin @@ -0,0 +1 @@ +0x60206115ff6000396000518060a01c6115fa57604052346115fa5760405161007e5760126060527f7a65726f206f776e65722061646472657373000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b60405160005561156361009661000039611563610000f36003361161000c57611181565b60003560e01c346115515763312c3165811861003657600436186115515760025460405260206040f35b630ac298dc811861005557600436186115515760005460405260206040f35b639e4a0fc4811861007457600436186115515760015460405260206040f35b6304e469ea81186102545760043618611551576020806040528060400160006002548083528060051b6000826028811161155157801561024057905b828160051b60208801015260648102600301836020880101608080825280820183548082526001850160208301600083601f0160051c6020811161155157801561010c57905b808401548160051b8401526001018181186100f6575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301526021830181830181548082526001830160208301600083601f0160051c6020811161155157801561018057905b808401548160051b84015260010181811861016a575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050905081019050604283015460408301528060608301526043830181830181548082526001830160208301600083601f0160051c6020811161155157801561020057905b808401548160051b8401526001018181186101ea575b50505050508051806020830101601f82600003163682375050601f19601f82516020010116905090508101905090509050830192506001018181186100b0575b505082016020019150509050810190506040f35b63f5f33c7b81186104b457604436106115515760043560040161040081351161155157803580611120526020820181816111403750505061112051806040528060608261114060045afa50506102ab611560611187565b61156051611540526115405119610322576015611560527f6e6f2072656c61792077697468207468652055524900000000000000000000006115805261156050611560518061158001601f826000031636823750506308c379a061152052602061154052601f19601f61156051011660440161153cfd5b6020806115605260646115405160025481101561155157026003018161156001608080825280820183548082526001850160208301600083601f0160051c6020811161155157801561038657905b808401548160051b840152600101818118610370575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301526021830181830181548082526001830160208301600083601f0160051c602081116115515780156103fa57905b808401548160051b8401526001018181186103e4575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050905081019050604283015460408301528060608301526043830181830181548082526001830160208301600083601f0160051c6020811161155157801561047a57905b808401548160051b840152600101818118610464575b50505050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190509050905081019050611560f35b6376650ad381186104d4576004361861155157610fa35460405260206040f35b632e21ecef81186109805760e43610611551576004356004016104008135116115515780358061112052602082018181611140375050506024356004016104008135116115515780358061154052602082018181611560375050506044358060011c611551576119605260643560040161040081351161155157803580611980526020820181816119a03750505061056a6112ed565b6000611da052611da08051602082012090506111205161114020186105ef57601b6121c0527f72656c617920555249206d757374206e6f7420626520656d70747900000000006121e0526121c0506121c051806121e001601f826000031636823750506308c379a06121805260206121a052601f19601f6121c051011660440161219cfd5b6027600254111561066057601c611da0527f616c7265616479206d6178206e756d626572206f662072656c61797300000000611dc052611da050611da05180611dc001601f826000031636823750506308c379a0611d60526020611d8052601f19601f611da0510116604401611d7cfd5b61112051806040528060608261114060045afa5050610680611dc0611187565b611dc051611da052611da051191561071d576021611dc0527f72656c61792077697468207468652055524920616c7265616479206578697374611de0527f7300000000000000000000000000000000000000000000000000000000000000611e0052611dc050611dc05180611de001601f826000031636823750506308c379a0611d80526020611da052601f19601f611dc0510116604401611d9cfd5b6111205180611dc05280611de08261114060045afa505061154051806121e052806122008261156060045afa5050611960516126005261198051806126205280612640826119a060045afa505060025460278111611551576001810160025560648102600301611dc05180825560018201600082601f0160051c602081116115515780156107bf57905b8060051b611de00151818401556001018181186107a7575b505050506121e05180602183015560016021830101600082601f0160051c6020811161155157801561080557905b8060051b6122000151818401556001018181186107ed575b505050506126005160428201556126205180604383015560016043830101600082601f0160051c6020811161155157801561085457905b8060051b61264001518184015560010181811861083c575b505050505050610862611374565b61112051611140207feee5faa84d45af657ab405cdbf2c6a8a6d466e83fa694a358fee5ff84431d0bf602080612a405280612a40016080808252808201611dc05180825260208201818183611de060045afa5050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301528082016121e0518082526020820181818361220060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050612600516040830152806060830152808201612620518082526020820181818361264060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050905081019050612a40a2005b63f5a70a808118610ca45760443610611551576004356004016104008135116115515780358061112052602082018181611140375050506109bf6112ed565b600061154052611540805160208201209050611120516111402018610a4457601b611960527f72656c617920555249206d757374206e6f7420626520656d70747900000000006119805261196050611960518061198001601f826000031636823750506308c379a061192052602061194052601f19601f61196051011660440161193cfd5b6002546115405261112051806040528060608261114060045afa5050610a6b611580611187565b6115805161156052611540516115605110610ae6576015611580527f6e6f2072656c61792077697468207468652055524900000000000000000000006115a0526115805061158051806115a001601f826000031636823750506308c379a061154052602061156052601f19601f61158051011660440161155cfd5b61154051600181038181116115515790506115605114610c1257606461156051600254811015611551570260030160646115405160018103818111611551579050600254811015611551570260030180548083556001820160018401600083601f0160051c60208111611551578015610b6e57905b8084015481840155600101818118610b5b575b50505050506021810180548060218501556001820160016021860101600083601f0160051c60208111611551578015610bb657905b8084015481840155600101818118610ba3575b505050505050604281015460428301556043810180548060438501556001820160016043860101600083601f0160051c60208111611551578015610c0957905b8084015481840155600101818118610bf6575b50505050505050505b6001600254801561155157038060025550610c2b611374565b61112051611140207fef756634af7ee7210f786ec0f91930afa63fda84d9ff6493ae681c332055dadb602080611580528061158001611120518082526020820181818361114060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050611580a2005b63253c8bd48118610dca5760243618611551576004358060a01c61155157608052610ccd6113ba565b608051610d3157601260a0527f7a65726f206f776e65722061646472657373000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b60005460805118610d9957600a60a0527f73616d65206f776e65720000000000000000000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b6080516000556080517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36600060a0a2005b639aece83e8118610ef05760243618611551576004358060a01c61155157608052610df36113ba565b608051610e5757601460a0527f7a65726f206d616e61676572206164647265737300000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b60015460805118610ebf57600c60a0527f73616d65206d616e61676572000000000000000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b6080516001556080517f198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b600060a0a2005b63417a02b48118610f9e576004361861155157610f0b6113ba565b600154610f6f57600e6080527f6e6f206d616e616765722073657400000000000000000000000000000000000060a0526080506080518060a001601f826000031636823750506308c379a06040526020606052601f19601f6080510116604401605cfd5b600060015560007f198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b60006080a2005b63edd885b4811861117f5760643618611551576004358060a01c611551576101e0526044358060a01c6115515761020052610fd76113ba565b6101e051611045576012610220527f7a65726f20746f6b656e206164647265737300000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b610200516110b3576016610220527f7a65726f20726563697069656e742061646472657373000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b6101e0513b611122576011610220527f656f6120746f6b656e20616464726573730000000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b6024351561117d576101e05160405261020051606052602435608052611146611423565b610200516101e0517f8619312ed4eff1cf9f0116e6db2f49d9570a86f0350d1c5ad1bd0f7b0cf9e132602435610220526020610220a35b005b505b60006000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610460526000610480526000600254602881116115515780156112e257905b606481026003018054806104a05260018201600082601f0160051c6020811161155157801561120a57905b808301548160051b6104c001526001018181186111f2575b50505050602181018054806108c05260018201600082601f0160051c6020811161155157801561124e57905b808301548160051b6108e00152600101818118611236575b50505050506042810154610ce05260438101805480610d005260018201600082601f0160051c6020811161155157801561129c57905b808301548160051b610d200152600101818118611284575b5050505050506040516060206104a0516104c020186112c25761048051610460526112e2565b6104805160018101818110611551579050610480526001018181186111c7575b505061046051815250565b60005433186112fd576001611311565b600154331861130e57331515611311565b60005b61137257601f6040527f6d73672e73656e646572206e6f74206f776e6572206f72206d616e616765720060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b565b610fa35460018101818110611551579050604052604051610fa3556040517f49f5627aa055ec3fcd474f99c8b7799b798c04af7b9f215305512c867e5a183960006060a2565b6000543318156114215760146040527f6d73672e73656e646572206e6f74206f776e657200000000000000000000000060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b565b6000600460e0527fa9059cbb000000000000000000000000000000000000000000000000000000006101005260e08051602082018361014001815181525050808301925050506060518161014001526020810190506080518161014001526020810190508061012052610120505060206101c06101205161014060006040515af16114b3573d600060003e3d6000fd5b3d602081183d60201002186101a0526101a080518060a05260208201805160c05250505060a0511561154f5760c05160a05160200360031b1c61154f57601560e0527f6572633230207472616e73666572206661696c656400000000000000000000006101005260e05060e0518061010001601f826000031636823750506308c379a060a052602060c052601f19601f60e051011660440160bcfd5b565b600080fda165767970657283000306000b005b600080fd diff --git a/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.go b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.go new file mode 100644 index 000000000..8f6c5836b --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/MEVBoostRelayAllowedList.go @@ -0,0 +1,1398 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package mevboostrelaylist + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// Struct0 is an auto generated low-level Go binding around an user-defined struct. +type Struct0 struct { + Uri string + Operator string + IsMandatory bool + Description string +} + +// ApiMetaData contains all meta data concerning the Api contract. +var ApiMetaData = &bind.MetaData{ + ABI: "[{\"name\":\"RelayAdded\",\"inputs\":[{\"name\":\"uri_hash\",\"type\":\"string\",\"indexed\":true},{\"name\":\"relay\",\"type\":\"tuple\",\"components\":[{\"name\":\"uri\",\"type\":\"string\"},{\"name\":\"operator\",\"type\":\"string\"},{\"name\":\"is_mandatory\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"string\"}],\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"RelayRemoved\",\"inputs\":[{\"name\":\"uri_hash\",\"type\":\"string\",\"indexed\":true},{\"name\":\"uri\",\"type\":\"string\",\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"AllowedListUpdated\",\"inputs\":[{\"name\":\"allowed_list_version\",\"type\":\"uint256\",\"indexed\":true}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"OwnerChanged\",\"inputs\":[{\"name\":\"new_owner\",\"type\":\"address\",\"indexed\":true}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"ManagerChanged\",\"inputs\":[{\"name\":\"new_manager\",\"type\":\"address\",\"indexed\":true}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"ERC20Recovered\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":true},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"recipient\",\"type\":\"address\",\"indexed\":true}],\"anonymous\":false,\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"constructor\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"}],\"outputs\":[]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_relays_amount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_manager\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_relays\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"name\":\"uri\",\"type\":\"string\"},{\"name\":\"operator\",\"type\":\"string\"},{\"name\":\"is_mandatory\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"string\"}]}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_relay_by_uri\",\"inputs\":[{\"name\":\"relay_uri\",\"type\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"components\":[{\"name\":\"uri\",\"type\":\"string\"},{\"name\":\"operator\",\"type\":\"string\"},{\"name\":\"is_mandatory\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"string\"}]}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_allowed_list_version\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"add_relay\",\"inputs\":[{\"name\":\"uri\",\"type\":\"string\"},{\"name\":\"operator\",\"type\":\"string\"},{\"name\":\"is_mandatory\",\"type\":\"bool\"},{\"name\":\"description\",\"type\":\"string\"}],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"remove_relay\",\"inputs\":[{\"name\":\"uri\",\"type\":\"string\"}],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"change_owner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"}],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_manager\",\"inputs\":[{\"name\":\"manager\",\"type\":\"address\"}],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"dismiss_manager\",\"inputs\":[],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"recover_erc20\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"recipient\",\"type\":\"address\"}],\"outputs\":[]},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"}]", + Bin: "0x60206115ff6000396000518060a01c6115fa57604052346115fa5760405161007e5760126060527f7a65726f206f776e65722061646472657373000000000000000000000000000060805260605060605180608001601f826000031636823750506308c379a06020526020604052601f19601f6060510116604401603cfd5b60405160005561156361009661000039611563610000f36003361161000c57611181565b60003560e01c346115515763312c3165811861003657600436186115515760025460405260206040f35b630ac298dc811861005557600436186115515760005460405260206040f35b639e4a0fc4811861007457600436186115515760015460405260206040f35b6304e469ea81186102545760043618611551576020806040528060400160006002548083528060051b6000826028811161155157801561024057905b828160051b60208801015260648102600301836020880101608080825280820183548082526001850160208301600083601f0160051c6020811161155157801561010c57905b808401548160051b8401526001018181186100f6575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301526021830181830181548082526001830160208301600083601f0160051c6020811161155157801561018057905b808401548160051b84015260010181811861016a575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050905081019050604283015460408301528060608301526043830181830181548082526001830160208301600083601f0160051c6020811161155157801561020057905b808401548160051b8401526001018181186101ea575b50505050508051806020830101601f82600003163682375050601f19601f82516020010116905090508101905090509050830192506001018181186100b0575b505082016020019150509050810190506040f35b63f5f33c7b81186104b457604436106115515760043560040161040081351161155157803580611120526020820181816111403750505061112051806040528060608261114060045afa50506102ab611560611187565b61156051611540526115405119610322576015611560527f6e6f2072656c61792077697468207468652055524900000000000000000000006115805261156050611560518061158001601f826000031636823750506308c379a061152052602061154052601f19601f61156051011660440161153cfd5b6020806115605260646115405160025481101561155157026003018161156001608080825280820183548082526001850160208301600083601f0160051c6020811161155157801561038657905b808401548160051b840152600101818118610370575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301526021830181830181548082526001830160208301600083601f0160051c602081116115515780156103fa57905b808401548160051b8401526001018181186103e4575b50505050508051806020830101601f82600003163682375050601f19601f825160200101169050905081019050604283015460408301528060608301526043830181830181548082526001830160208301600083601f0160051c6020811161155157801561047a57905b808401548160051b840152600101818118610464575b50505050508051806020830101601f82600003163682375050601f19601f8251602001011690509050810190509050905081019050611560f35b6376650ad381186104d4576004361861155157610fa35460405260206040f35b632e21ecef81186109805760e43610611551576004356004016104008135116115515780358061112052602082018181611140375050506024356004016104008135116115515780358061154052602082018181611560375050506044358060011c611551576119605260643560040161040081351161155157803580611980526020820181816119a03750505061056a6112ed565b6000611da052611da08051602082012090506111205161114020186105ef57601b6121c0527f72656c617920555249206d757374206e6f7420626520656d70747900000000006121e0526121c0506121c051806121e001601f826000031636823750506308c379a06121805260206121a052601f19601f6121c051011660440161219cfd5b6027600254111561066057601c611da0527f616c7265616479206d6178206e756d626572206f662072656c61797300000000611dc052611da050611da05180611dc001601f826000031636823750506308c379a0611d60526020611d8052601f19601f611da0510116604401611d7cfd5b61112051806040528060608261114060045afa5050610680611dc0611187565b611dc051611da052611da051191561071d576021611dc0527f72656c61792077697468207468652055524920616c7265616479206578697374611de0527f7300000000000000000000000000000000000000000000000000000000000000611e0052611dc050611dc05180611de001601f826000031636823750506308c379a0611d80526020611da052601f19601f611dc0510116604401611d9cfd5b6111205180611dc05280611de08261114060045afa505061154051806121e052806122008261156060045afa5050611960516126005261198051806126205280612640826119a060045afa505060025460278111611551576001810160025560648102600301611dc05180825560018201600082601f0160051c602081116115515780156107bf57905b8060051b611de00151818401556001018181186107a7575b505050506121e05180602183015560016021830101600082601f0160051c6020811161155157801561080557905b8060051b6122000151818401556001018181186107ed575b505050506126005160428201556126205180604383015560016043830101600082601f0160051c6020811161155157801561085457905b8060051b61264001518184015560010181811861083c575b505050505050610862611374565b61112051611140207feee5faa84d45af657ab405cdbf2c6a8a6d466e83fa694a358fee5ff84431d0bf602080612a405280612a40016080808252808201611dc05180825260208201818183611de060045afa5050508051806020830101601f82600003163682375050601f19601f825160200101169050810190508060208301528082016121e0518082526020820181818361220060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050612600516040830152806060830152808201612620518082526020820181818361264060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050905081019050612a40a2005b63f5a70a808118610ca45760443610611551576004356004016104008135116115515780358061112052602082018181611140375050506109bf6112ed565b600061154052611540805160208201209050611120516111402018610a4457601b611960527f72656c617920555249206d757374206e6f7420626520656d70747900000000006119805261196050611960518061198001601f826000031636823750506308c379a061192052602061194052601f19601f61196051011660440161193cfd5b6002546115405261112051806040528060608261114060045afa5050610a6b611580611187565b6115805161156052611540516115605110610ae6576015611580527f6e6f2072656c61792077697468207468652055524900000000000000000000006115a0526115805061158051806115a001601f826000031636823750506308c379a061154052602061156052601f19601f61158051011660440161155cfd5b61154051600181038181116115515790506115605114610c1257606461156051600254811015611551570260030160646115405160018103818111611551579050600254811015611551570260030180548083556001820160018401600083601f0160051c60208111611551578015610b6e57905b8084015481840155600101818118610b5b575b50505050506021810180548060218501556001820160016021860101600083601f0160051c60208111611551578015610bb657905b8084015481840155600101818118610ba3575b505050505050604281015460428301556043810180548060438501556001820160016043860101600083601f0160051c60208111611551578015610c0957905b8084015481840155600101818118610bf6575b50505050505050505b6001600254801561155157038060025550610c2b611374565b61112051611140207fef756634af7ee7210f786ec0f91930afa63fda84d9ff6493ae681c332055dadb602080611580528061158001611120518082526020820181818361114060045afa5050508051806020830101601f82600003163682375050601f19601f82516020010116905081019050611580a2005b63253c8bd48118610dca5760243618611551576004358060a01c61155157608052610ccd6113ba565b608051610d3157601260a0527f7a65726f206f776e65722061646472657373000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b60005460805118610d9957600a60a0527f73616d65206f776e65720000000000000000000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b6080516000556080517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36600060a0a2005b639aece83e8118610ef05760243618611551576004358060a01c61155157608052610df36113ba565b608051610e5757601460a0527f7a65726f206d616e61676572206164647265737300000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b60015460805118610ebf57600c60a0527f73616d65206d616e61676572000000000000000000000000000000000000000060c05260a05060a0518060c001601f826000031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b6080516001556080517f198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b600060a0a2005b63417a02b48118610f9e576004361861155157610f0b6113ba565b600154610f6f57600e6080527f6e6f206d616e616765722073657400000000000000000000000000000000000060a0526080506080518060a001601f826000031636823750506308c379a06040526020606052601f19601f6080510116604401605cfd5b600060015560007f198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b60006080a2005b63edd885b4811861117f5760643618611551576004358060a01c611551576101e0526044358060a01c6115515761020052610fd76113ba565b6101e051611045576012610220527f7a65726f20746f6b656e206164647265737300000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b610200516110b3576016610220527f7a65726f20726563697069656e742061646472657373000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b6101e0513b611122576011610220527f656f6120746f6b656e20616464726573730000000000000000000000000000006102405261022050610220518061024001601f826000031636823750506308c379a06101e052602061020052601f19601f6102205101166044016101fcfd5b6024351561117d576101e05160405261020051606052602435608052611146611423565b610200516101e0517f8619312ed4eff1cf9f0116e6db2f49d9570a86f0350d1c5ad1bd0f7b0cf9e132602435610220526020610220a35b005b505b60006000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610460526000610480526000600254602881116115515780156112e257905b606481026003018054806104a05260018201600082601f0160051c6020811161155157801561120a57905b808301548160051b6104c001526001018181186111f2575b50505050602181018054806108c05260018201600082601f0160051c6020811161155157801561124e57905b808301548160051b6108e00152600101818118611236575b50505050506042810154610ce05260438101805480610d005260018201600082601f0160051c6020811161155157801561129c57905b808301548160051b610d200152600101818118611284575b5050505050506040516060206104a0516104c020186112c25761048051610460526112e2565b6104805160018101818110611551579050610480526001018181186111c7575b505061046051815250565b60005433186112fd576001611311565b600154331861130e57331515611311565b60005b61137257601f6040527f6d73672e73656e646572206e6f74206f776e6572206f72206d616e616765720060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b565b610fa35460018101818110611551579050604052604051610fa3556040517f49f5627aa055ec3fcd474f99c8b7799b798c04af7b9f215305512c867e5a183960006060a2565b6000543318156114215760146040527f6d73672e73656e646572206e6f74206f776e657200000000000000000000000060605260405060405180606001601f826000031636823750506308c379a06000526020602052601f19601f6040510116604401601cfd5b565b6000600460e0527fa9059cbb000000000000000000000000000000000000000000000000000000006101005260e08051602082018361014001815181525050808301925050506060518161014001526020810190506080518161014001526020810190508061012052610120505060206101c06101205161014060006040515af16114b3573d600060003e3d6000fd5b3d602081183d60201002186101a0526101a080518060a05260208201805160c05250505060a0511561154f5760c05160a05160200360031b1c61154f57601560e0527f6572633230207472616e73666572206661696c656400000000000000000000006101005260e05060e0518061010001601f826000031636823750506308c379a060a052602060c052601f19601f60e051011660440160bcfd5b565b600080fda165767970657283000306000b005b600080fd", +} + +// ApiABI is the input ABI used to generate the binding from. +// Deprecated: Use ApiMetaData.ABI instead. +var ApiABI = ApiMetaData.ABI + +// ApiBin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use ApiMetaData.Bin instead. +var ApiBin = ApiMetaData.Bin + +// DeployApi deploys a new Ethereum contract, binding an instance of Api to it. +func DeployApi(auth *bind.TransactOpts, backend bind.ContractBackend, owner common.Address) (common.Address, *types.Transaction, *Api, error) { + parsed, err := ApiMetaData.GetAbi() + if err != nil { + return common.Address{}, nil, nil, err + } + if parsed == nil { + return common.Address{}, nil, nil, errors.New("GetABI returned nil") + } + + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ApiBin), backend, owner) + if err != nil { + return common.Address{}, nil, nil, err + } + return address, tx, &Api{ApiCaller: ApiCaller{contract: contract}, ApiTransactor: ApiTransactor{contract: contract}, ApiFilterer: ApiFilterer{contract: contract}}, nil +} + +// Api is an auto generated Go binding around an Ethereum contract. +type Api struct { + ApiCaller // Read-only binding to the contract + ApiTransactor // Write-only binding to the contract + ApiFilterer // Log filterer for contract events +} + +// ApiCaller is an auto generated read-only Go binding around an Ethereum contract. +type ApiCaller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiTransactor is an auto generated write-only Go binding around an Ethereum contract. +type ApiTransactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type ApiFilterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiSession is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type ApiSession struct { + Contract *Api // Generic contract binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// ApiCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type ApiCallerSession struct { + Contract *ApiCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// ApiTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type ApiTransactorSession struct { + Contract *ApiTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// ApiRaw is an auto generated low-level Go binding around an Ethereum contract. +type ApiRaw struct { + Contract *Api // Generic contract binding to access the raw methods on +} + +// ApiCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type ApiCallerRaw struct { + Contract *ApiCaller // Generic read-only contract binding to access the raw methods on +} + +// ApiTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type ApiTransactorRaw struct { + Contract *ApiTransactor // Generic write-only contract binding to access the raw methods on +} + +// NewApi creates a new instance of Api, bound to a specific deployed contract. +func NewApi(address common.Address, backend bind.ContractBackend) (*Api, error) { + contract, err := bindApi(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &Api{ApiCaller: ApiCaller{contract: contract}, ApiTransactor: ApiTransactor{contract: contract}, ApiFilterer: ApiFilterer{contract: contract}}, nil +} + +// NewApiCaller creates a new read-only instance of Api, bound to a specific deployed contract. +func NewApiCaller(address common.Address, caller bind.ContractCaller) (*ApiCaller, error) { + contract, err := bindApi(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &ApiCaller{contract: contract}, nil +} + +// NewApiTransactor creates a new write-only instance of Api, bound to a specific deployed contract. +func NewApiTransactor(address common.Address, transactor bind.ContractTransactor) (*ApiTransactor, error) { + contract, err := bindApi(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &ApiTransactor{contract: contract}, nil +} + +// NewApiFilterer creates a new log filterer instance of Api, bound to a specific deployed contract. +func NewApiFilterer(address common.Address, filterer bind.ContractFilterer) (*ApiFilterer, error) { + contract, err := bindApi(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &ApiFilterer{contract: contract}, nil +} + +// bindApi binds a generic wrapper to an already deployed contract. +func bindApi(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := ApiMetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Api *ApiRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Api.Contract.ApiCaller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Api *ApiRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.Contract.ApiTransactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Api *ApiRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Api.Contract.ApiTransactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Api *ApiCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Api.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Api *ApiTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Api *ApiTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Api.Contract.contract.Transact(opts, method, params...) +} + +// GetAllowedListVersion is a free data retrieval call binding the contract method 0x76650ad3. +// +// Solidity: function get_allowed_list_version() view returns(uint256) +func (_Api *ApiCaller) GetAllowedListVersion(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_allowed_list_version") + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err +} + +// GetAllowedListVersion is a free data retrieval call binding the contract method 0x76650ad3. +// +// Solidity: function get_allowed_list_version() view returns(uint256) +func (_Api *ApiSession) GetAllowedListVersion() (*big.Int, error) { + return _Api.Contract.GetAllowedListVersion(&_Api.CallOpts) +} + +// GetAllowedListVersion is a free data retrieval call binding the contract method 0x76650ad3. +// +// Solidity: function get_allowed_list_version() view returns(uint256) +func (_Api *ApiCallerSession) GetAllowedListVersion() (*big.Int, error) { + return _Api.Contract.GetAllowedListVersion(&_Api.CallOpts) +} + +// GetManager is a free data retrieval call binding the contract method 0x9e4a0fc4. +// +// Solidity: function get_manager() view returns(address) +func (_Api *ApiCaller) GetManager(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_manager") + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err +} + +// GetManager is a free data retrieval call binding the contract method 0x9e4a0fc4. +// +// Solidity: function get_manager() view returns(address) +func (_Api *ApiSession) GetManager() (common.Address, error) { + return _Api.Contract.GetManager(&_Api.CallOpts) +} + +// GetManager is a free data retrieval call binding the contract method 0x9e4a0fc4. +// +// Solidity: function get_manager() view returns(address) +func (_Api *ApiCallerSession) GetManager() (common.Address, error) { + return _Api.Contract.GetManager(&_Api.CallOpts) +} + +// GetOwner is a free data retrieval call binding the contract method 0x0ac298dc. +// +// Solidity: function get_owner() view returns(address) +func (_Api *ApiCaller) GetOwner(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_owner") + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err +} + +// GetOwner is a free data retrieval call binding the contract method 0x0ac298dc. +// +// Solidity: function get_owner() view returns(address) +func (_Api *ApiSession) GetOwner() (common.Address, error) { + return _Api.Contract.GetOwner(&_Api.CallOpts) +} + +// GetOwner is a free data retrieval call binding the contract method 0x0ac298dc. +// +// Solidity: function get_owner() view returns(address) +func (_Api *ApiCallerSession) GetOwner() (common.Address, error) { + return _Api.Contract.GetOwner(&_Api.CallOpts) +} + +// GetRelayByUri is a free data retrieval call binding the contract method 0xf5f33c7b. +// +// Solidity: function get_relay_by_uri(string relay_uri) view returns((string,string,bool,string)) +func (_Api *ApiCaller) GetRelayByUri(opts *bind.CallOpts, relay_uri string) (Struct0, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_relay_by_uri", relay_uri) + if err != nil { + return *new(Struct0), err + } + + out0 := *abi.ConvertType(out[0], new(Struct0)).(*Struct0) + + return out0, err +} + +// GetRelayByUri is a free data retrieval call binding the contract method 0xf5f33c7b. +// +// Solidity: function get_relay_by_uri(string relay_uri) view returns((string,string,bool,string)) +func (_Api *ApiSession) GetRelayByUri(relay_uri string) (Struct0, error) { + return _Api.Contract.GetRelayByUri(&_Api.CallOpts, relay_uri) +} + +// GetRelayByUri is a free data retrieval call binding the contract method 0xf5f33c7b. +// +// Solidity: function get_relay_by_uri(string relay_uri) view returns((string,string,bool,string)) +func (_Api *ApiCallerSession) GetRelayByUri(relay_uri string) (Struct0, error) { + return _Api.Contract.GetRelayByUri(&_Api.CallOpts, relay_uri) +} + +// GetRelays is a free data retrieval call binding the contract method 0x04e469ea. +// +// Solidity: function get_relays() view returns((string,string,bool,string)[]) +func (_Api *ApiCaller) GetRelays(opts *bind.CallOpts) ([]Struct0, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_relays") + if err != nil { + return *new([]Struct0), err + } + + out0 := *abi.ConvertType(out[0], new([]Struct0)).(*[]Struct0) + + return out0, err +} + +// GetRelays is a free data retrieval call binding the contract method 0x04e469ea. +// +// Solidity: function get_relays() view returns((string,string,bool,string)[]) +func (_Api *ApiSession) GetRelays() ([]Struct0, error) { + return _Api.Contract.GetRelays(&_Api.CallOpts) +} + +// GetRelays is a free data retrieval call binding the contract method 0x04e469ea. +// +// Solidity: function get_relays() view returns((string,string,bool,string)[]) +func (_Api *ApiCallerSession) GetRelays() ([]Struct0, error) { + return _Api.Contract.GetRelays(&_Api.CallOpts) +} + +// GetRelaysAmount is a free data retrieval call binding the contract method 0x312c3165. +// +// Solidity: function get_relays_amount() view returns(uint256) +func (_Api *ApiCaller) GetRelaysAmount(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "get_relays_amount") + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err +} + +// GetRelaysAmount is a free data retrieval call binding the contract method 0x312c3165. +// +// Solidity: function get_relays_amount() view returns(uint256) +func (_Api *ApiSession) GetRelaysAmount() (*big.Int, error) { + return _Api.Contract.GetRelaysAmount(&_Api.CallOpts) +} + +// GetRelaysAmount is a free data retrieval call binding the contract method 0x312c3165. +// +// Solidity: function get_relays_amount() view returns(uint256) +func (_Api *ApiCallerSession) GetRelaysAmount() (*big.Int, error) { + return _Api.Contract.GetRelaysAmount(&_Api.CallOpts) +} + +// AddRelay is a paid mutator transaction binding the contract method 0x2e21ecef. +// +// Solidity: function add_relay(string uri, string operator, bool is_mandatory, string description) returns() +func (_Api *ApiTransactor) AddRelay(opts *bind.TransactOpts, uri string, operator string, is_mandatory bool, description string) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "add_relay", uri, operator, is_mandatory, description) +} + +// AddRelay is a paid mutator transaction binding the contract method 0x2e21ecef. +// +// Solidity: function add_relay(string uri, string operator, bool is_mandatory, string description) returns() +func (_Api *ApiSession) AddRelay(uri string, operator string, is_mandatory bool, description string) (*types.Transaction, error) { + return _Api.Contract.AddRelay(&_Api.TransactOpts, uri, operator, is_mandatory, description) +} + +// AddRelay is a paid mutator transaction binding the contract method 0x2e21ecef. +// +// Solidity: function add_relay(string uri, string operator, bool is_mandatory, string description) returns() +func (_Api *ApiTransactorSession) AddRelay(uri string, operator string, is_mandatory bool, description string) (*types.Transaction, error) { + return _Api.Contract.AddRelay(&_Api.TransactOpts, uri, operator, is_mandatory, description) +} + +// ChangeOwner is a paid mutator transaction binding the contract method 0x253c8bd4. +// +// Solidity: function change_owner(address owner) returns() +func (_Api *ApiTransactor) ChangeOwner(opts *bind.TransactOpts, owner common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "change_owner", owner) +} + +// ChangeOwner is a paid mutator transaction binding the contract method 0x253c8bd4. +// +// Solidity: function change_owner(address owner) returns() +func (_Api *ApiSession) ChangeOwner(owner common.Address) (*types.Transaction, error) { + return _Api.Contract.ChangeOwner(&_Api.TransactOpts, owner) +} + +// ChangeOwner is a paid mutator transaction binding the contract method 0x253c8bd4. +// +// Solidity: function change_owner(address owner) returns() +func (_Api *ApiTransactorSession) ChangeOwner(owner common.Address) (*types.Transaction, error) { + return _Api.Contract.ChangeOwner(&_Api.TransactOpts, owner) +} + +// DismissManager is a paid mutator transaction binding the contract method 0x417a02b4. +// +// Solidity: function dismiss_manager() returns() +func (_Api *ApiTransactor) DismissManager(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "dismiss_manager") +} + +// DismissManager is a paid mutator transaction binding the contract method 0x417a02b4. +// +// Solidity: function dismiss_manager() returns() +func (_Api *ApiSession) DismissManager() (*types.Transaction, error) { + return _Api.Contract.DismissManager(&_Api.TransactOpts) +} + +// DismissManager is a paid mutator transaction binding the contract method 0x417a02b4. +// +// Solidity: function dismiss_manager() returns() +func (_Api *ApiTransactorSession) DismissManager() (*types.Transaction, error) { + return _Api.Contract.DismissManager(&_Api.TransactOpts) +} + +// RecoverErc20 is a paid mutator transaction binding the contract method 0xedd885b4. +// +// Solidity: function recover_erc20(address token, uint256 amount, address recipient) returns() +func (_Api *ApiTransactor) RecoverErc20(opts *bind.TransactOpts, token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "recover_erc20", token, amount, recipient) +} + +// RecoverErc20 is a paid mutator transaction binding the contract method 0xedd885b4. +// +// Solidity: function recover_erc20(address token, uint256 amount, address recipient) returns() +func (_Api *ApiSession) RecoverErc20(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { + return _Api.Contract.RecoverErc20(&_Api.TransactOpts, token, amount, recipient) +} + +// RecoverErc20 is a paid mutator transaction binding the contract method 0xedd885b4. +// +// Solidity: function recover_erc20(address token, uint256 amount, address recipient) returns() +func (_Api *ApiTransactorSession) RecoverErc20(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { + return _Api.Contract.RecoverErc20(&_Api.TransactOpts, token, amount, recipient) +} + +// RemoveRelay is a paid mutator transaction binding the contract method 0xf5a70a80. +// +// Solidity: function remove_relay(string uri) returns() +func (_Api *ApiTransactor) RemoveRelay(opts *bind.TransactOpts, uri string) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "remove_relay", uri) +} + +// RemoveRelay is a paid mutator transaction binding the contract method 0xf5a70a80. +// +// Solidity: function remove_relay(string uri) returns() +func (_Api *ApiSession) RemoveRelay(uri string) (*types.Transaction, error) { + return _Api.Contract.RemoveRelay(&_Api.TransactOpts, uri) +} + +// RemoveRelay is a paid mutator transaction binding the contract method 0xf5a70a80. +// +// Solidity: function remove_relay(string uri) returns() +func (_Api *ApiTransactorSession) RemoveRelay(uri string) (*types.Transaction, error) { + return _Api.Contract.RemoveRelay(&_Api.TransactOpts, uri) +} + +// SetManager is a paid mutator transaction binding the contract method 0x9aece83e. +// +// Solidity: function set_manager(address manager) returns() +func (_Api *ApiTransactor) SetManager(opts *bind.TransactOpts, manager common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "set_manager", manager) +} + +// SetManager is a paid mutator transaction binding the contract method 0x9aece83e. +// +// Solidity: function set_manager(address manager) returns() +func (_Api *ApiSession) SetManager(manager common.Address) (*types.Transaction, error) { + return _Api.Contract.SetManager(&_Api.TransactOpts, manager) +} + +// SetManager is a paid mutator transaction binding the contract method 0x9aece83e. +// +// Solidity: function set_manager(address manager) returns() +func (_Api *ApiTransactorSession) SetManager(manager common.Address) (*types.Transaction, error) { + return _Api.Contract.SetManager(&_Api.TransactOpts, manager) +} + +// Fallback is a paid mutator transaction binding the contract fallback function. +// +// Solidity: fallback() returns() +func (_Api *ApiTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error) { + return _Api.contract.RawTransact(opts, calldata) +} + +// Fallback is a paid mutator transaction binding the contract fallback function. +// +// Solidity: fallback() returns() +func (_Api *ApiSession) Fallback(calldata []byte) (*types.Transaction, error) { + return _Api.Contract.Fallback(&_Api.TransactOpts, calldata) +} + +// Fallback is a paid mutator transaction binding the contract fallback function. +// +// Solidity: fallback() returns() +func (_Api *ApiTransactorSession) Fallback(calldata []byte) (*types.Transaction, error) { + return _Api.Contract.Fallback(&_Api.TransactOpts, calldata) +} + +// ApiAllowedListUpdatedIterator is returned from FilterAllowedListUpdated and is used to iterate over the raw logs and unpacked data for AllowedListUpdated events raised by the Api contract. +type ApiAllowedListUpdatedIterator struct { + Event *ApiAllowedListUpdated // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiAllowedListUpdatedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiAllowedListUpdated) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiAllowedListUpdated) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiAllowedListUpdatedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiAllowedListUpdatedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiAllowedListUpdated represents a AllowedListUpdated event raised by the Api contract. +type ApiAllowedListUpdated struct { + AllowedListVersion *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterAllowedListUpdated is a free log retrieval operation binding the contract event 0x49f5627aa055ec3fcd474f99c8b7799b798c04af7b9f215305512c867e5a1839. +// +// Solidity: event AllowedListUpdated(uint256 indexed allowed_list_version) +func (_Api *ApiFilterer) FilterAllowedListUpdated(opts *bind.FilterOpts, allowed_list_version []*big.Int) (*ApiAllowedListUpdatedIterator, error) { + var allowed_list_versionRule []interface{} + for _, allowed_list_versionItem := range allowed_list_version { + allowed_list_versionRule = append(allowed_list_versionRule, allowed_list_versionItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "AllowedListUpdated", allowed_list_versionRule) + if err != nil { + return nil, err + } + return &ApiAllowedListUpdatedIterator{contract: _Api.contract, event: "AllowedListUpdated", logs: logs, sub: sub}, nil +} + +// WatchAllowedListUpdated is a free log subscription operation binding the contract event 0x49f5627aa055ec3fcd474f99c8b7799b798c04af7b9f215305512c867e5a1839. +// +// Solidity: event AllowedListUpdated(uint256 indexed allowed_list_version) +func (_Api *ApiFilterer) WatchAllowedListUpdated(opts *bind.WatchOpts, sink chan<- *ApiAllowedListUpdated, allowed_list_version []*big.Int) (event.Subscription, error) { + var allowed_list_versionRule []interface{} + for _, allowed_list_versionItem := range allowed_list_version { + allowed_list_versionRule = append(allowed_list_versionRule, allowed_list_versionItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "AllowedListUpdated", allowed_list_versionRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiAllowedListUpdated) + if err := _Api.contract.UnpackLog(event, "AllowedListUpdated", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseAllowedListUpdated is a log parse operation binding the contract event 0x49f5627aa055ec3fcd474f99c8b7799b798c04af7b9f215305512c867e5a1839. +// +// Solidity: event AllowedListUpdated(uint256 indexed allowed_list_version) +func (_Api *ApiFilterer) ParseAllowedListUpdated(log types.Log) (*ApiAllowedListUpdated, error) { + event := new(ApiAllowedListUpdated) + if err := _Api.contract.UnpackLog(event, "AllowedListUpdated", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiERC20RecoveredIterator is returned from FilterERC20Recovered and is used to iterate over the raw logs and unpacked data for ERC20Recovered events raised by the Api contract. +type ApiERC20RecoveredIterator struct { + Event *ApiERC20Recovered // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiERC20RecoveredIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiERC20Recovered) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiERC20Recovered) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiERC20RecoveredIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiERC20RecoveredIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiERC20Recovered represents a ERC20Recovered event raised by the Api contract. +type ApiERC20Recovered struct { + Token common.Address + Amount *big.Int + Recipient common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterERC20Recovered is a free log retrieval operation binding the contract event 0x8619312ed4eff1cf9f0116e6db2f49d9570a86f0350d1c5ad1bd0f7b0cf9e132. +// +// Solidity: event ERC20Recovered(address indexed token, uint256 amount, address indexed recipient) +func (_Api *ApiFilterer) FilterERC20Recovered(opts *bind.FilterOpts, token []common.Address, recipient []common.Address) (*ApiERC20RecoveredIterator, error) { + var tokenRule []interface{} + for _, tokenItem := range token { + tokenRule = append(tokenRule, tokenItem) + } + + var recipientRule []interface{} + for _, recipientItem := range recipient { + recipientRule = append(recipientRule, recipientItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "ERC20Recovered", tokenRule, recipientRule) + if err != nil { + return nil, err + } + return &ApiERC20RecoveredIterator{contract: _Api.contract, event: "ERC20Recovered", logs: logs, sub: sub}, nil +} + +// WatchERC20Recovered is a free log subscription operation binding the contract event 0x8619312ed4eff1cf9f0116e6db2f49d9570a86f0350d1c5ad1bd0f7b0cf9e132. +// +// Solidity: event ERC20Recovered(address indexed token, uint256 amount, address indexed recipient) +func (_Api *ApiFilterer) WatchERC20Recovered(opts *bind.WatchOpts, sink chan<- *ApiERC20Recovered, token []common.Address, recipient []common.Address) (event.Subscription, error) { + var tokenRule []interface{} + for _, tokenItem := range token { + tokenRule = append(tokenRule, tokenItem) + } + + var recipientRule []interface{} + for _, recipientItem := range recipient { + recipientRule = append(recipientRule, recipientItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "ERC20Recovered", tokenRule, recipientRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiERC20Recovered) + if err := _Api.contract.UnpackLog(event, "ERC20Recovered", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseERC20Recovered is a log parse operation binding the contract event 0x8619312ed4eff1cf9f0116e6db2f49d9570a86f0350d1c5ad1bd0f7b0cf9e132. +// +// Solidity: event ERC20Recovered(address indexed token, uint256 amount, address indexed recipient) +func (_Api *ApiFilterer) ParseERC20Recovered(log types.Log) (*ApiERC20Recovered, error) { + event := new(ApiERC20Recovered) + if err := _Api.contract.UnpackLog(event, "ERC20Recovered", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiManagerChangedIterator is returned from FilterManagerChanged and is used to iterate over the raw logs and unpacked data for ManagerChanged events raised by the Api contract. +type ApiManagerChangedIterator struct { + Event *ApiManagerChanged // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiManagerChangedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiManagerChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiManagerChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiManagerChangedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiManagerChangedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiManagerChanged represents a ManagerChanged event raised by the Api contract. +type ApiManagerChanged struct { + NewManager common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterManagerChanged is a free log retrieval operation binding the contract event 0x198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b. +// +// Solidity: event ManagerChanged(address indexed new_manager) +func (_Api *ApiFilterer) FilterManagerChanged(opts *bind.FilterOpts, new_manager []common.Address) (*ApiManagerChangedIterator, error) { + var new_managerRule []interface{} + for _, new_managerItem := range new_manager { + new_managerRule = append(new_managerRule, new_managerItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "ManagerChanged", new_managerRule) + if err != nil { + return nil, err + } + return &ApiManagerChangedIterator{contract: _Api.contract, event: "ManagerChanged", logs: logs, sub: sub}, nil +} + +// WatchManagerChanged is a free log subscription operation binding the contract event 0x198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b. +// +// Solidity: event ManagerChanged(address indexed new_manager) +func (_Api *ApiFilterer) WatchManagerChanged(opts *bind.WatchOpts, sink chan<- *ApiManagerChanged, new_manager []common.Address) (event.Subscription, error) { + var new_managerRule []interface{} + for _, new_managerItem := range new_manager { + new_managerRule = append(new_managerRule, new_managerItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "ManagerChanged", new_managerRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiManagerChanged) + if err := _Api.contract.UnpackLog(event, "ManagerChanged", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseManagerChanged is a log parse operation binding the contract event 0x198db6e425fb8aafd1823c6ca50be2d51e5764571a5ae0f0f21c6812e45def0b. +// +// Solidity: event ManagerChanged(address indexed new_manager) +func (_Api *ApiFilterer) ParseManagerChanged(log types.Log) (*ApiManagerChanged, error) { + event := new(ApiManagerChanged) + if err := _Api.contract.UnpackLog(event, "ManagerChanged", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Api contract. +type ApiOwnerChangedIterator struct { + Event *ApiOwnerChanged // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiOwnerChangedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiOwnerChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiOwnerChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiOwnerChangedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiOwnerChangedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiOwnerChanged represents a OwnerChanged event raised by the Api contract. +type ApiOwnerChanged struct { + NewOwner common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36. +// +// Solidity: event OwnerChanged(address indexed new_owner) +func (_Api *ApiFilterer) FilterOwnerChanged(opts *bind.FilterOpts, new_owner []common.Address) (*ApiOwnerChangedIterator, error) { + var new_ownerRule []interface{} + for _, new_ownerItem := range new_owner { + new_ownerRule = append(new_ownerRule, new_ownerItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "OwnerChanged", new_ownerRule) + if err != nil { + return nil, err + } + return &ApiOwnerChangedIterator{contract: _Api.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil +} + +// WatchOwnerChanged is a free log subscription operation binding the contract event 0xa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36. +// +// Solidity: event OwnerChanged(address indexed new_owner) +func (_Api *ApiFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *ApiOwnerChanged, new_owner []common.Address) (event.Subscription, error) { + var new_ownerRule []interface{} + for _, new_ownerItem := range new_owner { + new_ownerRule = append(new_ownerRule, new_ownerItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "OwnerChanged", new_ownerRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiOwnerChanged) + if err := _Api.contract.UnpackLog(event, "OwnerChanged", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseOwnerChanged is a log parse operation binding the contract event 0xa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36. +// +// Solidity: event OwnerChanged(address indexed new_owner) +func (_Api *ApiFilterer) ParseOwnerChanged(log types.Log) (*ApiOwnerChanged, error) { + event := new(ApiOwnerChanged) + if err := _Api.contract.UnpackLog(event, "OwnerChanged", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRelayAddedIterator is returned from FilterRelayAdded and is used to iterate over the raw logs and unpacked data for RelayAdded events raised by the Api contract. +type ApiRelayAddedIterator struct { + Event *ApiRelayAdded // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRelayAddedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRelayAdded) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRelayAdded) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRelayAddedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRelayAddedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRelayAdded represents a RelayAdded event raised by the Api contract. +type ApiRelayAdded struct { + UriHash common.Hash + Relay Struct0 + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRelayAdded is a free log retrieval operation binding the contract event 0xeee5faa84d45af657ab405cdbf2c6a8a6d466e83fa694a358fee5ff84431d0bf. +// +// Solidity: event RelayAdded(string indexed uri_hash, (string,string,bool,string) relay) +func (_Api *ApiFilterer) FilterRelayAdded(opts *bind.FilterOpts, uri_hash []string) (*ApiRelayAddedIterator, error) { + var uri_hashRule []interface{} + for _, uri_hashItem := range uri_hash { + uri_hashRule = append(uri_hashRule, uri_hashItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RelayAdded", uri_hashRule) + if err != nil { + return nil, err + } + return &ApiRelayAddedIterator{contract: _Api.contract, event: "RelayAdded", logs: logs, sub: sub}, nil +} + +// WatchRelayAdded is a free log subscription operation binding the contract event 0xeee5faa84d45af657ab405cdbf2c6a8a6d466e83fa694a358fee5ff84431d0bf. +// +// Solidity: event RelayAdded(string indexed uri_hash, (string,string,bool,string) relay) +func (_Api *ApiFilterer) WatchRelayAdded(opts *bind.WatchOpts, sink chan<- *ApiRelayAdded, uri_hash []string) (event.Subscription, error) { + var uri_hashRule []interface{} + for _, uri_hashItem := range uri_hash { + uri_hashRule = append(uri_hashRule, uri_hashItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RelayAdded", uri_hashRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRelayAdded) + if err := _Api.contract.UnpackLog(event, "RelayAdded", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRelayAdded is a log parse operation binding the contract event 0xeee5faa84d45af657ab405cdbf2c6a8a6d466e83fa694a358fee5ff84431d0bf. +// +// Solidity: event RelayAdded(string indexed uri_hash, (string,string,bool,string) relay) +func (_Api *ApiFilterer) ParseRelayAdded(log types.Log) (*ApiRelayAdded, error) { + event := new(ApiRelayAdded) + if err := _Api.contract.UnpackLog(event, "RelayAdded", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRelayRemovedIterator is returned from FilterRelayRemoved and is used to iterate over the raw logs and unpacked data for RelayRemoved events raised by the Api contract. +type ApiRelayRemovedIterator struct { + Event *ApiRelayRemoved // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRelayRemovedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRelayRemoved) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRelayRemoved) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRelayRemovedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRelayRemovedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRelayRemoved represents a RelayRemoved event raised by the Api contract. +type ApiRelayRemoved struct { + UriHash common.Hash + Uri string + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRelayRemoved is a free log retrieval operation binding the contract event 0xef756634af7ee7210f786ec0f91930afa63fda84d9ff6493ae681c332055dadb. +// +// Solidity: event RelayRemoved(string indexed uri_hash, string uri) +func (_Api *ApiFilterer) FilterRelayRemoved(opts *bind.FilterOpts, uri_hash []string) (*ApiRelayRemovedIterator, error) { + var uri_hashRule []interface{} + for _, uri_hashItem := range uri_hash { + uri_hashRule = append(uri_hashRule, uri_hashItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RelayRemoved", uri_hashRule) + if err != nil { + return nil, err + } + return &ApiRelayRemovedIterator{contract: _Api.contract, event: "RelayRemoved", logs: logs, sub: sub}, nil +} + +// WatchRelayRemoved is a free log subscription operation binding the contract event 0xef756634af7ee7210f786ec0f91930afa63fda84d9ff6493ae681c332055dadb. +// +// Solidity: event RelayRemoved(string indexed uri_hash, string uri) +func (_Api *ApiFilterer) WatchRelayRemoved(opts *bind.WatchOpts, sink chan<- *ApiRelayRemoved, uri_hash []string) (event.Subscription, error) { + var uri_hashRule []interface{} + for _, uri_hashItem := range uri_hash { + uri_hashRule = append(uri_hashRule, uri_hashItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RelayRemoved", uri_hashRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRelayRemoved) + if err := _Api.contract.UnpackLog(event, "RelayRemoved", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRelayRemoved is a log parse operation binding the contract event 0xef756634af7ee7210f786ec0f91930afa63fda84d9ff6493ae681c332055dadb. +// +// Solidity: event RelayRemoved(string indexed uri_hash, string uri) +func (_Api *ApiFilterer) ParseRelayRemoved(log types.Log) (*ApiRelayRemoved, error) { + event := new(ApiRelayRemoved) + if err := _Api.contract.UnpackLog(event, "RelayRemoved", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} diff --git a/internal/lido/contracts/mevboost_relay_list/get_relays.go b/internal/lido/contracts/mevboost_relay_list/get_relays.go new file mode 100644 index 000000000..396e486a8 --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/get_relays.go @@ -0,0 +1,120 @@ +package mevboostrelaylist + +import ( + "encoding/hex" + "fmt" + "strings" + + "github.com/NethermindEth/sedge/configs" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/rpc" +) + +// Relay : Struct represent data of MEV-Boost Relay +type Relay struct { + Uri string `yaml:"Uri"` + Operator string `yaml:"Operator"` + IsMandatory bool `yaml:"IsMandatory"` + Description string `yaml:"Description"` +} + +// Define deployed contract addresses for Mainnet and Holesky +var deployedContractAddresses = map[string]string{ + configs.NetworkMainnet: "0xF95f069F9AD107938F6ba802a3da87892298610E", + configs.NetworkHolesky: "0x2d86C5855581194a386941806E38cA119E50aEA3", +} + +/* +connectToRPC : +This function is responsible for: +attempting to connect to the first available RPC endpoint from the provided list. +params :- +RPCs ([]string): A list of RPC endpoint URLs. +returns :- +a. *rpc.Client +The connected RPC client +b. error +Error if no connections could be established +*/ +func connectToRPC(RPCs []string) (*rpc.Client, error) { + var client *rpc.Client + var err error + + for _, url := range RPCs { + client, err = rpc.DialHTTP(url) + if err == nil { + return client, nil + } + } + + return nil, fmt.Errorf("failed to connect to any RPC URL") +} + +/* +GetRelays : +This function is responsible for :- +retrieving a list of relays from the MEV-Boost Allowed List contract for a given network. +params :- +network (string): The name of the network (e.g., "mainnet", "holesky"). +returns :- +a. []Relay +List of relays +b. error +Error if any +*/ +func GetRelays(network string) ([]Relay, error) { + var relays []Relay + rpcs, err := configs.GetPublicRPCs(network) + if err != nil { + return relays, fmt.Errorf("failed to get public RPC: %w", err) + } + + // Connect to the RPC endpoint + client, err := connectToRPC(rpcs) + if err != nil { + return relays, fmt.Errorf("failed to connect to RPC: %w", err) + } + defer client.Close() + + // Parse the ABI of the contract + parsedABI, err := abi.JSON(strings.NewReader(ApiABI)) + if err != nil { + return relays, fmt.Errorf("failed to parse ABI: %w", err) + } + + // Pack the data for the "get_relays" method + data, err := parsedABI.Pack("get_relays") + if err != nil { + return relays, fmt.Errorf("failed to pack ABI data: %w", err) + } + + // Prepare the RPC call arguments + type CallArgs struct { + To string `json:"to"` + Data string `json:"data"` + } + args := CallArgs{ + To: deployedContractAddresses[network], + Data: "0x" + hex.EncodeToString(data), + } + + // Execute the RPC call + var result string + if err := client.Call(&result, "eth_call", args, "latest"); err != nil { + return relays, fmt.Errorf("failed to make RPC call: %w", err) + } + + // Decode the result from the RPC call + output, err := hex.DecodeString(result[2:]) // Remove the '0x' prefix + if err != nil { + return relays, fmt.Errorf("failed to decode result hex: %w", err) + } + + // Unpack the result into the relays slice + err = parsedABI.UnpackIntoInterface(&relays, "get_relays", output) + if err != nil { + return relays, fmt.Errorf("failed to unpack ABI output: %w", err) + } + + return relays, nil +} diff --git a/internal/lido/contracts/mevboost_relay_list/get_relays_test.go b/internal/lido/contracts/mevboost_relay_list/get_relays_test.go new file mode 100644 index 000000000..4f8f975f1 --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/get_relays_test.go @@ -0,0 +1,83 @@ +package mevboostrelaylist + +import ( + "io" + "log" + "os" + "reflect" + "testing" + + "gopkg.in/yaml.v3" +) + +type RelayData struct { + Mainnet []Relay `yaml:"mainnet"` + Holesky []Relay `yaml:"holesky"` +} + +/* +loadRelays : +This function is responsible for: +loading relays for each network from .yaml file +params :- +filename (string): .yaml file that has the relays +returns :- +a. map[string][]Relay +Map of network name and its relays +b. error +Error if any +*/ +func loadRelays(filename string) (map[string][]Relay, error) { + data, err := os.ReadFile(filename) + if err != nil { + return nil, err + } + + var relayData RelayData + err = yaml.Unmarshal(data, &relayData) + if err != nil { + return nil, err + } + + return map[string][]Relay{ + "mainnet": relayData.Mainnet, + "holesky": relayData.Holesky, + }, nil +} + +func TestGetRelays(t *testing.T) { + // Silence logger + log.SetOutput(io.Discard) + + // Load relays from the YAML file + expectedRelaysMap, err := loadRelays("relays.yaml") + if err != nil { + t.Fatalf("Failed to load relays: %v", err) + } + + tcs := []struct { + name string + network string + expectedRelays []Relay + }{ + { + "GetRelays Mainnet", "mainnet", expectedRelaysMap["mainnet"], + }, + { + "GetRelays Holesky", "holesky", expectedRelaysMap["holesky"], + }, + } + + for _, tc := range tcs { + t.Run(tc.name, func(t *testing.T) { + relays, err := GetRelays(tc.network) + if err != nil { + t.Fatalf("Failed to call GetRelays: %v", err) + } + + if !reflect.DeepEqual(relays, tc.expectedRelays) { + t.Errorf("Relays do not match expected values\nGot: %+v\nExpected: %+v", relays, tc.expectedRelays) + } + }) + } +} diff --git a/internal/lido/contracts/mevboost_relay_list/relays.yaml b/internal/lido/contracts/mevboost_relay_list/relays.yaml new file mode 100644 index 000000000..07831cb88 --- /dev/null +++ b/internal/lido/contracts/mevboost_relay_list/relays.yaml @@ -0,0 +1,67 @@ +mainnet: + - Uri: "https://0xa7ab7a996c8584251c8f925da3170bdfd6ebc75d50f5ddc4050a6fdc77f2a3b5fce2cc750d0865e05d7228af97d69561@agnostic-relay.net" + Operator: "Agnostic" + IsMandatory: true + Description: "Agnostic Relay" + - Uri: "https://0xb0b07cd0abef743db4260b0ed50619cf6ad4d82064cb4fbec9d3ec530f7c5e6793d9f286c4e082c0244ffb9f2658fe88@bloxroute.regulated.blxrbdn.com" + Operator: "bloXroute" + IsMandatory: true + Description: "bloXroute Regulated Relay" + - Uri: "https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d15e31b1cb359caa092c71bbded0bae5b5ea401aab7e@aestus.live" + Operator: "Aestus" + IsMandatory: true + Description: "Aestus Relay" + - Uri: "https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com" + Operator: "bloXroute" + IsMandatory: true + Description: "bloXroute Max-Profit Relay" + - Uri: "https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net" + Operator: "Flashbots" + IsMandatory: true + Description: "Flashbots Relay" + - Uri: "https://0xb3ee7afcf27f1f1259ac1787876318c6584ee353097a50ed84f51a1f21a323b3736f271a895c7ce918c038e4265918be@relay.edennetwork.io" + Operator: "Eden Network" + IsMandatory: true + Description: "Eden Network Relay" + - Uri: "https://0x98650451ba02064f7b000f5768cf0cf4d4e492317d82871bdc87ef841a0743f69f0f1eea11168503240ac35d101c9135@mainnet-relay.securerpc.com/" + Operator: "Manifold Finance" + IsMandatory: false + Description: "Manifold SecureRPC Relay" + - Uri: "https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money" + Operator: "Ultra Sound" + IsMandatory: true + Description: "Ultra Sound Relay" + +holesky: + - Uri: "https://0xb1559beef7b5ba3127485bbbb090362d9f497ba64e177ee2c8e7db74746306efad687f2cf8574e38d70067d40ef136dc@relay-stag.ultrasound.money" + Operator: "Ultra Sound" + IsMandatory: true + Description: "Ultra Sound Relay Holesky - no filtering" + - Uri: "https://0xab78bf8c781c58078c3beb5710c57940874dd96aef2835e7742c866b4c7c0406754376c2c8285a36c630346aa5c5f833@holesky.aestus.live" + Operator: "Aestus" + IsMandatory: true + Description: "Aestus Relay Holesky - no filtering" + - Uri: "http://0x821f2a65afb70e7f2e820a925a9b4c80a159620582c1766b1b09729fec178b11ea22abb3a51f07b288be815a1a2ff516@testnet.relay-proxy.blxrbdn.com:18552/" + Operator: "bloxRoute" + IsMandatory: false + Description: "bloxRoute Validator Gateway - filtering" + - Uri: "https://0x821f2a65afb70e7f2e820a925a9b4c80a159620582c1766b1b09729fec178b11ea22abb3a51f07b288be815a1a2ff516@bloxroute.holesky.blxrbdn.com" + Operator: "bloxRoute" + IsMandatory: true + Description: "bloxRoute Relay - filtering" + - Uri: "https://0x833b55e20769a8a99549a28588564468423c77724a0ca96cffd58e65f69a39599d877f02dc77a0f6f9cda2a3a4765e56@relay-holesky.beaverbuild.org" + Operator: "Beaverbuild" + IsMandatory: false + Description: "Beaverbuild Relay Holesky" + - Uri: "https://0xb1d229d9c21298a87846c7022ebeef277dfc321fe674fa45312e20b5b6c400bfde9383f801848d7837ed5fc449083a12@relay-holesky.edennetwork.io" + Operator: "Eden" + IsMandatory: true + Description: "Eden Relay Holesky - Filtering" + - Uri: "https://0xaa58208899c6105603b74396734a6263cc7d947f444f396a90f7b7d3e65d102aec7e5e5291b27e08d02c50a050825c2f@holesky.titanrelay.xyz/" + Operator: "Titan" + IsMandatory: true + Description: "Titan Relay Holesky - nonfiltering" + - Uri: "https://0xafa4c6985aa049fb79dd37010438cfebeb0f2bd42b115b89dd678dab0670c1de38da0c4e9138c9290a398ecd9a0b3110@boost-relay-holesky.flashbots.net" + Operator: "Flashbots" + IsMandatory: true + Description: "Flashbots Boost Holesky - filtering" \ No newline at end of file diff --git a/internal/lido/contracts/staking_router/StakingRouter.abi b/internal/lido/contracts/staking_router/StakingRouter.abi new file mode 100644 index 000000000..c72053cdf --- /dev/null +++ b/internal/lido/contracts/staking_router/StakingRouter.abi @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_depositContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AppAuthLidoFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"firstArrayLength","type":"uint256"},{"internalType":"uint256","name":"secondArrayLength","type":"uint256"}],"name":"ArraysLengthMismatch","type":"error"},{"inputs":[],"name":"DepositContractZeroAddress","type":"error"},{"inputs":[],"name":"DirectETHTransfer","type":"error"},{"inputs":[],"name":"EmptyWithdrawalsCredentials","type":"error"},{"inputs":[],"name":"ExitedValidatorsCountCannotDecrease","type":"error"},{"inputs":[],"name":"InvalidContractVersionIncrement","type":"error"},{"inputs":[{"internalType":"uint256","name":"etherValue","type":"uint256"},{"internalType":"uint256","name":"depositsCount","type":"uint256"}],"name":"InvalidDepositsValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"actual","type":"uint256"},{"internalType":"uint256","name":"expected","type":"uint256"}],"name":"InvalidPublicKeysBatchLength","type":"error"},{"inputs":[{"internalType":"uint256","name":"code","type":"uint256"}],"name":"InvalidReportData","type":"error"},{"inputs":[{"internalType":"uint256","name":"actual","type":"uint256"},{"internalType":"uint256","name":"expected","type":"uint256"}],"name":"InvalidSignaturesBatchLength","type":"error"},{"inputs":[],"name":"NonZeroContractVersionOnInit","type":"error"},{"inputs":[{"internalType":"uint256","name":"reportedExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"depositedValidatorsCount","type":"uint256"}],"name":"ReportedExitedValidatorsExceedDeposited","type":"error"},{"inputs":[],"name":"StakingModuleAddressExists","type":"error"},{"inputs":[],"name":"StakingModuleNotActive","type":"error"},{"inputs":[],"name":"StakingModuleNotPaused","type":"error"},{"inputs":[],"name":"StakingModuleStatusTheSame","type":"error"},{"inputs":[],"name":"StakingModuleUnregistered","type":"error"},{"inputs":[],"name":"StakingModuleWrongName","type":"error"},{"inputs":[],"name":"StakingModulesLimitExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"expected","type":"uint256"},{"internalType":"uint256","name":"received","type":"uint256"}],"name":"UnexpectedContractVersion","type":"error"},{"inputs":[{"internalType":"uint256","name":"currentModuleExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"currentNodeOpExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"currentNodeOpStuckValidatorsCount","type":"uint256"}],"name":"UnexpectedCurrentValidatorsCount","type":"error"},{"inputs":[],"name":"UnrecoverableModuleError","type":"error"},{"inputs":[{"internalType":"string","name":"field","type":"string"}],"name":"ValueOver100Percent","type":"error"},{"inputs":[{"internalType":"string","name":"field","type":"string"}],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"}],"name":"ContractVersionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"lowLevelRevertData","type":"bytes"}],"name":"ExitedAndStuckValidatorsCountsUpdateFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"lowLevelRevertData","type":"bytes"}],"name":"RewardsMintedReportFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"stakingModule","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"createdBy","type":"address"}],"name":"StakingModuleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unreportedExitedValidatorsCount","type":"uint256"}],"name":"StakingModuleExitedValidatorsIncompleteReporting","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakingModuleFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryFee","type":"uint256"},{"indexed":false,"internalType":"address","name":"setBy","type":"address"}],"name":"StakingModuleFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"enum StakingRouter.StakingModuleStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"address","name":"setBy","type":"address"}],"name":"StakingModuleStatusSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"targetShare","type":"uint256"},{"indexed":false,"internalType":"address","name":"setBy","type":"address"}],"name":"StakingModuleTargetShareSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakingRouterETHDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"withdrawalCredentials","type":"bytes32"},{"indexed":false,"internalType":"address","name":"setBy","type":"address"}],"name":"WithdrawalCredentialsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"stakingModuleId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"lowLevelRevertData","type":"bytes"}],"name":"WithdrawalsCredentialsChangeFailed","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSIT_CONTRACT","outputs":[{"internalType":"contract IDepositContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_PRECISION_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGE_WITHDRAWAL_CREDENTIALS_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STAKING_MODULES_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STAKING_MODULE_NAME_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REPORT_EXITED_VALIDATORS_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REPORT_REWARDS_MINTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_MODULE_MANAGE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_MODULE_PAUSE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_MODULE_RESUME_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNSAFE_SET_EXITED_VALIDATORS_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_stakingModuleAddress","type":"address"},{"internalType":"uint256","name":"_targetShare","type":"uint256"},{"internalType":"uint256","name":"_stakingModuleFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"addStakingModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositsCount","type":"uint256"},{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"bytes","name":"_depositCalldata","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getAllNodeOperatorDigests","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"},{"components":[{"internalType":"bool","name":"isTargetLimitActive","type":"bool"},{"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"refundedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckPenaltyEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.NodeOperatorSummary","name":"summary","type":"tuple"}],"internalType":"struct StakingRouter.NodeOperatorDigest[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllStakingModuleDigests","outputs":[{"components":[{"internalType":"uint256","name":"nodeOperatorsCount","type":"uint256"},{"internalType":"uint256","name":"activeNodeOperatorsCount","type":"uint256"},{"components":[{"internalType":"uint24","name":"id","type":"uint24"},{"internalType":"address","name":"stakingModuleAddress","type":"address"},{"internalType":"uint16","name":"stakingModuleFee","type":"uint16"},{"internalType":"uint16","name":"treasuryFee","type":"uint16"},{"internalType":"uint16","name":"targetShare","type":"uint16"},{"internalType":"uint8","name":"status","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint64","name":"lastDepositAt","type":"uint64"},{"internalType":"uint256","name":"lastDepositBlock","type":"uint256"},{"internalType":"uint256","name":"exitedValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModule","name":"state","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModuleSummary","name":"summary","type":"tuple"}],"internalType":"struct StakingRouter.StakingModuleDigest[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositsCount","type":"uint256"}],"name":"getDepositsAllocation","outputs":[{"internalType":"uint256","name":"allocated","type":"uint256"},{"internalType":"uint256[]","name":"allocations","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLido","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256[]","name":"_nodeOperatorIds","type":"uint256[]"}],"name":"getNodeOperatorDigests","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"},{"components":[{"internalType":"bool","name":"isTargetLimitActive","type":"bool"},{"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"refundedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckPenaltyEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.NodeOperatorSummary","name":"summary","type":"tuple"}],"internalType":"struct StakingRouter.NodeOperatorDigest[]","name":"digests","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"getNodeOperatorDigests","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"},{"components":[{"internalType":"bool","name":"isTargetLimitActive","type":"bool"},{"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"refundedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckPenaltyEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.NodeOperatorSummary","name":"summary","type":"tuple"}],"internalType":"struct StakingRouter.NodeOperatorDigest[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_nodeOperatorId","type":"uint256"}],"name":"getNodeOperatorSummary","outputs":[{"components":[{"internalType":"bool","name":"isTargetLimitActive","type":"bool"},{"internalType":"uint256","name":"targetValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"refundedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"stuckPenaltyEndTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.NodeOperatorSummary","name":"summary","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingFeeAggregateDistribution","outputs":[{"internalType":"uint96","name":"modulesFee","type":"uint96"},{"internalType":"uint96","name":"treasuryFee","type":"uint96"},{"internalType":"uint256","name":"basePrecision","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingFeeAggregateDistributionE4Precision","outputs":[{"internalType":"uint16","name":"modulesFee","type":"uint16"},{"internalType":"uint16","name":"treasuryFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModule","outputs":[{"components":[{"internalType":"uint24","name":"id","type":"uint24"},{"internalType":"address","name":"stakingModuleAddress","type":"address"},{"internalType":"uint16","name":"stakingModuleFee","type":"uint16"},{"internalType":"uint16","name":"treasuryFee","type":"uint16"},{"internalType":"uint16","name":"targetShare","type":"uint16"},{"internalType":"uint8","name":"status","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint64","name":"lastDepositAt","type":"uint64"},{"internalType":"uint256","name":"lastDepositBlock","type":"uint256"},{"internalType":"uint256","name":"exitedValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleActiveValidatorsCount","outputs":[{"internalType":"uint256","name":"activeValidatorsCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakingModuleIds","type":"uint256[]"}],"name":"getStakingModuleDigests","outputs":[{"components":[{"internalType":"uint256","name":"nodeOperatorsCount","type":"uint256"},{"internalType":"uint256","name":"activeNodeOperatorsCount","type":"uint256"},{"components":[{"internalType":"uint24","name":"id","type":"uint24"},{"internalType":"address","name":"stakingModuleAddress","type":"address"},{"internalType":"uint16","name":"stakingModuleFee","type":"uint16"},{"internalType":"uint16","name":"treasuryFee","type":"uint16"},{"internalType":"uint16","name":"targetShare","type":"uint16"},{"internalType":"uint8","name":"status","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint64","name":"lastDepositAt","type":"uint64"},{"internalType":"uint256","name":"lastDepositBlock","type":"uint256"},{"internalType":"uint256","name":"exitedValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModule","name":"state","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModuleSummary","name":"summary","type":"tuple"}],"internalType":"struct StakingRouter.StakingModuleDigest[]","name":"digests","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingModuleIds","outputs":[{"internalType":"uint256[]","name":"stakingModuleIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleIsDepositsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleIsStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleLastDepositBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_maxDepositsValue","type":"uint256"}],"name":"getStakingModuleMaxDepositsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleStatus","outputs":[{"internalType":"enum StakingRouter.StakingModuleStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"getStakingModuleSummary","outputs":[{"components":[{"internalType":"uint256","name":"totalExitedValidators","type":"uint256"},{"internalType":"uint256","name":"totalDepositedValidators","type":"uint256"},{"internalType":"uint256","name":"depositableValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModuleSummary","name":"summary","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingModules","outputs":[{"components":[{"internalType":"uint24","name":"id","type":"uint24"},{"internalType":"address","name":"stakingModuleAddress","type":"address"},{"internalType":"uint16","name":"stakingModuleFee","type":"uint16"},{"internalType":"uint16","name":"treasuryFee","type":"uint16"},{"internalType":"uint16","name":"targetShare","type":"uint16"},{"internalType":"uint8","name":"status","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint64","name":"lastDepositAt","type":"uint64"},{"internalType":"uint256","name":"lastDepositBlock","type":"uint256"},{"internalType":"uint256","name":"exitedValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.StakingModule[]","name":"res","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingModulesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingRewardsDistribution","outputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"stakingModuleIds","type":"uint256[]"},{"internalType":"uint96[]","name":"stakingModuleFees","type":"uint96[]"},{"internalType":"uint96","name":"totalFee","type":"uint96"},{"internalType":"uint256","name":"precisionPoints","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalFeeE4Precision","outputs":[{"internalType":"uint16","name":"totalFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawalCredentials","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"hasStakingModule","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_lido","type":"address"},{"internalType":"bytes32","name":"_withdrawalCredentials","type":"bytes32"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onValidatorsCountsByNodeOperatorReportingFinished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"pauseStakingModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakingModuleIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_totalShares","type":"uint256[]"}],"name":"reportRewardsMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"bytes","name":"_nodeOperatorIds","type":"bytes"},{"internalType":"bytes","name":"_exitedValidatorsCounts","type":"bytes"}],"name":"reportStakingModuleExitedValidatorsCountByNodeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"bytes","name":"_nodeOperatorIds","type":"bytes"},{"internalType":"bytes","name":"_stuckValidatorsCounts","type":"bytes"}],"name":"reportStakingModuleStuckValidatorsCountByNodeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"}],"name":"resumeStakingModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"enum StakingRouter.StakingModuleStatus","name":"_status","type":"uint8"}],"name":"setStakingModuleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_withdrawalCredentials","type":"bytes32"}],"name":"setWithdrawalCredentials","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_nodeOperatorId","type":"uint256"},{"internalType":"bool","name":"_triggerUpdateFinish","type":"bool"},{"components":[{"internalType":"uint256","name":"currentModuleExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"currentNodeOperatorExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"currentNodeOperatorStuckValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"newModuleExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"newNodeOperatorExitedValidatorsCount","type":"uint256"},{"internalType":"uint256","name":"newNodeOperatorStuckValidatorsCount","type":"uint256"}],"internalType":"struct StakingRouter.ValidatorsCountsCorrection","name":"_correction","type":"tuple"}],"name":"unsafeSetExitedValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakingModuleIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_exitedValidatorsCounts","type":"uint256[]"}],"name":"updateExitedValidatorsCountByStakingModule","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_nodeOperatorId","type":"uint256"},{"internalType":"uint256","name":"_refundedValidatorsCount","type":"uint256"}],"name":"updateRefundedValidatorsCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_targetShare","type":"uint256"},{"internalType":"uint256","name":"_stakingModuleFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"updateStakingModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingModuleId","type":"uint256"},{"internalType":"uint256","name":"_nodeOperatorId","type":"uint256"},{"internalType":"bool","name":"_isTargetLimitActive","type":"bool"},{"internalType":"uint256","name":"_targetLimit","type":"uint256"}],"name":"updateTargetValidatorsLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}] \ No newline at end of file diff --git a/internal/lido/contracts/staking_router/StakingRouter.bin b/internal/lido/contracts/staking_router/StakingRouter.bin new file mode 100644 index 000000000..2f90b4773 --- /dev/null +++ b/internal/lido/contracts/staking_router/StakingRouter.bin @@ -0,0 +1 @@ +60a06040523480156200001157600080fd5b5060405162006098380380620060988339810160408190526200003491620000ae565b806001600160a01b0381166200005d57604051637c5f8bcf60e11b815260040160405180910390fd5b6001600160a01b0316608052620000a37f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a6600019620000aa602090811b6200374a17901c565b50620000e0565b9055565b600060208284031215620000c157600080fd5b81516001600160a01b0381168114620000d957600080fd5b9392505050565b608051615f9562000103600039600081816107540152613d220152615f956000f3fe6080604052600436106103d25760003560e01c80639010d07c116101fd578063c82b1bb111610118578063e016e6f7116100ab578063efcdcc0e1161007a578063efcdcc0e14610c4a578063f07ff28a14610c7a578063f2aebb6514610c9a578063f8bb6d4214610cbc578063fa5093eb14610cdc57600080fd5b8063e016e6f714610bc8578063e1b92a5c14610bea578063e24ce9f114610c0a578063e97ee8cc14610c2a57600080fd5b8063d0a2b1b8116100e7578063d0a2b1b814610b53578063d547741f14610b73578063d861c58414610b93578063db3c7ba714610bb357600080fd5b8063c82b1bb114610ac5578063c8ac498014610af3578063ca15c87314610b13578063cb589b9a14610b3357600080fd5b8063a7357c8c11610190578063af1240971161015f578063af12409714610a30578063ba21ccae14610a50578063bc1bb19014610a76578063c445ea7514610aa357600080fd5b8063a7357c8c1461099d578063aa0b7db7146109d0578063aa5a1b9d146109e3578063abd44a2414610a1057600080fd5b80639fbb7bae116101cc5780639fbb7bae146108e55780639fc5a6ed1461090d578063a217fddf1461093a578063a734329c1461094f57600080fd5b80639010d07c1461087057806391d148541461089057806396b5d81c146108b05780639b75b4ef146108d057600080fd5b806356396715116102ed5780636b96736b116102805780638525e3a11161024f5780638525e3a1146107e75780638801da79146108075780638aa104351461083b5780638dc70c571461085057600080fd5b80636b96736b146107425780637443f523146107765780637a74884d146107965780637c8da51c146107ca57600080fd5b80636183214d116102bc5780636183214d146106b35780636608b11b146106d55780636a516b47146106f55780636ada55b91461072257600080fd5b8063563967151461063c57806357993b85146106515780635bf55e40146106735780636133f9851461069357600080fd5b8063271662ec116103655780633e54ee5b116103345780633e54ee5b146105d2578063473e0433146105f25780634a7583b6146106125780634b3a1cb71461062757600080fd5b8063271662ec1461054f5780632f2ff15d146105655780633240a3221461058557806336568abe146105b257600080fd5b80631565d2f2116103a15780631565d2f2146104a757806319c64b79146104db5780631d1b9d3c146104fb578063248a9ca31461052f57600080fd5b806301ffc9a7146103f55780630519fbbf1461042a578063072859c71461045857806307e203ac1461047a57600080fd5b366103f0576040516309fb455960e41b815260040160405180910390fd5b600080fd5b34801561040157600080fd5b50610415610410366004614e4f565b610d17565b60405190151581526020015b60405180910390f35b34801561043657600080fd5b5061044a610445366004614e79565b610d42565b604051908152602001610421565b34801561046457600080fd5b50610478610473366004614f0e565b610dbd565b005b34801561048657600080fd5b5061049a610495366004614e79565b610fcc565b6040516104219190614fa3565b3480156104b357600080fd5b5061044a7f55180e25fcacf9af017d35d497765476319b23896daa1f9bc2b38fa80b36a16381565b3480156104e757600080fd5b5061044a6104f6366004614fc4565b61108b565b34801561050757600080fd5b5061044a7f779e5c23cb7a5bcb9bfe1e9a5165a00057f12bcdfd13e374540fdf1a1cd9113781565b34801561053b57600080fd5b5061044a61054a366004614e79565b611108565b34801561055b57600080fd5b5061044a61271081565b34801561057157600080fd5b50610478610580366004615002565b61112a565b34801561059157600080fd5b506105a56105a0366004614e79565b61114c565b604051610421919061507e565b3480156105be57600080fd5b506104786105cd366004615002565b6111e4565b3480156105de57600080fd5b506104786105ed36600461512c565b611262565b3480156105fe57600080fd5b5061044a61060d366004614e79565b611685565b34801561061e57600080fd5b5061044a61169c565b34801561063357600080fd5b5061044a602081565b34801561064857600080fd5b5061044a6116cb565b34801561065d57600080fd5b506106666116f5565b60405161042191906152c6565b34801561067f57600080fd5b5061047861068e366004614e79565b611702565b34801561069f57600080fd5b506104786106ae36600461536b565b611792565b3480156106bf57600080fd5b506106c86118b6565b60405161042191906153a7565b3480156106e157600080fd5b506104156106f0366004614e79565b611a85565b34801561070157600080fd5b5061070a611aaa565b6040516001600160a01b039091168152602001610421565b34801561072e57600080fd5b5061041561073d366004614e79565b611ad4565b34801561074e57600080fd5b5061070a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561078257600080fd5b50610478610791366004615409565b611add565b3480156107a257600080fd5b5061044a7fe7c742a54cd11fc9749a47ab34bdcd7327820908e8d0d48b4a5c7f17b029409881565b3480156107d657600080fd5b5061044a68056bc75e2d6310000081565b3480156107f357600080fd5b506106666108023660046154cb565b611b7d565b34801561081357600080fd5b5061044a7f9a2f67efb89489040f2c48c3b2c38f719fba1276678d2ced3bd9049fb5edc6b281565b34801561084757600080fd5b5061044a611d67565b34801561085c57600080fd5b5061047861086b3660046154ff565b611d91565b34801561087c57600080fd5b5061070a61088b366004614fc4565b611f22565b34801561089c57600080fd5b506104156108ab366004615002565b611f4e565b3480156108bc57600080fd5b5061044a6108cb366004614e79565b611f86565b3480156108dc57600080fd5b5061044a601f81565b3480156108f157600080fd5b506108fa612045565b60405161ffff9091168152602001610421565b34801561091957600080fd5b5061092d610928366004614e79565b612073565b6040516104219190615569565b34801561094657600080fd5b5061044a600081565b34801561095b57600080fd5b5061041561096a366004614e79565b60009081527f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c6020526040902054151590565b3480156109a957600080fd5b5061044a7eb1e70095ba5bacc3202c3db9faf1f7873186f0ed7b6c84e80c0018dcc6e38e81565b6104786109de366004615577565b61209a565b3480156109ef57600080fd5b50610a036109fe366004614fc4565b612300565b60405161042191906155c9565b348015610a1c57600080fd5b5061044a610a2b36600461561c565b61241f565b348015610a3c57600080fd5b50610478610a4b36600461561c565b612679565b348015610a5c57600080fd5b50610a6561284f565b6040516104219594939291906156b6565b348015610a8257600080fd5b50610a96610a91366004614e79565b612bca565b6040516104219190615775565b348015610aaf57600080fd5b5061044a600080516020615f2083398151915281565b348015610ad157600080fd5b50610ae5610ae0366004614e79565b612d0e565b604051610421929190615788565b348015610aff57600080fd5b50610478610b0e3660046157a1565b612d26565b348015610b1f57600080fd5b5061044a610b2e366004614e79565b612dc9565b348015610b3f57600080fd5b50610478610b4e3660046157a1565b612ded565b348015610b5f57600080fd5b50610478610b6e36600461581a565b612e61565b348015610b7f57600080fd5b50610478610b8e366004615002565b612ef6565b348015610b9f57600080fd5b50610478610bae366004614e79565b612f13565b348015610bbf57600080fd5b50610478612fa4565b348015610bd457600080fd5b5061044a600080516020615f4083398151915281565b348015610bf657600080fd5b50610478610c0536600461584e565b613171565b348015610c1657600080fd5b50610415610c25366004614e79565b6131fd565b348015610c3657600080fd5b50610478610c45366004614e79565b613206565b348015610c5657600080fd5b50610c5f6133c5565b6040805161ffff938416815292909116602083015201610421565b348015610c8657600080fd5b506105a5610c9536600461587a565b61340c565b348015610ca657600080fd5b50610caf6135a0565b60405161042191906158c0565b348015610cc857600080fd5b506105a5610cd736600461584e565b613636565b348015610ce857600080fd5b50610cf16136d8565b604080516001600160601b03948516815293909216602084015290820152606001610421565b60006001600160e01b03198216635a05180f60e01b1480610d3c5750610d3c8261374e565b92915050565b6000610d4d82613783565b6001600160a01b031663d087d2886040518163ffffffff1660e01b815260040160206040518083038186803b158015610d8557600080fd5b505afa158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c91906158d3565b7f55180e25fcacf9af017d35d497765476319b23896daa1f9bc2b38fa80b36a163610de881336137a5565b6000610df386613809565b8054604051632cc1db0f60e21b815260048101889052919250630100000090046001600160a01b0316906000908190839063b3076c3c906024016101006040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e91906158ec565b5050955050509350505083600401548660000151141580610ea3575080866020015114155b80610eb2575081866040015114155b15610ee95760048481015460405163e882688560e01b81529182015260248101829052604481018390526064015b60405180910390fd5b6060860151600480860191909155608087015160a088015160405163f2e2ca6360e01b81529283018b9052602483019190915260448201526001600160a01b0384169063f2e2ca6390606401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b505050508615610fc157826001600160a01b031663e864299e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b505050505b505050505050505050565b610ff060405180606001604052806000815260200160008152602001600081525090565b6000610ffb83612bca565b9050600081602001519050806001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561103f57600080fd5b505afa158015611053573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110779190615956565b604086015260208501528352509092915050565b600080806110aa6110a56801bc16d674ec800000866159b0565b61381c565b925092505060006110ba866139e1565b90508181815181106110ce576110ce6159c4565b602002602001015160c001518382815181106110ec576110ec6159c4565b60200260200101516110fe91906159da565b9695505050505050565b6000908152600080516020615f00833981519152602052604090206001015490565b61113382611108565b61113d81336137a5565b6111478383613a3a565b505050565b6060600061115983613783565b90506000816001600160a01b031663a70c70e46040518163ffffffff1660e01b815260040160206040518083038186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ce91906158d3565b90506111dc84600083613636565b949350505050565b6001600160a01b03811633146112545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ee0565b61125e8282613a69565b5050565b600080516020615f4083398151915261127b81336137a5565b6127108411156112bd57604051630cb4392560e31b815260206004820152600c60248201526b5f746172676574536861726560a01b6044820152606401610ee0565b6127106112ca83856159f1565b111561131957604051630cb4392560e31b815260206004820181905260248201527f5f7374616b696e674d6f64756c65466565202b205f74726561737572794665656044820152606401610ee0565b6001600160a01b0385166113685760405163eac0d38960e01b81526020600482015260156024820152745f7374616b696e674d6f64756c654164647265737360581b6044820152606401610ee0565b8515806113755750601f86115b156113935760405163ac18716960e01b815260040160405180910390fd5b600061139d61169c565b9050602081106113c05760405163309eed9960e01b815260040160405180910390fd5b60005b81811015611410576113d481613a98565b546001600160a01b0388811663010000009092041614156114085760405163050f969d60e41b815260040160405180910390fd5b6001016113c3565b50600061141c82613a98565b905060006114487ff9a85ae945d8134f58bd2ee028636634dcb9e812798acb5c806bf1951232a2255490565b611453906001615a09565b825462ffffff191662ffffff82161783559050611474600183018b8b614c69565b508154630100000065ffff0000000160b81b03191663010000006001600160a01b038a160261ffff60d81b191617600160d81b61ffff898116919091029190911763ffffffff60b81b1916600160b81b8883160261ffff60c81b191617600160c81b918716919091021760ff60e81b1916825560028201805467ffffffffffffffff1916426001600160401b03161790554360038301556040805160008152905162ffffff8316917f9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c0919081900360200190a26115568162ffffff1684613ac8565b62ffffff81167ff9a85ae945d8134f58bd2ee028636634dcb9e812798acb5c806bf1951232a225556115b061158c8460016159f1565b7f1b3ef9db2d6f0727a31622833b45264c21051726d23ddb6f73b3b65628cafcc355565b8062ffffff167f43b5213f0e1666cd0b8692a73686164c94deb955a59c65e10dee8bb958e7ce3e898c8c336040516115eb9493929190615a59565b60405180910390a26040805188815233602082015262ffffff8316917f065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c910160405180910390a260408051878152602081018790523381830152905162ffffff8316917f303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410919081900360600190a250505050505050505050565b60008061169183613809565b600301549392505050565b60006116c67f1b3ef9db2d6f0727a31622833b45264c21051726d23ddb6f73b3b65628cafcc35490565b905090565b60006116c67fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c05490565b60606116c66108026135a0565b7eb1e70095ba5bacc3202c3db9faf1f7873186f0ed7b6c84e80c0018dcc6e38e61172c81336137a5565b600061173783613809565b905060008154600160e81b900460ff16600281111561175857611758615531565b600281111561176957611769615531565b146117875760405163322e64fb60e11b815260040160405180910390fd5b611147816001613b0b565b6001600160a01b0383166117d25760405163eac0d38960e01b81526020600482015260066024820152652fb0b236b4b760d11b6044820152606401610ee0565b6001600160a01b0382166118115760405163eac0d38960e01b81526020600482015260056024820152645f6c69646f60d81b6044820152606401610ee0565b61181b6001613bce565b611826600084613c00565b61184f7f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e5531839055565b6118787fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c0829055565b604080518281523360208201527f82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c91015b60405180910390a1505050565b606060006118c261169c565b9050806001600160401b038111156118dc576118dc614ea0565b60405190808252806020026020018201604052801561191557816020015b611902614ced565b8152602001906001900390816118fa5790505b50915060005b81811015611a805761192c81613a98565b6040805161014081018252825462ffffff81168252630100000081046001600160a01b03166020830152600160b81b810461ffff90811693830193909352600160c81b810483166060830152600160d81b81049092166080820152600160e81b90910460ff1660a082015260018201805491929160c0840191906119af90615a90565b80601f01602080910402602001604051908101604052809291908181526020018280546119db90615a90565b8015611a285780601f106119fd57610100808354040283529160200191611a28565b820191906000526020600020905b815481529060010190602001808311611a0b57829003601f168201915b505050918352505060028201546001600160401b03166020820152600382015460408201526004909101546060909101528351849083908110611a6d57611a6d6159c4565b602090810291909101015260010161191b565b505090565b6000805b611a9283612073565b6002811115611aa357611aa3615531565b1492915050565b60006116c67f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e55315490565b60006002611a89565b600080516020615f40833981519152611af681336137a5565b6000611b0186613809565b546040516354f3d42360e11b81526004810187905285151560248201526044810185905263010000009091046001600160a01b03169150819063a9e7a84690606401600060405180830381600087803b158015611b5d57600080fd5b505af1158015611b71573d6000803e3d6000fd5b50505050505050505050565b606081516001600160401b03811115611b9857611b98614ea0565b604051908082528060200260200182016040528015611bd157816020015b611bbe614d40565b815260200190600190039081611bb65790505b50905060005b8251811015611d61576000611c04848381518110611bf757611bf76159c4565b6020026020010151612bca565b90506000816020015190506040518060800160405280826001600160a01b031663a70c70e46040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5357600080fd5b505afa158015611c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8b91906158d3565b8152602001826001600160a01b0316638469cbd36040518163ffffffff1660e01b815260040160206040518083038186803b158015611cc957600080fd5b505afa158015611cdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0191906158d3565b8152602001838152602001611d2e878681518110611d2157611d216159c4565b6020026020010151610fcc565b815250848481518110611d4357611d436159c4565b6020026020010181905250505080611d5a90615ac5565b9050611bd7565b50919050565b60006116c67f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a65490565b600080516020615f40833981519152611daa81336137a5565b612710841115611dec57604051630cb4392560e31b815260206004820152600c60248201526b5f746172676574536861726560a01b6044820152606401610ee0565b612710611df983856159f1565b1115611e4857604051630cb4392560e31b815260206004820181905260248201527f5f7374616b696e674d6f64756c65466565202b205f74726561737572794665656044820152606401610ee0565b6000611e5386613809565b805463ffffffff60c81b1916600160d81b61ffff8881169190910261ffff60c81b191691909117600160c81b868316021761ffff60b81b1916600160b81b918716919091021781556040805187815233602082015291925087917f065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c910160405180910390a260408051858152602081018590523381830152905187917f303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410919081900360600190a2505050505050565b6000828152600080516020615ee083398151915260205260408120611f479083613c0a565b9392505050565b6000918252600080516020615f00833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080611f9283613809565b90506000808260000160039054906101000a90046001600160a01b03166001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b158015611fe757600080fd5b505afa158015611ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201f9190615956565b5091509150612032836004015483613c16565b61203c90826159da565b95945050505050565b600080600061205261284f565b9450945050505061206c826001600160601b031682613c2c565b9250505090565b600061207e82613809565b54600160e81b900460ff166002811115610d3c57610d3c615531565b7f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e5531546001600160a01b0316336001600160a01b0316146120ed57604051637e71782360e01b815260040160405180910390fd5b60006120f76116cb565b9050806121175760405163180a97cd60e21b815260040160405180910390fd5b600061212285613809565b905060008154600160e81b900460ff16600281111561214357612143615531565b600281111561215457612154615531565b146121725760405163322e64fb60e11b815260040160405180910390fd5b60028101805467ffffffffffffffff1916426001600160401b0316179055436003820155604051348082529086907f9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c09060200160405180910390a26121e06801bc16d674ec80000088615ae0565b81146122095760405163023db95b60e21b81526004810182905260248101889052604401610ee0565b86156122f75781546040516317dc836b60e31b8152600091829163010000009091046001600160a01b03169063bee41b589061224d908c908b908b90600401615aff565b600060405180830381600087803b15801561226757600080fd5b505af115801561227b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a39190810190615b7c565b9150915060004790506122d98a876040516020016122c391815260200190565b6040516020818303038152906040528585613c45565b47846122e582846159da565b146122f2576122f2615bd5565b505050505b50505050505050565b612308614d8f565b600061231384612bca565b9050600081602001519050600080600080600080600080886001600160a01b031663b3076c3c8d6040518263ffffffff1660e01b815260040161235891815260200190565b6101006040518083038186803b15801561237157600080fd5b505afa158015612385573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a991906158ec565b97509750975097509750975097509750878b6000019015159081151581525050868b6020018181525050858b6040018181525050848b6060018181525050838b6080018181525050828b60a0018181525050818b60c0018181525050808b60e00181815250505050505050505050505092915050565b6000600080516020615f2083398151915261243a81336137a5565b8483146124645760405163098b37e560e31b81526004810186905260248101849052604401610ee0565b6000805b8681101561266e576000888883818110612484576124846159c4565b905060200201359050600061249882613809565b6004810154909150808989868181106124b3576124b36159c4565b9050602002013510156124d957604051632f789f4960e21b815260040160405180910390fd5b6000808360000160039054906101000a90046001600160a01b03166001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561252c57600080fd5b505afa158015612540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125649190615956565b5091509150808b8b8881811061257c5761257c6159c4565b9050602002013511156125c7578a8a8781811061259b5761259b6159c4565b9050602002013581604051630b72c59d60e21b8152600401610ee0929190918252602082015260400190565b828b8b888181106125da576125da6159c4565b905060200201356125eb91906159da565b6125f590886159f1565b96508282101561263d57847fdd2523ca96a639ba7e17420698937f71eddd8af012ccb36ff5c8fe96141acae961262b84866159da565b60405190815260200160405180910390a25b8a8a8781811061264f5761264f6159c4565b9050602002013584600401819055508560010195505050505050612468565b509695505050505050565b7f779e5c23cb7a5bcb9bfe1e9a5165a00057f12bcdfd13e374540fdf1a1cd911376126a481336137a5565b8382146126ce5760405163098b37e560e31b81526004810185905260248101839052604401610ee0565b60005b848110156128475760008484838181106126ed576126ed6159c4565b90506020020135111561283f57600061271d878784818110612711576127116159c4565b90506020020135613809565b54630100000090046001600160a01b0316905080638d7e4017868685818110612748576127486159c4565b905060200201356040518263ffffffff1660e01b815260040161276d91815260200190565b600060405180830381600087803b15801561278757600080fd5b505af1925050508015612798575060015b61283d573d8080156127c6576040519150601f19603f3d011682016040523d82523d6000602084013e6127cb565b606091505b5080516127eb57604051638fd297d960e01b815260040160405180910390fd5b8787848181106127fd576127fd6159c4565b905060200201357ff74208fedac7280fd11f8de0be14e00423dc5076da8e8ec8ca90e09257fff1b3826040516128339190615beb565b60405180910390a2505b505b6001016126d1565b505050505050565b6060806060600080600080612862613dc3565b80519193509150801580612874575082155b156128b65750506040805160008082526020820181815282840182815260608401909452919850909650909450925068056bc75e2d631000009150612bc39050565b68056bc75e2d631000009350806001600160401b038111156128da576128da614ea0565b604051908082528060200260200182016040528015612903578160200160208202803683370190505b509650806001600160401b0381111561291e5761291e614ea0565b604051908082528060200260200182016040528015612947578160200160208202803683370190505b509750806001600160401b0381111561296257612962614ea0565b60405190808252806020026020018201604052801561298b578160200160208202803683370190505b5095506000808060005b84811015612b905760008682815181106129b1576129b16159c4565b602002602001015160c001511115612b88578581815181106129d5576129d56159c4565b60200260200101516020015162ffffff168b85815181106129f8576129f86159c4565b6020026020010181815250508688878381518110612a1857612a186159c4565b602002602001015160c00151612a2e9190615ae0565b612a3891906159b0565b9250858181518110612a4c57612a4c6159c4565b6020026020010151600001518c8581518110612a6a57612a6a6159c4565b60200260200101906001600160a01b031690816001600160a01b031681525050612710868281518110612a9f57612a9f6159c4565b60200260200101516040015161ffff1684612aba9190615ae0565b612ac491906159b0565b91506002868281518110612ada57612ada6159c4565b602002602001015160a001516002811115612af757612af7615531565b14612b3057818a8581518110612b0f57612b0f6159c4565b60200260200101906001600160601b031690816001600160601b0316815250505b81612710878381518110612b4657612b466159c4565b60200260200101516060015161ffff1685612b619190615ae0565b612b6b91906159b0565b612b759190615bfe565b612b7f908a615bfe565b98506001909301925b600101612995565b5086886001600160601b03161115612baa57612baa615bd5565b83831015612bbc57828a52828b528289525b5050505050505b9091929394565b612bd2614ced565b612bdb82613809565b6040805161014081018252825462ffffff81168252630100000081046001600160a01b03166020830152600160b81b810461ffff90811693830193909352600160c81b810483166060830152600160d81b81049092166080820152600160e81b90910460ff1660a082015260018201805491929160c084019190612c5e90615a90565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8a90615a90565b8015612cd75780601f10612cac57610100808354040283529160200191612cd7565b820191906000526020600020905b815481529060010190602001808311612cba57829003601f168201915b505050918352505060028201546001600160401b031660208201526003820154604082015260049091015460609091015292915050565b60006060612d1b8361381c565b509094909350915050565b600080516020615f20833981519152612d3f81336137a5565b6000612d4a87613809565b54630100000090046001600160a01b03169050612d6986868686613e91565b604051634d8060a360e11b81526001600160a01b03821690639b00c14690612d9b908990899089908990600401615c20565b600060405180830381600087803b158015612db557600080fd5b505af11580156122f2573d6000803e3d6000fd5b6000818152600080516020615ee083398151915260205260408120610d3c90613f37565b600080516020615f20833981519152612e0681336137a5565b6000612e1187613809565b54630100000090046001600160a01b03169050612e3086868686613e91565b604051629b3d1960e81b81526001600160a01b03821690639b3d190090612d9b908990899089908990600401615c20565b600080516020615f40833981519152612e7a81336137a5565b6000612e8584613809565b9050826002811115612e9957612e99615531565b8154600160e81b900460ff166002811115612eb657612eb6615531565b6002811115612ec757612ec7615531565b1415612ee657604051635ca16fa760e11b815260040160405180910390fd5b612ef08184613b0b565b50505050565b612eff82611108565b612f0981336137a5565b6111478383613a69565b7f9a2f67efb89489040f2c48c3b2c38f719fba1276678d2ced3bd9049fb5edc6b2612f3e81336137a5565b6000612f4983613809565b905060018154600160e81b900460ff166002811115612f6a57612f6a615531565b6002811115612f7b57612f7b615531565b14612f99576040516316c1da1560e21b815260040160405180910390fd5b611147816000613b0b565b600080516020615f20833981519152612fbd81336137a5565b6000612fc761169c565b905060005b81811015611147576000612fdf82613a98565b905060008160000160039054906101000a90046001600160a01b031690506000816001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561303857600080fd5b505afa15801561304c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130709190615956565b50509050826004015481141561316357816001600160a01b031663e864299e6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156130bb57600080fd5b505af19250505080156130cc575060015b613163573d8080156130fa576040519150601f19603f3d011682016040523d82523d6000602084013e6130ff565b606091505b50805161311f57604051638fd297d960e01b815260040160405180910390fd5b835460405162ffffff909116907fe74bf895f0c3a2d6c74c40cbb362fdd9640035fc4226c72e3843809ad2a9d2b590613159908490615beb565b60405180910390a2505b836001019350505050612fcc565b600080516020615f4083398151915261318a81336137a5565b600061319585613809565b5460405163a2e080f160e01b8152600481018690526024810185905263010000009091046001600160a01b03169150819063a2e080f190604401600060405180830381600087803b1580156131e957600080fd5b505af1158015610fc1573d6000803e3d6000fd5b60006001611a89565b7fe7c742a54cd11fc9749a47ab34bdcd7327820908e8d0d48b4a5c7f17b029409861323181336137a5565b61325a7fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c0839055565b600061326461169c565b905060005b8181101561338f57600061327c82613a98565b90508160010191508060000160039054906101000a90046001600160a01b03166001600160a01b03166390c09bdb6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156132d657600080fd5b505af19250505080156132e7575060015b613389573d808015613315576040519150601f19603f3d011682016040523d82523d6000602084013e61331a565b606091505b50805161333a57604051638fd297d960e01b815260040160405180910390fd5b613345826001613b0b565b815460405162ffffff909116907f0d64b11929aa111ca874dd00b5b0cc2d82b741be924ec9e3691e67c71552f6239061337f908490615beb565b60405180910390a2505b50613269565b50604080518481523360208201527f82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c91016118a9565b60008060008060006133d56136d8565b92506001600160601b031692506001600160601b031692506133f78382613c2c565b94506134038282613c2c565b93505050509091565b6060600061341984613783565b905082516001600160401b0381111561343457613434614ea0565b60405190808252806020026020018201604052801561346d57816020015b61345a614dd6565b8152602001906001900390816134525790505b50915060005b8351811015613598576040518060600160405280858381518110613499576134996159c4565b60200260200101518152602001836001600160a01b0316635e2fb9088785815181106134c7576134c76159c4565b60200260200101516040518263ffffffff1660e01b81526004016134ed91815260200190565b60206040518083038186803b15801561350557600080fd5b505afa158015613519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353d9190615c52565b151581526020016135678787858151811061355a5761355a6159c4565b6020026020010151612300565b81525083828151811061357c5761357c6159c4565b60200260200101819052508061359190615ac5565b9050613473565b505092915050565b606060006135ac61169c565b9050806001600160401b038111156135c6576135c6614ea0565b6040519080825280602002602001820160405280156135ef578160200160208202803683370190505b50915060005b81811015611a805761360681613a98565b54835162ffffff90911690849083908110613623576136236159c4565b60209081029190910101526001016135f5565b6060600061364385613783565b604051634febc81b60e01b815260048101869052602481018590529091506000906001600160a01b03831690634febc81b9060440160006040518083038186803b15801561369057600080fd5b505afa1580156136a4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136cc9190810190615c6f565b90506110fe868261340c565b6000806000606060006136e961284f565b9650909450925060009150505b825181101561373657828181518110613711576137116159c4565b6020026020010151866137249190615bfe565b955061372f81615ac5565b90506136f6565b506137418582615cf4565b93505050909192565b9055565b60006001600160e01b03198216637965db0b60e01b1480610d3c57506301ffc9a760e01b6001600160e01b0319831614610d3c565b600061378e82613809565b54630100000090046001600160a01b031692915050565b6137af8282611f4e565b61125e576137c7816001600160a01b03166014613f41565b6137d2836020613f41565b6040516020016137e3929190615d1c565b60408051601f198184030181529082905262461bcd60e51b8252610ee091600401615beb565b6000610d3c613817836139e1565b613a98565b6000606080600061382b613dc3565b8051909350909150806001600160401b0381111561384b5761384b614ea0565b604051908082528060200260200182016040528015613874578160200160208202803683370190505b50935080156139d85761388786836159f1565b91506000816001600160401b038111156138a3576138a3614ea0565b6040519080825280602002602001820160405280156138cc578160200160208202803683370190505b5090506000805b838110156139c7578581815181106138ed576138ed6159c4565b602002602001015160c0015187828151811061390b5761390b6159c4565b6020026020010181815250506127108587838151811061392d5761392d6159c4565b60200260200101516080015161ffff166139479190615ae0565b61395191906159b0565b91506139a282878381518110613969576139696159c4565b602002602001015160e00151888481518110613987576139876159c4565b602002602001015160c0015161399d91906159f1565b6140dc565b8382815181106139b4576139b46159c4565b60209081029190910101526001016138d3565b506139d386838a6140eb565b965050505b50509193909250565b60008181527f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c6020819052604082205480613a2f57604051636a0eb14160e11b815260040160405180910390fd5b6111dc6001826159da565b613a448282614130565b6000828152600080516020615ee08339815191526020526040902061114790826141a6565b613a7382826141bb565b6000828152600080516020615ee083398151915260205260409020611147908261422f565b60009081527f1d2f69fc9b5fe89d7414bf039e8d897c4c487c7603d80de6bcdd2868466f94766020526040902090565b7f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c613af48260016159f1565b600093845260209190915260409092209190915550565b8154600090600160e81b900460ff166002811115613b2b57613b2b615531565b9050816002811115613b3f57613b3f615531565b816002811115613b5157613b51615531565b1461114757816002811115613b6857613b68615531565b835460ff91909116600160e81b0260ff60e81b1982168117855560405162ffffff9182169190921617907ffd6f15fb2b48a21a60fe3d44d3c3a0433ca01e121b5124a63ec45c30ad925a1790613bc19085903390615d91565b60405180910390a2505050565b613bd6611d67565b15613bf45760405163184e52a160e21b815260040160405180910390fd5b613bfd81614244565b50565b61125e8282613a3a565b6000611f4783836142a3565b6000818311613c255781611f47565b5090919050565b600081613c3b61271085615ae0565b611f4791906159b0565b613c50846030615ae0565b825114613c86578151613c64856030615ae0565b6040516346b38e7960e11b815260048101929092526024820152604401610ee0565b613c91846060615ae0565b815114613cc7578051613ca5856060615ae0565b604051633c11c1f760e21b815260048101929092526024820152604401610ee0565b6000613cd360306142cd565b90506000613ce160606142cd565b905060005b868110156122f757613d078584613cfe603085615ae0565b600060306142e6565b613d208483613d17606085615ae0565b600060606142e6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663228951186801bc16d674ec800000858986613d678c8a8a61436d565b6040518663ffffffff1660e01b8152600401613d869493929190615db7565b6000604051808303818588803b158015613d9f57600080fd5b505af1158015613db3573d6000803e3d6000fd5b5050505050806001019050613ce6565b600060606000613dd161169c565b9050806001600160401b03811115613deb57613deb614ea0565b604051908082528060200260200182016040528015613e2457816020015b613e11614df5565b815260200190600190039081613e095790505b50915060005b81811015613e8b57613e3b816146e8565b838281518110613e4d57613e4d6159c4565b6020026020010181905250828181518110613e6a57613e6a6159c4565b602002602001015160c0015184613e8191906159f1565b9350600101613e2a565b50509091565b613e9c600884615e02565b151580613eb25750613eaf601082615e02565b15155b15613ed3576040516363209a7d60e11b815260036004820152602401610ee0565b6000613ee06008856159b0565b905080613eee6010846159b0565b14613f0f576040516363209a7d60e11b815260026004820152602401610ee0565b80613f30576040516363209a7d60e11b815260016004820152602401610ee0565b5050505050565b6000610d3c825490565b60606000613f50836002615ae0565b613f5b9060026159f1565b6001600160401b03811115613f7257613f72614ea0565b6040519080825280601f01601f191660200182016040528015613f9c576020820181803683370190505b509050600360fc1b81600081518110613fb757613fb76159c4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613fe657613fe66159c4565b60200101906001600160f81b031916908160001a905350600061400a846002615ae0565b6140159060016159f1565b90505b600181111561408d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614049576140496159c4565b1a60f81b82828151811061405f5761405f6159c4565b60200101906001600160f81b031916908160001a90535060049490941c9361408681615e16565b9050614018565b508315611f475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ee0565b6000818310613c255781611f47565b6000805b828210156141285761410b858561410685876159da565b614867565b90508061411757614128565b61412181836159f1565b91506140ef565b509392505050565b61413a8282611f4e565b61125e576000828152600080516020615f00833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000611f47836001600160a01b038416614aa5565b6141c58282611f4e565b1561125e576000828152600080516020615f00833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611f47836001600160a01b038416614af4565b61426d7f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a6829055565b6040518181527ffddcded6b4f4730c226821172046b48372d3cd963c159701ae1b7c3bcac541bb9060200160405180910390a150565b60008260000182815481106142ba576142ba6159c4565b9060005260206000200154905092915050565b60408051828152603f92810192909201601f1916905290565b84516142f282856159f1565b1115801561430a5750835161430782846159f1565b11155b6143565760405162461bcd60e51b815260206004820152601960248201527f42595445535f41525241595f4f55545f4f465f424f554e4453000000000000006044820152606401610ee0565b6020838601810190838601016122f7828285614be7565b60008061437a60406142cd565b9050600061439261438d604060606159da565b6142cd565b90506143a3848360008060406142e6565b6143bc8482604060006143b78260606159da565b6142e6565b6000600286600060801b6040516020016143d7929190615e2d565b60408051601f19818403018152908290526143f191615e65565b602060405180830381855afa15801561440e573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061443191906158d3565b90506000600280856040516020016144499190615e65565b60408051601f198184030181529082905261446391615e65565b602060405180830381855afa158015614480573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906144a391906158d3565b6040516002906144ba908790600090602001615e81565b60408051601f19818403018152908290526144d491615e65565b602060405180830381855afa1580156144f1573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061451491906158d3565b60408051602081019390935282015260600160408051601f198184030181529082905261454091615e65565b602060405180830381855afa15801561455d573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061458091906158d3565b9050600280838a604051602001614598929190615ea3565b60408051601f19818403018152908290526145b291615e65565b602060405180830381855afa1580156145cf573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906145f291906158d3565b60408051634059730760d81b60208201526000602882015290810184905260029060600160408051601f198184030181529082905261463091615e65565b602060405180830381855afa15801561464d573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061467091906158d3565b60408051602081019390935282015260600160408051601f198184030181529082905261469c91615e65565b602060405180830381855afa1580156146b9573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906146dc91906158d3565b98975050505050505050565b6146f0614df5565b60006146fb83613a98565b80546001600160a01b036301000000820416845262ffffff8116602085015261ffff600160b81b820481166040860152600160c81b820481166060860152600160d81b820416608085015290915060ff600160e81b90910416600281111561476557614765615531565b8260a00190600281111561477b5761477b615531565b9081600281111561478e5761478e615531565b81525050600080600084600001516001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b1580156147d457600080fd5b505afa1580156147e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061480c9190615956565b9194509250905060008560a00151600281111561482b5761482b615531565b14614837576000614839565b805b60e0860152600484015461484e908490613c16565b61485890836159da565b60c08601525092949350505050565b825160009060001982846148815760009350505050611f47565b60005b87518110156149535786818151811061489f5761489f6159c4565b60200260200101518882815181106148b9576148b96159c4565b6020026020010151106148cb57614943565b8781815181106148dd576148dd6159c4565b60200260200101518311156149145780935060019150878181518110614905576149056159c4565b60200260200101519250614943565b878181518110614926576149266159c4565b6020026020010151831415614943576149406001836159f1565b91505b61494c81615ac5565b9050614884565b50806149655760009350505050611f47565b60001960005b8851811015614a2457878181518110614986576149866159c4565b60200260200101518982815181106149a0576149a06159c4565b6020026020010151106149b257614a14565b838982815181106149c5576149c56159c4565b60200260200101511180156149f25750818982815181106149e8576149e86159c4565b6020026020010151105b15614a1457888181518110614a0957614a096159c4565b602002602001015191505b614a1d81615ac5565b905061496b565b50614a6e60018311614a365786614a40565b614a408784614c32565b84614a64848b8981518110614a5757614a576159c4565b60200260200101516140dc565b61399d91906159da565b945084888581518110614a8357614a836159c4565b60200260200101818151614a9791906159f1565b905250505050509392505050565b6000818152600183016020526040812054614aec57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d3c565b506000610d3c565b60008181526001830160205260408120548015614bdd576000614b186001836159da565b8554909150600090614b2c906001906159da565b9050818114614b91576000866000018281548110614b4c57614b4c6159c4565b9060005260206000200154905080876000018481548110614b6f57614b6f6159c4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080614ba257614ba2615ec9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610d3c565b6000915050610d3c565b5b601f811115614c08578251825260209283019290910190601f1901614be8565b80156111475782518251600019600160086020869003021b01908116901991909116178252505050565b60008215614c605781614c466001856159da565b614c5091906159b0565b614c5b9060016159f1565b611f47565b50600092915050565b828054614c7590615a90565b90600052602060002090601f016020900481019282614c975760008555614cdd565b82601f10614cb05782800160ff19823516178555614cdd565b82800160010185558215614cdd579182015b82811115614cdd578235825591602001919060010190614cc2565b50614ce9929150614e3a565b5090565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260e08101829052610100810182905261012081019190915290565b60405180608001604052806000815260200160008152602001614d61614ced565b8152602001614d8a60405180606001604052806000815260200160008152602001600081525090565b905290565b604051806101000160405280600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160608101825260008082526020820152908101614d8a614d8f565b604080516101008101825260008082526020820181905291810182905260608101829052608081018290529060a0820190815260200160008152602001600081525090565b5b80821115614ce95760008155600101614e3b565b600060208284031215614e6157600080fd5b81356001600160e01b031981168114611f4757600080fd5b600060208284031215614e8b57600080fd5b5035919050565b8015158114613bfd57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715614ed857614ed8614ea0565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614f0657614f06614ea0565b604052919050565b600080600080848603610120811215614f2657600080fd5b85359450602086013593506040860135614f3f81614e92565b925060c0605f1982011215614f5357600080fd5b50614f5c614eb6565b606086013581526080860135602082015260a0860135604082015260c0860135606082015260e0860135608082015261010086013560a08201528091505092959194509250565b81518152602080830151908201526040808301519082015260608101610d3c565b60008060408385031215614fd757600080fd5b50508035926020909101359150565b80356001600160a01b0381168114614ffd57600080fd5b919050565b6000806040838503121561501557600080fd5b8235915061502560208401614fe6565b90509250929050565b8051151582526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301525050565b602080825282518282018190526000919060409081850190868401855b828110156150d757815180518552868101511515878601528501516150c28686018261502e565b5061014093909301929085019060010161509b565b5091979650505050505050565b60008083601f8401126150f657600080fd5b5081356001600160401b0381111561510d57600080fd5b60208301915083602082850101111561512557600080fd5b9250929050565b60008060008060008060a0878903121561514557600080fd5b86356001600160401b0381111561515b57600080fd5b61516789828a016150e4565b909750955061517a905060208801614fe6565b93506040870135925060608701359150608087013590509295509295509295565b60005b838110156151b657818101518382015260200161519e565b83811115612ef05750506000910152565b600081518084526151df81602086016020860161519b565b601f01601f19169290920160200192915050565b805162ffffff1682526000610140602083015161521b60208601826001600160a01b03169052565b506040830151615231604086018261ffff169052565b506060830151615247606086018261ffff169052565b50608083015161525d608086018261ffff169052565b5060a083015161527260a086018260ff169052565b5060c08301518160c086015261528a828601826151c7565b91505060e08301516152a760e08601826001600160401b03169052565b5061010083810151908501526101209283015192909301919091525090565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561535d57603f19898403018552815160c0815185528882015189860152878201518189870152615323828701826151f3565b60609384015180518886015260208101516080890152604081015160a08901529390925090505095880195935050908601906001016152ed565b509098975050505050505050565b60008060006060848603121561538057600080fd5b61538984614fe6565b925061539760208501614fe6565b9150604084013590509250925092565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156153fc57603f198886030184526153ea8583516151f3565b945092850192908501906001016153ce565b5092979650505050505050565b6000806000806080858703121561541f57600080fd5b8435935060208501359250604085013561543881614e92565b9396929550929360600135925050565b60006001600160401b0382111561546157615461614ea0565b5060051b60200190565b600082601f83011261547c57600080fd5b8135602061549161548c83615448565b614ede565b82815260059290921b840181019181810190868411156154b057600080fd5b8286015b8481101561266e57803583529183019183016154b4565b6000602082840312156154dd57600080fd5b81356001600160401b038111156154f357600080fd5b6111dc8482850161546b565b6000806000806080858703121561551557600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052602160045260246000fd5b6003811061556557634e487b7160e01b600052602160045260246000fd5b9052565b60208101610d3c8284615547565b6000806000806060858703121561558d57600080fd5b843593506020850135925060408501356001600160401b038111156155b157600080fd5b6155bd878288016150e4565b95989497509550505050565b6101008101610d3c828461502e565b60008083601f8401126155ea57600080fd5b5081356001600160401b0381111561560157600080fd5b6020830191508360208260051b850101111561512557600080fd5b6000806000806040858703121561563257600080fd5b84356001600160401b038082111561564957600080fd5b615655888389016155d8565b9096509450602087013591508082111561566e57600080fd5b506155bd878288016155d8565b600081518084526020808501945080840160005b838110156156ab5781518752958201959082019060010161568f565b509495945050505050565b60a0808252865190820181905260009060209060c0840190828a01845b828110156156f85781516001600160a01b0316845292840192908401906001016156d3565b5050508381038285015261570c818961567b565b8481036040860152875180825283890192509083019060005b8181101561574a5783516001600160601b031683529284019291840191600101615725565b50506001600160601b03871660608601529250615765915050565b8260808301529695505050505050565b602081526000611f4760208301846151f3565b8281526040602082015260006111dc604083018461567b565b6000806000806000606086880312156157b957600080fd5b8535945060208601356001600160401b03808211156157d757600080fd5b6157e389838a016150e4565b909650945060408801359150808211156157fc57600080fd5b50615809888289016150e4565b969995985093965092949392505050565b6000806040838503121561582d57600080fd5b8235915060208301356003811061584357600080fd5b809150509250929050565b60008060006060848603121561586357600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561588d57600080fd5b8235915060208301356001600160401b038111156158aa57600080fd5b6158b68582860161546b565b9150509250929050565b602081526000611f47602083018461567b565b6000602082840312156158e557600080fd5b5051919050565b600080600080600080600080610100898b03121561590957600080fd5b885161591481614e92565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060006060848603121561596b57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826159bf576159bf615984565b500490565b634e487b7160e01b600052603260045260246000fd5b6000828210156159ec576159ec61599a565b500390565b60008219821115615a0457615a0461599a565b500190565b600062ffffff808316818516808303821115615a2757615a2761599a565b01949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600060018060a01b03808716835260606020840152615a7c606084018688615a30565b915080841660408401525095945050505050565b600181811c90821680615aa457607f821691505b60208210811415611d6157634e487b7160e01b600052602260045260246000fd5b6000600019821415615ad957615ad961599a565b5060010190565b6000816000190483118215151615615afa57615afa61599a565b500290565b83815260406020820152600061203c604083018486615a30565b600082601f830112615b2a57600080fd5b81516001600160401b03811115615b4357615b43614ea0565b615b56601f8201601f1916602001614ede565b818152846020838601011115615b6b57600080fd5b6111dc82602083016020870161519b565b60008060408385031215615b8f57600080fd5b82516001600160401b0380821115615ba657600080fd5b615bb286838701615b19565b93506020850151915080821115615bc857600080fd5b506158b685828601615b19565b634e487b7160e01b600052600160045260246000fd5b602081526000611f4760208301846151c7565b60006001600160601b03808316818516808303821115615a2757615a2761599a565b604081526000615c34604083018688615a30565b8281036020840152615c47818587615a30565b979650505050505050565b600060208284031215615c6457600080fd5b8151611f4781614e92565b60006020808385031215615c8257600080fd5b82516001600160401b03811115615c9857600080fd5b8301601f81018513615ca957600080fd5b8051615cb761548c82615448565b81815260059190911b82018301908381019087831115615cd657600080fd5b928401925b82841015615c4757835182529284019290840190615cdb565b60006001600160601b0383811690831681811015615d1457615d1461599a565b039392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615d5481601785016020880161519b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615d8581602884016020880161519b565b01602801949350505050565b60408101615d9f8285615547565b6001600160a01b039290921660209190910152919050565b608081526000615dca60808301876151c7565b8281036020840152615ddc81876151c7565b90508281036040840152615df081866151c7565b91505082606083015295945050505050565b600082615e1157615e11615984565b500690565b600081615e2557615e2561599a565b506000190190565b60008351615e3f81846020880161519b565b6fffffffffffffffffffffffffffffffff19939093169190920190815260100192915050565b60008251615e7781846020870161519b565b9190910192915050565b60008351615e9381846020880161519b565b9190910191825250602001919050565b82815260008251615ebb81602085016020870161519b565b919091016020019392505050565b634e487b7160e01b600052603160045260246000fdfe8f8c450dae5029cd48cd91dd9db65da48fb742893edfc7941250f6721d93cbbe9a627a5d4aa7c17f87ff26e3fe9a42c2b6c559e8b41a42282d0ecebb17c0e4d3c23292b191d95d2a7dd94fc6436eb44338fda9e1307d9394fd27c28157c1b33c3105bcbf19d4417b73ae0e58d508a65ecf75665e46c2622d8521732de6080c48a264697066735822122093f74b570f38204664e512a5339a76eebcc26abe3394e4e21b014b1dd0eedf8964736f6c63430008090033 \ No newline at end of file diff --git a/internal/lido/contracts/staking_router/StakingRouter.go b/internal/lido/contracts/staking_router/StakingRouter.go new file mode 100644 index 000000000..d9a3e2ec0 --- /dev/null +++ b/internal/lido/contracts/staking_router/StakingRouter.go @@ -0,0 +1,4249 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package stakingrouter + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// StakingRouterNodeOperatorDigest is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterNodeOperatorDigest struct { + Id *big.Int + IsActive bool + Summary StakingRouterNodeOperatorSummary +} + +// StakingRouterNodeOperatorSummary is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterNodeOperatorSummary struct { + IsTargetLimitActive bool + TargetValidatorsCount *big.Int + StuckValidatorsCount *big.Int + RefundedValidatorsCount *big.Int + StuckPenaltyEndTimestamp *big.Int + TotalExitedValidators *big.Int + TotalDepositedValidators *big.Int + DepositableValidatorsCount *big.Int +} + +// StakingRouterStakingModule is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterStakingModule struct { + Id *big.Int + StakingModuleAddress common.Address + StakingModuleFee uint16 + TreasuryFee uint16 + TargetShare uint16 + Status uint8 + Name string + LastDepositAt uint64 + LastDepositBlock *big.Int + ExitedValidatorsCount *big.Int +} + +// StakingRouterStakingModuleDigest is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterStakingModuleDigest struct { + NodeOperatorsCount *big.Int + ActiveNodeOperatorsCount *big.Int + State StakingRouterStakingModule + Summary StakingRouterStakingModuleSummary +} + +// StakingRouterStakingModuleSummary is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterStakingModuleSummary struct { + TotalExitedValidators *big.Int + TotalDepositedValidators *big.Int + DepositableValidatorsCount *big.Int +} + +// StakingRouterValidatorsCountsCorrection is an auto generated low-level Go binding around an user-defined struct. +type StakingRouterValidatorsCountsCorrection struct { + CurrentModuleExitedValidatorsCount *big.Int + CurrentNodeOperatorExitedValidatorsCount *big.Int + CurrentNodeOperatorStuckValidatorsCount *big.Int + NewModuleExitedValidatorsCount *big.Int + NewNodeOperatorExitedValidatorsCount *big.Int + NewNodeOperatorStuckValidatorsCount *big.Int +} + +// ApiMetaData contains all meta data concerning the Api contract. +var ApiMetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_depositContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AppAuthLidoFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"firstArrayLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"secondArrayLength\",\"type\":\"uint256\"}],\"name\":\"ArraysLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DepositContractZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DirectETHTransfer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyWithdrawalsCredentials\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExitedValidatorsCountCannotDecrease\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidContractVersionIncrement\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"etherValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositsCount\",\"type\":\"uint256\"}],\"name\":\"InvalidDepositsValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"}],\"name\":\"InvalidPublicKeysBatchLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"code\",\"type\":\"uint256\"}],\"name\":\"InvalidReportData\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"}],\"name\":\"InvalidSignaturesBatchLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NonZeroContractVersionOnInit\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"reportedExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositedValidatorsCount\",\"type\":\"uint256\"}],\"name\":\"ReportedExitedValidatorsExceedDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleAddressExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleNotActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleNotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleStatusTheSame\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleUnregistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModuleWrongName\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingModulesLimitExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"received\",\"type\":\"uint256\"}],\"name\":\"UnexpectedContractVersion\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"currentModuleExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentNodeOpExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentNodeOpStuckValidatorsCount\",\"type\":\"uint256\"}],\"name\":\"UnexpectedCurrentValidatorsCount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnrecoverableModuleError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"field\",\"type\":\"string\"}],\"name\":\"ValueOver100Percent\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"field\",\"type\":\"string\"}],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"}],\"name\":\"ContractVersionSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"lowLevelRevertData\",\"type\":\"bytes\"}],\"name\":\"ExitedAndStuckValidatorsCountsUpdateFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"lowLevelRevertData\",\"type\":\"bytes\"}],\"name\":\"RewardsMintedReportFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"stakingModule\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"createdBy\",\"type\":\"address\"}],\"name\":\"StakingModuleAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unreportedExitedValidatorsCount\",\"type\":\"uint256\"}],\"name\":\"StakingModuleExitedValidatorsIncompleteReporting\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakingModuleFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"treasuryFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"setBy\",\"type\":\"address\"}],\"name\":\"StakingModuleFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumStakingRouter.StakingModuleStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"setBy\",\"type\":\"address\"}],\"name\":\"StakingModuleStatusSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetShare\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"setBy\",\"type\":\"address\"}],\"name\":\"StakingModuleTargetShareSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StakingRouterETHDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"withdrawalCredentials\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"setBy\",\"type\":\"address\"}],\"name\":\"WithdrawalCredentialsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"stakingModuleId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"lowLevelRevertData\",\"type\":\"bytes\"}],\"name\":\"WithdrawalsCredentialsChangeFailed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEPOSIT_CONTRACT\",\"outputs\":[{\"internalType\":\"contractIDepositContract\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FEE_PRECISION_POINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MANAGE_WITHDRAWAL_CREDENTIALS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_STAKING_MODULES_COUNT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_STAKING_MODULE_NAME_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REPORT_EXITED_VALIDATORS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REPORT_REWARDS_MINTED_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STAKING_MODULE_MANAGE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STAKING_MODULE_PAUSE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STAKING_MODULE_RESUME_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOTAL_BASIS_POINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UNSAFE_SET_EXITED_VALIDATORS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_stakingModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_targetShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakingModuleFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_treasuryFee\",\"type\":\"uint256\"}],\"name\":\"addStakingModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_depositsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_depositCalldata\",\"type\":\"bytes\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getAllNodeOperatorDigests\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isTargetLimitActive\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"targetValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"refundedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckPenaltyEndTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.NodeOperatorSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"internalType\":\"structStakingRouter.NodeOperatorDigest[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllStakingModuleDigests\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeOperatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"activeNodeOperatorsCount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"stakingModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"stakingModuleFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"treasuryFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"targetShare\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"lastDepositAt\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"lastDepositBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exitedValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModule\",\"name\":\"state\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModuleSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"internalType\":\"structStakingRouter.StakingModuleDigest[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getContractVersion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_depositsCount\",\"type\":\"uint256\"}],\"name\":\"getDepositsAllocation\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"allocated\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"allocations\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLido\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"_nodeOperatorIds\",\"type\":\"uint256[]\"}],\"name\":\"getNodeOperatorDigests\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isTargetLimitActive\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"targetValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"refundedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckPenaltyEndTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.NodeOperatorSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"internalType\":\"structStakingRouter.NodeOperatorDigest[]\",\"name\":\"digests\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_limit\",\"type\":\"uint256\"}],\"name\":\"getNodeOperatorDigests\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isTargetLimitActive\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"targetValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"refundedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckPenaltyEndTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.NodeOperatorSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"internalType\":\"structStakingRouter.NodeOperatorDigest[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeOperatorId\",\"type\":\"uint256\"}],\"name\":\"getNodeOperatorSummary\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"isTargetLimitActive\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"targetValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"refundedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stuckPenaltyEndTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.NodeOperatorSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingFeeAggregateDistribution\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"modulesFee\",\"type\":\"uint96\"},{\"internalType\":\"uint96\",\"name\":\"treasuryFee\",\"type\":\"uint96\"},{\"internalType\":\"uint256\",\"name\":\"basePrecision\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingFeeAggregateDistributionE4Precision\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"modulesFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"treasuryFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModule\",\"outputs\":[{\"components\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"stakingModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"stakingModuleFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"treasuryFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"targetShare\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"lastDepositAt\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"lastDepositBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exitedValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModule\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleActiveValidatorsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"activeValidatorsCount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_stakingModuleIds\",\"type\":\"uint256[]\"}],\"name\":\"getStakingModuleDigests\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeOperatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"activeNodeOperatorsCount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"stakingModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"stakingModuleFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"treasuryFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"targetShare\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"lastDepositAt\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"lastDepositBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exitedValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModule\",\"name\":\"state\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModuleSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"internalType\":\"structStakingRouter.StakingModuleDigest[]\",\"name\":\"digests\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingModuleIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"stakingModuleIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleIsActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleIsDepositsPaused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleIsStopped\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleLastDepositBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxDepositsValue\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleMaxDepositsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleStatus\",\"outputs\":[{\"internalType\":\"enumStakingRouter.StakingModuleStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"getStakingModuleSummary\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"totalExitedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDepositedValidators\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositableValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModuleSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingModules\",\"outputs\":[{\"components\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"stakingModuleAddress\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"stakingModuleFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"treasuryFee\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"targetShare\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"lastDepositAt\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"lastDepositBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"exitedValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.StakingModule[]\",\"name\":\"res\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingModulesCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingRewardsDistribution\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"recipients\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"stakingModuleIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint96[]\",\"name\":\"stakingModuleFees\",\"type\":\"uint96[]\"},{\"internalType\":\"uint96\",\"name\":\"totalFee\",\"type\":\"uint96\"},{\"internalType\":\"uint256\",\"name\":\"precisionPoints\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalFeeE4Precision\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"totalFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getWithdrawalCredentials\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"hasStakingModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_admin\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_lido\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_withdrawalCredentials\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"onValidatorsCountsByNodeOperatorReportingFinished\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"pauseStakingModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_stakingModuleIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_totalShares\",\"type\":\"uint256[]\"}],\"name\":\"reportRewardsMinted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_nodeOperatorIds\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_exitedValidatorsCounts\",\"type\":\"bytes\"}],\"name\":\"reportStakingModuleExitedValidatorsCountByNodeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_nodeOperatorIds\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_stuckValidatorsCounts\",\"type\":\"bytes\"}],\"name\":\"reportStakingModuleStuckValidatorsCountByNodeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"}],\"name\":\"resumeStakingModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"enumStakingRouter.StakingModuleStatus\",\"name\":\"_status\",\"type\":\"uint8\"}],\"name\":\"setStakingModuleStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_withdrawalCredentials\",\"type\":\"bytes32\"}],\"name\":\"setWithdrawalCredentials\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeOperatorId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_triggerUpdateFinish\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"currentModuleExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentNodeOperatorExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentNodeOperatorStuckValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newModuleExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newNodeOperatorExitedValidatorsCount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newNodeOperatorStuckValidatorsCount\",\"type\":\"uint256\"}],\"internalType\":\"structStakingRouter.ValidatorsCountsCorrection\",\"name\":\"_correction\",\"type\":\"tuple\"}],\"name\":\"unsafeSetExitedValidatorsCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_stakingModuleIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_exitedValidatorsCounts\",\"type\":\"uint256[]\"}],\"name\":\"updateExitedValidatorsCountByStakingModule\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeOperatorId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_refundedValidatorsCount\",\"type\":\"uint256\"}],\"name\":\"updateRefundedValidatorsCount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_targetShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_stakingModuleFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_treasuryFee\",\"type\":\"uint256\"}],\"name\":\"updateStakingModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stakingModuleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_nodeOperatorId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_isTargetLimitActive\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"_targetLimit\",\"type\":\"uint256\"}],\"name\":\"updateTargetValidatorsLimits\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", + Bin: "0x60a06040523480156200001157600080fd5b5060405162006098380380620060988339810160408190526200003491620000ae565b806001600160a01b0381166200005d57604051637c5f8bcf60e11b815260040160405180910390fd5b6001600160a01b0316608052620000a37f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a6600019620000aa602090811b6200374a17901c565b50620000e0565b9055565b600060208284031215620000c157600080fd5b81516001600160a01b0381168114620000d957600080fd5b9392505050565b608051615f9562000103600039600081816107540152613d220152615f956000f3fe6080604052600436106103d25760003560e01c80639010d07c116101fd578063c82b1bb111610118578063e016e6f7116100ab578063efcdcc0e1161007a578063efcdcc0e14610c4a578063f07ff28a14610c7a578063f2aebb6514610c9a578063f8bb6d4214610cbc578063fa5093eb14610cdc57600080fd5b8063e016e6f714610bc8578063e1b92a5c14610bea578063e24ce9f114610c0a578063e97ee8cc14610c2a57600080fd5b8063d0a2b1b8116100e7578063d0a2b1b814610b53578063d547741f14610b73578063d861c58414610b93578063db3c7ba714610bb357600080fd5b8063c82b1bb114610ac5578063c8ac498014610af3578063ca15c87314610b13578063cb589b9a14610b3357600080fd5b8063a7357c8c11610190578063af1240971161015f578063af12409714610a30578063ba21ccae14610a50578063bc1bb19014610a76578063c445ea7514610aa357600080fd5b8063a7357c8c1461099d578063aa0b7db7146109d0578063aa5a1b9d146109e3578063abd44a2414610a1057600080fd5b80639fbb7bae116101cc5780639fbb7bae146108e55780639fc5a6ed1461090d578063a217fddf1461093a578063a734329c1461094f57600080fd5b80639010d07c1461087057806391d148541461089057806396b5d81c146108b05780639b75b4ef146108d057600080fd5b806356396715116102ed5780636b96736b116102805780638525e3a11161024f5780638525e3a1146107e75780638801da79146108075780638aa104351461083b5780638dc70c571461085057600080fd5b80636b96736b146107425780637443f523146107765780637a74884d146107965780637c8da51c146107ca57600080fd5b80636183214d116102bc5780636183214d146106b35780636608b11b146106d55780636a516b47146106f55780636ada55b91461072257600080fd5b8063563967151461063c57806357993b85146106515780635bf55e40146106735780636133f9851461069357600080fd5b8063271662ec116103655780633e54ee5b116103345780633e54ee5b146105d2578063473e0433146105f25780634a7583b6146106125780634b3a1cb71461062757600080fd5b8063271662ec1461054f5780632f2ff15d146105655780633240a3221461058557806336568abe146105b257600080fd5b80631565d2f2116103a15780631565d2f2146104a757806319c64b79146104db5780631d1b9d3c146104fb578063248a9ca31461052f57600080fd5b806301ffc9a7146103f55780630519fbbf1461042a578063072859c71461045857806307e203ac1461047a57600080fd5b366103f0576040516309fb455960e41b815260040160405180910390fd5b600080fd5b34801561040157600080fd5b50610415610410366004614e4f565b610d17565b60405190151581526020015b60405180910390f35b34801561043657600080fd5b5061044a610445366004614e79565b610d42565b604051908152602001610421565b34801561046457600080fd5b50610478610473366004614f0e565b610dbd565b005b34801561048657600080fd5b5061049a610495366004614e79565b610fcc565b6040516104219190614fa3565b3480156104b357600080fd5b5061044a7f55180e25fcacf9af017d35d497765476319b23896daa1f9bc2b38fa80b36a16381565b3480156104e757600080fd5b5061044a6104f6366004614fc4565b61108b565b34801561050757600080fd5b5061044a7f779e5c23cb7a5bcb9bfe1e9a5165a00057f12bcdfd13e374540fdf1a1cd9113781565b34801561053b57600080fd5b5061044a61054a366004614e79565b611108565b34801561055b57600080fd5b5061044a61271081565b34801561057157600080fd5b50610478610580366004615002565b61112a565b34801561059157600080fd5b506105a56105a0366004614e79565b61114c565b604051610421919061507e565b3480156105be57600080fd5b506104786105cd366004615002565b6111e4565b3480156105de57600080fd5b506104786105ed36600461512c565b611262565b3480156105fe57600080fd5b5061044a61060d366004614e79565b611685565b34801561061e57600080fd5b5061044a61169c565b34801561063357600080fd5b5061044a602081565b34801561064857600080fd5b5061044a6116cb565b34801561065d57600080fd5b506106666116f5565b60405161042191906152c6565b34801561067f57600080fd5b5061047861068e366004614e79565b611702565b34801561069f57600080fd5b506104786106ae36600461536b565b611792565b3480156106bf57600080fd5b506106c86118b6565b60405161042191906153a7565b3480156106e157600080fd5b506104156106f0366004614e79565b611a85565b34801561070157600080fd5b5061070a611aaa565b6040516001600160a01b039091168152602001610421565b34801561072e57600080fd5b5061041561073d366004614e79565b611ad4565b34801561074e57600080fd5b5061070a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561078257600080fd5b50610478610791366004615409565b611add565b3480156107a257600080fd5b5061044a7fe7c742a54cd11fc9749a47ab34bdcd7327820908e8d0d48b4a5c7f17b029409881565b3480156107d657600080fd5b5061044a68056bc75e2d6310000081565b3480156107f357600080fd5b506106666108023660046154cb565b611b7d565b34801561081357600080fd5b5061044a7f9a2f67efb89489040f2c48c3b2c38f719fba1276678d2ced3bd9049fb5edc6b281565b34801561084757600080fd5b5061044a611d67565b34801561085c57600080fd5b5061047861086b3660046154ff565b611d91565b34801561087c57600080fd5b5061070a61088b366004614fc4565b611f22565b34801561089c57600080fd5b506104156108ab366004615002565b611f4e565b3480156108bc57600080fd5b5061044a6108cb366004614e79565b611f86565b3480156108dc57600080fd5b5061044a601f81565b3480156108f157600080fd5b506108fa612045565b60405161ffff9091168152602001610421565b34801561091957600080fd5b5061092d610928366004614e79565b612073565b6040516104219190615569565b34801561094657600080fd5b5061044a600081565b34801561095b57600080fd5b5061041561096a366004614e79565b60009081527f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c6020526040902054151590565b3480156109a957600080fd5b5061044a7eb1e70095ba5bacc3202c3db9faf1f7873186f0ed7b6c84e80c0018dcc6e38e81565b6104786109de366004615577565b61209a565b3480156109ef57600080fd5b50610a036109fe366004614fc4565b612300565b60405161042191906155c9565b348015610a1c57600080fd5b5061044a610a2b36600461561c565b61241f565b348015610a3c57600080fd5b50610478610a4b36600461561c565b612679565b348015610a5c57600080fd5b50610a6561284f565b6040516104219594939291906156b6565b348015610a8257600080fd5b50610a96610a91366004614e79565b612bca565b6040516104219190615775565b348015610aaf57600080fd5b5061044a600080516020615f2083398151915281565b348015610ad157600080fd5b50610ae5610ae0366004614e79565b612d0e565b604051610421929190615788565b348015610aff57600080fd5b50610478610b0e3660046157a1565b612d26565b348015610b1f57600080fd5b5061044a610b2e366004614e79565b612dc9565b348015610b3f57600080fd5b50610478610b4e3660046157a1565b612ded565b348015610b5f57600080fd5b50610478610b6e36600461581a565b612e61565b348015610b7f57600080fd5b50610478610b8e366004615002565b612ef6565b348015610b9f57600080fd5b50610478610bae366004614e79565b612f13565b348015610bbf57600080fd5b50610478612fa4565b348015610bd457600080fd5b5061044a600080516020615f4083398151915281565b348015610bf657600080fd5b50610478610c0536600461584e565b613171565b348015610c1657600080fd5b50610415610c25366004614e79565b6131fd565b348015610c3657600080fd5b50610478610c45366004614e79565b613206565b348015610c5657600080fd5b50610c5f6133c5565b6040805161ffff938416815292909116602083015201610421565b348015610c8657600080fd5b506105a5610c9536600461587a565b61340c565b348015610ca657600080fd5b50610caf6135a0565b60405161042191906158c0565b348015610cc857600080fd5b506105a5610cd736600461584e565b613636565b348015610ce857600080fd5b50610cf16136d8565b604080516001600160601b03948516815293909216602084015290820152606001610421565b60006001600160e01b03198216635a05180f60e01b1480610d3c5750610d3c8261374e565b92915050565b6000610d4d82613783565b6001600160a01b031663d087d2886040518163ffffffff1660e01b815260040160206040518083038186803b158015610d8557600080fd5b505afa158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c91906158d3565b7f55180e25fcacf9af017d35d497765476319b23896daa1f9bc2b38fa80b36a163610de881336137a5565b6000610df386613809565b8054604051632cc1db0f60e21b815260048101889052919250630100000090046001600160a01b0316906000908190839063b3076c3c906024016101006040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7e91906158ec565b5050955050509350505083600401548660000151141580610ea3575080866020015114155b80610eb2575081866040015114155b15610ee95760048481015460405163e882688560e01b81529182015260248101829052604481018390526064015b60405180910390fd5b6060860151600480860191909155608087015160a088015160405163f2e2ca6360e01b81529283018b9052602483019190915260448201526001600160a01b0384169063f2e2ca6390606401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b505050508615610fc157826001600160a01b031663e864299e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b505050505b505050505050505050565b610ff060405180606001604052806000815260200160008152602001600081525090565b6000610ffb83612bca565b9050600081602001519050806001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561103f57600080fd5b505afa158015611053573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110779190615956565b604086015260208501528352509092915050565b600080806110aa6110a56801bc16d674ec800000866159b0565b61381c565b925092505060006110ba866139e1565b90508181815181106110ce576110ce6159c4565b602002602001015160c001518382815181106110ec576110ec6159c4565b60200260200101516110fe91906159da565b9695505050505050565b6000908152600080516020615f00833981519152602052604090206001015490565b61113382611108565b61113d81336137a5565b6111478383613a3a565b505050565b6060600061115983613783565b90506000816001600160a01b031663a70c70e46040518163ffffffff1660e01b815260040160206040518083038186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ce91906158d3565b90506111dc84600083613636565b949350505050565b6001600160a01b03811633146112545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ee0565b61125e8282613a69565b5050565b600080516020615f4083398151915261127b81336137a5565b6127108411156112bd57604051630cb4392560e31b815260206004820152600c60248201526b5f746172676574536861726560a01b6044820152606401610ee0565b6127106112ca83856159f1565b111561131957604051630cb4392560e31b815260206004820181905260248201527f5f7374616b696e674d6f64756c65466565202b205f74726561737572794665656044820152606401610ee0565b6001600160a01b0385166113685760405163eac0d38960e01b81526020600482015260156024820152745f7374616b696e674d6f64756c654164647265737360581b6044820152606401610ee0565b8515806113755750601f86115b156113935760405163ac18716960e01b815260040160405180910390fd5b600061139d61169c565b9050602081106113c05760405163309eed9960e01b815260040160405180910390fd5b60005b81811015611410576113d481613a98565b546001600160a01b0388811663010000009092041614156114085760405163050f969d60e41b815260040160405180910390fd5b6001016113c3565b50600061141c82613a98565b905060006114487ff9a85ae945d8134f58bd2ee028636634dcb9e812798acb5c806bf1951232a2255490565b611453906001615a09565b825462ffffff191662ffffff82161783559050611474600183018b8b614c69565b508154630100000065ffff0000000160b81b03191663010000006001600160a01b038a160261ffff60d81b191617600160d81b61ffff898116919091029190911763ffffffff60b81b1916600160b81b8883160261ffff60c81b191617600160c81b918716919091021760ff60e81b1916825560028201805467ffffffffffffffff1916426001600160401b03161790554360038301556040805160008152905162ffffff8316917f9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c0919081900360200190a26115568162ffffff1684613ac8565b62ffffff81167ff9a85ae945d8134f58bd2ee028636634dcb9e812798acb5c806bf1951232a225556115b061158c8460016159f1565b7f1b3ef9db2d6f0727a31622833b45264c21051726d23ddb6f73b3b65628cafcc355565b8062ffffff167f43b5213f0e1666cd0b8692a73686164c94deb955a59c65e10dee8bb958e7ce3e898c8c336040516115eb9493929190615a59565b60405180910390a26040805188815233602082015262ffffff8316917f065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c910160405180910390a260408051878152602081018790523381830152905162ffffff8316917f303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410919081900360600190a250505050505050505050565b60008061169183613809565b600301549392505050565b60006116c67f1b3ef9db2d6f0727a31622833b45264c21051726d23ddb6f73b3b65628cafcc35490565b905090565b60006116c67fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c05490565b60606116c66108026135a0565b7eb1e70095ba5bacc3202c3db9faf1f7873186f0ed7b6c84e80c0018dcc6e38e61172c81336137a5565b600061173783613809565b905060008154600160e81b900460ff16600281111561175857611758615531565b600281111561176957611769615531565b146117875760405163322e64fb60e11b815260040160405180910390fd5b611147816001613b0b565b6001600160a01b0383166117d25760405163eac0d38960e01b81526020600482015260066024820152652fb0b236b4b760d11b6044820152606401610ee0565b6001600160a01b0382166118115760405163eac0d38960e01b81526020600482015260056024820152645f6c69646f60d81b6044820152606401610ee0565b61181b6001613bce565b611826600084613c00565b61184f7f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e5531839055565b6118787fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c0829055565b604080518281523360208201527f82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c91015b60405180910390a1505050565b606060006118c261169c565b9050806001600160401b038111156118dc576118dc614ea0565b60405190808252806020026020018201604052801561191557816020015b611902614ced565b8152602001906001900390816118fa5790505b50915060005b81811015611a805761192c81613a98565b6040805161014081018252825462ffffff81168252630100000081046001600160a01b03166020830152600160b81b810461ffff90811693830193909352600160c81b810483166060830152600160d81b81049092166080820152600160e81b90910460ff1660a082015260018201805491929160c0840191906119af90615a90565b80601f01602080910402602001604051908101604052809291908181526020018280546119db90615a90565b8015611a285780601f106119fd57610100808354040283529160200191611a28565b820191906000526020600020905b815481529060010190602001808311611a0b57829003601f168201915b505050918352505060028201546001600160401b03166020820152600382015460408201526004909101546060909101528351849083908110611a6d57611a6d6159c4565b602090810291909101015260010161191b565b505090565b6000805b611a9283612073565b6002811115611aa357611aa3615531565b1492915050565b60006116c67f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e55315490565b60006002611a89565b600080516020615f40833981519152611af681336137a5565b6000611b0186613809565b546040516354f3d42360e11b81526004810187905285151560248201526044810185905263010000009091046001600160a01b03169150819063a9e7a84690606401600060405180830381600087803b158015611b5d57600080fd5b505af1158015611b71573d6000803e3d6000fd5b50505050505050505050565b606081516001600160401b03811115611b9857611b98614ea0565b604051908082528060200260200182016040528015611bd157816020015b611bbe614d40565b815260200190600190039081611bb65790505b50905060005b8251811015611d61576000611c04848381518110611bf757611bf76159c4565b6020026020010151612bca565b90506000816020015190506040518060800160405280826001600160a01b031663a70c70e46040518163ffffffff1660e01b815260040160206040518083038186803b158015611c5357600080fd5b505afa158015611c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8b91906158d3565b8152602001826001600160a01b0316638469cbd36040518163ffffffff1660e01b815260040160206040518083038186803b158015611cc957600080fd5b505afa158015611cdd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0191906158d3565b8152602001838152602001611d2e878681518110611d2157611d216159c4565b6020026020010151610fcc565b815250848481518110611d4357611d436159c4565b6020026020010181905250505080611d5a90615ac5565b9050611bd7565b50919050565b60006116c67f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a65490565b600080516020615f40833981519152611daa81336137a5565b612710841115611dec57604051630cb4392560e31b815260206004820152600c60248201526b5f746172676574536861726560a01b6044820152606401610ee0565b612710611df983856159f1565b1115611e4857604051630cb4392560e31b815260206004820181905260248201527f5f7374616b696e674d6f64756c65466565202b205f74726561737572794665656044820152606401610ee0565b6000611e5386613809565b805463ffffffff60c81b1916600160d81b61ffff8881169190910261ffff60c81b191691909117600160c81b868316021761ffff60b81b1916600160b81b918716919091021781556040805187815233602082015291925087917f065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c910160405180910390a260408051858152602081018590523381830152905187917f303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410919081900360600190a2505050505050565b6000828152600080516020615ee083398151915260205260408120611f479083613c0a565b9392505050565b6000918252600080516020615f00833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080611f9283613809565b90506000808260000160039054906101000a90046001600160a01b03166001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b158015611fe757600080fd5b505afa158015611ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201f9190615956565b5091509150612032836004015483613c16565b61203c90826159da565b95945050505050565b600080600061205261284f565b9450945050505061206c826001600160601b031682613c2c565b9250505090565b600061207e82613809565b54600160e81b900460ff166002811115610d3c57610d3c615531565b7f706b9ed9846c161ad535be9b6345c3a7b2cb929e8d4a7254dee9ba6e6f8e5531546001600160a01b0316336001600160a01b0316146120ed57604051637e71782360e01b815260040160405180910390fd5b60006120f76116cb565b9050806121175760405163180a97cd60e21b815260040160405180910390fd5b600061212285613809565b905060008154600160e81b900460ff16600281111561214357612143615531565b600281111561215457612154615531565b146121725760405163322e64fb60e11b815260040160405180910390fd5b60028101805467ffffffffffffffff1916426001600160401b0316179055436003820155604051348082529086907f9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c09060200160405180910390a26121e06801bc16d674ec80000088615ae0565b81146122095760405163023db95b60e21b81526004810182905260248101889052604401610ee0565b86156122f75781546040516317dc836b60e31b8152600091829163010000009091046001600160a01b03169063bee41b589061224d908c908b908b90600401615aff565b600060405180830381600087803b15801561226757600080fd5b505af115801561227b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a39190810190615b7c565b9150915060004790506122d98a876040516020016122c391815260200190565b6040516020818303038152906040528585613c45565b47846122e582846159da565b146122f2576122f2615bd5565b505050505b50505050505050565b612308614d8f565b600061231384612bca565b9050600081602001519050600080600080600080600080886001600160a01b031663b3076c3c8d6040518263ffffffff1660e01b815260040161235891815260200190565b6101006040518083038186803b15801561237157600080fd5b505afa158015612385573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a991906158ec565b97509750975097509750975097509750878b6000019015159081151581525050868b6020018181525050858b6040018181525050848b6060018181525050838b6080018181525050828b60a0018181525050818b60c0018181525050808b60e00181815250505050505050505050505092915050565b6000600080516020615f2083398151915261243a81336137a5565b8483146124645760405163098b37e560e31b81526004810186905260248101849052604401610ee0565b6000805b8681101561266e576000888883818110612484576124846159c4565b905060200201359050600061249882613809565b6004810154909150808989868181106124b3576124b36159c4565b9050602002013510156124d957604051632f789f4960e21b815260040160405180910390fd5b6000808360000160039054906101000a90046001600160a01b03166001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561252c57600080fd5b505afa158015612540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125649190615956565b5091509150808b8b8881811061257c5761257c6159c4565b9050602002013511156125c7578a8a8781811061259b5761259b6159c4565b9050602002013581604051630b72c59d60e21b8152600401610ee0929190918252602082015260400190565b828b8b888181106125da576125da6159c4565b905060200201356125eb91906159da565b6125f590886159f1565b96508282101561263d57847fdd2523ca96a639ba7e17420698937f71eddd8af012ccb36ff5c8fe96141acae961262b84866159da565b60405190815260200160405180910390a25b8a8a8781811061264f5761264f6159c4565b9050602002013584600401819055508560010195505050505050612468565b509695505050505050565b7f779e5c23cb7a5bcb9bfe1e9a5165a00057f12bcdfd13e374540fdf1a1cd911376126a481336137a5565b8382146126ce5760405163098b37e560e31b81526004810185905260248101839052604401610ee0565b60005b848110156128475760008484838181106126ed576126ed6159c4565b90506020020135111561283f57600061271d878784818110612711576127116159c4565b90506020020135613809565b54630100000090046001600160a01b0316905080638d7e4017868685818110612748576127486159c4565b905060200201356040518263ffffffff1660e01b815260040161276d91815260200190565b600060405180830381600087803b15801561278757600080fd5b505af1925050508015612798575060015b61283d573d8080156127c6576040519150601f19603f3d011682016040523d82523d6000602084013e6127cb565b606091505b5080516127eb57604051638fd297d960e01b815260040160405180910390fd5b8787848181106127fd576127fd6159c4565b905060200201357ff74208fedac7280fd11f8de0be14e00423dc5076da8e8ec8ca90e09257fff1b3826040516128339190615beb565b60405180910390a2505b505b6001016126d1565b505050505050565b6060806060600080600080612862613dc3565b80519193509150801580612874575082155b156128b65750506040805160008082526020820181815282840182815260608401909452919850909650909450925068056bc75e2d631000009150612bc39050565b68056bc75e2d631000009350806001600160401b038111156128da576128da614ea0565b604051908082528060200260200182016040528015612903578160200160208202803683370190505b509650806001600160401b0381111561291e5761291e614ea0565b604051908082528060200260200182016040528015612947578160200160208202803683370190505b509750806001600160401b0381111561296257612962614ea0565b60405190808252806020026020018201604052801561298b578160200160208202803683370190505b5095506000808060005b84811015612b905760008682815181106129b1576129b16159c4565b602002602001015160c001511115612b88578581815181106129d5576129d56159c4565b60200260200101516020015162ffffff168b85815181106129f8576129f86159c4565b6020026020010181815250508688878381518110612a1857612a186159c4565b602002602001015160c00151612a2e9190615ae0565b612a3891906159b0565b9250858181518110612a4c57612a4c6159c4565b6020026020010151600001518c8581518110612a6a57612a6a6159c4565b60200260200101906001600160a01b031690816001600160a01b031681525050612710868281518110612a9f57612a9f6159c4565b60200260200101516040015161ffff1684612aba9190615ae0565b612ac491906159b0565b91506002868281518110612ada57612ada6159c4565b602002602001015160a001516002811115612af757612af7615531565b14612b3057818a8581518110612b0f57612b0f6159c4565b60200260200101906001600160601b031690816001600160601b0316815250505b81612710878381518110612b4657612b466159c4565b60200260200101516060015161ffff1685612b619190615ae0565b612b6b91906159b0565b612b759190615bfe565b612b7f908a615bfe565b98506001909301925b600101612995565b5086886001600160601b03161115612baa57612baa615bd5565b83831015612bbc57828a52828b528289525b5050505050505b9091929394565b612bd2614ced565b612bdb82613809565b6040805161014081018252825462ffffff81168252630100000081046001600160a01b03166020830152600160b81b810461ffff90811693830193909352600160c81b810483166060830152600160d81b81049092166080820152600160e81b90910460ff1660a082015260018201805491929160c084019190612c5e90615a90565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8a90615a90565b8015612cd75780601f10612cac57610100808354040283529160200191612cd7565b820191906000526020600020905b815481529060010190602001808311612cba57829003601f168201915b505050918352505060028201546001600160401b031660208201526003820154604082015260049091015460609091015292915050565b60006060612d1b8361381c565b509094909350915050565b600080516020615f20833981519152612d3f81336137a5565b6000612d4a87613809565b54630100000090046001600160a01b03169050612d6986868686613e91565b604051634d8060a360e11b81526001600160a01b03821690639b00c14690612d9b908990899089908990600401615c20565b600060405180830381600087803b158015612db557600080fd5b505af11580156122f2573d6000803e3d6000fd5b6000818152600080516020615ee083398151915260205260408120610d3c90613f37565b600080516020615f20833981519152612e0681336137a5565b6000612e1187613809565b54630100000090046001600160a01b03169050612e3086868686613e91565b604051629b3d1960e81b81526001600160a01b03821690639b3d190090612d9b908990899089908990600401615c20565b600080516020615f40833981519152612e7a81336137a5565b6000612e8584613809565b9050826002811115612e9957612e99615531565b8154600160e81b900460ff166002811115612eb657612eb6615531565b6002811115612ec757612ec7615531565b1415612ee657604051635ca16fa760e11b815260040160405180910390fd5b612ef08184613b0b565b50505050565b612eff82611108565b612f0981336137a5565b6111478383613a69565b7f9a2f67efb89489040f2c48c3b2c38f719fba1276678d2ced3bd9049fb5edc6b2612f3e81336137a5565b6000612f4983613809565b905060018154600160e81b900460ff166002811115612f6a57612f6a615531565b6002811115612f7b57612f7b615531565b14612f99576040516316c1da1560e21b815260040160405180910390fd5b611147816000613b0b565b600080516020615f20833981519152612fbd81336137a5565b6000612fc761169c565b905060005b81811015611147576000612fdf82613a98565b905060008160000160039054906101000a90046001600160a01b031690506000816001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b15801561303857600080fd5b505afa15801561304c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130709190615956565b50509050826004015481141561316357816001600160a01b031663e864299e6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156130bb57600080fd5b505af19250505080156130cc575060015b613163573d8080156130fa576040519150601f19603f3d011682016040523d82523d6000602084013e6130ff565b606091505b50805161311f57604051638fd297d960e01b815260040160405180910390fd5b835460405162ffffff909116907fe74bf895f0c3a2d6c74c40cbb362fdd9640035fc4226c72e3843809ad2a9d2b590613159908490615beb565b60405180910390a2505b836001019350505050612fcc565b600080516020615f4083398151915261318a81336137a5565b600061319585613809565b5460405163a2e080f160e01b8152600481018690526024810185905263010000009091046001600160a01b03169150819063a2e080f190604401600060405180830381600087803b1580156131e957600080fd5b505af1158015610fc1573d6000803e3d6000fd5b60006001611a89565b7fe7c742a54cd11fc9749a47ab34bdcd7327820908e8d0d48b4a5c7f17b029409861323181336137a5565b61325a7fabeb05279af36da5d476d7f950157cd2ea98a4166fa68a6bc97ce3a22fbb93c0839055565b600061326461169c565b905060005b8181101561338f57600061327c82613a98565b90508160010191508060000160039054906101000a90046001600160a01b03166001600160a01b03166390c09bdb6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156132d657600080fd5b505af19250505080156132e7575060015b613389573d808015613315576040519150601f19603f3d011682016040523d82523d6000602084013e61331a565b606091505b50805161333a57604051638fd297d960e01b815260040160405180910390fd5b613345826001613b0b565b815460405162ffffff909116907f0d64b11929aa111ca874dd00b5b0cc2d82b741be924ec9e3691e67c71552f6239061337f908490615beb565b60405180910390a2505b50613269565b50604080518481523360208201527f82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c91016118a9565b60008060008060006133d56136d8565b92506001600160601b031692506001600160601b031692506133f78382613c2c565b94506134038282613c2c565b93505050509091565b6060600061341984613783565b905082516001600160401b0381111561343457613434614ea0565b60405190808252806020026020018201604052801561346d57816020015b61345a614dd6565b8152602001906001900390816134525790505b50915060005b8351811015613598576040518060600160405280858381518110613499576134996159c4565b60200260200101518152602001836001600160a01b0316635e2fb9088785815181106134c7576134c76159c4565b60200260200101516040518263ffffffff1660e01b81526004016134ed91815260200190565b60206040518083038186803b15801561350557600080fd5b505afa158015613519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353d9190615c52565b151581526020016135678787858151811061355a5761355a6159c4565b6020026020010151612300565b81525083828151811061357c5761357c6159c4565b60200260200101819052508061359190615ac5565b9050613473565b505092915050565b606060006135ac61169c565b9050806001600160401b038111156135c6576135c6614ea0565b6040519080825280602002602001820160405280156135ef578160200160208202803683370190505b50915060005b81811015611a805761360681613a98565b54835162ffffff90911690849083908110613623576136236159c4565b60209081029190910101526001016135f5565b6060600061364385613783565b604051634febc81b60e01b815260048101869052602481018590529091506000906001600160a01b03831690634febc81b9060440160006040518083038186803b15801561369057600080fd5b505afa1580156136a4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136cc9190810190615c6f565b90506110fe868261340c565b6000806000606060006136e961284f565b9650909450925060009150505b825181101561373657828181518110613711576137116159c4565b6020026020010151866137249190615bfe565b955061372f81615ac5565b90506136f6565b506137418582615cf4565b93505050909192565b9055565b60006001600160e01b03198216637965db0b60e01b1480610d3c57506301ffc9a760e01b6001600160e01b0319831614610d3c565b600061378e82613809565b54630100000090046001600160a01b031692915050565b6137af8282611f4e565b61125e576137c7816001600160a01b03166014613f41565b6137d2836020613f41565b6040516020016137e3929190615d1c565b60408051601f198184030181529082905262461bcd60e51b8252610ee091600401615beb565b6000610d3c613817836139e1565b613a98565b6000606080600061382b613dc3565b8051909350909150806001600160401b0381111561384b5761384b614ea0565b604051908082528060200260200182016040528015613874578160200160208202803683370190505b50935080156139d85761388786836159f1565b91506000816001600160401b038111156138a3576138a3614ea0565b6040519080825280602002602001820160405280156138cc578160200160208202803683370190505b5090506000805b838110156139c7578581815181106138ed576138ed6159c4565b602002602001015160c0015187828151811061390b5761390b6159c4565b6020026020010181815250506127108587838151811061392d5761392d6159c4565b60200260200101516080015161ffff166139479190615ae0565b61395191906159b0565b91506139a282878381518110613969576139696159c4565b602002602001015160e00151888481518110613987576139876159c4565b602002602001015160c0015161399d91906159f1565b6140dc565b8382815181106139b4576139b46159c4565b60209081029190910101526001016138d3565b506139d386838a6140eb565b965050505b50509193909250565b60008181527f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c6020819052604082205480613a2f57604051636a0eb14160e11b815260040160405180910390fd5b6111dc6001826159da565b613a448282614130565b6000828152600080516020615ee08339815191526020526040902061114790826141a6565b613a7382826141bb565b6000828152600080516020615ee083398151915260205260409020611147908261422f565b60009081527f1d2f69fc9b5fe89d7414bf039e8d897c4c487c7603d80de6bcdd2868466f94766020526040902090565b7f9b48f5b32acb95b982effe269feac267eead113c4b5af14ffeb9aadac18a6e9c613af48260016159f1565b600093845260209190915260409092209190915550565b8154600090600160e81b900460ff166002811115613b2b57613b2b615531565b9050816002811115613b3f57613b3f615531565b816002811115613b5157613b51615531565b1461114757816002811115613b6857613b68615531565b835460ff91909116600160e81b0260ff60e81b1982168117855560405162ffffff9182169190921617907ffd6f15fb2b48a21a60fe3d44d3c3a0433ca01e121b5124a63ec45c30ad925a1790613bc19085903390615d91565b60405180910390a2505050565b613bd6611d67565b15613bf45760405163184e52a160e21b815260040160405180910390fd5b613bfd81614244565b50565b61125e8282613a3a565b6000611f4783836142a3565b6000818311613c255781611f47565b5090919050565b600081613c3b61271085615ae0565b611f4791906159b0565b613c50846030615ae0565b825114613c86578151613c64856030615ae0565b6040516346b38e7960e11b815260048101929092526024820152604401610ee0565b613c91846060615ae0565b815114613cc7578051613ca5856060615ae0565b604051633c11c1f760e21b815260048101929092526024820152604401610ee0565b6000613cd360306142cd565b90506000613ce160606142cd565b905060005b868110156122f757613d078584613cfe603085615ae0565b600060306142e6565b613d208483613d17606085615ae0565b600060606142e6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663228951186801bc16d674ec800000858986613d678c8a8a61436d565b6040518663ffffffff1660e01b8152600401613d869493929190615db7565b6000604051808303818588803b158015613d9f57600080fd5b505af1158015613db3573d6000803e3d6000fd5b5050505050806001019050613ce6565b600060606000613dd161169c565b9050806001600160401b03811115613deb57613deb614ea0565b604051908082528060200260200182016040528015613e2457816020015b613e11614df5565b815260200190600190039081613e095790505b50915060005b81811015613e8b57613e3b816146e8565b838281518110613e4d57613e4d6159c4565b6020026020010181905250828181518110613e6a57613e6a6159c4565b602002602001015160c0015184613e8191906159f1565b9350600101613e2a565b50509091565b613e9c600884615e02565b151580613eb25750613eaf601082615e02565b15155b15613ed3576040516363209a7d60e11b815260036004820152602401610ee0565b6000613ee06008856159b0565b905080613eee6010846159b0565b14613f0f576040516363209a7d60e11b815260026004820152602401610ee0565b80613f30576040516363209a7d60e11b815260016004820152602401610ee0565b5050505050565b6000610d3c825490565b60606000613f50836002615ae0565b613f5b9060026159f1565b6001600160401b03811115613f7257613f72614ea0565b6040519080825280601f01601f191660200182016040528015613f9c576020820181803683370190505b509050600360fc1b81600081518110613fb757613fb76159c4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613fe657613fe66159c4565b60200101906001600160f81b031916908160001a905350600061400a846002615ae0565b6140159060016159f1565b90505b600181111561408d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614049576140496159c4565b1a60f81b82828151811061405f5761405f6159c4565b60200101906001600160f81b031916908160001a90535060049490941c9361408681615e16565b9050614018565b508315611f475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ee0565b6000818310613c255781611f47565b6000805b828210156141285761410b858561410685876159da565b614867565b90508061411757614128565b61412181836159f1565b91506140ef565b509392505050565b61413a8282611f4e565b61125e576000828152600080516020615f00833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000611f47836001600160a01b038416614aa5565b6141c58282611f4e565b1561125e576000828152600080516020615f00833981519152602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611f47836001600160a01b038416614af4565b61426d7f4dd0f6662ba1d6b081f08b350f5e9a6a7b15cf586926ba66f753594928fa64a6829055565b6040518181527ffddcded6b4f4730c226821172046b48372d3cd963c159701ae1b7c3bcac541bb9060200160405180910390a150565b60008260000182815481106142ba576142ba6159c4565b9060005260206000200154905092915050565b60408051828152603f92810192909201601f1916905290565b84516142f282856159f1565b1115801561430a5750835161430782846159f1565b11155b6143565760405162461bcd60e51b815260206004820152601960248201527f42595445535f41525241595f4f55545f4f465f424f554e4453000000000000006044820152606401610ee0565b6020838601810190838601016122f7828285614be7565b60008061437a60406142cd565b9050600061439261438d604060606159da565b6142cd565b90506143a3848360008060406142e6565b6143bc8482604060006143b78260606159da565b6142e6565b6000600286600060801b6040516020016143d7929190615e2d565b60408051601f19818403018152908290526143f191615e65565b602060405180830381855afa15801561440e573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061443191906158d3565b90506000600280856040516020016144499190615e65565b60408051601f198184030181529082905261446391615e65565b602060405180830381855afa158015614480573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906144a391906158d3565b6040516002906144ba908790600090602001615e81565b60408051601f19818403018152908290526144d491615e65565b602060405180830381855afa1580156144f1573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061451491906158d3565b60408051602081019390935282015260600160408051601f198184030181529082905261454091615e65565b602060405180830381855afa15801561455d573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061458091906158d3565b9050600280838a604051602001614598929190615ea3565b60408051601f19818403018152908290526145b291615e65565b602060405180830381855afa1580156145cf573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906145f291906158d3565b60408051634059730760d81b60208201526000602882015290810184905260029060600160408051601f198184030181529082905261463091615e65565b602060405180830381855afa15801561464d573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061467091906158d3565b60408051602081019390935282015260600160408051601f198184030181529082905261469c91615e65565b602060405180830381855afa1580156146b9573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906146dc91906158d3565b98975050505050505050565b6146f0614df5565b60006146fb83613a98565b80546001600160a01b036301000000820416845262ffffff8116602085015261ffff600160b81b820481166040860152600160c81b820481166060860152600160d81b820416608085015290915060ff600160e81b90910416600281111561476557614765615531565b8260a00190600281111561477b5761477b615531565b9081600281111561478e5761478e615531565b81525050600080600084600001516001600160a01b0316639abddf096040518163ffffffff1660e01b815260040160606040518083038186803b1580156147d457600080fd5b505afa1580156147e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061480c9190615956565b9194509250905060008560a00151600281111561482b5761482b615531565b14614837576000614839565b805b60e0860152600484015461484e908490613c16565b61485890836159da565b60c08601525092949350505050565b825160009060001982846148815760009350505050611f47565b60005b87518110156149535786818151811061489f5761489f6159c4565b60200260200101518882815181106148b9576148b96159c4565b6020026020010151106148cb57614943565b8781815181106148dd576148dd6159c4565b60200260200101518311156149145780935060019150878181518110614905576149056159c4565b60200260200101519250614943565b878181518110614926576149266159c4565b6020026020010151831415614943576149406001836159f1565b91505b61494c81615ac5565b9050614884565b50806149655760009350505050611f47565b60001960005b8851811015614a2457878181518110614986576149866159c4565b60200260200101518982815181106149a0576149a06159c4565b6020026020010151106149b257614a14565b838982815181106149c5576149c56159c4565b60200260200101511180156149f25750818982815181106149e8576149e86159c4565b6020026020010151105b15614a1457888181518110614a0957614a096159c4565b602002602001015191505b614a1d81615ac5565b905061496b565b50614a6e60018311614a365786614a40565b614a408784614c32565b84614a64848b8981518110614a5757614a576159c4565b60200260200101516140dc565b61399d91906159da565b945084888581518110614a8357614a836159c4565b60200260200101818151614a9791906159f1565b905250505050509392505050565b6000818152600183016020526040812054614aec57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d3c565b506000610d3c565b60008181526001830160205260408120548015614bdd576000614b186001836159da565b8554909150600090614b2c906001906159da565b9050818114614b91576000866000018281548110614b4c57614b4c6159c4565b9060005260206000200154905080876000018481548110614b6f57614b6f6159c4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080614ba257614ba2615ec9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610d3c565b6000915050610d3c565b5b601f811115614c08578251825260209283019290910190601f1901614be8565b80156111475782518251600019600160086020869003021b01908116901991909116178252505050565b60008215614c605781614c466001856159da565b614c5091906159b0565b614c5b9060016159f1565b611f47565b50600092915050565b828054614c7590615a90565b90600052602060002090601f016020900481019282614c975760008555614cdd565b82601f10614cb05782800160ff19823516178555614cdd565b82800160010185558215614cdd579182015b82811115614cdd578235825591602001919060010190614cc2565b50614ce9929150614e3a565b5090565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082015260e08101829052610100810182905261012081019190915290565b60405180608001604052806000815260200160008152602001614d61614ced565b8152602001614d8a60405180606001604052806000815260200160008152602001600081525090565b905290565b604051806101000160405280600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160608101825260008082526020820152908101614d8a614d8f565b604080516101008101825260008082526020820181905291810182905260608101829052608081018290529060a0820190815260200160008152602001600081525090565b5b80821115614ce95760008155600101614e3b565b600060208284031215614e6157600080fd5b81356001600160e01b031981168114611f4757600080fd5b600060208284031215614e8b57600080fd5b5035919050565b8015158114613bfd57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715614ed857614ed8614ea0565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614f0657614f06614ea0565b604052919050565b600080600080848603610120811215614f2657600080fd5b85359450602086013593506040860135614f3f81614e92565b925060c0605f1982011215614f5357600080fd5b50614f5c614eb6565b606086013581526080860135602082015260a0860135604082015260c0860135606082015260e0860135608082015261010086013560a08201528091505092959194509250565b81518152602080830151908201526040808301519082015260608101610d3c565b60008060408385031215614fd757600080fd5b50508035926020909101359150565b80356001600160a01b0381168114614ffd57600080fd5b919050565b6000806040838503121561501557600080fd5b8235915061502560208401614fe6565b90509250929050565b8051151582526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301525050565b602080825282518282018190526000919060409081850190868401855b828110156150d757815180518552868101511515878601528501516150c28686018261502e565b5061014093909301929085019060010161509b565b5091979650505050505050565b60008083601f8401126150f657600080fd5b5081356001600160401b0381111561510d57600080fd5b60208301915083602082850101111561512557600080fd5b9250929050565b60008060008060008060a0878903121561514557600080fd5b86356001600160401b0381111561515b57600080fd5b61516789828a016150e4565b909750955061517a905060208801614fe6565b93506040870135925060608701359150608087013590509295509295509295565b60005b838110156151b657818101518382015260200161519e565b83811115612ef05750506000910152565b600081518084526151df81602086016020860161519b565b601f01601f19169290920160200192915050565b805162ffffff1682526000610140602083015161521b60208601826001600160a01b03169052565b506040830151615231604086018261ffff169052565b506060830151615247606086018261ffff169052565b50608083015161525d608086018261ffff169052565b5060a083015161527260a086018260ff169052565b5060c08301518160c086015261528a828601826151c7565b91505060e08301516152a760e08601826001600160401b03169052565b5061010083810151908501526101209283015192909301919091525090565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561535d57603f19898403018552815160c0815185528882015189860152878201518189870152615323828701826151f3565b60609384015180518886015260208101516080890152604081015160a08901529390925090505095880195935050908601906001016152ed565b509098975050505050505050565b60008060006060848603121561538057600080fd5b61538984614fe6565b925061539760208501614fe6565b9150604084013590509250925092565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156153fc57603f198886030184526153ea8583516151f3565b945092850192908501906001016153ce565b5092979650505050505050565b6000806000806080858703121561541f57600080fd5b8435935060208501359250604085013561543881614e92565b9396929550929360600135925050565b60006001600160401b0382111561546157615461614ea0565b5060051b60200190565b600082601f83011261547c57600080fd5b8135602061549161548c83615448565b614ede565b82815260059290921b840181019181810190868411156154b057600080fd5b8286015b8481101561266e57803583529183019183016154b4565b6000602082840312156154dd57600080fd5b81356001600160401b038111156154f357600080fd5b6111dc8482850161546b565b6000806000806080858703121561551557600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052602160045260246000fd5b6003811061556557634e487b7160e01b600052602160045260246000fd5b9052565b60208101610d3c8284615547565b6000806000806060858703121561558d57600080fd5b843593506020850135925060408501356001600160401b038111156155b157600080fd5b6155bd878288016150e4565b95989497509550505050565b6101008101610d3c828461502e565b60008083601f8401126155ea57600080fd5b5081356001600160401b0381111561560157600080fd5b6020830191508360208260051b850101111561512557600080fd5b6000806000806040858703121561563257600080fd5b84356001600160401b038082111561564957600080fd5b615655888389016155d8565b9096509450602087013591508082111561566e57600080fd5b506155bd878288016155d8565b600081518084526020808501945080840160005b838110156156ab5781518752958201959082019060010161568f565b509495945050505050565b60a0808252865190820181905260009060209060c0840190828a01845b828110156156f85781516001600160a01b0316845292840192908401906001016156d3565b5050508381038285015261570c818961567b565b8481036040860152875180825283890192509083019060005b8181101561574a5783516001600160601b031683529284019291840191600101615725565b50506001600160601b03871660608601529250615765915050565b8260808301529695505050505050565b602081526000611f4760208301846151f3565b8281526040602082015260006111dc604083018461567b565b6000806000806000606086880312156157b957600080fd5b8535945060208601356001600160401b03808211156157d757600080fd5b6157e389838a016150e4565b909650945060408801359150808211156157fc57600080fd5b50615809888289016150e4565b969995985093965092949392505050565b6000806040838503121561582d57600080fd5b8235915060208301356003811061584357600080fd5b809150509250929050565b60008060006060848603121561586357600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561588d57600080fd5b8235915060208301356001600160401b038111156158aa57600080fd5b6158b68582860161546b565b9150509250929050565b602081526000611f47602083018461567b565b6000602082840312156158e557600080fd5b5051919050565b600080600080600080600080610100898b03121561590957600080fd5b885161591481614e92565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060006060848603121561596b57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826159bf576159bf615984565b500490565b634e487b7160e01b600052603260045260246000fd5b6000828210156159ec576159ec61599a565b500390565b60008219821115615a0457615a0461599a565b500190565b600062ffffff808316818516808303821115615a2757615a2761599a565b01949350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600060018060a01b03808716835260606020840152615a7c606084018688615a30565b915080841660408401525095945050505050565b600181811c90821680615aa457607f821691505b60208210811415611d6157634e487b7160e01b600052602260045260246000fd5b6000600019821415615ad957615ad961599a565b5060010190565b6000816000190483118215151615615afa57615afa61599a565b500290565b83815260406020820152600061203c604083018486615a30565b600082601f830112615b2a57600080fd5b81516001600160401b03811115615b4357615b43614ea0565b615b56601f8201601f1916602001614ede565b818152846020838601011115615b6b57600080fd5b6111dc82602083016020870161519b565b60008060408385031215615b8f57600080fd5b82516001600160401b0380821115615ba657600080fd5b615bb286838701615b19565b93506020850151915080821115615bc857600080fd5b506158b685828601615b19565b634e487b7160e01b600052600160045260246000fd5b602081526000611f4760208301846151c7565b60006001600160601b03808316818516808303821115615a2757615a2761599a565b604081526000615c34604083018688615a30565b8281036020840152615c47818587615a30565b979650505050505050565b600060208284031215615c6457600080fd5b8151611f4781614e92565b60006020808385031215615c8257600080fd5b82516001600160401b03811115615c9857600080fd5b8301601f81018513615ca957600080fd5b8051615cb761548c82615448565b81815260059190911b82018301908381019087831115615cd657600080fd5b928401925b82841015615c4757835182529284019290840190615cdb565b60006001600160601b0383811690831681811015615d1457615d1461599a565b039392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615d5481601785016020880161519b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615d8581602884016020880161519b565b01602801949350505050565b60408101615d9f8285615547565b6001600160a01b039290921660209190910152919050565b608081526000615dca60808301876151c7565b8281036020840152615ddc81876151c7565b90508281036040840152615df081866151c7565b91505082606083015295945050505050565b600082615e1157615e11615984565b500690565b600081615e2557615e2561599a565b506000190190565b60008351615e3f81846020880161519b565b6fffffffffffffffffffffffffffffffff19939093169190920190815260100192915050565b60008251615e7781846020870161519b565b9190910192915050565b60008351615e9381846020880161519b565b9190910191825250602001919050565b82815260008251615ebb81602085016020870161519b565b919091016020019392505050565b634e487b7160e01b600052603160045260246000fdfe8f8c450dae5029cd48cd91dd9db65da48fb742893edfc7941250f6721d93cbbe9a627a5d4aa7c17f87ff26e3fe9a42c2b6c559e8b41a42282d0ecebb17c0e4d3c23292b191d95d2a7dd94fc6436eb44338fda9e1307d9394fd27c28157c1b33c3105bcbf19d4417b73ae0e58d508a65ecf75665e46c2622d8521732de6080c48a264697066735822122093f74b570f38204664e512a5339a76eebcc26abe3394e4e21b014b1dd0eedf8964736f6c63430008090033", +} + +// ApiABI is the input ABI used to generate the binding from. +// Deprecated: Use ApiMetaData.ABI instead. +var ApiABI = ApiMetaData.ABI + +// ApiBin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use ApiMetaData.Bin instead. +var ApiBin = ApiMetaData.Bin + +// DeployApi deploys a new Ethereum contract, binding an instance of Api to it. +func DeployApi(auth *bind.TransactOpts, backend bind.ContractBackend, _depositContract common.Address) (common.Address, *types.Transaction, *Api, error) { + parsed, err := ApiMetaData.GetAbi() + if err != nil { + return common.Address{}, nil, nil, err + } + if parsed == nil { + return common.Address{}, nil, nil, errors.New("GetABI returned nil") + } + + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ApiBin), backend, _depositContract) + if err != nil { + return common.Address{}, nil, nil, err + } + return address, tx, &Api{ApiCaller: ApiCaller{contract: contract}, ApiTransactor: ApiTransactor{contract: contract}, ApiFilterer: ApiFilterer{contract: contract}}, nil +} + +// Api is an auto generated Go binding around an Ethereum contract. +type Api struct { + ApiCaller // Read-only binding to the contract + ApiTransactor // Write-only binding to the contract + ApiFilterer // Log filterer for contract events +} + +// ApiCaller is an auto generated read-only Go binding around an Ethereum contract. +type ApiCaller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiTransactor is an auto generated write-only Go binding around an Ethereum contract. +type ApiTransactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type ApiFilterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// ApiSession is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type ApiSession struct { + Contract *Api // Generic contract binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// ApiCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type ApiCallerSession struct { + Contract *ApiCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// ApiTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type ApiTransactorSession struct { + Contract *ApiTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// ApiRaw is an auto generated low-level Go binding around an Ethereum contract. +type ApiRaw struct { + Contract *Api // Generic contract binding to access the raw methods on +} + +// ApiCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type ApiCallerRaw struct { + Contract *ApiCaller // Generic read-only contract binding to access the raw methods on +} + +// ApiTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type ApiTransactorRaw struct { + Contract *ApiTransactor // Generic write-only contract binding to access the raw methods on +} + +// NewApi creates a new instance of Api, bound to a specific deployed contract. +func NewApi(address common.Address, backend bind.ContractBackend) (*Api, error) { + contract, err := bindApi(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &Api{ApiCaller: ApiCaller{contract: contract}, ApiTransactor: ApiTransactor{contract: contract}, ApiFilterer: ApiFilterer{contract: contract}}, nil +} + +// NewApiCaller creates a new read-only instance of Api, bound to a specific deployed contract. +func NewApiCaller(address common.Address, caller bind.ContractCaller) (*ApiCaller, error) { + contract, err := bindApi(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &ApiCaller{contract: contract}, nil +} + +// NewApiTransactor creates a new write-only instance of Api, bound to a specific deployed contract. +func NewApiTransactor(address common.Address, transactor bind.ContractTransactor) (*ApiTransactor, error) { + contract, err := bindApi(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &ApiTransactor{contract: contract}, nil +} + +// NewApiFilterer creates a new log filterer instance of Api, bound to a specific deployed contract. +func NewApiFilterer(address common.Address, filterer bind.ContractFilterer) (*ApiFilterer, error) { + contract, err := bindApi(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &ApiFilterer{contract: contract}, nil +} + +// bindApi binds a generic wrapper to an already deployed contract. +func bindApi(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := ApiMetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Api *ApiRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Api.Contract.ApiCaller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Api *ApiRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.Contract.ApiTransactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Api *ApiRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Api.Contract.ApiTransactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_Api *ApiCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _Api.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_Api *ApiTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_Api *ApiTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _Api.Contract.contract.Transact(opts, method, params...) +} + +// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf. +// +// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32) +func (_Api *ApiCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "DEFAULT_ADMIN_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf. +// +// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32) +func (_Api *ApiSession) DEFAULTADMINROLE() ([32]byte, error) { + return _Api.Contract.DEFAULTADMINROLE(&_Api.CallOpts) +} + +// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf. +// +// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) DEFAULTADMINROLE() ([32]byte, error) { + return _Api.Contract.DEFAULTADMINROLE(&_Api.CallOpts) +} + +// DEPOSITCONTRACT is a free data retrieval call binding the contract method 0x6b96736b. +// +// Solidity: function DEPOSIT_CONTRACT() view returns(address) +func (_Api *ApiCaller) DEPOSITCONTRACT(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "DEPOSIT_CONTRACT") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// DEPOSITCONTRACT is a free data retrieval call binding the contract method 0x6b96736b. +// +// Solidity: function DEPOSIT_CONTRACT() view returns(address) +func (_Api *ApiSession) DEPOSITCONTRACT() (common.Address, error) { + return _Api.Contract.DEPOSITCONTRACT(&_Api.CallOpts) +} + +// DEPOSITCONTRACT is a free data retrieval call binding the contract method 0x6b96736b. +// +// Solidity: function DEPOSIT_CONTRACT() view returns(address) +func (_Api *ApiCallerSession) DEPOSITCONTRACT() (common.Address, error) { + return _Api.Contract.DEPOSITCONTRACT(&_Api.CallOpts) +} + +// FEEPRECISIONPOINTS is a free data retrieval call binding the contract method 0x7c8da51c. +// +// Solidity: function FEE_PRECISION_POINTS() view returns(uint256) +func (_Api *ApiCaller) FEEPRECISIONPOINTS(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "FEE_PRECISION_POINTS") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// FEEPRECISIONPOINTS is a free data retrieval call binding the contract method 0x7c8da51c. +// +// Solidity: function FEE_PRECISION_POINTS() view returns(uint256) +func (_Api *ApiSession) FEEPRECISIONPOINTS() (*big.Int, error) { + return _Api.Contract.FEEPRECISIONPOINTS(&_Api.CallOpts) +} + +// FEEPRECISIONPOINTS is a free data retrieval call binding the contract method 0x7c8da51c. +// +// Solidity: function FEE_PRECISION_POINTS() view returns(uint256) +func (_Api *ApiCallerSession) FEEPRECISIONPOINTS() (*big.Int, error) { + return _Api.Contract.FEEPRECISIONPOINTS(&_Api.CallOpts) +} + +// MANAGEWITHDRAWALCREDENTIALSROLE is a free data retrieval call binding the contract method 0x7a74884d. +// +// Solidity: function MANAGE_WITHDRAWAL_CREDENTIALS_ROLE() view returns(bytes32) +func (_Api *ApiCaller) MANAGEWITHDRAWALCREDENTIALSROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "MANAGE_WITHDRAWAL_CREDENTIALS_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// MANAGEWITHDRAWALCREDENTIALSROLE is a free data retrieval call binding the contract method 0x7a74884d. +// +// Solidity: function MANAGE_WITHDRAWAL_CREDENTIALS_ROLE() view returns(bytes32) +func (_Api *ApiSession) MANAGEWITHDRAWALCREDENTIALSROLE() ([32]byte, error) { + return _Api.Contract.MANAGEWITHDRAWALCREDENTIALSROLE(&_Api.CallOpts) +} + +// MANAGEWITHDRAWALCREDENTIALSROLE is a free data retrieval call binding the contract method 0x7a74884d. +// +// Solidity: function MANAGE_WITHDRAWAL_CREDENTIALS_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) MANAGEWITHDRAWALCREDENTIALSROLE() ([32]byte, error) { + return _Api.Contract.MANAGEWITHDRAWALCREDENTIALSROLE(&_Api.CallOpts) +} + +// MAXSTAKINGMODULESCOUNT is a free data retrieval call binding the contract method 0x4b3a1cb7. +// +// Solidity: function MAX_STAKING_MODULES_COUNT() view returns(uint256) +func (_Api *ApiCaller) MAXSTAKINGMODULESCOUNT(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "MAX_STAKING_MODULES_COUNT") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// MAXSTAKINGMODULESCOUNT is a free data retrieval call binding the contract method 0x4b3a1cb7. +// +// Solidity: function MAX_STAKING_MODULES_COUNT() view returns(uint256) +func (_Api *ApiSession) MAXSTAKINGMODULESCOUNT() (*big.Int, error) { + return _Api.Contract.MAXSTAKINGMODULESCOUNT(&_Api.CallOpts) +} + +// MAXSTAKINGMODULESCOUNT is a free data retrieval call binding the contract method 0x4b3a1cb7. +// +// Solidity: function MAX_STAKING_MODULES_COUNT() view returns(uint256) +func (_Api *ApiCallerSession) MAXSTAKINGMODULESCOUNT() (*big.Int, error) { + return _Api.Contract.MAXSTAKINGMODULESCOUNT(&_Api.CallOpts) +} + +// MAXSTAKINGMODULENAMELENGTH is a free data retrieval call binding the contract method 0x9b75b4ef. +// +// Solidity: function MAX_STAKING_MODULE_NAME_LENGTH() view returns(uint256) +func (_Api *ApiCaller) MAXSTAKINGMODULENAMELENGTH(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "MAX_STAKING_MODULE_NAME_LENGTH") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// MAXSTAKINGMODULENAMELENGTH is a free data retrieval call binding the contract method 0x9b75b4ef. +// +// Solidity: function MAX_STAKING_MODULE_NAME_LENGTH() view returns(uint256) +func (_Api *ApiSession) MAXSTAKINGMODULENAMELENGTH() (*big.Int, error) { + return _Api.Contract.MAXSTAKINGMODULENAMELENGTH(&_Api.CallOpts) +} + +// MAXSTAKINGMODULENAMELENGTH is a free data retrieval call binding the contract method 0x9b75b4ef. +// +// Solidity: function MAX_STAKING_MODULE_NAME_LENGTH() view returns(uint256) +func (_Api *ApiCallerSession) MAXSTAKINGMODULENAMELENGTH() (*big.Int, error) { + return _Api.Contract.MAXSTAKINGMODULENAMELENGTH(&_Api.CallOpts) +} + +// REPORTEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0xc445ea75. +// +// Solidity: function REPORT_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiCaller) REPORTEXITEDVALIDATORSROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "REPORT_EXITED_VALIDATORS_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// REPORTEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0xc445ea75. +// +// Solidity: function REPORT_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiSession) REPORTEXITEDVALIDATORSROLE() ([32]byte, error) { + return _Api.Contract.REPORTEXITEDVALIDATORSROLE(&_Api.CallOpts) +} + +// REPORTEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0xc445ea75. +// +// Solidity: function REPORT_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) REPORTEXITEDVALIDATORSROLE() ([32]byte, error) { + return _Api.Contract.REPORTEXITEDVALIDATORSROLE(&_Api.CallOpts) +} + +// REPORTREWARDSMINTEDROLE is a free data retrieval call binding the contract method 0x1d1b9d3c. +// +// Solidity: function REPORT_REWARDS_MINTED_ROLE() view returns(bytes32) +func (_Api *ApiCaller) REPORTREWARDSMINTEDROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "REPORT_REWARDS_MINTED_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// REPORTREWARDSMINTEDROLE is a free data retrieval call binding the contract method 0x1d1b9d3c. +// +// Solidity: function REPORT_REWARDS_MINTED_ROLE() view returns(bytes32) +func (_Api *ApiSession) REPORTREWARDSMINTEDROLE() ([32]byte, error) { + return _Api.Contract.REPORTREWARDSMINTEDROLE(&_Api.CallOpts) +} + +// REPORTREWARDSMINTEDROLE is a free data retrieval call binding the contract method 0x1d1b9d3c. +// +// Solidity: function REPORT_REWARDS_MINTED_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) REPORTREWARDSMINTEDROLE() ([32]byte, error) { + return _Api.Contract.REPORTREWARDSMINTEDROLE(&_Api.CallOpts) +} + +// STAKINGMODULEMANAGEROLE is a free data retrieval call binding the contract method 0xe016e6f7. +// +// Solidity: function STAKING_MODULE_MANAGE_ROLE() view returns(bytes32) +func (_Api *ApiCaller) STAKINGMODULEMANAGEROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "STAKING_MODULE_MANAGE_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// STAKINGMODULEMANAGEROLE is a free data retrieval call binding the contract method 0xe016e6f7. +// +// Solidity: function STAKING_MODULE_MANAGE_ROLE() view returns(bytes32) +func (_Api *ApiSession) STAKINGMODULEMANAGEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULEMANAGEROLE(&_Api.CallOpts) +} + +// STAKINGMODULEMANAGEROLE is a free data retrieval call binding the contract method 0xe016e6f7. +// +// Solidity: function STAKING_MODULE_MANAGE_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) STAKINGMODULEMANAGEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULEMANAGEROLE(&_Api.CallOpts) +} + +// STAKINGMODULEPAUSEROLE is a free data retrieval call binding the contract method 0xa7357c8c. +// +// Solidity: function STAKING_MODULE_PAUSE_ROLE() view returns(bytes32) +func (_Api *ApiCaller) STAKINGMODULEPAUSEROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "STAKING_MODULE_PAUSE_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// STAKINGMODULEPAUSEROLE is a free data retrieval call binding the contract method 0xa7357c8c. +// +// Solidity: function STAKING_MODULE_PAUSE_ROLE() view returns(bytes32) +func (_Api *ApiSession) STAKINGMODULEPAUSEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULEPAUSEROLE(&_Api.CallOpts) +} + +// STAKINGMODULEPAUSEROLE is a free data retrieval call binding the contract method 0xa7357c8c. +// +// Solidity: function STAKING_MODULE_PAUSE_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) STAKINGMODULEPAUSEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULEPAUSEROLE(&_Api.CallOpts) +} + +// STAKINGMODULERESUMEROLE is a free data retrieval call binding the contract method 0x8801da79. +// +// Solidity: function STAKING_MODULE_RESUME_ROLE() view returns(bytes32) +func (_Api *ApiCaller) STAKINGMODULERESUMEROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "STAKING_MODULE_RESUME_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// STAKINGMODULERESUMEROLE is a free data retrieval call binding the contract method 0x8801da79. +// +// Solidity: function STAKING_MODULE_RESUME_ROLE() view returns(bytes32) +func (_Api *ApiSession) STAKINGMODULERESUMEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULERESUMEROLE(&_Api.CallOpts) +} + +// STAKINGMODULERESUMEROLE is a free data retrieval call binding the contract method 0x8801da79. +// +// Solidity: function STAKING_MODULE_RESUME_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) STAKINGMODULERESUMEROLE() ([32]byte, error) { + return _Api.Contract.STAKINGMODULERESUMEROLE(&_Api.CallOpts) +} + +// TOTALBASISPOINTS is a free data retrieval call binding the contract method 0x271662ec. +// +// Solidity: function TOTAL_BASIS_POINTS() view returns(uint256) +func (_Api *ApiCaller) TOTALBASISPOINTS(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "TOTAL_BASIS_POINTS") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// TOTALBASISPOINTS is a free data retrieval call binding the contract method 0x271662ec. +// +// Solidity: function TOTAL_BASIS_POINTS() view returns(uint256) +func (_Api *ApiSession) TOTALBASISPOINTS() (*big.Int, error) { + return _Api.Contract.TOTALBASISPOINTS(&_Api.CallOpts) +} + +// TOTALBASISPOINTS is a free data retrieval call binding the contract method 0x271662ec. +// +// Solidity: function TOTAL_BASIS_POINTS() view returns(uint256) +func (_Api *ApiCallerSession) TOTALBASISPOINTS() (*big.Int, error) { + return _Api.Contract.TOTALBASISPOINTS(&_Api.CallOpts) +} + +// UNSAFESETEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0x1565d2f2. +// +// Solidity: function UNSAFE_SET_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiCaller) UNSAFESETEXITEDVALIDATORSROLE(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "UNSAFE_SET_EXITED_VALIDATORS_ROLE") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// UNSAFESETEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0x1565d2f2. +// +// Solidity: function UNSAFE_SET_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiSession) UNSAFESETEXITEDVALIDATORSROLE() ([32]byte, error) { + return _Api.Contract.UNSAFESETEXITEDVALIDATORSROLE(&_Api.CallOpts) +} + +// UNSAFESETEXITEDVALIDATORSROLE is a free data retrieval call binding the contract method 0x1565d2f2. +// +// Solidity: function UNSAFE_SET_EXITED_VALIDATORS_ROLE() view returns(bytes32) +func (_Api *ApiCallerSession) UNSAFESETEXITEDVALIDATORSROLE() ([32]byte, error) { + return _Api.Contract.UNSAFESETEXITEDVALIDATORSROLE(&_Api.CallOpts) +} + +// GetAllNodeOperatorDigests is a free data retrieval call binding the contract method 0x3240a322. +// +// Solidity: function getAllNodeOperatorDigests(uint256 _stakingModuleId) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiCaller) GetAllNodeOperatorDigests(opts *bind.CallOpts, _stakingModuleId *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getAllNodeOperatorDigests", _stakingModuleId) + + if err != nil { + return *new([]StakingRouterNodeOperatorDigest), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterNodeOperatorDigest)).(*[]StakingRouterNodeOperatorDigest) + + return out0, err + +} + +// GetAllNodeOperatorDigests is a free data retrieval call binding the contract method 0x3240a322. +// +// Solidity: function getAllNodeOperatorDigests(uint256 _stakingModuleId) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiSession) GetAllNodeOperatorDigests(_stakingModuleId *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetAllNodeOperatorDigests(&_Api.CallOpts, _stakingModuleId) +} + +// GetAllNodeOperatorDigests is a free data retrieval call binding the contract method 0x3240a322. +// +// Solidity: function getAllNodeOperatorDigests(uint256 _stakingModuleId) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiCallerSession) GetAllNodeOperatorDigests(_stakingModuleId *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetAllNodeOperatorDigests(&_Api.CallOpts, _stakingModuleId) +} + +// GetAllStakingModuleDigests is a free data retrieval call binding the contract method 0x57993b85. +// +// Solidity: function getAllStakingModuleDigests() view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[]) +func (_Api *ApiCaller) GetAllStakingModuleDigests(opts *bind.CallOpts) ([]StakingRouterStakingModuleDigest, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getAllStakingModuleDigests") + + if err != nil { + return *new([]StakingRouterStakingModuleDigest), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterStakingModuleDigest)).(*[]StakingRouterStakingModuleDigest) + + return out0, err + +} + +// GetAllStakingModuleDigests is a free data retrieval call binding the contract method 0x57993b85. +// +// Solidity: function getAllStakingModuleDigests() view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[]) +func (_Api *ApiSession) GetAllStakingModuleDigests() ([]StakingRouterStakingModuleDigest, error) { + return _Api.Contract.GetAllStakingModuleDigests(&_Api.CallOpts) +} + +// GetAllStakingModuleDigests is a free data retrieval call binding the contract method 0x57993b85. +// +// Solidity: function getAllStakingModuleDigests() view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[]) +func (_Api *ApiCallerSession) GetAllStakingModuleDigests() ([]StakingRouterStakingModuleDigest, error) { + return _Api.Contract.GetAllStakingModuleDigests(&_Api.CallOpts) +} + +// GetContractVersion is a free data retrieval call binding the contract method 0x8aa10435. +// +// Solidity: function getContractVersion() view returns(uint256) +func (_Api *ApiCaller) GetContractVersion(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getContractVersion") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetContractVersion is a free data retrieval call binding the contract method 0x8aa10435. +// +// Solidity: function getContractVersion() view returns(uint256) +func (_Api *ApiSession) GetContractVersion() (*big.Int, error) { + return _Api.Contract.GetContractVersion(&_Api.CallOpts) +} + +// GetContractVersion is a free data retrieval call binding the contract method 0x8aa10435. +// +// Solidity: function getContractVersion() view returns(uint256) +func (_Api *ApiCallerSession) GetContractVersion() (*big.Int, error) { + return _Api.Contract.GetContractVersion(&_Api.CallOpts) +} + +// GetDepositsAllocation is a free data retrieval call binding the contract method 0xc82b1bb1. +// +// Solidity: function getDepositsAllocation(uint256 _depositsCount) view returns(uint256 allocated, uint256[] allocations) +func (_Api *ApiCaller) GetDepositsAllocation(opts *bind.CallOpts, _depositsCount *big.Int) (struct { + Allocated *big.Int + Allocations []*big.Int +}, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getDepositsAllocation", _depositsCount) + + outstruct := new(struct { + Allocated *big.Int + Allocations []*big.Int + }) + if err != nil { + return *outstruct, err + } + + outstruct.Allocated = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + outstruct.Allocations = *abi.ConvertType(out[1], new([]*big.Int)).(*[]*big.Int) + + return *outstruct, err + +} + +// GetDepositsAllocation is a free data retrieval call binding the contract method 0xc82b1bb1. +// +// Solidity: function getDepositsAllocation(uint256 _depositsCount) view returns(uint256 allocated, uint256[] allocations) +func (_Api *ApiSession) GetDepositsAllocation(_depositsCount *big.Int) (struct { + Allocated *big.Int + Allocations []*big.Int +}, error) { + return _Api.Contract.GetDepositsAllocation(&_Api.CallOpts, _depositsCount) +} + +// GetDepositsAllocation is a free data retrieval call binding the contract method 0xc82b1bb1. +// +// Solidity: function getDepositsAllocation(uint256 _depositsCount) view returns(uint256 allocated, uint256[] allocations) +func (_Api *ApiCallerSession) GetDepositsAllocation(_depositsCount *big.Int) (struct { + Allocated *big.Int + Allocations []*big.Int +}, error) { + return _Api.Contract.GetDepositsAllocation(&_Api.CallOpts, _depositsCount) +} + +// GetLido is a free data retrieval call binding the contract method 0x6a516b47. +// +// Solidity: function getLido() view returns(address) +func (_Api *ApiCaller) GetLido(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getLido") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetLido is a free data retrieval call binding the contract method 0x6a516b47. +// +// Solidity: function getLido() view returns(address) +func (_Api *ApiSession) GetLido() (common.Address, error) { + return _Api.Contract.GetLido(&_Api.CallOpts) +} + +// GetLido is a free data retrieval call binding the contract method 0x6a516b47. +// +// Solidity: function getLido() view returns(address) +func (_Api *ApiCallerSession) GetLido() (common.Address, error) { + return _Api.Contract.GetLido(&_Api.CallOpts) +} + +// GetNodeOperatorDigests is a free data retrieval call binding the contract method 0xf07ff28a. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256[] _nodeOperatorIds) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[] digests) +func (_Api *ApiCaller) GetNodeOperatorDigests(opts *bind.CallOpts, _stakingModuleId *big.Int, _nodeOperatorIds []*big.Int) ([]StakingRouterNodeOperatorDigest, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getNodeOperatorDigests", _stakingModuleId, _nodeOperatorIds) + + if err != nil { + return *new([]StakingRouterNodeOperatorDigest), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterNodeOperatorDigest)).(*[]StakingRouterNodeOperatorDigest) + + return out0, err + +} + +// GetNodeOperatorDigests is a free data retrieval call binding the contract method 0xf07ff28a. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256[] _nodeOperatorIds) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[] digests) +func (_Api *ApiSession) GetNodeOperatorDigests(_stakingModuleId *big.Int, _nodeOperatorIds []*big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetNodeOperatorDigests(&_Api.CallOpts, _stakingModuleId, _nodeOperatorIds) +} + +// GetNodeOperatorDigests is a free data retrieval call binding the contract method 0xf07ff28a. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256[] _nodeOperatorIds) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[] digests) +func (_Api *ApiCallerSession) GetNodeOperatorDigests(_stakingModuleId *big.Int, _nodeOperatorIds []*big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetNodeOperatorDigests(&_Api.CallOpts, _stakingModuleId, _nodeOperatorIds) +} + +// GetNodeOperatorDigests0 is a free data retrieval call binding the contract method 0xf8bb6d42. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256 _offset, uint256 _limit) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiCaller) GetNodeOperatorDigests0(opts *bind.CallOpts, _stakingModuleId *big.Int, _offset *big.Int, _limit *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getNodeOperatorDigests0", _stakingModuleId, _offset, _limit) + + if err != nil { + return *new([]StakingRouterNodeOperatorDigest), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterNodeOperatorDigest)).(*[]StakingRouterNodeOperatorDigest) + + return out0, err + +} + +// GetNodeOperatorDigests0 is a free data retrieval call binding the contract method 0xf8bb6d42. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256 _offset, uint256 _limit) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiSession) GetNodeOperatorDigests0(_stakingModuleId *big.Int, _offset *big.Int, _limit *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetNodeOperatorDigests0(&_Api.CallOpts, _stakingModuleId, _offset, _limit) +} + +// GetNodeOperatorDigests0 is a free data retrieval call binding the contract method 0xf8bb6d42. +// +// Solidity: function getNodeOperatorDigests(uint256 _stakingModuleId, uint256 _offset, uint256 _limit) view returns((uint256,bool,(bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256))[]) +func (_Api *ApiCallerSession) GetNodeOperatorDigests0(_stakingModuleId *big.Int, _offset *big.Int, _limit *big.Int) ([]StakingRouterNodeOperatorDigest, error) { + return _Api.Contract.GetNodeOperatorDigests0(&_Api.CallOpts, _stakingModuleId, _offset, _limit) +} + +// GetNodeOperatorSummary is a free data retrieval call binding the contract method 0xaa5a1b9d. +// +// Solidity: function getNodeOperatorSummary(uint256 _stakingModuleId, uint256 _nodeOperatorId) view returns((bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256) summary) +func (_Api *ApiCaller) GetNodeOperatorSummary(opts *bind.CallOpts, _stakingModuleId *big.Int, _nodeOperatorId *big.Int) (StakingRouterNodeOperatorSummary, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getNodeOperatorSummary", _stakingModuleId, _nodeOperatorId) + + if err != nil { + return *new(StakingRouterNodeOperatorSummary), err + } + + out0 := *abi.ConvertType(out[0], new(StakingRouterNodeOperatorSummary)).(*StakingRouterNodeOperatorSummary) + + return out0, err + +} + +// GetNodeOperatorSummary is a free data retrieval call binding the contract method 0xaa5a1b9d. +// +// Solidity: function getNodeOperatorSummary(uint256 _stakingModuleId, uint256 _nodeOperatorId) view returns((bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256) summary) +func (_Api *ApiSession) GetNodeOperatorSummary(_stakingModuleId *big.Int, _nodeOperatorId *big.Int) (StakingRouterNodeOperatorSummary, error) { + return _Api.Contract.GetNodeOperatorSummary(&_Api.CallOpts, _stakingModuleId, _nodeOperatorId) +} + +// GetNodeOperatorSummary is a free data retrieval call binding the contract method 0xaa5a1b9d. +// +// Solidity: function getNodeOperatorSummary(uint256 _stakingModuleId, uint256 _nodeOperatorId) view returns((bool,uint256,uint256,uint256,uint256,uint256,uint256,uint256) summary) +func (_Api *ApiCallerSession) GetNodeOperatorSummary(_stakingModuleId *big.Int, _nodeOperatorId *big.Int) (StakingRouterNodeOperatorSummary, error) { + return _Api.Contract.GetNodeOperatorSummary(&_Api.CallOpts, _stakingModuleId, _nodeOperatorId) +} + +// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. +// +// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) +func (_Api *ApiCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getRoleAdmin", role) + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. +// +// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) +func (_Api *ApiSession) GetRoleAdmin(role [32]byte) ([32]byte, error) { + return _Api.Contract.GetRoleAdmin(&_Api.CallOpts, role) +} + +// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. +// +// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) +func (_Api *ApiCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error) { + return _Api.Contract.GetRoleAdmin(&_Api.CallOpts, role) +} + +// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c. +// +// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address) +func (_Api *ApiCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getRoleMember", role, index) + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c. +// +// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address) +func (_Api *ApiSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error) { + return _Api.Contract.GetRoleMember(&_Api.CallOpts, role, index) +} + +// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c. +// +// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address) +func (_Api *ApiCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error) { + return _Api.Contract.GetRoleMember(&_Api.CallOpts, role, index) +} + +// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873. +// +// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256) +func (_Api *ApiCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getRoleMemberCount", role) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873. +// +// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256) +func (_Api *ApiSession) GetRoleMemberCount(role [32]byte) (*big.Int, error) { + return _Api.Contract.GetRoleMemberCount(&_Api.CallOpts, role) +} + +// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873. +// +// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256) +func (_Api *ApiCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error) { + return _Api.Contract.GetRoleMemberCount(&_Api.CallOpts, role) +} + +// GetStakingFeeAggregateDistribution is a free data retrieval call binding the contract method 0xfa5093eb. +// +// Solidity: function getStakingFeeAggregateDistribution() view returns(uint96 modulesFee, uint96 treasuryFee, uint256 basePrecision) +func (_Api *ApiCaller) GetStakingFeeAggregateDistribution(opts *bind.CallOpts) (struct { + ModulesFee *big.Int + TreasuryFee *big.Int + BasePrecision *big.Int +}, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingFeeAggregateDistribution") + + outstruct := new(struct { + ModulesFee *big.Int + TreasuryFee *big.Int + BasePrecision *big.Int + }) + if err != nil { + return *outstruct, err + } + + outstruct.ModulesFee = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + outstruct.TreasuryFee = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) + outstruct.BasePrecision = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) + + return *outstruct, err + +} + +// GetStakingFeeAggregateDistribution is a free data retrieval call binding the contract method 0xfa5093eb. +// +// Solidity: function getStakingFeeAggregateDistribution() view returns(uint96 modulesFee, uint96 treasuryFee, uint256 basePrecision) +func (_Api *ApiSession) GetStakingFeeAggregateDistribution() (struct { + ModulesFee *big.Int + TreasuryFee *big.Int + BasePrecision *big.Int +}, error) { + return _Api.Contract.GetStakingFeeAggregateDistribution(&_Api.CallOpts) +} + +// GetStakingFeeAggregateDistribution is a free data retrieval call binding the contract method 0xfa5093eb. +// +// Solidity: function getStakingFeeAggregateDistribution() view returns(uint96 modulesFee, uint96 treasuryFee, uint256 basePrecision) +func (_Api *ApiCallerSession) GetStakingFeeAggregateDistribution() (struct { + ModulesFee *big.Int + TreasuryFee *big.Int + BasePrecision *big.Int +}, error) { + return _Api.Contract.GetStakingFeeAggregateDistribution(&_Api.CallOpts) +} + +// GetStakingFeeAggregateDistributionE4Precision is a free data retrieval call binding the contract method 0xefcdcc0e. +// +// Solidity: function getStakingFeeAggregateDistributionE4Precision() view returns(uint16 modulesFee, uint16 treasuryFee) +func (_Api *ApiCaller) GetStakingFeeAggregateDistributionE4Precision(opts *bind.CallOpts) (struct { + ModulesFee uint16 + TreasuryFee uint16 +}, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingFeeAggregateDistributionE4Precision") + + outstruct := new(struct { + ModulesFee uint16 + TreasuryFee uint16 + }) + if err != nil { + return *outstruct, err + } + + outstruct.ModulesFee = *abi.ConvertType(out[0], new(uint16)).(*uint16) + outstruct.TreasuryFee = *abi.ConvertType(out[1], new(uint16)).(*uint16) + + return *outstruct, err + +} + +// GetStakingFeeAggregateDistributionE4Precision is a free data retrieval call binding the contract method 0xefcdcc0e. +// +// Solidity: function getStakingFeeAggregateDistributionE4Precision() view returns(uint16 modulesFee, uint16 treasuryFee) +func (_Api *ApiSession) GetStakingFeeAggregateDistributionE4Precision() (struct { + ModulesFee uint16 + TreasuryFee uint16 +}, error) { + return _Api.Contract.GetStakingFeeAggregateDistributionE4Precision(&_Api.CallOpts) +} + +// GetStakingFeeAggregateDistributionE4Precision is a free data retrieval call binding the contract method 0xefcdcc0e. +// +// Solidity: function getStakingFeeAggregateDistributionE4Precision() view returns(uint16 modulesFee, uint16 treasuryFee) +func (_Api *ApiCallerSession) GetStakingFeeAggregateDistributionE4Precision() (struct { + ModulesFee uint16 + TreasuryFee uint16 +}, error) { + return _Api.Contract.GetStakingFeeAggregateDistributionE4Precision(&_Api.CallOpts) +} + +// GetStakingModule is a free data retrieval call binding the contract method 0xbc1bb190. +// +// Solidity: function getStakingModule(uint256 _stakingModuleId) view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)) +func (_Api *ApiCaller) GetStakingModule(opts *bind.CallOpts, _stakingModuleId *big.Int) (StakingRouterStakingModule, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModule", _stakingModuleId) + + if err != nil { + return *new(StakingRouterStakingModule), err + } + + out0 := *abi.ConvertType(out[0], new(StakingRouterStakingModule)).(*StakingRouterStakingModule) + + return out0, err + +} + +// GetStakingModule is a free data retrieval call binding the contract method 0xbc1bb190. +// +// Solidity: function getStakingModule(uint256 _stakingModuleId) view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)) +func (_Api *ApiSession) GetStakingModule(_stakingModuleId *big.Int) (StakingRouterStakingModule, error) { + return _Api.Contract.GetStakingModule(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModule is a free data retrieval call binding the contract method 0xbc1bb190. +// +// Solidity: function getStakingModule(uint256 _stakingModuleId) view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)) +func (_Api *ApiCallerSession) GetStakingModule(_stakingModuleId *big.Int) (StakingRouterStakingModule, error) { + return _Api.Contract.GetStakingModule(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleActiveValidatorsCount is a free data retrieval call binding the contract method 0x96b5d81c. +// +// Solidity: function getStakingModuleActiveValidatorsCount(uint256 _stakingModuleId) view returns(uint256 activeValidatorsCount) +func (_Api *ApiCaller) GetStakingModuleActiveValidatorsCount(opts *bind.CallOpts, _stakingModuleId *big.Int) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleActiveValidatorsCount", _stakingModuleId) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetStakingModuleActiveValidatorsCount is a free data retrieval call binding the contract method 0x96b5d81c. +// +// Solidity: function getStakingModuleActiveValidatorsCount(uint256 _stakingModuleId) view returns(uint256 activeValidatorsCount) +func (_Api *ApiSession) GetStakingModuleActiveValidatorsCount(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleActiveValidatorsCount(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleActiveValidatorsCount is a free data retrieval call binding the contract method 0x96b5d81c. +// +// Solidity: function getStakingModuleActiveValidatorsCount(uint256 _stakingModuleId) view returns(uint256 activeValidatorsCount) +func (_Api *ApiCallerSession) GetStakingModuleActiveValidatorsCount(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleActiveValidatorsCount(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleDigests is a free data retrieval call binding the contract method 0x8525e3a1. +// +// Solidity: function getStakingModuleDigests(uint256[] _stakingModuleIds) view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[] digests) +func (_Api *ApiCaller) GetStakingModuleDigests(opts *bind.CallOpts, _stakingModuleIds []*big.Int) ([]StakingRouterStakingModuleDigest, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleDigests", _stakingModuleIds) + + if err != nil { + return *new([]StakingRouterStakingModuleDigest), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterStakingModuleDigest)).(*[]StakingRouterStakingModuleDigest) + + return out0, err + +} + +// GetStakingModuleDigests is a free data retrieval call binding the contract method 0x8525e3a1. +// +// Solidity: function getStakingModuleDigests(uint256[] _stakingModuleIds) view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[] digests) +func (_Api *ApiSession) GetStakingModuleDigests(_stakingModuleIds []*big.Int) ([]StakingRouterStakingModuleDigest, error) { + return _Api.Contract.GetStakingModuleDigests(&_Api.CallOpts, _stakingModuleIds) +} + +// GetStakingModuleDigests is a free data retrieval call binding the contract method 0x8525e3a1. +// +// Solidity: function getStakingModuleDigests(uint256[] _stakingModuleIds) view returns((uint256,uint256,(uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256),(uint256,uint256,uint256))[] digests) +func (_Api *ApiCallerSession) GetStakingModuleDigests(_stakingModuleIds []*big.Int) ([]StakingRouterStakingModuleDigest, error) { + return _Api.Contract.GetStakingModuleDigests(&_Api.CallOpts, _stakingModuleIds) +} + +// GetStakingModuleIds is a free data retrieval call binding the contract method 0xf2aebb65. +// +// Solidity: function getStakingModuleIds() view returns(uint256[] stakingModuleIds) +func (_Api *ApiCaller) GetStakingModuleIds(opts *bind.CallOpts) ([]*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleIds") + + if err != nil { + return *new([]*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) + + return out0, err + +} + +// GetStakingModuleIds is a free data retrieval call binding the contract method 0xf2aebb65. +// +// Solidity: function getStakingModuleIds() view returns(uint256[] stakingModuleIds) +func (_Api *ApiSession) GetStakingModuleIds() ([]*big.Int, error) { + return _Api.Contract.GetStakingModuleIds(&_Api.CallOpts) +} + +// GetStakingModuleIds is a free data retrieval call binding the contract method 0xf2aebb65. +// +// Solidity: function getStakingModuleIds() view returns(uint256[] stakingModuleIds) +func (_Api *ApiCallerSession) GetStakingModuleIds() ([]*big.Int, error) { + return _Api.Contract.GetStakingModuleIds(&_Api.CallOpts) +} + +// GetStakingModuleIsActive is a free data retrieval call binding the contract method 0x6608b11b. +// +// Solidity: function getStakingModuleIsActive(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCaller) GetStakingModuleIsActive(opts *bind.CallOpts, _stakingModuleId *big.Int) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleIsActive", _stakingModuleId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// GetStakingModuleIsActive is a free data retrieval call binding the contract method 0x6608b11b. +// +// Solidity: function getStakingModuleIsActive(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiSession) GetStakingModuleIsActive(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsActive(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleIsActive is a free data retrieval call binding the contract method 0x6608b11b. +// +// Solidity: function getStakingModuleIsActive(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCallerSession) GetStakingModuleIsActive(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsActive(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleIsDepositsPaused is a free data retrieval call binding the contract method 0xe24ce9f1. +// +// Solidity: function getStakingModuleIsDepositsPaused(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCaller) GetStakingModuleIsDepositsPaused(opts *bind.CallOpts, _stakingModuleId *big.Int) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleIsDepositsPaused", _stakingModuleId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// GetStakingModuleIsDepositsPaused is a free data retrieval call binding the contract method 0xe24ce9f1. +// +// Solidity: function getStakingModuleIsDepositsPaused(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiSession) GetStakingModuleIsDepositsPaused(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsDepositsPaused(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleIsDepositsPaused is a free data retrieval call binding the contract method 0xe24ce9f1. +// +// Solidity: function getStakingModuleIsDepositsPaused(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCallerSession) GetStakingModuleIsDepositsPaused(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsDepositsPaused(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleIsStopped is a free data retrieval call binding the contract method 0x6ada55b9. +// +// Solidity: function getStakingModuleIsStopped(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCaller) GetStakingModuleIsStopped(opts *bind.CallOpts, _stakingModuleId *big.Int) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleIsStopped", _stakingModuleId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// GetStakingModuleIsStopped is a free data retrieval call binding the contract method 0x6ada55b9. +// +// Solidity: function getStakingModuleIsStopped(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiSession) GetStakingModuleIsStopped(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsStopped(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleIsStopped is a free data retrieval call binding the contract method 0x6ada55b9. +// +// Solidity: function getStakingModuleIsStopped(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCallerSession) GetStakingModuleIsStopped(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.GetStakingModuleIsStopped(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleLastDepositBlock is a free data retrieval call binding the contract method 0x473e0433. +// +// Solidity: function getStakingModuleLastDepositBlock(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiCaller) GetStakingModuleLastDepositBlock(opts *bind.CallOpts, _stakingModuleId *big.Int) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleLastDepositBlock", _stakingModuleId) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetStakingModuleLastDepositBlock is a free data retrieval call binding the contract method 0x473e0433. +// +// Solidity: function getStakingModuleLastDepositBlock(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiSession) GetStakingModuleLastDepositBlock(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleLastDepositBlock(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleLastDepositBlock is a free data retrieval call binding the contract method 0x473e0433. +// +// Solidity: function getStakingModuleLastDepositBlock(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiCallerSession) GetStakingModuleLastDepositBlock(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleLastDepositBlock(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleMaxDepositsCount is a free data retrieval call binding the contract method 0x19c64b79. +// +// Solidity: function getStakingModuleMaxDepositsCount(uint256 _stakingModuleId, uint256 _maxDepositsValue) view returns(uint256) +func (_Api *ApiCaller) GetStakingModuleMaxDepositsCount(opts *bind.CallOpts, _stakingModuleId *big.Int, _maxDepositsValue *big.Int) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleMaxDepositsCount", _stakingModuleId, _maxDepositsValue) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetStakingModuleMaxDepositsCount is a free data retrieval call binding the contract method 0x19c64b79. +// +// Solidity: function getStakingModuleMaxDepositsCount(uint256 _stakingModuleId, uint256 _maxDepositsValue) view returns(uint256) +func (_Api *ApiSession) GetStakingModuleMaxDepositsCount(_stakingModuleId *big.Int, _maxDepositsValue *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleMaxDepositsCount(&_Api.CallOpts, _stakingModuleId, _maxDepositsValue) +} + +// GetStakingModuleMaxDepositsCount is a free data retrieval call binding the contract method 0x19c64b79. +// +// Solidity: function getStakingModuleMaxDepositsCount(uint256 _stakingModuleId, uint256 _maxDepositsValue) view returns(uint256) +func (_Api *ApiCallerSession) GetStakingModuleMaxDepositsCount(_stakingModuleId *big.Int, _maxDepositsValue *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleMaxDepositsCount(&_Api.CallOpts, _stakingModuleId, _maxDepositsValue) +} + +// GetStakingModuleNonce is a free data retrieval call binding the contract method 0x0519fbbf. +// +// Solidity: function getStakingModuleNonce(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiCaller) GetStakingModuleNonce(opts *bind.CallOpts, _stakingModuleId *big.Int) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleNonce", _stakingModuleId) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetStakingModuleNonce is a free data retrieval call binding the contract method 0x0519fbbf. +// +// Solidity: function getStakingModuleNonce(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiSession) GetStakingModuleNonce(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleNonce(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleNonce is a free data retrieval call binding the contract method 0x0519fbbf. +// +// Solidity: function getStakingModuleNonce(uint256 _stakingModuleId) view returns(uint256) +func (_Api *ApiCallerSession) GetStakingModuleNonce(_stakingModuleId *big.Int) (*big.Int, error) { + return _Api.Contract.GetStakingModuleNonce(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleStatus is a free data retrieval call binding the contract method 0x9fc5a6ed. +// +// Solidity: function getStakingModuleStatus(uint256 _stakingModuleId) view returns(uint8) +func (_Api *ApiCaller) GetStakingModuleStatus(opts *bind.CallOpts, _stakingModuleId *big.Int) (uint8, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleStatus", _stakingModuleId) + + if err != nil { + return *new(uint8), err + } + + out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) + + return out0, err + +} + +// GetStakingModuleStatus is a free data retrieval call binding the contract method 0x9fc5a6ed. +// +// Solidity: function getStakingModuleStatus(uint256 _stakingModuleId) view returns(uint8) +func (_Api *ApiSession) GetStakingModuleStatus(_stakingModuleId *big.Int) (uint8, error) { + return _Api.Contract.GetStakingModuleStatus(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleStatus is a free data retrieval call binding the contract method 0x9fc5a6ed. +// +// Solidity: function getStakingModuleStatus(uint256 _stakingModuleId) view returns(uint8) +func (_Api *ApiCallerSession) GetStakingModuleStatus(_stakingModuleId *big.Int) (uint8, error) { + return _Api.Contract.GetStakingModuleStatus(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleSummary is a free data retrieval call binding the contract method 0x07e203ac. +// +// Solidity: function getStakingModuleSummary(uint256 _stakingModuleId) view returns((uint256,uint256,uint256) summary) +func (_Api *ApiCaller) GetStakingModuleSummary(opts *bind.CallOpts, _stakingModuleId *big.Int) (StakingRouterStakingModuleSummary, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModuleSummary", _stakingModuleId) + + if err != nil { + return *new(StakingRouterStakingModuleSummary), err + } + + out0 := *abi.ConvertType(out[0], new(StakingRouterStakingModuleSummary)).(*StakingRouterStakingModuleSummary) + + return out0, err + +} + +// GetStakingModuleSummary is a free data retrieval call binding the contract method 0x07e203ac. +// +// Solidity: function getStakingModuleSummary(uint256 _stakingModuleId) view returns((uint256,uint256,uint256) summary) +func (_Api *ApiSession) GetStakingModuleSummary(_stakingModuleId *big.Int) (StakingRouterStakingModuleSummary, error) { + return _Api.Contract.GetStakingModuleSummary(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModuleSummary is a free data retrieval call binding the contract method 0x07e203ac. +// +// Solidity: function getStakingModuleSummary(uint256 _stakingModuleId) view returns((uint256,uint256,uint256) summary) +func (_Api *ApiCallerSession) GetStakingModuleSummary(_stakingModuleId *big.Int) (StakingRouterStakingModuleSummary, error) { + return _Api.Contract.GetStakingModuleSummary(&_Api.CallOpts, _stakingModuleId) +} + +// GetStakingModules is a free data retrieval call binding the contract method 0x6183214d. +// +// Solidity: function getStakingModules() view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)[] res) +func (_Api *ApiCaller) GetStakingModules(opts *bind.CallOpts) ([]StakingRouterStakingModule, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModules") + + if err != nil { + return *new([]StakingRouterStakingModule), err + } + + out0 := *abi.ConvertType(out[0], new([]StakingRouterStakingModule)).(*[]StakingRouterStakingModule) + + return out0, err + +} + +// GetStakingModules is a free data retrieval call binding the contract method 0x6183214d. +// +// Solidity: function getStakingModules() view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)[] res) +func (_Api *ApiSession) GetStakingModules() ([]StakingRouterStakingModule, error) { + return _Api.Contract.GetStakingModules(&_Api.CallOpts) +} + +// GetStakingModules is a free data retrieval call binding the contract method 0x6183214d. +// +// Solidity: function getStakingModules() view returns((uint24,address,uint16,uint16,uint16,uint8,string,uint64,uint256,uint256)[] res) +func (_Api *ApiCallerSession) GetStakingModules() ([]StakingRouterStakingModule, error) { + return _Api.Contract.GetStakingModules(&_Api.CallOpts) +} + +// GetStakingModulesCount is a free data retrieval call binding the contract method 0x4a7583b6. +// +// Solidity: function getStakingModulesCount() view returns(uint256) +func (_Api *ApiCaller) GetStakingModulesCount(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingModulesCount") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// GetStakingModulesCount is a free data retrieval call binding the contract method 0x4a7583b6. +// +// Solidity: function getStakingModulesCount() view returns(uint256) +func (_Api *ApiSession) GetStakingModulesCount() (*big.Int, error) { + return _Api.Contract.GetStakingModulesCount(&_Api.CallOpts) +} + +// GetStakingModulesCount is a free data retrieval call binding the contract method 0x4a7583b6. +// +// Solidity: function getStakingModulesCount() view returns(uint256) +func (_Api *ApiCallerSession) GetStakingModulesCount() (*big.Int, error) { + return _Api.Contract.GetStakingModulesCount(&_Api.CallOpts) +} + +// GetStakingRewardsDistribution is a free data retrieval call binding the contract method 0xba21ccae. +// +// Solidity: function getStakingRewardsDistribution() view returns(address[] recipients, uint256[] stakingModuleIds, uint96[] stakingModuleFees, uint96 totalFee, uint256 precisionPoints) +func (_Api *ApiCaller) GetStakingRewardsDistribution(opts *bind.CallOpts) (struct { + Recipients []common.Address + StakingModuleIds []*big.Int + StakingModuleFees []*big.Int + TotalFee *big.Int + PrecisionPoints *big.Int +}, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getStakingRewardsDistribution") + + outstruct := new(struct { + Recipients []common.Address + StakingModuleIds []*big.Int + StakingModuleFees []*big.Int + TotalFee *big.Int + PrecisionPoints *big.Int + }) + if err != nil { + return *outstruct, err + } + + outstruct.Recipients = *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) + outstruct.StakingModuleIds = *abi.ConvertType(out[1], new([]*big.Int)).(*[]*big.Int) + outstruct.StakingModuleFees = *abi.ConvertType(out[2], new([]*big.Int)).(*[]*big.Int) + outstruct.TotalFee = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) + outstruct.PrecisionPoints = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) + + return *outstruct, err + +} + +// GetStakingRewardsDistribution is a free data retrieval call binding the contract method 0xba21ccae. +// +// Solidity: function getStakingRewardsDistribution() view returns(address[] recipients, uint256[] stakingModuleIds, uint96[] stakingModuleFees, uint96 totalFee, uint256 precisionPoints) +func (_Api *ApiSession) GetStakingRewardsDistribution() (struct { + Recipients []common.Address + StakingModuleIds []*big.Int + StakingModuleFees []*big.Int + TotalFee *big.Int + PrecisionPoints *big.Int +}, error) { + return _Api.Contract.GetStakingRewardsDistribution(&_Api.CallOpts) +} + +// GetStakingRewardsDistribution is a free data retrieval call binding the contract method 0xba21ccae. +// +// Solidity: function getStakingRewardsDistribution() view returns(address[] recipients, uint256[] stakingModuleIds, uint96[] stakingModuleFees, uint96 totalFee, uint256 precisionPoints) +func (_Api *ApiCallerSession) GetStakingRewardsDistribution() (struct { + Recipients []common.Address + StakingModuleIds []*big.Int + StakingModuleFees []*big.Int + TotalFee *big.Int + PrecisionPoints *big.Int +}, error) { + return _Api.Contract.GetStakingRewardsDistribution(&_Api.CallOpts) +} + +// GetTotalFeeE4Precision is a free data retrieval call binding the contract method 0x9fbb7bae. +// +// Solidity: function getTotalFeeE4Precision() view returns(uint16 totalFee) +func (_Api *ApiCaller) GetTotalFeeE4Precision(opts *bind.CallOpts) (uint16, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getTotalFeeE4Precision") + + if err != nil { + return *new(uint16), err + } + + out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16) + + return out0, err + +} + +// GetTotalFeeE4Precision is a free data retrieval call binding the contract method 0x9fbb7bae. +// +// Solidity: function getTotalFeeE4Precision() view returns(uint16 totalFee) +func (_Api *ApiSession) GetTotalFeeE4Precision() (uint16, error) { + return _Api.Contract.GetTotalFeeE4Precision(&_Api.CallOpts) +} + +// GetTotalFeeE4Precision is a free data retrieval call binding the contract method 0x9fbb7bae. +// +// Solidity: function getTotalFeeE4Precision() view returns(uint16 totalFee) +func (_Api *ApiCallerSession) GetTotalFeeE4Precision() (uint16, error) { + return _Api.Contract.GetTotalFeeE4Precision(&_Api.CallOpts) +} + +// GetWithdrawalCredentials is a free data retrieval call binding the contract method 0x56396715. +// +// Solidity: function getWithdrawalCredentials() view returns(bytes32) +func (_Api *ApiCaller) GetWithdrawalCredentials(opts *bind.CallOpts) ([32]byte, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "getWithdrawalCredentials") + + if err != nil { + return *new([32]byte), err + } + + out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) + + return out0, err + +} + +// GetWithdrawalCredentials is a free data retrieval call binding the contract method 0x56396715. +// +// Solidity: function getWithdrawalCredentials() view returns(bytes32) +func (_Api *ApiSession) GetWithdrawalCredentials() ([32]byte, error) { + return _Api.Contract.GetWithdrawalCredentials(&_Api.CallOpts) +} + +// GetWithdrawalCredentials is a free data retrieval call binding the contract method 0x56396715. +// +// Solidity: function getWithdrawalCredentials() view returns(bytes32) +func (_Api *ApiCallerSession) GetWithdrawalCredentials() ([32]byte, error) { + return _Api.Contract.GetWithdrawalCredentials(&_Api.CallOpts) +} + +// HasRole is a free data retrieval call binding the contract method 0x91d14854. +// +// Solidity: function hasRole(bytes32 role, address account) view returns(bool) +func (_Api *ApiCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "hasRole", role, account) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// HasRole is a free data retrieval call binding the contract method 0x91d14854. +// +// Solidity: function hasRole(bytes32 role, address account) view returns(bool) +func (_Api *ApiSession) HasRole(role [32]byte, account common.Address) (bool, error) { + return _Api.Contract.HasRole(&_Api.CallOpts, role, account) +} + +// HasRole is a free data retrieval call binding the contract method 0x91d14854. +// +// Solidity: function hasRole(bytes32 role, address account) view returns(bool) +func (_Api *ApiCallerSession) HasRole(role [32]byte, account common.Address) (bool, error) { + return _Api.Contract.HasRole(&_Api.CallOpts, role, account) +} + +// HasStakingModule is a free data retrieval call binding the contract method 0xa734329c. +// +// Solidity: function hasStakingModule(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCaller) HasStakingModule(opts *bind.CallOpts, _stakingModuleId *big.Int) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "hasStakingModule", _stakingModuleId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// HasStakingModule is a free data retrieval call binding the contract method 0xa734329c. +// +// Solidity: function hasStakingModule(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiSession) HasStakingModule(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.HasStakingModule(&_Api.CallOpts, _stakingModuleId) +} + +// HasStakingModule is a free data retrieval call binding the contract method 0xa734329c. +// +// Solidity: function hasStakingModule(uint256 _stakingModuleId) view returns(bool) +func (_Api *ApiCallerSession) HasStakingModule(_stakingModuleId *big.Int) (bool, error) { + return _Api.Contract.HasStakingModule(&_Api.CallOpts, _stakingModuleId) +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_Api *ApiCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { + var out []interface{} + err := _Api.contract.Call(opts, &out, "supportsInterface", interfaceId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_Api *ApiSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _Api.Contract.SupportsInterface(&_Api.CallOpts, interfaceId) +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_Api *ApiCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _Api.Contract.SupportsInterface(&_Api.CallOpts, interfaceId) +} + +// AddStakingModule is a paid mutator transaction binding the contract method 0x3e54ee5b. +// +// Solidity: function addStakingModule(string _name, address _stakingModuleAddress, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiTransactor) AddStakingModule(opts *bind.TransactOpts, _name string, _stakingModuleAddress common.Address, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "addStakingModule", _name, _stakingModuleAddress, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// AddStakingModule is a paid mutator transaction binding the contract method 0x3e54ee5b. +// +// Solidity: function addStakingModule(string _name, address _stakingModuleAddress, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiSession) AddStakingModule(_name string, _stakingModuleAddress common.Address, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.Contract.AddStakingModule(&_Api.TransactOpts, _name, _stakingModuleAddress, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// AddStakingModule is a paid mutator transaction binding the contract method 0x3e54ee5b. +// +// Solidity: function addStakingModule(string _name, address _stakingModuleAddress, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiTransactorSession) AddStakingModule(_name string, _stakingModuleAddress common.Address, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.Contract.AddStakingModule(&_Api.TransactOpts, _name, _stakingModuleAddress, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// Deposit is a paid mutator transaction binding the contract method 0xaa0b7db7. +// +// Solidity: function deposit(uint256 _depositsCount, uint256 _stakingModuleId, bytes _depositCalldata) payable returns() +func (_Api *ApiTransactor) Deposit(opts *bind.TransactOpts, _depositsCount *big.Int, _stakingModuleId *big.Int, _depositCalldata []byte) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "deposit", _depositsCount, _stakingModuleId, _depositCalldata) +} + +// Deposit is a paid mutator transaction binding the contract method 0xaa0b7db7. +// +// Solidity: function deposit(uint256 _depositsCount, uint256 _stakingModuleId, bytes _depositCalldata) payable returns() +func (_Api *ApiSession) Deposit(_depositsCount *big.Int, _stakingModuleId *big.Int, _depositCalldata []byte) (*types.Transaction, error) { + return _Api.Contract.Deposit(&_Api.TransactOpts, _depositsCount, _stakingModuleId, _depositCalldata) +} + +// Deposit is a paid mutator transaction binding the contract method 0xaa0b7db7. +// +// Solidity: function deposit(uint256 _depositsCount, uint256 _stakingModuleId, bytes _depositCalldata) payable returns() +func (_Api *ApiTransactorSession) Deposit(_depositsCount *big.Int, _stakingModuleId *big.Int, _depositCalldata []byte) (*types.Transaction, error) { + return _Api.Contract.Deposit(&_Api.TransactOpts, _depositsCount, _stakingModuleId, _depositCalldata) +} + +// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. +// +// Solidity: function grantRole(bytes32 role, address account) returns() +func (_Api *ApiTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "grantRole", role, account) +} + +// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. +// +// Solidity: function grantRole(bytes32 role, address account) returns() +func (_Api *ApiSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.GrantRole(&_Api.TransactOpts, role, account) +} + +// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. +// +// Solidity: function grantRole(bytes32 role, address account) returns() +func (_Api *ApiTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.GrantRole(&_Api.TransactOpts, role, account) +} + +// Initialize is a paid mutator transaction binding the contract method 0x6133f985. +// +// Solidity: function initialize(address _admin, address _lido, bytes32 _withdrawalCredentials) returns() +func (_Api *ApiTransactor) Initialize(opts *bind.TransactOpts, _admin common.Address, _lido common.Address, _withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "initialize", _admin, _lido, _withdrawalCredentials) +} + +// Initialize is a paid mutator transaction binding the contract method 0x6133f985. +// +// Solidity: function initialize(address _admin, address _lido, bytes32 _withdrawalCredentials) returns() +func (_Api *ApiSession) Initialize(_admin common.Address, _lido common.Address, _withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.Contract.Initialize(&_Api.TransactOpts, _admin, _lido, _withdrawalCredentials) +} + +// Initialize is a paid mutator transaction binding the contract method 0x6133f985. +// +// Solidity: function initialize(address _admin, address _lido, bytes32 _withdrawalCredentials) returns() +func (_Api *ApiTransactorSession) Initialize(_admin common.Address, _lido common.Address, _withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.Contract.Initialize(&_Api.TransactOpts, _admin, _lido, _withdrawalCredentials) +} + +// OnValidatorsCountsByNodeOperatorReportingFinished is a paid mutator transaction binding the contract method 0xdb3c7ba7. +// +// Solidity: function onValidatorsCountsByNodeOperatorReportingFinished() returns() +func (_Api *ApiTransactor) OnValidatorsCountsByNodeOperatorReportingFinished(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "onValidatorsCountsByNodeOperatorReportingFinished") +} + +// OnValidatorsCountsByNodeOperatorReportingFinished is a paid mutator transaction binding the contract method 0xdb3c7ba7. +// +// Solidity: function onValidatorsCountsByNodeOperatorReportingFinished() returns() +func (_Api *ApiSession) OnValidatorsCountsByNodeOperatorReportingFinished() (*types.Transaction, error) { + return _Api.Contract.OnValidatorsCountsByNodeOperatorReportingFinished(&_Api.TransactOpts) +} + +// OnValidatorsCountsByNodeOperatorReportingFinished is a paid mutator transaction binding the contract method 0xdb3c7ba7. +// +// Solidity: function onValidatorsCountsByNodeOperatorReportingFinished() returns() +func (_Api *ApiTransactorSession) OnValidatorsCountsByNodeOperatorReportingFinished() (*types.Transaction, error) { + return _Api.Contract.OnValidatorsCountsByNodeOperatorReportingFinished(&_Api.TransactOpts) +} + +// PauseStakingModule is a paid mutator transaction binding the contract method 0x5bf55e40. +// +// Solidity: function pauseStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiTransactor) PauseStakingModule(opts *bind.TransactOpts, _stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "pauseStakingModule", _stakingModuleId) +} + +// PauseStakingModule is a paid mutator transaction binding the contract method 0x5bf55e40. +// +// Solidity: function pauseStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiSession) PauseStakingModule(_stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.Contract.PauseStakingModule(&_Api.TransactOpts, _stakingModuleId) +} + +// PauseStakingModule is a paid mutator transaction binding the contract method 0x5bf55e40. +// +// Solidity: function pauseStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiTransactorSession) PauseStakingModule(_stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.Contract.PauseStakingModule(&_Api.TransactOpts, _stakingModuleId) +} + +// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. +// +// Solidity: function renounceRole(bytes32 role, address account) returns() +func (_Api *ApiTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "renounceRole", role, account) +} + +// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. +// +// Solidity: function renounceRole(bytes32 role, address account) returns() +func (_Api *ApiSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.RenounceRole(&_Api.TransactOpts, role, account) +} + +// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. +// +// Solidity: function renounceRole(bytes32 role, address account) returns() +func (_Api *ApiTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.RenounceRole(&_Api.TransactOpts, role, account) +} + +// ReportRewardsMinted is a paid mutator transaction binding the contract method 0xaf124097. +// +// Solidity: function reportRewardsMinted(uint256[] _stakingModuleIds, uint256[] _totalShares) returns() +func (_Api *ApiTransactor) ReportRewardsMinted(opts *bind.TransactOpts, _stakingModuleIds []*big.Int, _totalShares []*big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "reportRewardsMinted", _stakingModuleIds, _totalShares) +} + +// ReportRewardsMinted is a paid mutator transaction binding the contract method 0xaf124097. +// +// Solidity: function reportRewardsMinted(uint256[] _stakingModuleIds, uint256[] _totalShares) returns() +func (_Api *ApiSession) ReportRewardsMinted(_stakingModuleIds []*big.Int, _totalShares []*big.Int) (*types.Transaction, error) { + return _Api.Contract.ReportRewardsMinted(&_Api.TransactOpts, _stakingModuleIds, _totalShares) +} + +// ReportRewardsMinted is a paid mutator transaction binding the contract method 0xaf124097. +// +// Solidity: function reportRewardsMinted(uint256[] _stakingModuleIds, uint256[] _totalShares) returns() +func (_Api *ApiTransactorSession) ReportRewardsMinted(_stakingModuleIds []*big.Int, _totalShares []*big.Int) (*types.Transaction, error) { + return _Api.Contract.ReportRewardsMinted(&_Api.TransactOpts, _stakingModuleIds, _totalShares) +} + +// ReportStakingModuleExitedValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xc8ac4980. +// +// Solidity: function reportStakingModuleExitedValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _exitedValidatorsCounts) returns() +func (_Api *ApiTransactor) ReportStakingModuleExitedValidatorsCountByNodeOperator(opts *bind.TransactOpts, _stakingModuleId *big.Int, _nodeOperatorIds []byte, _exitedValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "reportStakingModuleExitedValidatorsCountByNodeOperator", _stakingModuleId, _nodeOperatorIds, _exitedValidatorsCounts) +} + +// ReportStakingModuleExitedValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xc8ac4980. +// +// Solidity: function reportStakingModuleExitedValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _exitedValidatorsCounts) returns() +func (_Api *ApiSession) ReportStakingModuleExitedValidatorsCountByNodeOperator(_stakingModuleId *big.Int, _nodeOperatorIds []byte, _exitedValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.Contract.ReportStakingModuleExitedValidatorsCountByNodeOperator(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorIds, _exitedValidatorsCounts) +} + +// ReportStakingModuleExitedValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xc8ac4980. +// +// Solidity: function reportStakingModuleExitedValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _exitedValidatorsCounts) returns() +func (_Api *ApiTransactorSession) ReportStakingModuleExitedValidatorsCountByNodeOperator(_stakingModuleId *big.Int, _nodeOperatorIds []byte, _exitedValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.Contract.ReportStakingModuleExitedValidatorsCountByNodeOperator(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorIds, _exitedValidatorsCounts) +} + +// ReportStakingModuleStuckValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xcb589b9a. +// +// Solidity: function reportStakingModuleStuckValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _stuckValidatorsCounts) returns() +func (_Api *ApiTransactor) ReportStakingModuleStuckValidatorsCountByNodeOperator(opts *bind.TransactOpts, _stakingModuleId *big.Int, _nodeOperatorIds []byte, _stuckValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "reportStakingModuleStuckValidatorsCountByNodeOperator", _stakingModuleId, _nodeOperatorIds, _stuckValidatorsCounts) +} + +// ReportStakingModuleStuckValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xcb589b9a. +// +// Solidity: function reportStakingModuleStuckValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _stuckValidatorsCounts) returns() +func (_Api *ApiSession) ReportStakingModuleStuckValidatorsCountByNodeOperator(_stakingModuleId *big.Int, _nodeOperatorIds []byte, _stuckValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.Contract.ReportStakingModuleStuckValidatorsCountByNodeOperator(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorIds, _stuckValidatorsCounts) +} + +// ReportStakingModuleStuckValidatorsCountByNodeOperator is a paid mutator transaction binding the contract method 0xcb589b9a. +// +// Solidity: function reportStakingModuleStuckValidatorsCountByNodeOperator(uint256 _stakingModuleId, bytes _nodeOperatorIds, bytes _stuckValidatorsCounts) returns() +func (_Api *ApiTransactorSession) ReportStakingModuleStuckValidatorsCountByNodeOperator(_stakingModuleId *big.Int, _nodeOperatorIds []byte, _stuckValidatorsCounts []byte) (*types.Transaction, error) { + return _Api.Contract.ReportStakingModuleStuckValidatorsCountByNodeOperator(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorIds, _stuckValidatorsCounts) +} + +// ResumeStakingModule is a paid mutator transaction binding the contract method 0xd861c584. +// +// Solidity: function resumeStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiTransactor) ResumeStakingModule(opts *bind.TransactOpts, _stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "resumeStakingModule", _stakingModuleId) +} + +// ResumeStakingModule is a paid mutator transaction binding the contract method 0xd861c584. +// +// Solidity: function resumeStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiSession) ResumeStakingModule(_stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.Contract.ResumeStakingModule(&_Api.TransactOpts, _stakingModuleId) +} + +// ResumeStakingModule is a paid mutator transaction binding the contract method 0xd861c584. +// +// Solidity: function resumeStakingModule(uint256 _stakingModuleId) returns() +func (_Api *ApiTransactorSession) ResumeStakingModule(_stakingModuleId *big.Int) (*types.Transaction, error) { + return _Api.Contract.ResumeStakingModule(&_Api.TransactOpts, _stakingModuleId) +} + +// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. +// +// Solidity: function revokeRole(bytes32 role, address account) returns() +func (_Api *ApiTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "revokeRole", role, account) +} + +// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. +// +// Solidity: function revokeRole(bytes32 role, address account) returns() +func (_Api *ApiSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.RevokeRole(&_Api.TransactOpts, role, account) +} + +// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. +// +// Solidity: function revokeRole(bytes32 role, address account) returns() +func (_Api *ApiTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) { + return _Api.Contract.RevokeRole(&_Api.TransactOpts, role, account) +} + +// SetStakingModuleStatus is a paid mutator transaction binding the contract method 0xd0a2b1b8. +// +// Solidity: function setStakingModuleStatus(uint256 _stakingModuleId, uint8 _status) returns() +func (_Api *ApiTransactor) SetStakingModuleStatus(opts *bind.TransactOpts, _stakingModuleId *big.Int, _status uint8) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "setStakingModuleStatus", _stakingModuleId, _status) +} + +// SetStakingModuleStatus is a paid mutator transaction binding the contract method 0xd0a2b1b8. +// +// Solidity: function setStakingModuleStatus(uint256 _stakingModuleId, uint8 _status) returns() +func (_Api *ApiSession) SetStakingModuleStatus(_stakingModuleId *big.Int, _status uint8) (*types.Transaction, error) { + return _Api.Contract.SetStakingModuleStatus(&_Api.TransactOpts, _stakingModuleId, _status) +} + +// SetStakingModuleStatus is a paid mutator transaction binding the contract method 0xd0a2b1b8. +// +// Solidity: function setStakingModuleStatus(uint256 _stakingModuleId, uint8 _status) returns() +func (_Api *ApiTransactorSession) SetStakingModuleStatus(_stakingModuleId *big.Int, _status uint8) (*types.Transaction, error) { + return _Api.Contract.SetStakingModuleStatus(&_Api.TransactOpts, _stakingModuleId, _status) +} + +// SetWithdrawalCredentials is a paid mutator transaction binding the contract method 0xe97ee8cc. +// +// Solidity: function setWithdrawalCredentials(bytes32 _withdrawalCredentials) returns() +func (_Api *ApiTransactor) SetWithdrawalCredentials(opts *bind.TransactOpts, _withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "setWithdrawalCredentials", _withdrawalCredentials) +} + +// SetWithdrawalCredentials is a paid mutator transaction binding the contract method 0xe97ee8cc. +// +// Solidity: function setWithdrawalCredentials(bytes32 _withdrawalCredentials) returns() +func (_Api *ApiSession) SetWithdrawalCredentials(_withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.Contract.SetWithdrawalCredentials(&_Api.TransactOpts, _withdrawalCredentials) +} + +// SetWithdrawalCredentials is a paid mutator transaction binding the contract method 0xe97ee8cc. +// +// Solidity: function setWithdrawalCredentials(bytes32 _withdrawalCredentials) returns() +func (_Api *ApiTransactorSession) SetWithdrawalCredentials(_withdrawalCredentials [32]byte) (*types.Transaction, error) { + return _Api.Contract.SetWithdrawalCredentials(&_Api.TransactOpts, _withdrawalCredentials) +} + +// UnsafeSetExitedValidatorsCount is a paid mutator transaction binding the contract method 0x072859c7. +// +// Solidity: function unsafeSetExitedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _triggerUpdateFinish, (uint256,uint256,uint256,uint256,uint256,uint256) _correction) returns() +func (_Api *ApiTransactor) UnsafeSetExitedValidatorsCount(opts *bind.TransactOpts, _stakingModuleId *big.Int, _nodeOperatorId *big.Int, _triggerUpdateFinish bool, _correction StakingRouterValidatorsCountsCorrection) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "unsafeSetExitedValidatorsCount", _stakingModuleId, _nodeOperatorId, _triggerUpdateFinish, _correction) +} + +// UnsafeSetExitedValidatorsCount is a paid mutator transaction binding the contract method 0x072859c7. +// +// Solidity: function unsafeSetExitedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _triggerUpdateFinish, (uint256,uint256,uint256,uint256,uint256,uint256) _correction) returns() +func (_Api *ApiSession) UnsafeSetExitedValidatorsCount(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _triggerUpdateFinish bool, _correction StakingRouterValidatorsCountsCorrection) (*types.Transaction, error) { + return _Api.Contract.UnsafeSetExitedValidatorsCount(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _triggerUpdateFinish, _correction) +} + +// UnsafeSetExitedValidatorsCount is a paid mutator transaction binding the contract method 0x072859c7. +// +// Solidity: function unsafeSetExitedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _triggerUpdateFinish, (uint256,uint256,uint256,uint256,uint256,uint256) _correction) returns() +func (_Api *ApiTransactorSession) UnsafeSetExitedValidatorsCount(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _triggerUpdateFinish bool, _correction StakingRouterValidatorsCountsCorrection) (*types.Transaction, error) { + return _Api.Contract.UnsafeSetExitedValidatorsCount(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _triggerUpdateFinish, _correction) +} + +// UpdateExitedValidatorsCountByStakingModule is a paid mutator transaction binding the contract method 0xabd44a24. +// +// Solidity: function updateExitedValidatorsCountByStakingModule(uint256[] _stakingModuleIds, uint256[] _exitedValidatorsCounts) returns(uint256) +func (_Api *ApiTransactor) UpdateExitedValidatorsCountByStakingModule(opts *bind.TransactOpts, _stakingModuleIds []*big.Int, _exitedValidatorsCounts []*big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "updateExitedValidatorsCountByStakingModule", _stakingModuleIds, _exitedValidatorsCounts) +} + +// UpdateExitedValidatorsCountByStakingModule is a paid mutator transaction binding the contract method 0xabd44a24. +// +// Solidity: function updateExitedValidatorsCountByStakingModule(uint256[] _stakingModuleIds, uint256[] _exitedValidatorsCounts) returns(uint256) +func (_Api *ApiSession) UpdateExitedValidatorsCountByStakingModule(_stakingModuleIds []*big.Int, _exitedValidatorsCounts []*big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateExitedValidatorsCountByStakingModule(&_Api.TransactOpts, _stakingModuleIds, _exitedValidatorsCounts) +} + +// UpdateExitedValidatorsCountByStakingModule is a paid mutator transaction binding the contract method 0xabd44a24. +// +// Solidity: function updateExitedValidatorsCountByStakingModule(uint256[] _stakingModuleIds, uint256[] _exitedValidatorsCounts) returns(uint256) +func (_Api *ApiTransactorSession) UpdateExitedValidatorsCountByStakingModule(_stakingModuleIds []*big.Int, _exitedValidatorsCounts []*big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateExitedValidatorsCountByStakingModule(&_Api.TransactOpts, _stakingModuleIds, _exitedValidatorsCounts) +} + +// UpdateRefundedValidatorsCount is a paid mutator transaction binding the contract method 0xe1b92a5c. +// +// Solidity: function updateRefundedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, uint256 _refundedValidatorsCount) returns() +func (_Api *ApiTransactor) UpdateRefundedValidatorsCount(opts *bind.TransactOpts, _stakingModuleId *big.Int, _nodeOperatorId *big.Int, _refundedValidatorsCount *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "updateRefundedValidatorsCount", _stakingModuleId, _nodeOperatorId, _refundedValidatorsCount) +} + +// UpdateRefundedValidatorsCount is a paid mutator transaction binding the contract method 0xe1b92a5c. +// +// Solidity: function updateRefundedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, uint256 _refundedValidatorsCount) returns() +func (_Api *ApiSession) UpdateRefundedValidatorsCount(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _refundedValidatorsCount *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateRefundedValidatorsCount(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _refundedValidatorsCount) +} + +// UpdateRefundedValidatorsCount is a paid mutator transaction binding the contract method 0xe1b92a5c. +// +// Solidity: function updateRefundedValidatorsCount(uint256 _stakingModuleId, uint256 _nodeOperatorId, uint256 _refundedValidatorsCount) returns() +func (_Api *ApiTransactorSession) UpdateRefundedValidatorsCount(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _refundedValidatorsCount *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateRefundedValidatorsCount(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _refundedValidatorsCount) +} + +// UpdateStakingModule is a paid mutator transaction binding the contract method 0x8dc70c57. +// +// Solidity: function updateStakingModule(uint256 _stakingModuleId, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiTransactor) UpdateStakingModule(opts *bind.TransactOpts, _stakingModuleId *big.Int, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "updateStakingModule", _stakingModuleId, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// UpdateStakingModule is a paid mutator transaction binding the contract method 0x8dc70c57. +// +// Solidity: function updateStakingModule(uint256 _stakingModuleId, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiSession) UpdateStakingModule(_stakingModuleId *big.Int, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateStakingModule(&_Api.TransactOpts, _stakingModuleId, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// UpdateStakingModule is a paid mutator transaction binding the contract method 0x8dc70c57. +// +// Solidity: function updateStakingModule(uint256 _stakingModuleId, uint256 _targetShare, uint256 _stakingModuleFee, uint256 _treasuryFee) returns() +func (_Api *ApiTransactorSession) UpdateStakingModule(_stakingModuleId *big.Int, _targetShare *big.Int, _stakingModuleFee *big.Int, _treasuryFee *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateStakingModule(&_Api.TransactOpts, _stakingModuleId, _targetShare, _stakingModuleFee, _treasuryFee) +} + +// UpdateTargetValidatorsLimits is a paid mutator transaction binding the contract method 0x7443f523. +// +// Solidity: function updateTargetValidatorsLimits(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _isTargetLimitActive, uint256 _targetLimit) returns() +func (_Api *ApiTransactor) UpdateTargetValidatorsLimits(opts *bind.TransactOpts, _stakingModuleId *big.Int, _nodeOperatorId *big.Int, _isTargetLimitActive bool, _targetLimit *big.Int) (*types.Transaction, error) { + return _Api.contract.Transact(opts, "updateTargetValidatorsLimits", _stakingModuleId, _nodeOperatorId, _isTargetLimitActive, _targetLimit) +} + +// UpdateTargetValidatorsLimits is a paid mutator transaction binding the contract method 0x7443f523. +// +// Solidity: function updateTargetValidatorsLimits(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _isTargetLimitActive, uint256 _targetLimit) returns() +func (_Api *ApiSession) UpdateTargetValidatorsLimits(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _isTargetLimitActive bool, _targetLimit *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateTargetValidatorsLimits(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _isTargetLimitActive, _targetLimit) +} + +// UpdateTargetValidatorsLimits is a paid mutator transaction binding the contract method 0x7443f523. +// +// Solidity: function updateTargetValidatorsLimits(uint256 _stakingModuleId, uint256 _nodeOperatorId, bool _isTargetLimitActive, uint256 _targetLimit) returns() +func (_Api *ApiTransactorSession) UpdateTargetValidatorsLimits(_stakingModuleId *big.Int, _nodeOperatorId *big.Int, _isTargetLimitActive bool, _targetLimit *big.Int) (*types.Transaction, error) { + return _Api.Contract.UpdateTargetValidatorsLimits(&_Api.TransactOpts, _stakingModuleId, _nodeOperatorId, _isTargetLimitActive, _targetLimit) +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_Api *ApiTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { + return _Api.contract.RawTransact(opts, nil) // calldata is disallowed for receive function +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_Api *ApiSession) Receive() (*types.Transaction, error) { + return _Api.Contract.Receive(&_Api.TransactOpts) +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_Api *ApiTransactorSession) Receive() (*types.Transaction, error) { + return _Api.Contract.Receive(&_Api.TransactOpts) +} + +// ApiContractVersionSetIterator is returned from FilterContractVersionSet and is used to iterate over the raw logs and unpacked data for ContractVersionSet events raised by the Api contract. +type ApiContractVersionSetIterator struct { + Event *ApiContractVersionSet // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiContractVersionSetIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiContractVersionSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiContractVersionSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiContractVersionSetIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiContractVersionSetIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiContractVersionSet represents a ContractVersionSet event raised by the Api contract. +type ApiContractVersionSet struct { + Version *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterContractVersionSet is a free log retrieval operation binding the contract event 0xfddcded6b4f4730c226821172046b48372d3cd963c159701ae1b7c3bcac541bb. +// +// Solidity: event ContractVersionSet(uint256 version) +func (_Api *ApiFilterer) FilterContractVersionSet(opts *bind.FilterOpts) (*ApiContractVersionSetIterator, error) { + + logs, sub, err := _Api.contract.FilterLogs(opts, "ContractVersionSet") + if err != nil { + return nil, err + } + return &ApiContractVersionSetIterator{contract: _Api.contract, event: "ContractVersionSet", logs: logs, sub: sub}, nil +} + +// WatchContractVersionSet is a free log subscription operation binding the contract event 0xfddcded6b4f4730c226821172046b48372d3cd963c159701ae1b7c3bcac541bb. +// +// Solidity: event ContractVersionSet(uint256 version) +func (_Api *ApiFilterer) WatchContractVersionSet(opts *bind.WatchOpts, sink chan<- *ApiContractVersionSet) (event.Subscription, error) { + + logs, sub, err := _Api.contract.WatchLogs(opts, "ContractVersionSet") + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiContractVersionSet) + if err := _Api.contract.UnpackLog(event, "ContractVersionSet", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseContractVersionSet is a log parse operation binding the contract event 0xfddcded6b4f4730c226821172046b48372d3cd963c159701ae1b7c3bcac541bb. +// +// Solidity: event ContractVersionSet(uint256 version) +func (_Api *ApiFilterer) ParseContractVersionSet(log types.Log) (*ApiContractVersionSet, error) { + event := new(ApiContractVersionSet) + if err := _Api.contract.UnpackLog(event, "ContractVersionSet", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiExitedAndStuckValidatorsCountsUpdateFailedIterator is returned from FilterExitedAndStuckValidatorsCountsUpdateFailed and is used to iterate over the raw logs and unpacked data for ExitedAndStuckValidatorsCountsUpdateFailed events raised by the Api contract. +type ApiExitedAndStuckValidatorsCountsUpdateFailedIterator struct { + Event *ApiExitedAndStuckValidatorsCountsUpdateFailed // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiExitedAndStuckValidatorsCountsUpdateFailedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiExitedAndStuckValidatorsCountsUpdateFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiExitedAndStuckValidatorsCountsUpdateFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiExitedAndStuckValidatorsCountsUpdateFailedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiExitedAndStuckValidatorsCountsUpdateFailedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiExitedAndStuckValidatorsCountsUpdateFailed represents a ExitedAndStuckValidatorsCountsUpdateFailed event raised by the Api contract. +type ApiExitedAndStuckValidatorsCountsUpdateFailed struct { + StakingModuleId *big.Int + LowLevelRevertData []byte + Raw types.Log // Blockchain specific contextual infos +} + +// FilterExitedAndStuckValidatorsCountsUpdateFailed is a free log retrieval operation binding the contract event 0xe74bf895f0c3a2d6c74c40cbb362fdd9640035fc4226c72e3843809ad2a9d2b5. +// +// Solidity: event ExitedAndStuckValidatorsCountsUpdateFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) FilterExitedAndStuckValidatorsCountsUpdateFailed(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiExitedAndStuckValidatorsCountsUpdateFailedIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "ExitedAndStuckValidatorsCountsUpdateFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiExitedAndStuckValidatorsCountsUpdateFailedIterator{contract: _Api.contract, event: "ExitedAndStuckValidatorsCountsUpdateFailed", logs: logs, sub: sub}, nil +} + +// WatchExitedAndStuckValidatorsCountsUpdateFailed is a free log subscription operation binding the contract event 0xe74bf895f0c3a2d6c74c40cbb362fdd9640035fc4226c72e3843809ad2a9d2b5. +// +// Solidity: event ExitedAndStuckValidatorsCountsUpdateFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) WatchExitedAndStuckValidatorsCountsUpdateFailed(opts *bind.WatchOpts, sink chan<- *ApiExitedAndStuckValidatorsCountsUpdateFailed, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "ExitedAndStuckValidatorsCountsUpdateFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiExitedAndStuckValidatorsCountsUpdateFailed) + if err := _Api.contract.UnpackLog(event, "ExitedAndStuckValidatorsCountsUpdateFailed", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseExitedAndStuckValidatorsCountsUpdateFailed is a log parse operation binding the contract event 0xe74bf895f0c3a2d6c74c40cbb362fdd9640035fc4226c72e3843809ad2a9d2b5. +// +// Solidity: event ExitedAndStuckValidatorsCountsUpdateFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) ParseExitedAndStuckValidatorsCountsUpdateFailed(log types.Log) (*ApiExitedAndStuckValidatorsCountsUpdateFailed, error) { + event := new(ApiExitedAndStuckValidatorsCountsUpdateFailed) + if err := _Api.contract.UnpackLog(event, "ExitedAndStuckValidatorsCountsUpdateFailed", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRewardsMintedReportFailedIterator is returned from FilterRewardsMintedReportFailed and is used to iterate over the raw logs and unpacked data for RewardsMintedReportFailed events raised by the Api contract. +type ApiRewardsMintedReportFailedIterator struct { + Event *ApiRewardsMintedReportFailed // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRewardsMintedReportFailedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRewardsMintedReportFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRewardsMintedReportFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRewardsMintedReportFailedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRewardsMintedReportFailedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRewardsMintedReportFailed represents a RewardsMintedReportFailed event raised by the Api contract. +type ApiRewardsMintedReportFailed struct { + StakingModuleId *big.Int + LowLevelRevertData []byte + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRewardsMintedReportFailed is a free log retrieval operation binding the contract event 0xf74208fedac7280fd11f8de0be14e00423dc5076da8e8ec8ca90e09257fff1b3. +// +// Solidity: event RewardsMintedReportFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) FilterRewardsMintedReportFailed(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiRewardsMintedReportFailedIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RewardsMintedReportFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiRewardsMintedReportFailedIterator{contract: _Api.contract, event: "RewardsMintedReportFailed", logs: logs, sub: sub}, nil +} + +// WatchRewardsMintedReportFailed is a free log subscription operation binding the contract event 0xf74208fedac7280fd11f8de0be14e00423dc5076da8e8ec8ca90e09257fff1b3. +// +// Solidity: event RewardsMintedReportFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) WatchRewardsMintedReportFailed(opts *bind.WatchOpts, sink chan<- *ApiRewardsMintedReportFailed, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RewardsMintedReportFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRewardsMintedReportFailed) + if err := _Api.contract.UnpackLog(event, "RewardsMintedReportFailed", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRewardsMintedReportFailed is a log parse operation binding the contract event 0xf74208fedac7280fd11f8de0be14e00423dc5076da8e8ec8ca90e09257fff1b3. +// +// Solidity: event RewardsMintedReportFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) ParseRewardsMintedReportFailed(log types.Log) (*ApiRewardsMintedReportFailed, error) { + event := new(ApiRewardsMintedReportFailed) + if err := _Api.contract.UnpackLog(event, "RewardsMintedReportFailed", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Api contract. +type ApiRoleAdminChangedIterator struct { + Event *ApiRoleAdminChanged // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRoleAdminChangedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRoleAdminChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRoleAdminChanged) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRoleAdminChangedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRoleAdminChangedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRoleAdminChanged represents a RoleAdminChanged event raised by the Api contract. +type ApiRoleAdminChanged struct { + Role [32]byte + PreviousAdminRole [32]byte + NewAdminRole [32]byte + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. +// +// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) +func (_Api *ApiFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ApiRoleAdminChangedIterator, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var previousAdminRoleRule []interface{} + for _, previousAdminRoleItem := range previousAdminRole { + previousAdminRoleRule = append(previousAdminRoleRule, previousAdminRoleItem) + } + var newAdminRoleRule []interface{} + for _, newAdminRoleItem := range newAdminRole { + newAdminRoleRule = append(newAdminRoleRule, newAdminRoleItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RoleAdminChanged", roleRule, previousAdminRoleRule, newAdminRoleRule) + if err != nil { + return nil, err + } + return &ApiRoleAdminChangedIterator{contract: _Api.contract, event: "RoleAdminChanged", logs: logs, sub: sub}, nil +} + +// WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. +// +// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) +func (_Api *ApiFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ApiRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var previousAdminRoleRule []interface{} + for _, previousAdminRoleItem := range previousAdminRole { + previousAdminRoleRule = append(previousAdminRoleRule, previousAdminRoleItem) + } + var newAdminRoleRule []interface{} + for _, newAdminRoleItem := range newAdminRole { + newAdminRoleRule = append(newAdminRoleRule, newAdminRoleItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RoleAdminChanged", roleRule, previousAdminRoleRule, newAdminRoleRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRoleAdminChanged) + if err := _Api.contract.UnpackLog(event, "RoleAdminChanged", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. +// +// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) +func (_Api *ApiFilterer) ParseRoleAdminChanged(log types.Log) (*ApiRoleAdminChanged, error) { + event := new(ApiRoleAdminChanged) + if err := _Api.contract.UnpackLog(event, "RoleAdminChanged", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Api contract. +type ApiRoleGrantedIterator struct { + Event *ApiRoleGranted // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRoleGrantedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRoleGranted) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRoleGranted) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRoleGrantedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRoleGrantedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRoleGranted represents a RoleGranted event raised by the Api contract. +type ApiRoleGranted struct { + Role [32]byte + Account common.Address + Sender common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. +// +// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ApiRoleGrantedIterator, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var accountRule []interface{} + for _, accountItem := range account { + accountRule = append(accountRule, accountItem) + } + var senderRule []interface{} + for _, senderItem := range sender { + senderRule = append(senderRule, senderItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RoleGranted", roleRule, accountRule, senderRule) + if err != nil { + return nil, err + } + return &ApiRoleGrantedIterator{contract: _Api.contract, event: "RoleGranted", logs: logs, sub: sub}, nil +} + +// WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. +// +// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ApiRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var accountRule []interface{} + for _, accountItem := range account { + accountRule = append(accountRule, accountItem) + } + var senderRule []interface{} + for _, senderItem := range sender { + senderRule = append(senderRule, senderItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RoleGranted", roleRule, accountRule, senderRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRoleGranted) + if err := _Api.contract.UnpackLog(event, "RoleGranted", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. +// +// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) ParseRoleGranted(log types.Log) (*ApiRoleGranted, error) { + event := new(ApiRoleGranted) + if err := _Api.contract.UnpackLog(event, "RoleGranted", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Api contract. +type ApiRoleRevokedIterator struct { + Event *ApiRoleRevoked // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiRoleRevokedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiRoleRevoked) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiRoleRevoked) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiRoleRevokedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiRoleRevokedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiRoleRevoked represents a RoleRevoked event raised by the Api contract. +type ApiRoleRevoked struct { + Role [32]byte + Account common.Address + Sender common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. +// +// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ApiRoleRevokedIterator, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var accountRule []interface{} + for _, accountItem := range account { + accountRule = append(accountRule, accountItem) + } + var senderRule []interface{} + for _, senderItem := range sender { + senderRule = append(senderRule, senderItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "RoleRevoked", roleRule, accountRule, senderRule) + if err != nil { + return nil, err + } + return &ApiRoleRevokedIterator{contract: _Api.contract, event: "RoleRevoked", logs: logs, sub: sub}, nil +} + +// WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. +// +// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ApiRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error) { + + var roleRule []interface{} + for _, roleItem := range role { + roleRule = append(roleRule, roleItem) + } + var accountRule []interface{} + for _, accountItem := range account { + accountRule = append(accountRule, accountItem) + } + var senderRule []interface{} + for _, senderItem := range sender { + senderRule = append(senderRule, senderItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "RoleRevoked", roleRule, accountRule, senderRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiRoleRevoked) + if err := _Api.contract.UnpackLog(event, "RoleRevoked", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. +// +// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) +func (_Api *ApiFilterer) ParseRoleRevoked(log types.Log) (*ApiRoleRevoked, error) { + event := new(ApiRoleRevoked) + if err := _Api.contract.UnpackLog(event, "RoleRevoked", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingModuleAddedIterator is returned from FilterStakingModuleAdded and is used to iterate over the raw logs and unpacked data for StakingModuleAdded events raised by the Api contract. +type ApiStakingModuleAddedIterator struct { + Event *ApiStakingModuleAdded // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingModuleAddedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleAdded) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleAdded) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingModuleAddedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingModuleAddedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingModuleAdded represents a StakingModuleAdded event raised by the Api contract. +type ApiStakingModuleAdded struct { + StakingModuleId *big.Int + StakingModule common.Address + Name string + CreatedBy common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingModuleAdded is a free log retrieval operation binding the contract event 0x43b5213f0e1666cd0b8692a73686164c94deb955a59c65e10dee8bb958e7ce3e. +// +// Solidity: event StakingModuleAdded(uint256 indexed stakingModuleId, address stakingModule, string name, address createdBy) +func (_Api *ApiFilterer) FilterStakingModuleAdded(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingModuleAddedIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingModuleAdded", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingModuleAddedIterator{contract: _Api.contract, event: "StakingModuleAdded", logs: logs, sub: sub}, nil +} + +// WatchStakingModuleAdded is a free log subscription operation binding the contract event 0x43b5213f0e1666cd0b8692a73686164c94deb955a59c65e10dee8bb958e7ce3e. +// +// Solidity: event StakingModuleAdded(uint256 indexed stakingModuleId, address stakingModule, string name, address createdBy) +func (_Api *ApiFilterer) WatchStakingModuleAdded(opts *bind.WatchOpts, sink chan<- *ApiStakingModuleAdded, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingModuleAdded", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingModuleAdded) + if err := _Api.contract.UnpackLog(event, "StakingModuleAdded", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingModuleAdded is a log parse operation binding the contract event 0x43b5213f0e1666cd0b8692a73686164c94deb955a59c65e10dee8bb958e7ce3e. +// +// Solidity: event StakingModuleAdded(uint256 indexed stakingModuleId, address stakingModule, string name, address createdBy) +func (_Api *ApiFilterer) ParseStakingModuleAdded(log types.Log) (*ApiStakingModuleAdded, error) { + event := new(ApiStakingModuleAdded) + if err := _Api.contract.UnpackLog(event, "StakingModuleAdded", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingModuleExitedValidatorsIncompleteReportingIterator is returned from FilterStakingModuleExitedValidatorsIncompleteReporting and is used to iterate over the raw logs and unpacked data for StakingModuleExitedValidatorsIncompleteReporting events raised by the Api contract. +type ApiStakingModuleExitedValidatorsIncompleteReportingIterator struct { + Event *ApiStakingModuleExitedValidatorsIncompleteReporting // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingModuleExitedValidatorsIncompleteReportingIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleExitedValidatorsIncompleteReporting) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleExitedValidatorsIncompleteReporting) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingModuleExitedValidatorsIncompleteReportingIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingModuleExitedValidatorsIncompleteReportingIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingModuleExitedValidatorsIncompleteReporting represents a StakingModuleExitedValidatorsIncompleteReporting event raised by the Api contract. +type ApiStakingModuleExitedValidatorsIncompleteReporting struct { + StakingModuleId *big.Int + UnreportedExitedValidatorsCount *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingModuleExitedValidatorsIncompleteReporting is a free log retrieval operation binding the contract event 0xdd2523ca96a639ba7e17420698937f71eddd8af012ccb36ff5c8fe96141acae9. +// +// Solidity: event StakingModuleExitedValidatorsIncompleteReporting(uint256 indexed stakingModuleId, uint256 unreportedExitedValidatorsCount) +func (_Api *ApiFilterer) FilterStakingModuleExitedValidatorsIncompleteReporting(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingModuleExitedValidatorsIncompleteReportingIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingModuleExitedValidatorsIncompleteReporting", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingModuleExitedValidatorsIncompleteReportingIterator{contract: _Api.contract, event: "StakingModuleExitedValidatorsIncompleteReporting", logs: logs, sub: sub}, nil +} + +// WatchStakingModuleExitedValidatorsIncompleteReporting is a free log subscription operation binding the contract event 0xdd2523ca96a639ba7e17420698937f71eddd8af012ccb36ff5c8fe96141acae9. +// +// Solidity: event StakingModuleExitedValidatorsIncompleteReporting(uint256 indexed stakingModuleId, uint256 unreportedExitedValidatorsCount) +func (_Api *ApiFilterer) WatchStakingModuleExitedValidatorsIncompleteReporting(opts *bind.WatchOpts, sink chan<- *ApiStakingModuleExitedValidatorsIncompleteReporting, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingModuleExitedValidatorsIncompleteReporting", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingModuleExitedValidatorsIncompleteReporting) + if err := _Api.contract.UnpackLog(event, "StakingModuleExitedValidatorsIncompleteReporting", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingModuleExitedValidatorsIncompleteReporting is a log parse operation binding the contract event 0xdd2523ca96a639ba7e17420698937f71eddd8af012ccb36ff5c8fe96141acae9. +// +// Solidity: event StakingModuleExitedValidatorsIncompleteReporting(uint256 indexed stakingModuleId, uint256 unreportedExitedValidatorsCount) +func (_Api *ApiFilterer) ParseStakingModuleExitedValidatorsIncompleteReporting(log types.Log) (*ApiStakingModuleExitedValidatorsIncompleteReporting, error) { + event := new(ApiStakingModuleExitedValidatorsIncompleteReporting) + if err := _Api.contract.UnpackLog(event, "StakingModuleExitedValidatorsIncompleteReporting", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingModuleFeesSetIterator is returned from FilterStakingModuleFeesSet and is used to iterate over the raw logs and unpacked data for StakingModuleFeesSet events raised by the Api contract. +type ApiStakingModuleFeesSetIterator struct { + Event *ApiStakingModuleFeesSet // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingModuleFeesSetIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleFeesSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleFeesSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingModuleFeesSetIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingModuleFeesSetIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingModuleFeesSet represents a StakingModuleFeesSet event raised by the Api contract. +type ApiStakingModuleFeesSet struct { + StakingModuleId *big.Int + StakingModuleFee *big.Int + TreasuryFee *big.Int + SetBy common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingModuleFeesSet is a free log retrieval operation binding the contract event 0x303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410. +// +// Solidity: event StakingModuleFeesSet(uint256 indexed stakingModuleId, uint256 stakingModuleFee, uint256 treasuryFee, address setBy) +func (_Api *ApiFilterer) FilterStakingModuleFeesSet(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingModuleFeesSetIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingModuleFeesSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingModuleFeesSetIterator{contract: _Api.contract, event: "StakingModuleFeesSet", logs: logs, sub: sub}, nil +} + +// WatchStakingModuleFeesSet is a free log subscription operation binding the contract event 0x303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410. +// +// Solidity: event StakingModuleFeesSet(uint256 indexed stakingModuleId, uint256 stakingModuleFee, uint256 treasuryFee, address setBy) +func (_Api *ApiFilterer) WatchStakingModuleFeesSet(opts *bind.WatchOpts, sink chan<- *ApiStakingModuleFeesSet, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingModuleFeesSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingModuleFeesSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleFeesSet", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingModuleFeesSet is a log parse operation binding the contract event 0x303c8ac43d1b1f9b898ddd2915a294efa01e9b07c322d7deeb7db332b66f0410. +// +// Solidity: event StakingModuleFeesSet(uint256 indexed stakingModuleId, uint256 stakingModuleFee, uint256 treasuryFee, address setBy) +func (_Api *ApiFilterer) ParseStakingModuleFeesSet(log types.Log) (*ApiStakingModuleFeesSet, error) { + event := new(ApiStakingModuleFeesSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleFeesSet", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingModuleStatusSetIterator is returned from FilterStakingModuleStatusSet and is used to iterate over the raw logs and unpacked data for StakingModuleStatusSet events raised by the Api contract. +type ApiStakingModuleStatusSetIterator struct { + Event *ApiStakingModuleStatusSet // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingModuleStatusSetIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleStatusSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleStatusSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingModuleStatusSetIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingModuleStatusSetIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingModuleStatusSet represents a StakingModuleStatusSet event raised by the Api contract. +type ApiStakingModuleStatusSet struct { + StakingModuleId *big.Int + Status uint8 + SetBy common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingModuleStatusSet is a free log retrieval operation binding the contract event 0xfd6f15fb2b48a21a60fe3d44d3c3a0433ca01e121b5124a63ec45c30ad925a17. +// +// Solidity: event StakingModuleStatusSet(uint256 indexed stakingModuleId, uint8 status, address setBy) +func (_Api *ApiFilterer) FilterStakingModuleStatusSet(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingModuleStatusSetIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingModuleStatusSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingModuleStatusSetIterator{contract: _Api.contract, event: "StakingModuleStatusSet", logs: logs, sub: sub}, nil +} + +// WatchStakingModuleStatusSet is a free log subscription operation binding the contract event 0xfd6f15fb2b48a21a60fe3d44d3c3a0433ca01e121b5124a63ec45c30ad925a17. +// +// Solidity: event StakingModuleStatusSet(uint256 indexed stakingModuleId, uint8 status, address setBy) +func (_Api *ApiFilterer) WatchStakingModuleStatusSet(opts *bind.WatchOpts, sink chan<- *ApiStakingModuleStatusSet, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingModuleStatusSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingModuleStatusSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleStatusSet", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingModuleStatusSet is a log parse operation binding the contract event 0xfd6f15fb2b48a21a60fe3d44d3c3a0433ca01e121b5124a63ec45c30ad925a17. +// +// Solidity: event StakingModuleStatusSet(uint256 indexed stakingModuleId, uint8 status, address setBy) +func (_Api *ApiFilterer) ParseStakingModuleStatusSet(log types.Log) (*ApiStakingModuleStatusSet, error) { + event := new(ApiStakingModuleStatusSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleStatusSet", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingModuleTargetShareSetIterator is returned from FilterStakingModuleTargetShareSet and is used to iterate over the raw logs and unpacked data for StakingModuleTargetShareSet events raised by the Api contract. +type ApiStakingModuleTargetShareSetIterator struct { + Event *ApiStakingModuleTargetShareSet // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingModuleTargetShareSetIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleTargetShareSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingModuleTargetShareSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingModuleTargetShareSetIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingModuleTargetShareSetIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingModuleTargetShareSet represents a StakingModuleTargetShareSet event raised by the Api contract. +type ApiStakingModuleTargetShareSet struct { + StakingModuleId *big.Int + TargetShare *big.Int + SetBy common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingModuleTargetShareSet is a free log retrieval operation binding the contract event 0x065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c. +// +// Solidity: event StakingModuleTargetShareSet(uint256 indexed stakingModuleId, uint256 targetShare, address setBy) +func (_Api *ApiFilterer) FilterStakingModuleTargetShareSet(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingModuleTargetShareSetIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingModuleTargetShareSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingModuleTargetShareSetIterator{contract: _Api.contract, event: "StakingModuleTargetShareSet", logs: logs, sub: sub}, nil +} + +// WatchStakingModuleTargetShareSet is a free log subscription operation binding the contract event 0x065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c. +// +// Solidity: event StakingModuleTargetShareSet(uint256 indexed stakingModuleId, uint256 targetShare, address setBy) +func (_Api *ApiFilterer) WatchStakingModuleTargetShareSet(opts *bind.WatchOpts, sink chan<- *ApiStakingModuleTargetShareSet, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingModuleTargetShareSet", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingModuleTargetShareSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleTargetShareSet", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingModuleTargetShareSet is a log parse operation binding the contract event 0x065e5bd8e4145dd99cf69bad5871ad52d094aee07a67fcf2f418c89e49d5f20c. +// +// Solidity: event StakingModuleTargetShareSet(uint256 indexed stakingModuleId, uint256 targetShare, address setBy) +func (_Api *ApiFilterer) ParseStakingModuleTargetShareSet(log types.Log) (*ApiStakingModuleTargetShareSet, error) { + event := new(ApiStakingModuleTargetShareSet) + if err := _Api.contract.UnpackLog(event, "StakingModuleTargetShareSet", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiStakingRouterETHDepositedIterator is returned from FilterStakingRouterETHDeposited and is used to iterate over the raw logs and unpacked data for StakingRouterETHDeposited events raised by the Api contract. +type ApiStakingRouterETHDepositedIterator struct { + Event *ApiStakingRouterETHDeposited // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiStakingRouterETHDepositedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiStakingRouterETHDeposited) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiStakingRouterETHDeposited) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiStakingRouterETHDepositedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiStakingRouterETHDepositedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiStakingRouterETHDeposited represents a StakingRouterETHDeposited event raised by the Api contract. +type ApiStakingRouterETHDeposited struct { + StakingModuleId *big.Int + Amount *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterStakingRouterETHDeposited is a free log retrieval operation binding the contract event 0x9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c0. +// +// Solidity: event StakingRouterETHDeposited(uint256 indexed stakingModuleId, uint256 amount) +func (_Api *ApiFilterer) FilterStakingRouterETHDeposited(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiStakingRouterETHDepositedIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "StakingRouterETHDeposited", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiStakingRouterETHDepositedIterator{contract: _Api.contract, event: "StakingRouterETHDeposited", logs: logs, sub: sub}, nil +} + +// WatchStakingRouterETHDeposited is a free log subscription operation binding the contract event 0x9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c0. +// +// Solidity: event StakingRouterETHDeposited(uint256 indexed stakingModuleId, uint256 amount) +func (_Api *ApiFilterer) WatchStakingRouterETHDeposited(opts *bind.WatchOpts, sink chan<- *ApiStakingRouterETHDeposited, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "StakingRouterETHDeposited", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiStakingRouterETHDeposited) + if err := _Api.contract.UnpackLog(event, "StakingRouterETHDeposited", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseStakingRouterETHDeposited is a log parse operation binding the contract event 0x9151b7f88aca05d432bb395647ef52b2ffc454e3c6afb69c95345af6b5a778c0. +// +// Solidity: event StakingRouterETHDeposited(uint256 indexed stakingModuleId, uint256 amount) +func (_Api *ApiFilterer) ParseStakingRouterETHDeposited(log types.Log) (*ApiStakingRouterETHDeposited, error) { + event := new(ApiStakingRouterETHDeposited) + if err := _Api.contract.UnpackLog(event, "StakingRouterETHDeposited", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiWithdrawalCredentialsSetIterator is returned from FilterWithdrawalCredentialsSet and is used to iterate over the raw logs and unpacked data for WithdrawalCredentialsSet events raised by the Api contract. +type ApiWithdrawalCredentialsSetIterator struct { + Event *ApiWithdrawalCredentialsSet // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiWithdrawalCredentialsSetIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiWithdrawalCredentialsSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiWithdrawalCredentialsSet) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiWithdrawalCredentialsSetIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiWithdrawalCredentialsSetIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiWithdrawalCredentialsSet represents a WithdrawalCredentialsSet event raised by the Api contract. +type ApiWithdrawalCredentialsSet struct { + WithdrawalCredentials [32]byte + SetBy common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterWithdrawalCredentialsSet is a free log retrieval operation binding the contract event 0x82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c. +// +// Solidity: event WithdrawalCredentialsSet(bytes32 withdrawalCredentials, address setBy) +func (_Api *ApiFilterer) FilterWithdrawalCredentialsSet(opts *bind.FilterOpts) (*ApiWithdrawalCredentialsSetIterator, error) { + + logs, sub, err := _Api.contract.FilterLogs(opts, "WithdrawalCredentialsSet") + if err != nil { + return nil, err + } + return &ApiWithdrawalCredentialsSetIterator{contract: _Api.contract, event: "WithdrawalCredentialsSet", logs: logs, sub: sub}, nil +} + +// WatchWithdrawalCredentialsSet is a free log subscription operation binding the contract event 0x82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c. +// +// Solidity: event WithdrawalCredentialsSet(bytes32 withdrawalCredentials, address setBy) +func (_Api *ApiFilterer) WatchWithdrawalCredentialsSet(opts *bind.WatchOpts, sink chan<- *ApiWithdrawalCredentialsSet) (event.Subscription, error) { + + logs, sub, err := _Api.contract.WatchLogs(opts, "WithdrawalCredentialsSet") + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiWithdrawalCredentialsSet) + if err := _Api.contract.UnpackLog(event, "WithdrawalCredentialsSet", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseWithdrawalCredentialsSet is a log parse operation binding the contract event 0x82e72df77173eab89b00556d791a407a78f4605c5c2f0694967c8c429dd43c7c. +// +// Solidity: event WithdrawalCredentialsSet(bytes32 withdrawalCredentials, address setBy) +func (_Api *ApiFilterer) ParseWithdrawalCredentialsSet(log types.Log) (*ApiWithdrawalCredentialsSet, error) { + event := new(ApiWithdrawalCredentialsSet) + if err := _Api.contract.UnpackLog(event, "WithdrawalCredentialsSet", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// ApiWithdrawalsCredentialsChangeFailedIterator is returned from FilterWithdrawalsCredentialsChangeFailed and is used to iterate over the raw logs and unpacked data for WithdrawalsCredentialsChangeFailed events raised by the Api contract. +type ApiWithdrawalsCredentialsChangeFailedIterator struct { + Event *ApiWithdrawalsCredentialsChangeFailed // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *ApiWithdrawalsCredentialsChangeFailedIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(ApiWithdrawalsCredentialsChangeFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(ApiWithdrawalsCredentialsChangeFailed) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *ApiWithdrawalsCredentialsChangeFailedIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *ApiWithdrawalsCredentialsChangeFailedIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// ApiWithdrawalsCredentialsChangeFailed represents a WithdrawalsCredentialsChangeFailed event raised by the Api contract. +type ApiWithdrawalsCredentialsChangeFailed struct { + StakingModuleId *big.Int + LowLevelRevertData []byte + Raw types.Log // Blockchain specific contextual infos +} + +// FilterWithdrawalsCredentialsChangeFailed is a free log retrieval operation binding the contract event 0x0d64b11929aa111ca874dd00b5b0cc2d82b741be924ec9e3691e67c71552f623. +// +// Solidity: event WithdrawalsCredentialsChangeFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) FilterWithdrawalsCredentialsChangeFailed(opts *bind.FilterOpts, stakingModuleId []*big.Int) (*ApiWithdrawalsCredentialsChangeFailedIterator, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.FilterLogs(opts, "WithdrawalsCredentialsChangeFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return &ApiWithdrawalsCredentialsChangeFailedIterator{contract: _Api.contract, event: "WithdrawalsCredentialsChangeFailed", logs: logs, sub: sub}, nil +} + +// WatchWithdrawalsCredentialsChangeFailed is a free log subscription operation binding the contract event 0x0d64b11929aa111ca874dd00b5b0cc2d82b741be924ec9e3691e67c71552f623. +// +// Solidity: event WithdrawalsCredentialsChangeFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) WatchWithdrawalsCredentialsChangeFailed(opts *bind.WatchOpts, sink chan<- *ApiWithdrawalsCredentialsChangeFailed, stakingModuleId []*big.Int) (event.Subscription, error) { + + var stakingModuleIdRule []interface{} + for _, stakingModuleIdItem := range stakingModuleId { + stakingModuleIdRule = append(stakingModuleIdRule, stakingModuleIdItem) + } + + logs, sub, err := _Api.contract.WatchLogs(opts, "WithdrawalsCredentialsChangeFailed", stakingModuleIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(ApiWithdrawalsCredentialsChangeFailed) + if err := _Api.contract.UnpackLog(event, "WithdrawalsCredentialsChangeFailed", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseWithdrawalsCredentialsChangeFailed is a log parse operation binding the contract event 0x0d64b11929aa111ca874dd00b5b0cc2d82b741be924ec9e3691e67c71552f623. +// +// Solidity: event WithdrawalsCredentialsChangeFailed(uint256 indexed stakingModuleId, bytes lowLevelRevertData) +func (_Api *ApiFilterer) ParseWithdrawalsCredentialsChangeFailed(log types.Log) (*ApiWithdrawalsCredentialsChangeFailed, error) { + event := new(ApiWithdrawalsCredentialsChangeFailed) + if err := _Api.contract.UnpackLog(event, "WithdrawalsCredentialsChangeFailed", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +}