VRFV2PlusWrapper
Verified contract
Active on
Ethereum with 2 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0xd7f8…893a
Balances ($121.13)
Native
Value
$101.71
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
ETH | Native | 0.031748 | $3,203.72 |
$101.71 | |
LINK | ERC-20 | 1.324946 | $14.66 |
$19.42 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19763117 | 6 months ago | | | 0 | 0.00051441165 | |
| 19732868 | 7 months ago | | | 0 | 0.0010548788 |
ABI
ABI objects
Getter at block 21157556
SUBSCRIPTION_ID() view returns (uint256)
80071344125501179385116321626342775488436312309084968644277017161282023308461
getConfig() view returns (int256 fallbackWeiPerUnitLink, uint32 stalenessSeconds, uint32 fulfillmentFlatFeeNativePPM, uint32 fulfillmentFlatFeeLinkDiscountPPM, uint32 wrapperGasOverhead, uint32 coordinatorGasOverheadNative, uint32 coordinatorGasOverheadLink, uint16 coordinatorGasOverheadPerWord, uint8 wrapperNativePremiumPercentage, uint8 wrapperLinkPremiumPercentage, bytes32 keyHash, uint8 maxNumWords)
(fallbackWeiPerUnitLink=5354747932930759, stalenessSeconds=172800, fulfillmentFlatFeeNativePPM=0, fulfillmentFlatFeeLinkDiscountPPM=0, wrapperGasOverhead=13400, coordinatorGasOverheadNative=90000, coordinatorGasOverheadLink=112000, coordinatorGasOverheadPerWord=435, wrapperNativePremiumPercentage=24, wrapperLinkPremiumPercentage=20, keyHash=0xc6bf2e7b88e5cfbb4946ff23af846494ae1f3c65270b79ee7876c9aa99d3d45f, maxNumWords=10)
lastRequestId() view returns (uint256)
56425527240867983962818369712692660570526123009237380510347931958551636211037
link() view returns (address)
0x514910771af9ca656af840dff83e8264ecf986ca
linkNativeFeed() view returns (address)
0xdc530d9457755926550b59e8eccdae7624181557
owner() view returns (address)
0x21f73d42eb58ba49ddb685dc29d3bf5c0f0373ca
s_configured() view returns (bool)
true
s_disabled() view returns (bool)
false
s_fulfillmentTxSizeBytes() view returns (uint32)
580
s_vrfCoordinator() view returns (address)
0xd7f86b4b8cae7d942340ff628f82735b7a20893a
typeAndVersion() pure returns (string)
VRFV2PlusWrapper 1.0.0
Read-only
calculateRequestPrice(uint32 _callbackGasLimit, uint32 _numWords) view returns (uint256)
calculateRequestPriceNative(uint32 _callbackGasLimit, uint32 _numWords) view returns (uint256)
checkPaymentMode(bytes extraArgs, bool isLinkMode) pure
estimateRequestPrice(uint32 _callbackGasLimit, uint32 _numWords, uint256 _requestGasPriceWei) view returns (uint256)
estimateRequestPriceNative(uint32 _callbackGasLimit, uint32 _numWords, uint256 _requestGasPriceWei) view returns (uint256)
s_callbacks(uint256) view returns (address callbackAddress, uint32 callbackGasLimit, uint64 requestGasPrice)
State-modifying
Events acceptOwnership()
disable()
enable()
onTokenTransfer(address _sender, uint256 _amount, bytes _data)
rawFulfillRandomWords(uint256 requestId, uint256[] randomWords)
requestRandomWordsInNative(uint32 _callbackGasLimit, uint16 _requestConfirmations, uint32 _numWords, bytes extraArgs) payable returns (uint256 requestId)
setConfig(uint32 _wrapperGasOverhead, uint32 _coordinatorGasOverheadNative, uint32 _coordinatorGasOverheadLink, uint16 _coordinatorGasOverheadPerWord, uint8 _coordinatorNativePremiumPercentage, uint8 _coordinatorLinkPremiumPercentage, bytes32 _keyHash, uint8 _maxNumWords, uint32 _stalenessSeconds, int256 _fallbackWeiPerUnitLink, uint32 _fulfillmentFlatFeeNativePPM, uint32 _fulfillmentFlatFeeLinkDiscountPPM)
setCoordinator(address _vrfCoordinator)
setFulfillmentTxSize(uint32 size)
transferOwnership(address to)
withdraw(address _recipient)
withdrawNative(address _recipient)
ConfigSet(uint32 wrapperGasOverhead, uint32 coordinatorGasOverheadNative, uint32 coordinatorGasOverheadLink, uint16 coordinatorGasOverheadPerWord, uint8 coordinatorNativePremiumPercentage, uint8 coordinatorLinkPremiumPercentage, bytes32 keyHash, uint8 maxNumWords, uint32 stalenessSeconds, int256 fallbackWeiPerUnitLink, uint32 fulfillmentFlatFeeNativePPM, uint32 fulfillmentFlatFeeLinkDiscountPPM)
CoordinatorSet(address vrfCoordinator)
Disabled()
Enabled()
FallbackWeiPerUnitLinkUsed(uint256 requestId, int256 fallbackWeiPerUnitLink)
FulfillmentTxSizeSet(uint32 size)
NativeWithdrawn(address indexed to, uint256 amount)
OwnershipTransferRequested(address indexed from, address indexed to)
OwnershipTransferred(address indexed from, address indexed to)
Withdrawn(address indexed to, uint256 amount)
WrapperFulfillmentFailed(uint256 indexed requestId, address indexed consumer)
constructor(address _link, address _linkNativeFeed, address _coordinator, uint256 _subId)
This contract contains no fallback and receive objects.
FailedToTransferLink()
IncorrectExtraArgsLength(uint16 expectedMinimumLength, uint16 actualLength)
InvalidPremiumPercentage(uint8 premiumPercentage, uint8 max)
LINKPaymentInRequestRandomWordsInNative()
LinkAlreadySet()
LinkDiscountTooHigh(uint32 flatFeeLinkDiscountPPM, uint32 flatFeeNativePPM)
NativePaymentInOnTokenTransfer()
OnlyCoordinatorCanFulfill(address have, address want)
OnlyOwnerOrCoordinator(address have, address owner, address coordinator)
SubscriptionIdMissing()
ZeroAddress()