11 txs
11 calls
constructor
constructor(address ownerAddress_, address router, address recieverContract_) payable
functions
balanceOf
viewfunction balanceOf(uint256 credentialId) view returns (uint256 balance)
getRouter
viewfunction getRouter() view returns (address)
i_weth
viewfunction i_weth() view returns (address)
owner
viewfunction owner() view returns (address)
pendingOwner
viewfunction pendingOwner() view returns (address)
recieverContract
viewfunction recieverContract() view returns (address)
acceptOwnership
nonpayablefunction acceptOwnership()
deposit
payablefunction deposit(uint256 credentialId, uint256 amount) payable
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
nonpayablefunction withdraw(uint256 credentialId, address to, uint256 amount)
withdrawToDistributor
nonpayablefunction withdrawToDistributor(uint256 credentialId, uint64 destinationChainSelector, uint256 amount) returns (bytes32)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
WithdrawToDistributor
event WithdrawToDistributor(uint64 destinationChainSelector, (bytes receiver, bytes data, (address token, uint256 amount)[] tokenAmounts, address feeToken, bytes extraArgs) message)
errors
GasLimitTooLow
error GasLimitTooLow(uint256 minLimit, uint256 gotLimit)
InsufficientBalance
error InsufficientBalance()
InsufficientFee
error InsufficientFee(uint256 gotFee, uint256 fee)
InsufficientMsgValue
error InsufficientMsgValue(uint256 gotAmount, uint256 msgValue)
InvalidAddressZero
error InvalidAddressZero()
InvalidToken
error InvalidToken(address gotToken, address expectedToken)
InvalidTokenAmounts
error InvalidTokenAmounts(uint256 gotAmounts)
InvalidValue
error InvalidValue(uint256 gotValue, uint256 expectedValue)
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
TokenAmountNotEqualToMsgValue
error TokenAmountNotEqualToMsgValue(uint256 gotAmount, uint256 msgValue)
creation bytecode
0x60c06040526040516200118b3803806200118b8339810160408190526200002691620001fe565b826001600160a01b0381166200005657604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000618162000173565b506001600160a01b0382811660a0819052600280546001600160a01b031916928416929092179091556040805163e861e90760e01b8152905163e861e907916004808201926020929091908290030181865afa158015620000c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ec919062000248565b6001600160a01b03908116608081905260405163095ea7b360e01b8152918416600483015260001960248301529063095ea7b3906044016020604051808303816000875af115801562000143573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016991906200026d565b5050505062000291565b600180546001600160a01b03191690556200018e8162000191565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001f957600080fd5b919050565b6000806000606084860312156200021457600080fd5b6200021f84620001e1565b92506200022f60208501620001e1565b91506200023f60408501620001e1565b90509250925092565b6000602082840312156200025b57600080fd5b6200026682620001e1565b9392505050565b6000602082840312156200028057600080fd5b815180151581146200026657600080fd5b60805160a051610eb8620002d3600039600081816101e501528181610409015261044801526000818161010d0152818161038501526109660152610eb86000f3fe6080604052600436106100bf5760003560e01c8063b0f479a11161006e578063e30c39781161004b578063e30c397814610249578063e63697c814610274578063f2fde38b1461029457005b8063b0f479a1146101d6578063d8f7d6af14610209578063e2bbb1581461023657005b806379ba50971161009c57806379ba5097146101695780638da5cb5b1461017e5780639cc7f708146101a957005b80630691e6bc146100c85780634dbe7e92146100fb578063715018a61461015457005b366100c657005b005b3480156100d457600080fd5b506100e86100e3366004610b95565b6102b4565b6040519081526020015b60405180910390f35b34801561010757600080fd5b5061012f7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f2565b34801561016057600080fd5b506100c661054d565b34801561017557600080fd5b506100c6610561565b34801561018a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661012f565b3480156101b557600080fd5b506100e86101c4366004610bda565b60036020526000908152604090205481565b3480156101e257600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061012f565b34801561021557600080fd5b5060025461012f9073ffffffffffffffffffffffffffffffffffffffff1681565b6100c6610244366004610bf3565b6105dd565b34801561025557600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff1661012f565b34801561028057600080fd5b506100c661028f366004610c3e565b610646565b3480156102a057600080fd5b506100c66102af366004610c73565b610745565b6000816000036102d05760008481526003602052604090205491505b600084815260036020526040902054821115610318576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008481526003602052604081208054849290610336908490610cc4565b909155506000905061034885846107f5565b90507f8ff1c5db5598227d0ab7986e5c6081bafabefd9d244fadc5158e5326ca916540848260405161037b929190610d3b565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b1580156103eb57600080fd5b505af11580156103ff573d6000803e3d6000fd5b505050505061042b7f000000000000000000000000000000000000000000000000000000000000000090565b73ffffffffffffffffffffffffffffffffffffffff166396f4e9f97f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166320487ded87856040518363ffffffff1660e01b81526004016104a1929190610d3b565b602060405180830381865afa1580156104be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e29190610e50565b86846040518463ffffffff1660e01b8152600401610501929190610d3b565b60206040518083038185885af115801561051f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105449190610e50565b95945050505050565b6105556109db565b61055f6000610a2e565b565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146105d1576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b6105da81610a2e565b50565b80341461061f576040517fde9b74a1000000000000000000000000000000000000000000000000000000008152346004820152602481018290526044016105c8565b6000828152600360205260408120805483929061063d908490610e69565b90915550505050565b61064e6109db565b73ffffffffffffffffffffffffffffffffffffffff821661069b576040517f10c748a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000036106b457506000828152600360205260409020545b6000838152600360205260409020548111156106fc576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600360205260408120805483929061071a908490610cc4565b90915550610740905073ffffffffffffffffffffffffffffffffffffffff831682610a5f565b505050565b61074d6109db565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556107b060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61083d6040518060a00160405280606081526020016060815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b6108856040518060a00160405280606081526020016060815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b6002546040805173ffffffffffffffffffffffffffffffffffffffff909216602083015201604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815291815290825280516020810186905201604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815291815260208301919091528051600180825281830190925290816020015b604080518082019091526000808252602082015281526020019060019003908161092e575050604082810191825280518082019091527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260208101859052905180516000906109b7576109b7610e7c565b6020908102919091010152600060608201526109d281610a7f565b90505b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055f576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016105c8565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556105da81610b20565b60003860003884865af1610a7b5763b12d13eb6000526004601cfd5b5050565b60008160400151600081518110610a9857610a98610e7c565b6020026020010151602001519050600073ffffffffffffffffffffffffffffffffffffffff16826060015173ffffffffffffffffffffffffffffffffffffffff1614610a7b57803414610a7b576040517fba2f7467000000000000000000000000000000000000000000000000000000008152600481018290523460248201526044016105c8565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215610baa57600080fd5b83359250602084013567ffffffffffffffff81168114610bc957600080fd5b929592945050506040919091013590565b600060208284031215610bec57600080fd5b5035919050565b60008060408385031215610c0657600080fd5b50508035926020909101359150565b803573ffffffffffffffffffffffffffffffffffffffff81168114610c3957600080fd5b919050565b600080600060608486031215610c5357600080fd5b83359250610c6360208501610c15565b9150604084013590509250925092565b600060208284031215610c8557600080fd5b610c8e82610c15565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156109d5576109d5610c95565b6000815180845260005b81811015610cfd57602081850181015186830182015201610ce1565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6000604067ffffffffffffffff851683526020604081850152845160a06040860152610d6a60e0860182610cd7565b9050818601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc080878403016060880152610da58383610cd7565b6040890151888203830160808a01528051808352908601945060009350908501905b80841015610e06578451805173ffffffffffffffffffffffffffffffffffffffff16835286015186830152938501936001939093019290860190610dc7565b50606089015173ffffffffffffffffffffffffffffffffffffffff1660a08901526080890151888203830160c08a01529550610e428187610cd7565b9a9950505050505050505050565b600060208284031215610e6257600080fd5b5051919050565b808201808211156109d5576109d5610c95565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea164736f6c6343000817000a0000000000000000000000006d83cac25cfacdc7035bed947b92b64e6a8b80900000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f000000000000000000000000d71ce264f965a8d29d4a902846d1374f3f0539fe