function BRIDGEMANAGER_ROLE() external view returns (bytes32)
Name |
Type |
Description |
_0 |
bytes32 |
undefined |
function DEFAULT_ADMIN_ROLE() external view returns (bytes32)
Name |
Type |
Description |
_0 |
bytes32 |
undefined |
function getPoolConfig(address tokenAddress, uint256 chainID) external view returns (struct PoolConfig.Pool)
Name |
Type |
Description |
tokenAddress |
address |
undefined |
chainID |
uint256 |
undefined |
Name |
Type |
Description |
_0 |
PoolConfig.Pool |
undefined |
function getRoleAdmin(bytes32 role) external view returns (bytes32)
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Name |
Type |
Description |
role |
bytes32 |
undefined |
Name |
Type |
Description |
_0 |
bytes32 |
undefined |
function getRoleMember(bytes32 role, uint256 index) external view returns (address)
Returns one of the accounts that have role
. index
must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.
Name |
Type |
Description |
role |
bytes32 |
undefined |
index |
uint256 |
undefined |
Name |
Type |
Description |
_0 |
address |
undefined |
function getRoleMemberCount(bytes32 role) external view returns (uint256)
Returns the number of accounts that have role
. Can be used together with {getRoleMember} to enumerate all bearers of a role.
Name |
Type |
Description |
role |
bytes32 |
undefined |
Name |
Type |
Description |
_0 |
uint256 |
undefined |
function grantRole(bytes32 role, address account) external nonpayable
Grants role
to account
. If account
had not been already granted role
, emits a {RoleGranted} event. Requirements: - the caller must have role
's admin role.
Name |
Type |
Description |
role |
bytes32 |
undefined |
account |
address |
undefined |
function hasRole(bytes32 role, address account) external view returns (bool)
Returns true
if account
has been granted role
.
Name |
Type |
Description |
role |
bytes32 |
undefined |
account |
address |
undefined |
Name |
Type |
Description |
_0 |
bool |
undefined |
function renounceRole(bytes32 role, address account) external nonpayable
Revokes role
from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must be account
.
Name |
Type |
Description |
role |
bytes32 |
undefined |
account |
address |
undefined |
function revokeRole(bytes32 role, address account) external nonpayable
Revokes role
from account
. If account
had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must have role
's admin role.
Name |
Type |
Description |
role |
bytes32 |
undefined |
account |
address |
undefined |
function setPoolConfig(address tokenAddress, uint256 chainID, address poolAddress, bool metaswap) external nonpayable returns (struct PoolConfig.Pool)
Name |
Type |
Description |
tokenAddress |
address |
undefined |
chainID |
uint256 |
undefined |
poolAddress |
address |
undefined |
metaswap |
bool |
undefined |
Name |
Type |
Description |
_0 |
PoolConfig.Pool |
undefined |
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
previousAdminRole indexed |
bytes32 |
undefined |
newAdminRole indexed |
bytes32 |
undefined |
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
account indexed |
address |
undefined |
sender indexed |
address |
undefined |
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
account indexed |
address |
undefined |
sender indexed |
address |
undefined |