Skip to content

Commit

Permalink
Update dependencies (#629)
Browse files Browse the repository at this point in the history
* Update dependencies

* update dependencies

* v3.11.3
  • Loading branch information
kumaryash90 authored Mar 19, 2024
1 parent 2fa9b0f commit 82c029c
Show file tree
Hide file tree
Showing 6 changed files with 352 additions and 65 deletions.
28 changes: 28 additions & 0 deletions contracts/external-deps/chainlink/LinkTokenInterface.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
function allowance(address owner, address spender) external view returns (uint256 remaining);

function approve(address spender, uint256 value) external returns (bool success);

function balanceOf(address owner) external view returns (uint256 balance);

function decimals() external view returns (uint8 decimalPlaces);

function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

function increaseApproval(address spender, uint256 subtractedValue) external;

function name() external view returns (string memory tokenName);

function symbol() external view returns (string memory tokenSymbol);

function totalSupply() external view returns (uint256 totalTokensIssued);

function transfer(address to, uint256 value) external returns (bool success);

function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);

function transferFrom(address from, address to, uint256 value) external returns (bool success);
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.8/vrf/interfaces/VRFV2WrapperInterface.sol";
import "./LinkTokenInterface.sol";
import "./VRFV2WrapperInterface.sol";

/** *******************************************************************************
* @notice Interface for contracts using VRF randomness through the VRF V2 wrapper
Expand Down
35 changes: 35 additions & 0 deletions contracts/external-deps/chainlink/VRFV2WrapperInterface.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFV2WrapperInterface {
/**
* @return the request ID of the most recent VRF V2 request made by this wrapper. This should only
* be relied option within the same transaction that the request was made.
*/
function lastRequestId() external view returns (uint256);

/**
* @notice Calculates the price of a VRF request with the given callbackGasLimit at the current
* @notice block.
*
* @dev This function relies on the transaction gas price which is not automatically set during
* @dev simulation. To estimate the price at a specific gas price, use the estimatePrice function.
*
* @param _callbackGasLimit is the gas limit used to estimate the price.
*/
function calculateRequestPrice(uint32 _callbackGasLimit) external view returns (uint256);

/**
* @notice Estimates the price of a VRF request with a specific gas limit and gas price.
*
* @dev This is a convenience function that can be called in simulation to better understand
* @dev pricing.
*
* @param _callbackGasLimit is the gas limit used to estimate the price.
* @param _requestGasPriceWei is the gas price in wei used for the estimation.
*/
function estimateRequestPrice(
uint32 _callbackGasLimit,
uint256 _requestGasPriceWei
) external view returns (uint256);
}
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/contracts",
"description": "Collection of smart contracts deployable via the thirdweb SDK, dashboard and CLI",
"version": "3.11.2",
"version": "3.11.3",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
"/contracts/**/*.sol"
],
"devDependencies": {
"@chainlink/contracts": "^0.8.0",
"@openzeppelin/contracts": "^4.9.3",
"@openzeppelin/contracts-upgradeable": "^4.9.3",
"@thirdweb-dev/chains": "^0.1.54",
"@thirdweb-dev/chains": "0.1.81-nightly-b2728ec6f-20240319220226",
"@thirdweb-dev/dynamic-contracts": "^1.2.4",
"@thirdweb-dev/sdk": "^4.0.22",
"@thirdweb-dev/sdk": "4.0.48-nightly-b2728ec6f-20240319220226",
"@typechain/ethers-v5": "^10.2.1",
"@types/fs-extra": "^9.0.13",
"@types/mocha": "^9.1.1",
Expand Down
Loading

0 comments on commit 82c029c

Please sign in to comment.