Skip to content

Commit

Permalink
successfully retrieving individual companies now
Browse files Browse the repository at this point in the history
  • Loading branch information
mpascualach committed Oct 18, 2023
1 parent 8d21802 commit 4020e1b
Showing 1 changed file with 69 additions and 26 deletions.
95 changes: 69 additions & 26 deletions packages/nextjs/generated/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,21 @@ const contracts = {
type: "function",
},
{
inputs: [],
name: "barcodesTotal",
outputs: [
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "barcodes",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
Expand All @@ -386,6 +392,11 @@ const contracts = {
],
name: "companies",
outputs: [
{
internalType: "uint16",
name: "prefix",
type: "uint16",
},
{
internalType: "uint64",
name: "taxNumber",
Expand Down Expand Up @@ -415,9 +426,9 @@ const contracts = {
name: "companiesTotal",
outputs: [
{
internalType: "uint256",
internalType: "uint16",
name: "",
type: "uint256",
type: "uint16",
},
],
stateMutability: "view",
Expand All @@ -442,6 +453,52 @@ const contracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_company",
type: "address",
},
],
name: "getCompany",
outputs: [
{
components: [
{
internalType: "uint16",
name: "prefix",
type: "uint16",
},
{
internalType: "uint64",
name: "taxNumber",
type: "uint64",
},
{
internalType: "address",
name: "companyOwner",
type: "address",
},
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "string",
name: "addr",
type: "string",
},
],
internalType: "struct BTN.Company",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
Expand All @@ -468,6 +525,11 @@ const contracts = {
},
{
inputs: [
{
internalType: "uint256",
name: "barcode",
type: "uint256",
},
{
internalType: "string",
name: "name",
Expand All @@ -478,11 +540,6 @@ const contracts = {
name: "description",
type: "string",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "mint",
outputs: [],
Expand All @@ -502,13 +559,6 @@ const contracts = {
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "pause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "paused",
Expand Down Expand Up @@ -569,9 +619,9 @@ const contracts = {
name: "productsTotal",
outputs: [
{
internalType: "uint256",
internalType: "uint16",
name: "",
type: "uint256",
type: "uint16",
},
],
stateMutability: "view",
Expand Down Expand Up @@ -781,13 +831,6 @@ const contracts = {
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
Expand Down

0 comments on commit 4020e1b

Please sign in to comment.