Skip to content

Commit 8a7c67f

Browse files
Add V1 sigmint interface (just for the ABI) (#287)
* Add V1 sigmint interface (just for the ABI) * dev release
1 parent da18697 commit 8a7c67f

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
pragma solidity ^0.8.11;
3+
4+
import "../../interfaces/token/ITokenERC721.sol";
5+
6+
interface ISignatureMintERC721_V1 {
7+
function mintWithSignature(ITokenERC721.MintRequest calldata _req, bytes calldata _signature)
8+
external
9+
payable
10+
returns (uint256 tokenIdMinted);
11+
12+
function verify(ITokenERC721.MintRequest calldata _req, bytes calldata _signature)
13+
external
14+
view
15+
returns (bool, address);
16+
}

contracts/package.json

+1-1
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.2.7",
4+
"version": "3.2.8-0",
55
"license": "Apache-2.0",
66
"repository": {
77
"type": "git",

docs/ISignatureMintERC721_V1.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# ISignatureMintERC721_V1
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
## Methods
12+
13+
### mintWithSignature
14+
15+
```solidity
16+
function mintWithSignature(ITokenERC721.MintRequest _req, bytes _signature) external payable returns (uint256 tokenIdMinted)
17+
```
18+
19+
20+
21+
22+
23+
#### Parameters
24+
25+
| Name | Type | Description |
26+
|---|---|---|
27+
| _req | ITokenERC721.MintRequest | undefined |
28+
| _signature | bytes | undefined |
29+
30+
#### Returns
31+
32+
| Name | Type | Description |
33+
|---|---|---|
34+
| tokenIdMinted | uint256 | undefined |
35+
36+
### verify
37+
38+
```solidity
39+
function verify(ITokenERC721.MintRequest _req, bytes _signature) external view returns (bool, address)
40+
```
41+
42+
43+
44+
45+
46+
#### Parameters
47+
48+
| Name | Type | Description |
49+
|---|---|---|
50+
| _req | ITokenERC721.MintRequest | undefined |
51+
| _signature | bytes | undefined |
52+
53+
#### Returns
54+
55+
| Name | Type | Description |
56+
|---|---|---|
57+
| _0 | bool | undefined |
58+
| _1 | address | undefined |
59+
60+
61+
62+

0 commit comments

Comments
 (0)