Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ch-1 new version V3 #152

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
337a0be
Add workaround on wallet connectors to remove from localStorage (#121)
Nadai2010 Aug 21, 2024
e47903a
Update reference - Base Template (#131)
Nadai2010 Sep 2, 2024
b4dc23f
Upgrade base challenge template (#148)
Buuh2511 Sep 30, 2024
6c52152
Update v3 with new features Scaffold Stark
Nadai2010 Oct 7, 2024
2c47efc
Update Readme
Nadai2010 Oct 7, 2024
2a85e22
Update v3 with new features Scaffold Stark
Nadai2010 Oct 7, 2024
527952b
Remove files
Nadai2010 Oct 7, 2024
defb46d
Remove inneccesary workflows
Nadai2010 Oct 7, 2024
66d10f5
Merge branch 'challenge-1-decentralized-staking' into nadai/challenge…
Nadai2010 Oct 7, 2024
86cad48
Update ch-1 with Scaffold Stark main - PR316
Nadai2010 Oct 7, 2024
fa19c05
Delete some unnecessary or duplicate files
Nadai2010 Oct 9, 2024
1867f9d
Rremove test unnecessary
Nadai2010 Oct 9, 2024
6a147a2
Fixed render, add test Cairo and remove unnecessary
Nadai2010 Oct 10, 2024
f0ac1c1
Update format
Nadai2010 Oct 10, 2024
c8fa8e7
Restablecer main.yml and add new sintaxis Map in Cairo contracts
Nadai2010 Oct 10, 2024
af6e88f
Update readme
Nadai2010 Oct 13, 2024
db48a88
Remove deloyedContracts
Nadai2010 Oct 13, 2024
e6982ee
Update useScaffoldWrite and useScaffoldRead
Nadai2010 Oct 15, 2024
cb72360
Fix in write hooks parser (useScaffoldMultiwriteContracts and useScaf…
Nadai2010 Oct 17, 2024
1654266
Update fixed events
Nadai2010 Oct 17, 2024
ec0c7c7
fix: add multiwrite fix
metalboyrick Oct 18, 2024
a5c323c
Merge branch 'nadai/challenge-1-update' of https://github.com/Scaffol…
metalboyrick Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ jobs:
run: yarn install --immutable
working-directory: ./packages/nextjs

- name: Check Code Format
run: yarn 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: Run Next.js tests
run: yarn test run
working-directory: ./packages/nextjs

- name: Build Next.js project
run: yarn build
working-directory: ./packages/nextjs
working-directory: ./packages/nextjs
3 changes: 2 additions & 1 deletion packages/snfoundry/contracts/src/Staker.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod Staker {
use contracts::ExampleExternalContract::{
IExampleExternalContractDispatcher, IExampleExternalContractDispatcherTrait
};
use starknet::storage::Map;
use starknet::{get_block_timestamp, get_caller_address, get_contract_address};
use super::{ContractAddress, IStaker, IERC20CamelDispatcher, IERC20CamelDispatcherTrait};

Expand All @@ -45,7 +46,7 @@ pub mod Staker {
#[storage]
struct Storage {
eth_token_dispatcher: IERC20CamelDispatcher,
balances: LegacyMap<ContractAddress, u256>,
balances: Map<ContractAddress, u256>,
Nadai2010 marked this conversation as resolved.
Show resolved Hide resolved
deadline: u64,
open_for_withdraw: bool,
external_contract_address: ContractAddress,
Expand Down
Loading