Skip to content

Commit 82c029c

Browse files
authored
Update dependencies (#629)
* Update dependencies * update dependencies * v3.11.3
1 parent 2fa9b0f commit 82c029c

File tree

6 files changed

+352
-65
lines changed

6 files changed

+352
-65
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.0;
3+
4+
interface LinkTokenInterface {
5+
function allowance(address owner, address spender) external view returns (uint256 remaining);
6+
7+
function approve(address spender, uint256 value) external returns (bool success);
8+
9+
function balanceOf(address owner) external view returns (uint256 balance);
10+
11+
function decimals() external view returns (uint8 decimalPlaces);
12+
13+
function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);
14+
15+
function increaseApproval(address spender, uint256 subtractedValue) external;
16+
17+
function name() external view returns (string memory tokenName);
18+
19+
function symbol() external view returns (string memory tokenSymbol);
20+
21+
function totalSupply() external view returns (uint256 totalTokensIssued);
22+
23+
function transfer(address to, uint256 value) external returns (bool success);
24+
25+
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);
26+
27+
function transferFrom(address from, address to, uint256 value) external returns (bool success);
28+
}

contracts/external-deps/chainlink/VRFV2WrapperConsumerBase.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
import "@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol";
5-
import "@chainlink/contracts/src/v0.8/vrf/interfaces/VRFV2WrapperInterface.sol";
4+
import "./LinkTokenInterface.sol";
5+
import "./VRFV2WrapperInterface.sol";
66

77
/** *******************************************************************************
88
* @notice Interface for contracts using VRF randomness through the VRF V2 wrapper
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.0;
3+
4+
interface VRFV2WrapperInterface {
5+
/**
6+
* @return the request ID of the most recent VRF V2 request made by this wrapper. This should only
7+
* be relied option within the same transaction that the request was made.
8+
*/
9+
function lastRequestId() external view returns (uint256);
10+
11+
/**
12+
* @notice Calculates the price of a VRF request with the given callbackGasLimit at the current
13+
* @notice block.
14+
*
15+
* @dev This function relies on the transaction gas price which is not automatically set during
16+
* @dev simulation. To estimate the price at a specific gas price, use the estimatePrice function.
17+
*
18+
* @param _callbackGasLimit is the gas limit used to estimate the price.
19+
*/
20+
function calculateRequestPrice(uint32 _callbackGasLimit) external view returns (uint256);
21+
22+
/**
23+
* @notice Estimates the price of a VRF request with a specific gas limit and gas price.
24+
*
25+
* @dev This is a convenience function that can be called in simulation to better understand
26+
* @dev pricing.
27+
*
28+
* @param _callbackGasLimit is the gas limit used to estimate the price.
29+
* @param _requestGasPriceWei is the gas price in wei used for the estimation.
30+
*/
31+
function estimateRequestPrice(
32+
uint32 _callbackGasLimit,
33+
uint256 _requestGasPriceWei
34+
) external view returns (uint256);
35+
}

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thirdweb-dev/contracts",
33
"description": "Collection of smart contracts deployable via the thirdweb SDK, dashboard and CLI",
4-
"version": "3.11.2",
4+
"version": "3.11.3",
55
"license": "Apache-2.0",
66
"repository": {
77
"type": "git",

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
"/contracts/**/*.sol"
99
],
1010
"devDependencies": {
11-
"@chainlink/contracts": "^0.8.0",
1211
"@openzeppelin/contracts": "^4.9.3",
1312
"@openzeppelin/contracts-upgradeable": "^4.9.3",
14-
"@thirdweb-dev/chains": "^0.1.54",
13+
"@thirdweb-dev/chains": "0.1.81-nightly-b2728ec6f-20240319220226",
1514
"@thirdweb-dev/dynamic-contracts": "^1.2.4",
16-
"@thirdweb-dev/sdk": "^4.0.22",
15+
"@thirdweb-dev/sdk": "4.0.48-nightly-b2728ec6f-20240319220226",
1716
"@typechain/ethers-v5": "^10.2.1",
1817
"@types/fs-extra": "^9.0.13",
1918
"@types/mocha": "^9.1.1",

0 commit comments

Comments
 (0)