-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82e9d76
commit fb18dd0
Showing
67 changed files
with
5,273 additions
and
4,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,41 @@ | ||
import { useItemContext } from "../src/context/ItemContext"; | ||
//ethers | ||
import { ethers } from 'ethers'; | ||
import { ethers } from "ethers"; | ||
|
||
//abi | ||
import Provenance from '../artifacts/contracts/Provenance.sol/Provenance.json'; | ||
import Provenance from "../artifacts/contracts/Provenance.sol/Provenance.json"; | ||
|
||
// this needs to be rewritten for non-user specific data only | ||
|
||
export async function getProvenanceAddresses() { | ||
const { MothershipContract } = useContractObjectRepo() | ||
const { MothershipContract } = useContractObjectRepo(); | ||
// const {mainAccount, setMainAccount, signer, provider} = useHandleEthereum(); | ||
|
||
|
||
const addressArray = await MothershipContract.getOwnersInstruments() | ||
|
||
const addressArray = await MothershipContract.getOwnersInstruments(); | ||
|
||
const paths = addressArray.map((address) => ( | ||
{ params: { provenanceAddress: address.toString() }, | ||
})) | ||
|
||
return { paths, fallback: false } | ||
} | ||
const paths = addressArray.map((address) => ({ | ||
params: { provenanceAddress: address.toString() }, | ||
})); | ||
|
||
return { paths, fallback: false }; | ||
} | ||
|
||
export function getProvenanceProps(context) { | ||
const { provenanceObjects } = useItemContext(); | ||
|
||
const ProvenanceFullProps = []; | ||
|
||
provenanceObjects.map((array, index) => { | ||
const { ProvenanceContract, ProvenanceProps, ProvenanceOwnerInfo } = array; | ||
ProvenanceFullProps.push({ ProvenanceContract, ProvenanceProps, ProvenanceOwnerInfo }) | ||
}) | ||
export function getProvenanceProps(context) { | ||
const { provenanceObjects } = useItemContext(); | ||
|
||
const ProvenanceFullProps = []; | ||
|
||
return { | ||
provAddress, | ||
ProvenanceFullProps | ||
} | ||
} | ||
|
||
provenanceObjects.map((array, index) => { | ||
const { ProvenanceContract, ProvenanceProps, ProvenanceOwnerInfo } = array; | ||
ProvenanceFullProps.push({ | ||
ProvenanceContract, | ||
ProvenanceProps, | ||
ProvenanceOwnerInfo, | ||
}); | ||
}); | ||
|
||
return { | ||
provAddress, | ||
ProvenanceFullProps, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = { | ||
reactStrictMode: true, | ||
react : { | ||
useSuspense: false | ||
react: { | ||
useSuspense: false, | ||
}, | ||
images: { | ||
domains: ["gateway.pinata.cloud"] | ||
domains: ["gateway.pinata.cloud"], | ||
}, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,74 @@ | ||
import * as React from "react"; | ||
import Link from "next/link"; | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
import { Container } from "react-bootstrap"; | ||
|
||
import ethPowerUsage from '../../public/images/eth_power_usage.jpg' | ||
import styles from './About.module.css'; | ||
import ethPowerUsage from "../../public/images/eth_power_usage.jpg"; | ||
import styles from "./About.module.css"; | ||
|
||
function About() { | ||
return ( | ||
<Container> | ||
<main className={styles.bodyText}> | ||
<h1>Track Your...What?</h1> | ||
<p> | ||
Track Your Axe is an innovative blockchain-based solution verifying | ||
ownership of musical instruments and items by creating a verifiable | ||
history (provenance) of ownership. | ||
</p> | ||
|
||
return ( | ||
<Container> | ||
<main className={styles.bodyText}> | ||
<h1>Track Your...What?</h1> | ||
<p> | ||
Track Your Axe is an innovative blockchain-based solution verifying ownership of musical instruments and items by creating a verifiable history (provenance) of ownership. | ||
</p> | ||
<h2>How Does it Work?</h2> | ||
<p> | ||
Track Your Axe uses a public, trustless database, i.e. a blockchain, | ||
to publicly store and record ownership of all items listed. This | ||
registry tracks ownership history, item details, item images over | ||
time, and location. | ||
</p> | ||
<hr /> | ||
|
||
<h2>How Does it Work?</h2> | ||
<p > | ||
Track Your Axe uses a public, trustless database, i.e. a blockchain, to publicly store and record ownership of all items listed. This registry tracks ownership history, item details, item images over time, and location. | ||
</p> | ||
<hr /> | ||
<h4>Is that Secure?</h4> | ||
<p> | ||
Indeed! To get technical about it, the 'deed' to the Provenance is, | ||
technically, and NFT (non-fungible token). The code used to generate | ||
this NFT is industry-standard and audited by third-parties, so your | ||
ownership of the token is secure. This token is the used as the | ||
indicator of ownership of the provenance itself, which exists at it's | ||
own unique location on the blockchain. | ||
</p> | ||
<p> | ||
The provenance is human-readable on the blockchain (the link to each | ||
contract can be found on your item page) so you can visit it if you | ||
wish, but if you don't wish to go that far, all the information is | ||
displayed on this site. | ||
</p> | ||
|
||
<h4>Is that Secure?</h4> | ||
<p> | ||
Indeed! To get technical about it, the 'deed' to the Provenance is, technically, and NFT (non-fungible token). The code used to generate this NFT is industry-standard and audited by third-parties, so your ownership of the token is secure. This token is the used as the indicator of ownership of the provenance itself, which exists at it's own unique location on the blockchain. | ||
</p> | ||
<p> | ||
The provenance is human-readable on the blockchain (the link to each contract can be found on your item page) so you can visit it if you wish, but if you don't wish to go that far, all the information is displayed on this site. | ||
</p> | ||
<h4>Why bother? And isn't blockchain bad for the planet?!?</h4> | ||
<Image src={ethPowerUsage} /> | ||
<p> | ||
Some instruments are so famous they are a household name; Lucille | ||
comes to mind. However the number of instruments and artifacts that | ||
trade hands daily is legion, and these instruments hold significant | ||
cultural and monetary value. TYA allows for an indestrucible record | ||
and lineage of these items and instruments and their history. | ||
</p> | ||
<p> | ||
Additionally, there are a number of financial incentives to | ||
registering your instrument on TYA. (list insurance, value of horn, | ||
etc){" "} | ||
</p> | ||
<h4> | ||
But, really, what about the planet?! and isn't blockchain expensive?! | ||
</h4> | ||
<p>blah blah blah, yadda yadda</p> | ||
|
||
<h4>Why bother? And isn't blockchain bad for the planet?!?</h4> | ||
<Image src={ethPowerUsage} /> | ||
<p> | ||
Some instruments are so famous they are a household name; Lucille comes to mind. However the number of instruments and artifacts that trade hands daily is legion, and these instruments hold significant cultural and monetary value. TYA allows for | ||
an indestrucible record and lineage of these items and instruments and their history. | ||
</p> | ||
<p>Additionally, there are a number of financial incentives to registering your instrument on TYA. (list insurance, value of horn, etc) </p> | ||
<h4>But, really, what about the planet?! and isn't blockchain expensive?!</h4> | ||
<p>blah blah blah, yadda yadda</p> | ||
|
||
<h4>Ok, fine. So how do I register my instruments and items?</h4> | ||
<p>Excellent question! Visit the tutorial page: <Link href='/'>here</Link> </p> | ||
</main> | ||
|
||
</Container> | ||
); | ||
|
||
<h4>Ok, fine. So how do I register my instruments and items?</h4> | ||
<p> | ||
Excellent question! Visit the tutorial page:{" "} | ||
<Link href="/">here</Link>{" "} | ||
</p> | ||
</main> | ||
</Container> | ||
); | ||
} | ||
|
||
export default About; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.bodyText p { | ||
text-align: left; | ||
} | ||
text-align: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import About from './About.jsx'; | ||
import About from "./About.jsx"; | ||
|
||
export default About; | ||
export default About; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | ||
|
||
export default function handler(req, res) { | ||
res.status(200).json({ name: 'John Doe' }) | ||
res.status(200).json({ name: "John Doe" }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
function HowItWorksGuide() { | ||
|
||
|
||
return ( | ||
|
||
<div className="WalletInfo" id="bootstrap-overrides"> | ||
|
||
TEST | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
); | ||
} | ||
|
||
export default HowItWorksGuide; | ||
return ( | ||
<div className="WalletInfo" id="bootstrap-overrides"> | ||
TEST | ||
</div> | ||
); | ||
} | ||
|
||
export default HowItWorksGuide; |
Oops, something went wrong.