-
Notifications
You must be signed in to change notification settings - Fork 161
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
Showing
45 changed files
with
643 additions
and
1,386 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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "hello-near", | ||
"version": "1.0.0", | ||
"private": true, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@near-wallet-selector/core": "^8.9.7", | ||
"@near-wallet-selector/here-wallet": "^8.9.7", | ||
"@near-wallet-selector/modal-ui": "^8.9.7", | ||
"@near-wallet-selector/my-near-wallet": "^8.9.7", | ||
"@web3-onboard/core": "^2.21.5", | ||
"@web3-onboard/injected-wallets": "^2.10.15", | ||
"@web3-onboard/ledger": "^2.6.0", | ||
"@web3-onboard/react": "^2.8.16", | ||
"@web3-onboard/walletconnect": "^2.5.4", | ||
"base64-js": "^1.5.1", | ||
"bootstrap": "^5.3.3", | ||
"ieee754": "^1.2.1", | ||
"near-api-js": "^3.0.4", | ||
"near-social-vm": "github:gagdiez/VM", | ||
"next": "14.2.0", | ||
"pino-pretty": "^11.0.0", | ||
"react": "^18", | ||
"react-dom": "^18" | ||
}, | ||
"overrides": { | ||
"near-api-js": "^3.0.4" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.57.0", | ||
"eslint-config-next": "14.2.2" | ||
} | ||
} |
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
43 changes: 43 additions & 0 deletions
43
templates/frontend/components/next-app/src/components/cards.js
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import Link from 'next/link'; | ||
|
||
import styles from '@/app/app.module.css'; | ||
|
||
export const Cards = () => { | ||
return ( | ||
<div className={styles.grid}> | ||
<Link | ||
href="https://docs.near.org/build/web3-apps/quickstart" | ||
className={styles.card} | ||
target='_blank' | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Near Docs <span>-></span> | ||
</h2> | ||
<p>Learn how this application works, and what you can build on Near.</p> | ||
</Link> | ||
|
||
<Link | ||
href="/hello-near" | ||
className={styles.card} | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Near Integration <span>-></span> | ||
</h2> | ||
<p>Discover how simple it is to interact with a Near smart contract.</p> | ||
</Link> | ||
|
||
<Link | ||
href="/hello-components" | ||
className={styles.card} | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Web3 Components <span>-></span> | ||
</h2> | ||
<p>See how Web3 components can help you to create multi-chain apps.</p> | ||
</Link> | ||
</div> | ||
); | ||
}; |
14 changes: 8 additions & 6 deletions
14
...d/next-app/src/components/vm-component.js → .../components/next-app/src/components/vm.js
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const contractPerNetwork = { | ||
mainnet: 'hello.near-examples.near', | ||
testnet: 'hello.near-examples.testnet', | ||
}; | ||
|
||
const componentsPerNetwork = { | ||
mainnet: { | ||
socialDB: 'social.near', | ||
Lido: 'zavodil.near/widget/Lido', | ||
HelloNear: 'gagdiez.near/widget/HelloNear', | ||
LoveNear: 'gagdiez.near/widget/LoveNear', | ||
}, | ||
testnet: { | ||
socialDB: 'v1.social08.testnet', | ||
Lido: 'influencer.testnet/widget/Lido', | ||
HelloNear: 'influencer.testnet/widget/HelloNear', | ||
LoveNear: 'influencer.testnet/widget/LoveNear', | ||
} | ||
}; | ||
|
||
export const NetworkId = 'testnet'; | ||
export const HelloNearContract = contractPerNetwork[NetworkId]; | ||
export const Components = componentsPerNetwork[NetworkId]; |
File renamed without changes.
Oops, something went wrong.