Skip to content

Commit

Permalink
Merge pull request #9 from abhi8960git/main
Browse files Browse the repository at this point in the history
Week 2,3 - created a CCIP nft minting dapp for chains OP sepolia , Arbitrum , Polygon amoy and Avalanche Fuji and Tested the Cairo contract on Starknet
  • Loading branch information
seetadev committed Jul 7, 2024
2 parents bcdd981 + c467e75 commit 11e3d7d
Show file tree
Hide file tree
Showing 328 changed files with 62,903 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Web3-road-incident/.github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Issue Overview

Provide a brief summary of the issue, including the motivation for addressing it, the problems it presents, and any features required to resolve it.

## Proposed Solutions or Ideas

Outline your proposed solution or share any ideas you have for discussing or resolving the issue.
11 changes: 11 additions & 0 deletions Web3-road-incident/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Task name here

Fixes #relevant-issue-here

## Types of change

- [ ] Feature
- [ ] Bug
- [ ] Enhancement

## Comments (optional)
53 changes: 53 additions & 0 deletions Web3-road-incident/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Next.js CI

on:
push:
paths:
- "packages/nextjs/**"
pull_request:
branches:
- main
paths:
- "packages/nextjs/**"

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [lts/*]

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup node env
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"
#cache-dependency-path: packages/nextjs/yarn.lock

- name: Install dependencies (Next.js)
run: yarn install --immutable
working-directory: ./packages/nextjs

- name: Install scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.5.4

- name: Check Code Format
run: npm run format:check

- name: Run Next.js lint
run: yarn next:lint --max-warnings=0
working-directory: ./packages/nextjs

- name: Check typings on Next.js
run: yarn next:check-types
working-directory: ./packages/nextjs

- name: Build Next.js project
run: yarn build
working-directory: ./packages/nextjs
29 changes: 29 additions & 0 deletions Web3-road-incident/.github/workflows/test_contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Next.js CI

on:
push:
paths:
- "packages/snfoundry/contracts/**"
pull_request:
paths:
- "packages/snfoundry/contracts/**"

jobs:
snfoundry:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Install scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.5.4

- name: Install snfoundryup
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh

- name: Install snforge
run: snfoundryup -v 0.25.0

- name: Run snforge tests
run: snforge test
working-directory: ./packages/snfoundry/contracts
15 changes: 15 additions & 0 deletions Web3-road-incident/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.vscode/**
node_modules
local-devnet
package-lock.json
.idea

# yarn / eslint
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.eslintcache
.DS_Store
4 changes: 4 additions & 0 deletions Web3-road-incident/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "packages/snfoundry/local-devnet"]
path = packages/snfoundry/local-devnet
url = https://github.com/0xSpaceShard/starknet-devnet-rs
branch = json-rpc-v0.5.1
17 changes: 17 additions & 0 deletions Web3-road-incident/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

DESIRED_COMMIT="46e0ec032956f0e7cbe0330f32b6b31eff824087"

cd packages/snfoundry/local-devnet

LAST_COMMIT=$(git log -1 --format="%H")

if [ "$LAST_COMMIT" != "$DESIRED_COMMIT" ]; then
echo "FAIL: Last local-devnet commit ($LAST_COMMIT) is not the desired ($DESIRED_COMMIT)."
exit 1
fi

cd -

npm run format:check
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/esm/useLocalStorage/useLocalStorage.js b/dist/esm/useLocalStorage/useLocalStorage.js
index b0d584d4df29953551dfcf8febac002f89fa7acd..920ae5c52d28af73e3a892bdb935a7805a0f8224 100644
--- a/dist/esm/useLocalStorage/useLocalStorage.js
+++ b/dist/esm/useLocalStorage/useLocalStorage.js
@@ -14,7 +14,7 @@ function useLocalStorage(key, initialValue) {
return initialValue;
}
}, [initialValue, key]);
- const [storedValue, setStoredValue] = useState(readValue);
+ const [storedValue, setStoredValue] = useState(initialValue);
const setValue = useEventCallback(value => {
if (typeof window === 'undefined') {
console.warn(`Tried setting localStorage key “${key}” even though environment is not a client`);

Large diffs are not rendered by default.

783 changes: 783 additions & 0 deletions Web3-road-incident/.yarn/releases/yarn-3.2.3.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Web3-road-incident/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
enableColors: true

nmHoistingLimits: workspaces

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"

yarnPath: .yarn/releases/yarn-3.2.3.cjs
40 changes: 40 additions & 0 deletions Web3-road-incident/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Contributing to Scaffold-Stark

Thank you for your interest in contributing to Scaffold-Stark! Your support enhances this StarkNet-focused framework that bridges smart contract integration with web applications.

## About the Project

**Scaffold-Stark** provides a full DApp development template, offering seamless integration of StarkNet smart contracts with web applications. **SpeedrunStark.com** offers interactive challenges that serve to practice your Cairo and StarkNet skills, learn how to use the provided hooks, and launch your applications swiftly with potential rewards.

## Project Vision

Our goal is to simplify the DApp development and learning process, enabling developers to launch applications efficiently while understanding the intricacies of StarkNet.

## How to Get Involved

1. **Understand the Code**: Begin by familiarizing yourself with the architecture and flow by reading through the documentation provided in the README.md.
2. **Check Issues and Discussions**: Look through existing issues and discussions to understand ongoing problems or feature requests.
3. **Start Contributing**:
- **Fix Issues**: Choose an existing issue and work towards a solution.
- **Enhance Documentation**: Improve instructions, examples, or explanations.
- **Develop New Features**: Contribute new features that align with our project's goals.

## Making Changes

- **Branch Out**: Always work in a separate branch to avoid conflicts.
- **Coding Standards**: Follow the coding conventions and maintain the code quality as described in our documentation.
- **Commit Messages**: Write clear, concise commit messages that describe your changes and their impact.

## Submitting Contributions

1. **Pull Requests**: Submit a PR to the main repository with a detailed description of your changes.
2. **Review Process**: Engage with any feedback from maintainers to refine your PR.
3. **Tests**: Ensure all tests pass and, if necessary, add new tests relevant to your changes.

## Documentation

If your changes involve updates to how users interact with Scaffold-Stark or SpeedrunStark, update the relevant sections of the documentation to reflect these changes.

## Need Help?

Reach out via our community channels if you encounter issues or need clarification on contributing.
21 changes: 21 additions & 0 deletions Web3-road-incident/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 SEETA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 11e3d7d

Please sign in to comment.