Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
aki-0517 committed Dec 5, 2024
1 parent 4f94f39 commit 487e711
Showing 1 changed file with 201 additions and 17 deletions.
218 changes: 201 additions & 17 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";
const deployedContracts = {
31337: {
ExpirableERC721: {
address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
abi: [
{
inputs: [
Expand All @@ -30,6 +30,11 @@ const deployedContracts = {
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "ERC721EnumerableForbiddenBatchMint",
type: "error",
},
{
inputs: [
{
Expand Down Expand Up @@ -133,6 +138,22 @@ const deployedContracts = {
name: "ERC721NonexistentToken",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "ERC721OutOfBoundsIndex",
type: "error",
},
{
inputs: [
{
Expand Down Expand Up @@ -239,12 +260,36 @@ const deployedContracts = {
name: "tokenId",
type: "uint256",
},
{
indexed: false,
internalType: "string",
name: "title",
type: "string",
},
{
indexed: false,
internalType: "uint256",
name: "expirationTime",
name: "issueDate",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "expiryDate",
type: "uint256",
},
{
indexed: false,
internalType: "string",
name: "usageScope",
type: "string",
},
],
name: "TokenMinted",
type: "event",
Expand Down Expand Up @@ -373,6 +418,52 @@ const deployedContracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
],
name: "listVouchers",
outputs: [
{
components: [
{
internalType: "string",
name: "title",
type: "string",
},
{
internalType: "uint256",
name: "issueDate",
type: "uint256",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "expiryDate",
type: "uint256",
},
{
internalType: "string",
name: "usageScope",
type: "string",
},
],
internalType: "struct ExpirableERC721.Voucher[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand All @@ -386,9 +477,29 @@ const deployedContracts = {
type: "uint256",
},
{
internalType: "uint256[]",
name: "expirationTimes",
type: "uint256[]",
internalType: "string",
name: "title",
type: "string",
},
{
internalType: "uint256",
name: "issueDate",
type: "uint256",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "expiryDate",
type: "uint256",
},
{
internalType: "string",
name: "usageScope",
type: "string",
},
],
name: "mintBatch",
Expand Down Expand Up @@ -549,6 +660,25 @@ const deployedContracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "tokenByIndex",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand All @@ -568,6 +698,30 @@ const deployedContracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "tokenOfOwnerByIndex",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand All @@ -587,6 +741,19 @@ const deployedContracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand Down Expand Up @@ -625,18 +792,35 @@ const deployedContracts = {
},
],
inheritedFunctions: {
approve: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
balanceOf: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
getApproved: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
isApprovedForAll: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
name: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
ownerOf: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
safeTransferFrom: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
setApprovalForAll: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
supportsInterface: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
symbol: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
tokenURI: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
transferFrom: "@openzeppelin/contracts/token/ERC721/ERC721.sol",
approve:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
balanceOf:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
getApproved:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
isApprovedForAll:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
name: "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
ownerOf:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
safeTransferFrom:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
setApprovalForAll:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
supportsInterface:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
symbol:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
tokenByIndex:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
tokenOfOwnerByIndex:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
tokenURI:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
totalSupply:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
transferFrom:
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol",
owner: "@openzeppelin/contracts/access/Ownable.sol",
renounceOwnership: "@openzeppelin/contracts/access/Ownable.sol",
transferOwnership: "@openzeppelin/contracts/access/Ownable.sol",
Expand Down

0 comments on commit 487e711

Please sign in to comment.