Skip to content

Commit

Permalink
Merge pull request #14 from La-DAO/polish/dapp
Browse files Browse the repository at this point in the history
Polish/dapp
  • Loading branch information
iafhurtado authored Mar 13, 2024
2 parents 9f3cab0 + 448e32c commit 21b8524
Show file tree
Hide file tree
Showing 15 changed files with 2,047 additions and 318 deletions.
3 changes: 0 additions & 3 deletions packages/foundry/.env.example

This file was deleted.

2 changes: 1 addition & 1 deletion packages/foundry/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libs = ['lib']
fs_permissions = [{ access = "read-write", path = "./"}]

[rpc_endpoints]
default_network = "http://127.0.0.1:8545"
default_network = "https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
localhost = "http://127.0.0.1:8545"

mainnet = "https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API_KEY}"
Expand Down
309 changes: 309 additions & 0 deletions packages/nextjs/components/index/abis/xocpin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
export const xocPinABI = [
{
inputs: [{ internalType: "string", name: "_tokenURI", type: "string" }],
stateMutability: "nonpayable",
type: "constructor",
},
{ inputs: [{ internalType: "address", name: "target", type: "address" }], name: "AddressEmptyCode", type: "error" },
{
inputs: [{ internalType: "address", name: "account", type: "address" }],
name: "AddressInsufficientBalance",
type: "error",
},
{
inputs: [
{ internalType: "address", name: "sender", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
{ internalType: "address", name: "owner", type: "address" },
],
name: "ERC721IncorrectOwner",
type: "error",
},
{
inputs: [
{ internalType: "address", name: "operator", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "ERC721InsufficientApproval",
type: "error",
},
{
inputs: [{ internalType: "address", name: "approver", type: "address" }],
name: "ERC721InvalidApprover",
type: "error",
},
{
inputs: [{ internalType: "address", name: "operator", type: "address" }],
name: "ERC721InvalidOperator",
type: "error",
},
{ inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "ERC721InvalidOwner", type: "error" },
{
inputs: [{ internalType: "address", name: "receiver", type: "address" }],
name: "ERC721InvalidReceiver",
type: "error",
},
{
inputs: [{ internalType: "address", name: "sender", type: "address" }],
name: "ERC721InvalidSender",
type: "error",
},
{
inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
name: "ERC721NonexistentToken",
type: "error",
},
{ inputs: [], name: "FailedInnerCall", type: "error" },
{ inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "OwnableInvalidOwner", type: "error" },
{
inputs: [{ internalType: "address", name: "account", type: "address" }],
name: "OwnableUnauthorizedAccount",
type: "error",
},
{
inputs: [{ internalType: "address", name: "token", type: "address" }],
name: "SafeERC20FailedOperation",
type: "error",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "address", name: "owner", type: "address" },
{ indexed: true, internalType: "address", name: "approved", type: "address" },
{ indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "address", name: "owner", type: "address" },
{ indexed: true, internalType: "address", name: "operator", type: "address" },
{ indexed: false, internalType: "bool", name: "approved", type: "bool" },
],
name: "ApprovalForAll",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: false, internalType: "uint256", name: "_fromTokenId", type: "uint256" },
{ indexed: false, internalType: "uint256", name: "_toTokenId", type: "uint256" },
],
name: "BatchMetadataUpdate",
type: "event",
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: "uint256", name: "_tokenId", type: "uint256" }],
name: "MetadataUpdate",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "address", name: "previousOwner", type: "address" },
{ indexed: true, internalType: "address", name: "newOwner", type: "address" },
],
name: "OwnershipTransferred",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "address", name: "from", type: "address" },
{ indexed: true, internalType: "address", name: "to", type: "address" },
{ indexed: true, internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "Transfer",
type: "event",
},
{
inputs: [],
name: "MINT_PRICE",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "TREASURY",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "XOCOLATL",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "to", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "address", name: "owner", type: "address" }],
name: "balanceOf",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "baseTokenURI",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
name: "getApproved",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "owner", type: "address" },
{ internalType: "address", name: "operator", type: "address" },
],
name: "isApprovedForAll",
outputs: [{ internalType: "bool", name: "", type: "bool" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "address", name: "to", type: "address" }],
name: "mint",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "nextTokenId",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
name: "ownerOf",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{ inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" },
{
inputs: [
{ internalType: "address", name: "from", type: "address" },
{ internalType: "address", name: "to", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "from", type: "address" },
{ internalType: "address", name: "to", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "operator", type: "address" },
{ internalType: "bool", name: "approved", type: "bool" },
],
name: "setApprovalForAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "string", name: "_baseTokenURI", type: "string" }],
name: "setBaseTokenURI",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "uint256", name: "tokenId", type: "uint256" },
{ internalType: "string", name: "_tokenURI", type: "string" },
],
name: "setTokenURI",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
name: "supportsInterface",
outputs: [{ internalType: "bool", name: "", type: "bool" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
name: "tokenURI",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "from", type: "address" },
{ internalType: "address", name: "to", type: "address" },
{ internalType: "uint256", name: "tokenId", type: "uint256" },
],
name: "transferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
Loading

0 comments on commit 21b8524

Please sign in to comment.