Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Leaderboard and Freighter API integration #598

Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b590a8e
Add leaderboard with wallet integration feature
illiassmalashchuk Oct 5, 2023
d0e41f2
Merge pull request #1 from stellar/main
Julian-dev28 Oct 5, 2023
db727cf
Merge remote-tracking branch 'origin/leaderboard-wallet-integration'
Julian-dev28 Oct 5, 2023
ba69a9c
Update index.tsx
Julian-dev28 Oct 5, 2023
d83de96
Merge pull request #1 from Julian-dev28/main
illiassmalashchuk Oct 5, 2023
e8341d0
Add total value locked logic with reseting user data
illiassmalashchuk Oct 5, 2023
20fecce
Refactor reset logic
illiassmalashchuk Oct 5, 2023
e8aac44
Refactor sorting
illiassmalashchuk Oct 6, 2023
ff6799d
Revert TVL for payment
illiassmalashchuk Oct 9, 2023
3e214ac
Update resubmit contract id logic
illiassmalashchuk Oct 9, 2023
31aa286
Fix resubmiting contractId
illiassmalashchuk Oct 9, 2023
3901004
Add pagination and wallet address to leaderboard
illiassmalashchuk Oct 9, 2023
ca39df1
Change columns order
illiassmalashchuk Oct 9, 2023
812560b
Allow payment be completed
illiassmalashchuk Oct 9, 2023
9f828b8
User submit ContractID
Julian-dev28 Oct 9, 2023
456e883
use GH token
Julian-dev28 Oct 10, 2023
55e279a
use npm instead of yarn
Julian-dev28 Oct 10, 2023
d7f396b
Update main.yml
Julian-dev28 Oct 10, 2023
730cf43
revert back to yarn
Julian-dev28 Oct 10, 2023
e2dc5ad
use https for wallets kit
Julian-dev28 Oct 10, 2023
9484284
try access token
Julian-dev28 Oct 10, 2023
3d1a2d8
use new github token
Julian-dev28 Oct 10, 2023
e962b49
set up to use git https
Julian-dev28 Oct 10, 2023
a7642b3
last random try
Julian-dev28 Oct 10, 2023
b114ba7
Update main.yml
Julian-dev28 Oct 10, 2023
fc66c44
use default settings
Julian-dev28 Oct 10, 2023
1ebf589
set origin for wallets-kit
Julian-dev28 Oct 10, 2023
1315219
trying npm again
Julian-dev28 Oct 10, 2023
d9a407a
nit: use npm for scripts
Julian-dev28 Oct 10, 2023
1f38563
Remove stellar wallets kit; add support for users w no progredd
Julian-dev28 Oct 10, 2023
7fa4d51
nit: phrasing
Julian-dev28 Oct 10, 2023
a94f4d9
Use Original GH Action
Julian-dev28 Oct 10, 2023
d63da81
Show user address
Julian-dev28 Oct 10, 2023
691fc1c
nit: phrasing
Julian-dev28 Oct 10, 2023
2cdd85a
nit: connect message
Julian-dev28 Oct 10, 2023
9648385
add missing cd
Julian-dev28 Oct 11, 2023
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
19 changes: 10 additions & 9 deletions dapps/dapp-challenges/challenge-0-crowdfund.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import success from "../../static/img/success.png";
import backedResult from "../../static/img/backedResult.png";
import deployedDApp from "../../static/img/deployedDApp.png";
import { ParentChallengeForm } from "../../src/components/atoms/challenge-form";
import { ParentChallengeContractForm } from "../../src/components/atoms/challenge-contract-form";
import CompleteStepButton from "../../src/components/atoms/complete-step-button";
import StartChallengeButton from "../../src/components/atoms/start-challenge-button";

Expand Down Expand Up @@ -51,6 +52,7 @@ In your terminal, load the contracts and initialize them in the Sandbox environm
```sh
npm run setup
```

If the command runs successfully, your terminal will return a series of messages notifying you about the successful initialization of the contracts and the post-installation sequence.

```sh
Expand All @@ -73,9 +75,7 @@ Please, save your deployed contract ID, you will need it to complete the challen

:::

<CompleteStepButton id={0} progress={1}>
Mark smart contracts deployed
</CompleteStepButton>
<ParentChallengeContractForm id={0} progress={1} />

## Checkpoint 2: 🤝 Connect the Frontend to the Backend

Expand Down Expand Up @@ -151,7 +151,7 @@ Then run the dev server again:
npm run dev
```

Now, open your browser and visit [http://localhost:3000](http://localhost:3000).
Now, open your browser and visit [http://localhost:3000](http://localhost:3000).

Ensure that you are connected to Futurenet and you should be able to see the frontend of your dapp!

Expand Down Expand Up @@ -205,7 +205,7 @@ Submit your public url to the challenge form and proceed to the next step to che

<ParentChallengeForm id={0} />

<br/>
<br />

:::info

Expand All @@ -215,12 +215,11 @@ Join [our Community in Discord](https://discord.gg/stellardev) in case you have

## Checkpoint 7: ✅ Check your work!

In order to successfully complete this challenge, your work needs to be checked.
Please, follow this steps:
In order to successfully complete this challenge, your work needs to be checked. Please, follow this steps:

1. Fork [the challenge repository](https://github.com/stellar/soroban-dapps-challenge).
2. Fill `crowdfund/challenge/output.txt` file with your wallet address, contract ID and production url.
Filled file should look like:
2. Fill `crowdfund/challenge/output.txt` file with your wallet address, contract ID and production url. Filled file should look like:

```sh
public key: GBSXUXZSA2VEXN5VGOWE5ODAJLC575JCMWRJ4FFRDWSTRCJ123456789
contract Id: CBKY7UN5VGD4LIQFOBOTSUSQWK67BZZTA23NIEVWSWRR5SAT26JQN2BN
Expand All @@ -229,9 +228,11 @@ production: https://soroban-example-dapp-rho.vercel.app
3. Create a Pull Request to the `stellar/soroban-dapps-challenge/crowdfund` branch. When the PR will be created, CI actions will check the `crowdfund/challenge/output.txt` file data and update your progress.
4. Wait for the CI/CD pipeline results.
5. Fix errors if present:

- find the error reason in the Crowdfund challenge CI results (you can find a link right in the pull request);
- return to your forked repository;
- fix errors and commit changes. The existing PR will be checked again.

6. If the pipeline was successful, then congratulations! You completed the challenge!👏

Invite a friend to try out your dapp and ask them to provide feedback!
Expand Down
9 changes: 4 additions & 5 deletions dapps/dapp-challenges/challenge-1-payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import submit_pmt from "../../static/img/submit_pmt.png";
import end from "../../static/img/end.png";
import balance_rcvr from "../../static/img/balance_rcvr.png";
import { ParentChallengeForm } from "../../src/components/atoms/challenge-form";
import { ParentChallengeContractForm } from "../../src/components/atoms/challenge-contract-form";
import CompleteStepButton from "../../src/components/atoms/complete-step-button";
import StartChallengeButton from "../../src/components/atoms/start-challenge-button";

Expand Down Expand Up @@ -108,9 +109,7 @@ soroban contract invoke \
--amount 1000000000
```

<CompleteStepButton id={1} progress={1}>
Mark smart contracts deployed
</CompleteStepButton>
<ParentChallengeContractForm id={1} progress={1} />
Julian-dev28 marked this conversation as resolved.
Show resolved Hide resolved

## Checkpoint 3: 🖥️ Launch the Frontend

Expand Down Expand Up @@ -275,7 +274,7 @@ Submit your public URL to the challenge form.

<ParentChallengeForm id={1} />

<br/>
<br />

:::info

Expand Down Expand Up @@ -312,4 +311,4 @@ To ensure that you've covered all the key user actions during the challenge, fol

## 🛡️🗡️ Take On More Challenges

View your progress and take on more challenges by visiting your [User Dashboard!](/dashboard)
View your progress and take on more challenges by visiting your [User Dashboard!](/dashboard)
5 changes: 2 additions & 3 deletions dapps/dapp-challenges/challenge-2-liquidity-pool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import swapComplete from "../../static/img/swapComplete.png";
import futurenetDeployment from "../../static/img/futurenetDeployment.png";
import wdraw from "../../static/img/wdraw.png";
import { ParentChallengeForm } from "../../src/components/atoms/challenge-form";
import { ParentChallengeContractForm } from "../../src/components/atoms/challenge-contract-form";
import CompleteStepButton from "../../src/components/atoms/complete-step-button";
import StartChallengeButton from "../../src/components/atoms/start-challenge-button";

Expand Down Expand Up @@ -71,9 +72,7 @@ Done
...
```

<CompleteStepButton id={2} progress={1}>
Mark smart contracts deployed
</CompleteStepButton>
<ParentChallengeContractForm id={2} progress={1} />

## Checkpoint 2: 🤝 Connect the Frontend to the Backend

Expand Down
Loading