ObscuroBridge

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ObscuroBridgeABI = ObscuroBridgeMetaData.ABI

ObscuroBridgeABI is the input ABI used to generate the binding from. Deprecated: Use ObscuroBridgeMetaData.ABI instead.

View Source
var ObscuroBridgeBin = ObscuroBridgeMetaData.Bin

ObscuroBridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ObscuroBridgeMetaData.Bin instead.

View Source
var ObscuroBridgeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"AddressInsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"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\"},{\"inputs\":[],\"name\":\"ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ERC20_TOKEN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"NATIVE_TOKEN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"messengerAddress\",\"type\":\"address\"}],\"name\":\"configure\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"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\":\"address\",\"name\":\"messenger\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"promoteToAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"receiveAssets\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"removeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"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\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"sendERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"sendNative\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"bridge\",\"type\":\"address\"}],\"name\":\"setRemoteBridge\",\"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\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"name\":\"whitelistToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60806040526001805463ffffffff60a01b1916905534801561002057600080fd5b50611b84806100306000396000f3fe6080604052600436106101445760003560e01c806375b238fc116100c0578063a217fddf11610074578063c4d66de811610059578063c4d66de8146103b4578063d547741f146103d4578063e4c3ebc7146103f457600080fd5b8063a217fddf1461037f578063a381c8e21461039457600080fd5b806383bece4d116100a557806383bece4d146102f957806391d148541461031957806393b374421461035f57600080fd5b806375b238fc146102a557806375cb2672146102d957600080fd5b80632f2ff15d11610117578063498d82ab116100fc578063498d82ab146102315780635d872970146102515780635fa7b5841461028557600080fd5b80632f2ff15d146101f157806336568abe1461021157600080fd5b806301ffc9a71461014957806316ce81491461017f5780631888d712146101a1578063248a9ca3146101b4575b600080fd5b34801561015557600080fd5b50610169610164366004611320565b610428565b6040516101769190611353565b60405180910390f35b34801561018b57600080fd5b5061019f61019a366004611386565b610491565b005b61019f6101af366004611386565b6104eb565b3480156101c057600080fd5b506101e46101cf3660046113b8565b60009081526002602052604090206001015490565b60405161017691906113df565b3480156101fd57600080fd5b5061019f61020c3660046113ed565b6105f6565b34801561021d57600080fd5b5061019f61022c3660046113ed565b610621565b34801561023d57600080fd5b5061019f61024c36600461147c565b610672565b34801561025d57600080fd5b506101e47f9f225881f6e7ac8a885b63aa2269cbce78dd6a669864ccd2cd2517a8e709d73a81565b34801561029157600080fd5b5061019f6102a0366004611386565b610737565b3480156102b157600080fd5b506101e47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b3480156102e557600080fd5b5061019f6102f4366004611386565b61078b565b34801561030557600080fd5b5061019f61031436600461150c565b610866565b34801561032557600080fd5b506101696103343660046113ed565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561036b57600080fd5b5061019f61037a366004611386565b610980565b34801561038b57600080fd5b506101e4600081565b3480156103a057600080fd5b5061019f6103af36600461150c565b6109d4565b3480156103c057600080fd5b5061019f6103cf366004611386565b610ac3565b3480156103e057600080fd5b5061019f6103ef3660046113ed565b610c5c565b34801561040057600080fd5b506101e47fd2fb17ceaa388942529b17e0006ffc4d559f040dd4f2157b8070f17ad211057881565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061048b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756104bb81610c81565b506003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600034116105145760405162461bcd60e51b815260040161050b90611590565b60405180910390fd5b60006040518060400160405280348152602001836001600160a01b031681525060405160200161054491906115c8565b60408051601f19818403018152919052600354909150610573906001600160a01b03168260025b600080610c8e565b6001546040517f346633fb0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063346633fb9034906105c090869083906004016115d6565b6000604051808303818588803b1580156105d957600080fd5b505af11580156105ed573d6000803e3d6000fd5b50505050505050565b60008281526002602052604090206001015461061181610c81565b61061b8383610d9a565b50505050565b6001600160a01b0381163314610663576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61066d8282610e48565b505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561069c81610c81565b6106c67f9f225881f6e7ac8a885b63aa2269cbce78dd6a669864ccd2cd2517a8e709d73a87610d9a565b50600063458ffd6360e01b87878787876040516024016106ea95949392919061161d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526003549091506105ed906001600160a01b031682600161056b565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561076181610c81565b61066d7f9f225881f6e7ac8a885b63aa2269cbce78dd6a669864ccd2cd2517a8e709d73a83610e48565b610793610ecf565b6000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316908117909155604080517fa1a227fa000000000000000000000000000000000000000000000000000000008152905163a1a227fa916004808201926020929091908290030181865afa158015610812573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108369190611669565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905550565b6003546000546001600160a01b03918216911633146108975760405162461bcd60e51b815260040161050b906116e4565b806001600160a01b03166108a9610f38565b6001600160a01b0316146108cf5760405162461bcd60e51b815260040161050b9061174c565b6001600160a01b03841660009081527f32ef73018533fa188e9e42b313c0a4048c6052342b662fb7510c0d1abcea3413602052604090205460ff161561091f5761091a848484610fb5565b61061b565b6001600160a01b03841660009081527f13ad2d85210d477fe1a6e25654c8250308cf29b050a4bf0b039d70467486712c602052604090205460ff16156109685761091a82610fc0565b60405162461bcd60e51b815260040161050b906117b4565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756109aa81610c81565b61066d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177583610d9a565b600082116109f45760405162461bcd60e51b815260040161050b906117f6565b6001600160a01b03831660009081527f32ef73018533fa188e9e42b313c0a4048c6052342b662fb7510c0d1abcea3413602052604090205460ff16610a4b5760405162461bcd60e51b815260040161050b90611806565b610a5783333085611032565b60006383bece4d60e01b848484604051602401610a769392919061188d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915260035490915061061b906001600160a01b031682600061056b565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff16600081158015610b0e5750825b905060008267ffffffffffffffff166001148015610b2b5750303b155b905081158015610b39575080155b15610b70576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610ba457845468ff00000000000000001916680100000000000000001785555b610bad8661078b565b610bd77fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533610d9a565b50610c037fd2fb17ceaa388942529b17e0006ffc4d559f040dd4f2157b8070f17ad21105786000610d9a565b508315610c5457845468ff0000000000000000191685556040517fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290610c4b906001906118d0565b60405180910390a15b505050505050565b600082815260026020526040902060010154610c7781610c81565b61061b8383610e48565b610c8b813361108c565b50565b60006040518060600160405280876001600160a01b0316815260200186815260200184815250604051602001610cc4919061197d565b60408051808303601f19018152919052600180549192506001600160a01b0382169163b1454caa917401000000000000000000000000000000000000000090910463ffffffff16906014610d17836119bd565b91906101000a81548163ffffffff021916908363ffffffff1602179055508684866040518563ffffffff1660e01b8152600401610d5794939291906119f5565b6020604051808303816000875af1158015610d76573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ed9190611a55565b60008281526002602090815260408083206001600160a01b038516845290915281205460ff16610e405760008381526002602090815260408083206001600160a01b03861684529091529020805460ff19166001179055610df83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161048b565b50600061048b565b60008281526002602090815260408083206001600160a01b038516845290915281205460ff1615610e405760008381526002602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a450600161048b565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610f36576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60008060009054906101000a90046001600160a01b03166001600160a01b03166363012de56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb09190611669565b905090565b61066d8382846110ec565b6040516000906001600160a01b038316908281818181865af19150503d8060008114611008576040519150601f19603f3d011682016040523d82523d6000602084013e61100d565b606091505b505090508061102e5760405162461bcd60e51b815260040161050b90611aa8565b5050565b61061b84856001600160a01b03166323b872dd86868660405160240161105a93929190611ab8565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611112565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff1661102e5780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040161050b9291906115d6565b61066d83846001600160a01b031663a9059cbb858560405160240161105a9291906115d6565b60006111276001600160a01b03841683611185565b9050805160001415801561114c57508080602001905181019061114a9190611af3565b155b1561066d57826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161050b9190611b14565b60606111938383600061119a565b9392505050565b6060814710156111d857306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161050b9190611b14565b600080856001600160a01b031684866040516111f49190611b44565b60006040518083038185875af1925050503d8060008114611231576040519150601f19603f3d011682016040523d82523d6000602084013e611236565b606091505b5091509150611246868383611250565b9695505050505050565b60608261126557611260826112bc565b611193565b815115801561127c57506001600160a01b0384163b155b156112b557836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161050b9190611b14565b5080611193565b8051156112cc5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160e01b031981165b8114610c8b57600080fd5b803561048b816112fe565b60006020828403121561133557611335600080fd5b60006113418484611315565b949350505050565b8015155b82525050565b6020810161048b8284611349565b60006001600160a01b03821661048b565b61130a81611361565b803561048b81611372565b60006020828403121561139b5761139b600080fd5b6000611341848461137b565b8061130a565b803561048b816113a7565b6000602082840312156113cd576113cd600080fd5b600061134184846113ad565b8061134d565b6020810161048b82846113d9565b6000806040838503121561140357611403600080fd5b600061140f85856113ad565b92505060206114208582860161137b565b9150509250929050565b60008083601f84011261143f5761143f600080fd5b50813567ffffffffffffffff81111561145a5761145a600080fd5b60208301915083600182028301111561147557611475600080fd5b9250929050565b60008060008060006060868803121561149757611497600080fd5b60006114a3888861137b565b955050602086013567ffffffffffffffff8111156114c3576114c3600080fd5b6114cf8882890161142a565b9450945050604086013567ffffffffffffffff8111156114f1576114f1600080fd5b6114fd8882890161142a565b92509250509295509295909350565b60008060006060848603121561152457611524600080fd5b6000611530868661137b565b9350506020611541868287016113ad565b92505060406115528682870161137b565b9150509250925092565b600f8152602081017f456d707479207472616e736665722e0000000000000000000000000000000000815290505b60200190565b6020808252810161048b8161155c565b61134d81611361565b80516115b583826113d9565b50602081015161066d60208401826115a0565b6040810161048b82846115a9565b604081016115e482856115a0565b61119360208301846113d9565b82818337506000910152565b8183526020830192506116118284836115f1565b50601f01601f19160190565b6060810161162b82886115a0565b818103602083015261163e8186886115fd565b905081810360408301526116538184866115fd565b979650505050505050565b805161048b81611372565b60006020828403121561167e5761167e600080fd5b6000611341848461165e565b60308152602081017f436f6e74726163742063616c6c6572206973206e6f742074686520726567697381527f7465726564206d657373656e6765722100000000000000000000000000000000602082015290505b60400190565b6020808252810161048b8161168a565b60318152602081017f43726f737320636861696e206d65737361676520636f6d696e672066726f6d2081527f696e636f72726563742073656e64657221000000000000000000000000000000602082015290506116de565b6020808252810161048b816116f4565b60258152602081017f417474656d7074696e6720746f20776974686472617720756e6b6e6f776e206181527f737365742e000000000000000000000000000000000000000000000000000000602082015290506116de565b6020808252810161048b8161175c565b601a8152602081017f417474656d7074696e6720656d707479207472616e736665722e0000000000008152905061158a565b6020808252810161048b816117c4565b6020808252810161048b81604e81527f54686973206164647265737320686173206e6f74206265656e20676976656e2060208201527f61207479706520616e64206973207468757320636f6e73696465726564206e6f60408201527f742077686974656c69737465642e000000000000000000000000000000000000606082015260800190565b6060810161189b82866115a0565b6118a860208301856113d9565b61134160408301846115a0565b600067ffffffffffffffff821661048b565b61134d816118b5565b6020810161048b82846118c7565b60005b838110156118f95781810151838201526020016118e1565b50506000910152565b600061190c825190565b8084526020840193506119238185602086016118de565b601f01601f19169290920192915050565b8051600090606084019061194885826115a0565b50602083015184820360208601526119608282611902565b915050604083015161197560408601826113d9565b509392505050565b602080825281016111938184611934565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b63ffffffff16600063fffffffe1982016119d9576119d961198e565b5060010190565b63ffffffff811661134d565b60ff811661134d565b60808101611a0382876119e0565b611a1060208301866119e0565b8181036040830152611a228185611902565b9050611a3160608301846119ec565b95945050505050565b67ffffffffffffffff811661130a565b805161048b81611a3a565b600060208284031215611a6a57611a6a600080fd5b60006113418484611a4a565b60148152602081017f4661696c656420746f2073656e642045746865720000000000000000000000008152905061158a565b6020808252810161048b81611a76565b60608101611ac682866115a0565b611ad360208301856115a0565b61134160408301846113d9565b80151561130a565b805161048b81611ae0565b600060208284031215611b0857611b08600080fd5b60006113418484611ae8565b6020810161048b82846115a0565b6000611b2c825190565b611b3a8185602086016118de565b9290920192915050565b61048b8183611b2256fea2646970667358221220d70bea5019f2062e22f351cd0d4cb8d9f734eac087a468eb72bff8b0aa790a6364736f6c63430008150033",
}

ObscuroBridgeMetaData contains all meta data concerning the ObscuroBridge contract.

Functions

This section is empty.

Types

type ObscuroBridge

type ObscuroBridge struct {
	ObscuroBridgeCaller     // Read-only binding to the contract
	ObscuroBridgeTransactor // Write-only binding to the contract
	ObscuroBridgeFilterer   // Log filterer for contract events
}

ObscuroBridge is an auto generated Go binding around an Ethereum contract.

func DeployObscuroBridge

func DeployObscuroBridge(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ObscuroBridge, error)

DeployObscuroBridge deploys a new Ethereum contract, binding an instance of ObscuroBridge to it.

func NewObscuroBridge

func NewObscuroBridge(address common.Address, backend bind.ContractBackend) (*ObscuroBridge, error)

NewObscuroBridge creates a new instance of ObscuroBridge, bound to a specific deployed contract.

type ObscuroBridgeCaller

type ObscuroBridgeCaller struct {
	// contains filtered or unexported fields
}

ObscuroBridgeCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewObscuroBridgeCaller

func NewObscuroBridgeCaller(address common.Address, caller bind.ContractCaller) (*ObscuroBridgeCaller, error)

NewObscuroBridgeCaller creates a new read-only instance of ObscuroBridge, bound to a specific deployed contract.

func (*ObscuroBridgeCaller) ADMINROLE

func (_ObscuroBridge *ObscuroBridgeCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCaller) DEFAULTADMINROLE

func (_ObscuroBridge *ObscuroBridgeCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCaller) ERC20TOKENROLE

func (_ObscuroBridge *ObscuroBridgeCaller) ERC20TOKENROLE(opts *bind.CallOpts) ([32]byte, error)

ERC20TOKENROLE is a free data retrieval call binding the contract method 0x5d872970.

Solidity: function ERC20_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCaller) GetRoleAdmin

func (_ObscuroBridge *ObscuroBridgeCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ObscuroBridgeCaller) HasRole

func (_ObscuroBridge *ObscuroBridgeCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ObscuroBridgeCaller) NATIVETOKENROLE

func (_ObscuroBridge *ObscuroBridgeCaller) NATIVETOKENROLE(opts *bind.CallOpts) ([32]byte, error)

NATIVETOKENROLE is a free data retrieval call binding the contract method 0xe4c3ebc7.

Solidity: function NATIVE_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCaller) SupportsInterface

func (_ObscuroBridge *ObscuroBridgeCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ObscuroBridgeCallerRaw

type ObscuroBridgeCallerRaw struct {
	Contract *ObscuroBridgeCaller // Generic read-only contract binding to access the raw methods on
}

ObscuroBridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ObscuroBridgeCallerRaw) Call

func (_ObscuroBridge *ObscuroBridgeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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.

type ObscuroBridgeCallerSession

type ObscuroBridgeCallerSession struct {
	Contract *ObscuroBridgeCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

ObscuroBridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ObscuroBridgeCallerSession) ADMINROLE

func (_ObscuroBridge *ObscuroBridgeCallerSession) ADMINROLE() ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCallerSession) DEFAULTADMINROLE

func (_ObscuroBridge *ObscuroBridgeCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCallerSession) ERC20TOKENROLE

func (_ObscuroBridge *ObscuroBridgeCallerSession) ERC20TOKENROLE() ([32]byte, error)

ERC20TOKENROLE is a free data retrieval call binding the contract method 0x5d872970.

Solidity: function ERC20_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCallerSession) GetRoleAdmin

func (_ObscuroBridge *ObscuroBridgeCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ObscuroBridgeCallerSession) HasRole

func (_ObscuroBridge *ObscuroBridgeCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ObscuroBridgeCallerSession) NATIVETOKENROLE

func (_ObscuroBridge *ObscuroBridgeCallerSession) NATIVETOKENROLE() ([32]byte, error)

NATIVETOKENROLE is a free data retrieval call binding the contract method 0xe4c3ebc7.

Solidity: function NATIVE_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeCallerSession) SupportsInterface

func (_ObscuroBridge *ObscuroBridgeCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ObscuroBridgeFilterer

type ObscuroBridgeFilterer struct {
	// contains filtered or unexported fields
}

ObscuroBridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewObscuroBridgeFilterer

func NewObscuroBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*ObscuroBridgeFilterer, error)

NewObscuroBridgeFilterer creates a new log filterer instance of ObscuroBridge, bound to a specific deployed contract.

func (*ObscuroBridgeFilterer) FilterInitialized added in v0.21.0

func (_ObscuroBridge *ObscuroBridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*ObscuroBridgeInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ObscuroBridgeFilterer) FilterRoleAdminChanged

func (_ObscuroBridge *ObscuroBridgeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ObscuroBridgeRoleAdminChangedIterator, error)

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 (*ObscuroBridgeFilterer) FilterRoleGranted

func (_ObscuroBridge *ObscuroBridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ObscuroBridgeRoleGrantedIterator, error)

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 (*ObscuroBridgeFilterer) FilterRoleRevoked

func (_ObscuroBridge *ObscuroBridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ObscuroBridgeRoleRevokedIterator, error)

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 (*ObscuroBridgeFilterer) ParseInitialized added in v0.21.0

func (_ObscuroBridge *ObscuroBridgeFilterer) ParseInitialized(log types.Log) (*ObscuroBridgeInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ObscuroBridgeFilterer) ParseRoleAdminChanged

func (_ObscuroBridge *ObscuroBridgeFilterer) ParseRoleAdminChanged(log types.Log) (*ObscuroBridgeRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ObscuroBridgeFilterer) ParseRoleGranted

func (_ObscuroBridge *ObscuroBridgeFilterer) ParseRoleGranted(log types.Log) (*ObscuroBridgeRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ObscuroBridgeFilterer) ParseRoleRevoked

func (_ObscuroBridge *ObscuroBridgeFilterer) ParseRoleRevoked(log types.Log) (*ObscuroBridgeRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ObscuroBridgeFilterer) WatchInitialized added in v0.21.0

func (_ObscuroBridge *ObscuroBridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ObscuroBridgeInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ObscuroBridgeFilterer) WatchRoleAdminChanged

func (_ObscuroBridge *ObscuroBridgeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ObscuroBridgeRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

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 (*ObscuroBridgeFilterer) WatchRoleGranted

func (_ObscuroBridge *ObscuroBridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ObscuroBridgeRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

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 (*ObscuroBridgeFilterer) WatchRoleRevoked

func (_ObscuroBridge *ObscuroBridgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ObscuroBridgeRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type ObscuroBridgeInitialized added in v0.21.0

type ObscuroBridgeInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

ObscuroBridgeInitialized represents a Initialized event raised by the ObscuroBridge contract.

type ObscuroBridgeInitializedIterator added in v0.21.0

type ObscuroBridgeInitializedIterator struct {
	Event *ObscuroBridgeInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ObscuroBridgeInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ObscuroBridge contract.

func (*ObscuroBridgeInitializedIterator) Close added in v0.21.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*ObscuroBridgeInitializedIterator) Error added in v0.21.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ObscuroBridgeInitializedIterator) Next added in v0.21.0

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.

type ObscuroBridgeRaw

type ObscuroBridgeRaw struct {
	Contract *ObscuroBridge // Generic contract binding to access the raw methods on
}

ObscuroBridgeRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ObscuroBridgeRaw) Call

func (_ObscuroBridge *ObscuroBridgeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

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 (*ObscuroBridgeRaw) Transact

func (_ObscuroBridge *ObscuroBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ObscuroBridgeRaw) Transfer

func (_ObscuroBridge *ObscuroBridgeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ObscuroBridgeRoleAdminChanged

type ObscuroBridgeRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

ObscuroBridgeRoleAdminChanged represents a RoleAdminChanged event raised by the ObscuroBridge contract.

type ObscuroBridgeRoleAdminChangedIterator

type ObscuroBridgeRoleAdminChangedIterator struct {
	Event *ObscuroBridgeRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ObscuroBridgeRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the ObscuroBridge contract.

func (*ObscuroBridgeRoleAdminChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ObscuroBridgeRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ObscuroBridgeRoleAdminChangedIterator) Next

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.

type ObscuroBridgeRoleGranted

type ObscuroBridgeRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ObscuroBridgeRoleGranted represents a RoleGranted event raised by the ObscuroBridge contract.

type ObscuroBridgeRoleGrantedIterator

type ObscuroBridgeRoleGrantedIterator struct {
	Event *ObscuroBridgeRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ObscuroBridgeRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the ObscuroBridge contract.

func (*ObscuroBridgeRoleGrantedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ObscuroBridgeRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ObscuroBridgeRoleGrantedIterator) Next

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.

type ObscuroBridgeRoleRevoked

type ObscuroBridgeRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ObscuroBridgeRoleRevoked represents a RoleRevoked event raised by the ObscuroBridge contract.

type ObscuroBridgeRoleRevokedIterator

type ObscuroBridgeRoleRevokedIterator struct {
	Event *ObscuroBridgeRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ObscuroBridgeRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the ObscuroBridge contract.

func (*ObscuroBridgeRoleRevokedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ObscuroBridgeRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ObscuroBridgeRoleRevokedIterator) Next

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.

type ObscuroBridgeSession

type ObscuroBridgeSession struct {
	Contract     *ObscuroBridge    // 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
}

ObscuroBridgeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ObscuroBridgeSession) ADMINROLE

func (_ObscuroBridge *ObscuroBridgeSession) ADMINROLE() ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeSession) Configure

func (_ObscuroBridge *ObscuroBridgeSession) Configure(messengerAddress common.Address) (*types.Transaction, error)

Configure is a paid mutator transaction binding the contract method 0x75cb2672.

Solidity: function configure(address messengerAddress) returns()

func (*ObscuroBridgeSession) DEFAULTADMINROLE

func (_ObscuroBridge *ObscuroBridgeSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ObscuroBridgeSession) ERC20TOKENROLE

func (_ObscuroBridge *ObscuroBridgeSession) ERC20TOKENROLE() ([32]byte, error)

ERC20TOKENROLE is a free data retrieval call binding the contract method 0x5d872970.

Solidity: function ERC20_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeSession) GetRoleAdmin

func (_ObscuroBridge *ObscuroBridgeSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ObscuroBridgeSession) GrantRole

func (_ObscuroBridge *ObscuroBridgeSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ObscuroBridgeSession) HasRole

func (_ObscuroBridge *ObscuroBridgeSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ObscuroBridgeSession) Initialize

func (_ObscuroBridge *ObscuroBridgeSession) Initialize(messenger common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address messenger) returns()

func (*ObscuroBridgeSession) NATIVETOKENROLE

func (_ObscuroBridge *ObscuroBridgeSession) NATIVETOKENROLE() ([32]byte, error)

NATIVETOKENROLE is a free data retrieval call binding the contract method 0xe4c3ebc7.

Solidity: function NATIVE_TOKEN_ROLE() view returns(bytes32)

func (*ObscuroBridgeSession) PromoteToAdmin

func (_ObscuroBridge *ObscuroBridgeSession) PromoteToAdmin(newAdmin common.Address) (*types.Transaction, error)

PromoteToAdmin is a paid mutator transaction binding the contract method 0x93b37442.

Solidity: function promoteToAdmin(address newAdmin) returns()

func (*ObscuroBridgeSession) ReceiveAssets

func (_ObscuroBridge *ObscuroBridgeSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.

Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeSession) RemoveToken

func (_ObscuroBridge *ObscuroBridgeSession) RemoveToken(asset common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x5fa7b584.

Solidity: function removeToken(address asset) returns()

func (*ObscuroBridgeSession) RenounceRole

func (_ObscuroBridge *ObscuroBridgeSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ObscuroBridgeSession) RevokeRole

func (_ObscuroBridge *ObscuroBridgeSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ObscuroBridgeSession) SendERC20

func (_ObscuroBridge *ObscuroBridgeSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.

Solidity: function sendERC20(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeSession) SendNative

func (_ObscuroBridge *ObscuroBridgeSession) SendNative(receiver common.Address) (*types.Transaction, error)

SendNative is a paid mutator transaction binding the contract method 0x1888d712.

Solidity: function sendNative(address receiver) payable returns()

func (*ObscuroBridgeSession) SetRemoteBridge

func (_ObscuroBridge *ObscuroBridgeSession) SetRemoteBridge(bridge common.Address) (*types.Transaction, error)

SetRemoteBridge is a paid mutator transaction binding the contract method 0x16ce8149.

Solidity: function setRemoteBridge(address bridge) returns()

func (*ObscuroBridgeSession) SupportsInterface

func (_ObscuroBridge *ObscuroBridgeSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ObscuroBridgeSession) WhitelistToken

func (_ObscuroBridge *ObscuroBridgeSession) WhitelistToken(asset common.Address, name string, symbol string) (*types.Transaction, error)

WhitelistToken is a paid mutator transaction binding the contract method 0x498d82ab.

Solidity: function whitelistToken(address asset, string name, string symbol) returns()

type ObscuroBridgeTransactor

type ObscuroBridgeTransactor struct {
	// contains filtered or unexported fields
}

ObscuroBridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewObscuroBridgeTransactor

func NewObscuroBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*ObscuroBridgeTransactor, error)

NewObscuroBridgeTransactor creates a new write-only instance of ObscuroBridge, bound to a specific deployed contract.

func (*ObscuroBridgeTransactor) Configure

func (_ObscuroBridge *ObscuroBridgeTransactor) Configure(opts *bind.TransactOpts, messengerAddress common.Address) (*types.Transaction, error)

Configure is a paid mutator transaction binding the contract method 0x75cb2672.

Solidity: function configure(address messengerAddress) returns()

func (*ObscuroBridgeTransactor) GrantRole

func (_ObscuroBridge *ObscuroBridgeTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ObscuroBridgeTransactor) Initialize

func (_ObscuroBridge *ObscuroBridgeTransactor) Initialize(opts *bind.TransactOpts, messenger common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address messenger) returns()

func (*ObscuroBridgeTransactor) PromoteToAdmin

func (_ObscuroBridge *ObscuroBridgeTransactor) PromoteToAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

PromoteToAdmin is a paid mutator transaction binding the contract method 0x93b37442.

Solidity: function promoteToAdmin(address newAdmin) returns()

func (*ObscuroBridgeTransactor) ReceiveAssets

func (_ObscuroBridge *ObscuroBridgeTransactor) ReceiveAssets(opts *bind.TransactOpts, asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.

Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeTransactor) RemoveToken

func (_ObscuroBridge *ObscuroBridgeTransactor) RemoveToken(opts *bind.TransactOpts, asset common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x5fa7b584.

Solidity: function removeToken(address asset) returns()

func (*ObscuroBridgeTransactor) RenounceRole

func (_ObscuroBridge *ObscuroBridgeTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ObscuroBridgeTransactor) RevokeRole

func (_ObscuroBridge *ObscuroBridgeTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ObscuroBridgeTransactor) SendERC20

func (_ObscuroBridge *ObscuroBridgeTransactor) SendERC20(opts *bind.TransactOpts, asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.

Solidity: function sendERC20(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeTransactor) SendNative

func (_ObscuroBridge *ObscuroBridgeTransactor) SendNative(opts *bind.TransactOpts, receiver common.Address) (*types.Transaction, error)

SendNative is a paid mutator transaction binding the contract method 0x1888d712.

Solidity: function sendNative(address receiver) payable returns()

func (*ObscuroBridgeTransactor) SetRemoteBridge

func (_ObscuroBridge *ObscuroBridgeTransactor) SetRemoteBridge(opts *bind.TransactOpts, bridge common.Address) (*types.Transaction, error)

SetRemoteBridge is a paid mutator transaction binding the contract method 0x16ce8149.

Solidity: function setRemoteBridge(address bridge) returns()

func (*ObscuroBridgeTransactor) WhitelistToken

func (_ObscuroBridge *ObscuroBridgeTransactor) WhitelistToken(opts *bind.TransactOpts, asset common.Address, name string, symbol string) (*types.Transaction, error)

WhitelistToken is a paid mutator transaction binding the contract method 0x498d82ab.

Solidity: function whitelistToken(address asset, string name, string symbol) returns()

type ObscuroBridgeTransactorRaw

type ObscuroBridgeTransactorRaw struct {
	Contract *ObscuroBridgeTransactor // Generic write-only contract binding to access the raw methods on
}

ObscuroBridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ObscuroBridgeTransactorRaw) Transact

func (_ObscuroBridge *ObscuroBridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ObscuroBridgeTransactorRaw) Transfer

func (_ObscuroBridge *ObscuroBridgeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ObscuroBridgeTransactorSession

type ObscuroBridgeTransactorSession struct {
	Contract     *ObscuroBridgeTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

ObscuroBridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ObscuroBridgeTransactorSession) Configure

func (_ObscuroBridge *ObscuroBridgeTransactorSession) Configure(messengerAddress common.Address) (*types.Transaction, error)

Configure is a paid mutator transaction binding the contract method 0x75cb2672.

Solidity: function configure(address messengerAddress) returns()

func (*ObscuroBridgeTransactorSession) GrantRole

func (_ObscuroBridge *ObscuroBridgeTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ObscuroBridgeTransactorSession) Initialize

func (_ObscuroBridge *ObscuroBridgeTransactorSession) Initialize(messenger common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address messenger) returns()

func (*ObscuroBridgeTransactorSession) PromoteToAdmin

func (_ObscuroBridge *ObscuroBridgeTransactorSession) PromoteToAdmin(newAdmin common.Address) (*types.Transaction, error)

PromoteToAdmin is a paid mutator transaction binding the contract method 0x93b37442.

Solidity: function promoteToAdmin(address newAdmin) returns()

func (*ObscuroBridgeTransactorSession) ReceiveAssets

func (_ObscuroBridge *ObscuroBridgeTransactorSession) ReceiveAssets(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

ReceiveAssets is a paid mutator transaction binding the contract method 0x83bece4d.

Solidity: function receiveAssets(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeTransactorSession) RemoveToken

func (_ObscuroBridge *ObscuroBridgeTransactorSession) RemoveToken(asset common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x5fa7b584.

Solidity: function removeToken(address asset) returns()

func (*ObscuroBridgeTransactorSession) RenounceRole

func (_ObscuroBridge *ObscuroBridgeTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*ObscuroBridgeTransactorSession) RevokeRole

func (_ObscuroBridge *ObscuroBridgeTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ObscuroBridgeTransactorSession) SendERC20

func (_ObscuroBridge *ObscuroBridgeTransactorSession) SendERC20(asset common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

SendERC20 is a paid mutator transaction binding the contract method 0xa381c8e2.

Solidity: function sendERC20(address asset, uint256 amount, address receiver) returns()

func (*ObscuroBridgeTransactorSession) SendNative

func (_ObscuroBridge *ObscuroBridgeTransactorSession) SendNative(receiver common.Address) (*types.Transaction, error)

SendNative is a paid mutator transaction binding the contract method 0x1888d712.

Solidity: function sendNative(address receiver) payable returns()

func (*ObscuroBridgeTransactorSession) SetRemoteBridge

func (_ObscuroBridge *ObscuroBridgeTransactorSession) SetRemoteBridge(bridge common.Address) (*types.Transaction, error)

SetRemoteBridge is a paid mutator transaction binding the contract method 0x16ce8149.

Solidity: function setRemoteBridge(address bridge) returns()

func (*ObscuroBridgeTransactorSession) WhitelistToken

func (_ObscuroBridge *ObscuroBridgeTransactorSession) WhitelistToken(asset common.Address, name string, symbol string) (*types.Transaction, error)

WhitelistToken is a paid mutator transaction binding the contract method 0x498d82ab.

Solidity: function whitelistToken(address asset, string name, string symbol) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL