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

Web3 integrations #23

Merged
merged 249 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
5ae5974
fix: running format
CastilloLuis Jul 14, 2023
10f9835
fix: header
CastilloLuis Jul 14, 2023
9db9c16
fix: header
CastilloLuis Jul 14, 2023
61bde0c
View COllective, Donors and Stewards initial UI
CastilloLuis Jul 19, 2023
f959015
Adding different views such as donors, stewards, wallet profile
CastilloLuis Jul 23, 2023
e990317
fix: fake data for pages
CastilloLuis Jul 28, 2023
f72eaea
General UI improvements
CastilloLuis Aug 3, 2023
6bec695
trigger vercel deployment
L03TJ3 Aug 7, 2023
cba0397
develop branch, merged with master, fixed conflicts. + formatting/lin…
L03TJ3 Aug 8, 2023
c135171
Merge branch 'master' of github.com:GoodDollar/GoodCollective into de…
L03TJ3 Aug 8, 2023
4845382
Fix missing import
L03TJ3 Aug 8, 2023
bd2f6f1
set unused var rule to error
L03TJ3 Aug 8, 2023
964143c
remove lint unused-var rules
L03TJ3 Aug 8, 2023
18c7745
chore: n.base query
CastilloLuis Aug 8, 2023
8d55e4b
Design QA changes
thenerdcat Aug 19, 2023
8b19f60
Merge pull request #17 from GoodDollar/Design-QA
thenerdcat Aug 23, 2023
1ee97eb
Initial re-work UI for desktop based on latest changes
CastilloLuis Aug 28, 2023
38bae25
Initial re-work UI for desktop based on latest changes
CastilloLuis Aug 28, 2023
18c9d6d
Merged Master
Joshua-Jack Sep 7, 2023
91619f1
deps
Joshua-Jack Sep 7, 2023
06c4aae
deps
Joshua-Jack Sep 7, 2023
dfcaa5a
Add typeform to create a good collective button
Joshua-Jack Sep 7, 2023
f4de72f
Wagmi integration
Joshua-Jack Sep 7, 2023
38bd06d
conditional render of address or ens. Truncate address shown
Joshua-Jack Sep 8, 2023
c1155a5
Desktop
CastilloLuis Sep 10, 2023
fcdb199
wagmi, routing, superfluid
Joshua-Jack Sep 10, 2023
bf52e52
wagmi, routing, superfluid
Joshua-Jack Sep 10, 2023
d3d12c3
merge dev
Joshua-Jack Sep 10, 2023
747721f
Fix currency
CastilloLuis Sep 11, 2023
ebf2acf
rebased with develop
CastilloLuis Sep 11, 2023
8778e3f
Update develop format
CastilloLuis Sep 11, 2023
6735c05
rebased with develop
CastilloLuis Sep 11, 2023
36c3756
wagmi, routing, superfluid
Joshua-Jack Sep 11, 2023
4a4b87a
wagmi, routing, superfluid
Joshua-Jack Sep 11, 2023
cd6f827
Dynamic data template for payment pools
Joshua-Jack Sep 13, 2023
5fef429
supporter and steward
Joshua-Jack Sep 13, 2023
b735966
Add missing param in event
Joshua-Jack Sep 13, 2023
75ef359
viaIr, new events
Joshua-Jack Sep 13, 2023
2540d48
Integrated Real Time Data
Joshua-Jack Sep 14, 2023
73e8da3
wagmi fix all data hooked up
Joshua-Jack Sep 17, 2023
73e1861
wagmi fix all data hooked up
Joshua-Jack Sep 18, 2023
cc81b88
yarn lock
Joshua-Jack Sep 18, 2023
ad86ce7
fix: yarn lock
sirpy Sep 18, 2023
6e72339
Merge branch 'master' into web3Integrations
sirpy Sep 18, 2023
f2ea370
fix: restore master yarn lock
sirpy Sep 18, 2023
08386bd
feat: btn
CastilloLuis Sep 18, 2023
e1ceb58
fix: sdk build
sirpy Sep 18, 2023
f87d180
fix: esm export
sirpy Sep 18, 2023
be23aa7
Working through SuperToken Initialization Error: There was an error i…
Joshua-Jack Sep 27, 2023
fb39d1c
Done
Joshua-Jack Oct 4, 2023
bab1bc3
.
Joshua-Jack Oct 9, 2023
c970ba1
fix: hardhat lint
sirpy Sep 18, 2023
01c46c3
add: override reward
sirpy Oct 9, 2023
863df3a
add: deployed upgraded pool with override
sirpy Oct 9, 2023
7533234
fix: contracts types build
sirpy Oct 12, 2023
1d993cf
Merge branch 'master' into web3Integrations
sirpy Oct 19, 2023
ad6ed96
Merge branch 'master' into web3Integrations
sirpy Oct 23, 2023
59217a5
fix: ethers typescript errors
sirpy Oct 23, 2023
11237e5
fix: types
L03TJ3 Oct 24, 2023
5c9714a
update
Joshua-Jack Oct 25, 2023
916bd01
updated subgraph
Joshua-Jack Oct 30, 2023
4672d60
Put back functions lost
Joshua-Jack Oct 30, 2023
6d4f8c7
fix: deploy preview on udpates to PR
sirpy Nov 2, 2023
b8681b1
wip: test preview yml
sirpy Nov 2, 2023
3108d27
Merge branch 'master' into web3Integrations
sirpy Nov 2, 2023
f6c3def
fix: lock file
sirpy Nov 2, 2023
f4ce213
Update donor
Joshua-Jack Nov 3, 2023
7ca3da4
add: tsc lint-staged
sirpy Nov 5, 2023
aea46e5
fix: lock issue
sirpy Nov 5, 2023
20f9d23
fix: typescript jsx transform
sirpy Nov 5, 2023
f3b23e9
Update donor
Joshua-Jack Nov 6, 2023
cb25dc5
.
Joshua-Jack Nov 6, 2023
aacdbe4
.
Joshua-Jack Nov 6, 2023
c55272c
fix: unit tests
sirpy Nov 6, 2023
030aa49
.
Joshua-Jack Nov 8, 2023
0edf07e
update
Joshua-Jack Nov 8, 2023
566a28e
Fix: build
Joshua-Jack Nov 8, 2023
792e1ba
fix: unit tests
sirpy Nov 8, 2023
22f0314
fix: build correctly
sirpy Nov 9, 2023
d425432
wip: fix PR test
sirpy Nov 14, 2023
ad77a41
Update readme to clarify that packages must be built locally
benefacto Nov 22, 2023
57dc8a4
Attempt to port existing desktop wallet connection handling to mobile
benefacto Nov 24, 2023
03cb90d
fix: event quantity
sirpy Nov 29, 2023
b3044f1
refactor: package.json
sirpy Nov 29, 2023
2b506d9
Point to working subgraph
benefacto Nov 30, 2023
42b295d
refactored header and changed wallet connect buttons layout to menu
krisbitney Dec 11, 2023
ec46240
added todo item
krisbitney Dec 11, 2023
6126d7d
fixed wallet connector dropdown offset
krisbitney Dec 11, 2023
22a1e32
animated wallet connector menu button arrow
krisbitney Dec 12, 2023
d066df1
Collective Home Card description is now limited to 3 lines and expand…
krisbitney Dec 12, 2023
e4e5df0
reduced width of desktop home collective card containers so they more…
krisbitney Dec 12, 2023
a9ef6a9
fixed padding on ViewCollective page and did some touchups on steward…
krisbitney Dec 12, 2023
a7698fe
fixed CTA button size on DonationPage
krisbitney Dec 12, 2023
cf168b1
Merge pull request #48 from GoodDollar/kris/header
sirpy Dec 12, 2023
b7fb7f6
Merge pull request #47 from GoodDollar/kris/cards
sirpy Dec 12, 2023
8953763
fixed Breadcrumb on DonationPage
krisbitney Dec 12, 2023
5ee37d5
Merge pull request #51 from GoodDollar/kris/donation-page
sirpy Dec 12, 2023
4646d9b
Merge remote-tracking branch 'origin/web3Integrations' into kris/page…
krisbitney Dec 13, 2023
b17bb8c
fixed icon alignment on ViewCollective page
krisbitney Dec 13, 2023
2f7712b
added random profile pics for stewards
krisbitney Dec 13, 2023
4295612
fixes for layout of ViewStewards page on mobile
krisbitney Dec 13, 2023
efc955d
small refactors while trying to figure out why "see all stewards" but…
krisbitney Dec 13, 2023
9df6bf6
set gap between stewards and transactions to 32 on desktop ViewCollec…
krisbitney Dec 13, 2023
dccb681
Merge pull request #49 from GoodDollar/kris/page-padding
krisbitney Dec 14, 2023
b263e06
Merge remote-tracking branch 'origin/web3Integrations' into kris/view…
krisbitney Dec 14, 2023
230b00e
Merge pull request #55 from GoodDollar/kris/view-collective-icon-alig…
krisbitney Dec 14, 2023
0062840
refactored subgraph data fetching
krisbitney Dec 14, 2023
35335b8
fix: empty arrays, relations
sirpy Nov 29, 2023
321f623
wip: subgraph fixes
sirpy Dec 14, 2023
de08229
additional refactoring of models
krisbitney Dec 14, 2023
18c9811
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 14, 2023
9ee81fd
small progress made in adding dynamic data
krisbitney Dec 14, 2023
ab3b969
reworked subgraph; added entities for StewardCollective, Reward, Dono…
krisbitney Dec 15, 2023
60a8e69
updated pool creation in subgraph
krisbitney Dec 15, 2023
c2d2cd0
adjusted Collective schema
krisbitney Dec 16, 2023
3fbead3
made all fields non-nullable since they all have values when instanti…
krisbitney Dec 16, 2023
11aeeff
removed 'contributions' summary value from Collective
krisbitney Dec 16, 2023
eedc565
added summary statistics to Collective
krisbitney Dec 16, 2023
9eae142
updated contribution calculations for donors in subgraph
krisbitney Dec 18, 2023
60af1fc
added dev comments in schema for clarity
krisbitney Dec 18, 2023
a5fbfde
reworked subgraph queries and model transforms (build broken)
krisbitney Dec 18, 2023
c6db959
added dynamic data to ViewCollective and ViewStewards (build broken)
krisbitney Dec 18, 2023
59aefa7
updated wallet profile page
krisbitney Dec 19, 2023
6f442cc
removed unused pages and fixed build
krisbitney Dec 19, 2023
705543b
added ipfs data parsing and removed unused reward/donation code
krisbitney Dec 19, 2023
66c9df1
fixed ipfs collective id
krisbitney Dec 19, 2023
b264fcc
Add: Design system (#54)
L03TJ3 Dec 20, 2023
fcc2577
Update README.md
L03TJ3 Dec 20, 2023
d474c25
front end now obtains ipfs data from subgraph instead of fetching dir…
krisbitney Dec 20, 2023
2e275b7
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 20, 2023
8286e10
minor refactoring
krisbitney Dec 21, 2023
bcf8952
made event-claim relationship m:1
krisbitney Dec 21, 2023
03b00b4
fix: exluded deps from bundle
L03TJ3 Dec 21, 2023
cebd745
Merge pull request #60 from GoodDollar/kris/subgraph
krisbitney Dec 22, 2023
125aa5a
fix for desktop padding on view collective page
krisbitney Dec 22, 2023
3788ff3
added tsconfig for assemblyscript in subgraph package
krisbitney Dec 23, 2023
82d9eec
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 23, 2023
ca5cb86
updated ViewDonorsPage and its components
krisbitney Dec 23, 2023
cd0a251
added correct Collective metadata to donate page
krisbitney Dec 23, 2023
fcab1fd
added ipfs collective metadata update to handlePoolDetailsChanged
krisbitney Dec 23, 2023
9b53599
changed variable name 'nftAddress' to 'nftId' in subgraph pool.ts; ch…
krisbitney Dec 24, 2023
11dd18a
removed deriveFrom relationship from eventdata claim
krisbitney Dec 24, 2023
8e6c02c
reconfigured subgraph to recognize factory-template relationship betw…
krisbitney Dec 24, 2023
390b248
Merge pull request #64 from GoodDollar/kris/subgraph-fix
sirpy Dec 25, 2023
dcc77ea
fix: subgraph null, ipfs, mappings file
sirpy Dec 25, 2023
65ad04b
ensured required values in subgraph entities are populated
krisbitney Dec 25, 2023
6f11c00
Merge remote-tracking branch 'origin/web3Integrations' into kris/subg…
krisbitney Dec 25, 2023
b8421c3
update yarn.lock
krisbitney Dec 25, 2023
56bda67
fixed assemblyscript config extension path
krisbitney Dec 26, 2023
6a822e2
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 26, 2023
e9480d7
updated DonateComponent to determine if balance is sufficient; remove…
krisbitney Dec 26, 2023
0232d0c
added donation timestamp to DonorCollective (needed for superfluid re…
krisbitney Dec 26, 2023
af10f15
added donation timestamp to DonorCollective (needed for superfluid re…
krisbitney Dec 26, 2023
19e0433
removed missed usages of @constants folder
krisbitney Dec 26, 2023
75f6abc
Merge remote-tracking branch 'origin/kris/data-flow' into kris/realti…
krisbitney Dec 26, 2023
d3fb52b
Merge pull request #65 from GoodDollar/kris/subgraph-fix
sirpy Dec 26, 2023
3bdaa4a
fix: yarn lock
sirpy Dec 26, 2023
99ab3af
displaying realtime superfluid donations (untested)
krisbitney Dec 26, 2023
48f2507
Merge remote-tracking branch 'origin/web3Integrations' into kris/real…
krisbitney Dec 26, 2023
6546f68
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 26, 2023
1ddb3e7
fixed null values in handleRewardClaim NFT
krisbitney Dec 26, 2023
4d52ddb
Merge pull request #62 from GoodDollar/kris/view-collective-desktop-p…
krisbitney Dec 26, 2023
390931c
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 26, 2023
0df8bc3
Merge remote-tracking branch 'origin/web3Integrations' into kris/real…
krisbitney Dec 26, 2023
5c61ebb
updated yarn lock
krisbitney Dec 26, 2023
2ff7df1
Merge remote-tracking branch 'origin/web3Integrations' into kris/subg…
krisbitney Dec 26, 2023
2ad905f
updated yarn lock
krisbitney Dec 26, 2023
02a1d41
Merge pull request #67 from GoodDollar/kris/subgraph-fix
krisbitney Dec 26, 2023
f566657
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 26, 2023
698e3c5
Merge remote-tracking branch 'origin/web3Integrations' into kris/real…
krisbitney Dec 26, 2023
7e26eae
using hex string for pool project id due to invalid utf-8 data
krisbitney Dec 26, 2023
d49a0a9
removed ipfs retries since they don't seem to help
krisbitney Dec 26, 2023
100443d
fixed Claim totalRewards initialization
krisbitney Dec 26, 2023
324d63e
Merge pull request #68 from GoodDollar/kris/subgraph-fix
krisbitney Dec 26, 2023
f5b4a68
reworked ipfs usage in subgraph to use new data source feature
krisbitney Dec 26, 2023
2f9fe26
Merge pull request #69 from GoodDollar/kris/subgraph-ipfs
krisbitney Dec 26, 2023
e083172
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 26, 2023
a2ec1af
updated data flow to accomodate subgraph updates
krisbitney Dec 26, 2023
a92f646
add required fields to ipfs entity in subgraph
krisbitney Dec 27, 2023
7c55129
Merge pull request #70 from GoodDollar/kris/ipfs-required-fields
krisbitney Dec 27, 2023
ec9f982
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 27, 2023
e0d7da5
adjusted ipfs fetching in front end
krisbitney Dec 27, 2023
daab34d
renamed IpfsCollective.address to IpfsCollective.collective
krisbitney Dec 27, 2023
847f358
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 27, 2023
f14ce7a
removed IpfsCollective.collective
krisbitney Dec 27, 2023
035d327
Merge remote-tracking branch 'origin/web3Integrations' into kris/data…
krisbitney Dec 27, 2023
b24368a
fixes to subgraph ipfs fetching in front end
krisbitney Dec 27, 2023
77afd1f
removed several hard-coded SVG strings
krisbitney Dec 27, 2023
7c86aa6
several minor fixes
krisbitney Dec 27, 2023
264c582
various minor fixes
krisbitney Dec 27, 2023
cf6ba01
reworked wallet profile UI
krisbitney Dec 28, 2023
4b6d6ec
removed use of `window`
krisbitney Dec 28, 2023
a3fd122
refactored useGetBalance
krisbitney Dec 28, 2023
8c1641c
Merge remote-tracking branch 'origin/kris/data-flow' into kris/realti…
krisbitney Dec 28, 2023
25380e4
post-merge fixes
krisbitney Dec 28, 2023
8cc5c3f
removed unused constants
krisbitney Dec 28, 2023
60844f0
removed redundant view from ViewStewardsPage.tsx
krisbitney Dec 28, 2023
178e8d5
removed unused styles from ViewStewardsPage.tsx
krisbitney Dec 28, 2023
e014225
removed unused styles from ViewDonorsPage.tsx
krisbitney Dec 28, 2023
fed3a87
ui fixes ViewStewardsPage and ViewDonorsPage
krisbitney Dec 28, 2023
f803942
removed unused import and console log
krisbitney Dec 28, 2023
08d3d50
updated useContractCalls and much of DonateComponent
krisbitney Dec 29, 2023
90c99da
fixed double usage of insufficientLiquidity
krisbitney Dec 29, 2023
f3fedec
simplified DonorListItem ranks
krisbitney Dec 29, 2023
d65968b
ProfileView refactor
krisbitney Dec 29, 2023
b8d12ed
Merge remote-tracking branch 'origin/kris/data-flow' into kris/realti…
krisbitney Dec 29, 2023
89eb735
Merge pull request #71 from GoodDollar/kris/desktop-stewards-donors-l…
krisbitney Dec 29, 2023
2f93b78
Merge pull request #58 from GoodDollar/kris/data-flow
krisbitney Dec 29, 2023
9abd3c4
added useApproveSwapTokenCallback and useSwapRoute
krisbitney Dec 29, 2023
5a86cef
removed mock data
krisbitney Dec 29, 2023
4e02064
draft swap integration
krisbitney Dec 30, 2023
31ff9ae
added index to hooks/useContractCalls
krisbitney Dec 30, 2023
5d33d59
prevented swap from G$ to G$
krisbitney Dec 30, 2023
56cd466
fixed formatting and some swap bugs
krisbitney Dec 30, 2023
5404b97
removed unused function from lib
krisbitney Dec 30, 2023
1e2603e
Merge remote-tracking branch 'origin/kris/realtime-donation-flow' int…
krisbitney Dec 30, 2023
638593d
added flowing balances for total donation amounts for collectives and…
krisbitney Jan 4, 2024
e6f04a1
added useTokenList hook
krisbitney Jan 4, 2024
aafd807
Merge remote-tracking branch 'origin/kris/realtime-donation-flow' int…
krisbitney Jan 4, 2024
b9bbeb5
now using celo token list
krisbitney Jan 4, 2024
cb1e9aa
removed unused import
krisbitney Jan 4, 2024
c4b8201
made dropdown menu scrollable
krisbitney Jan 4, 2024
0a76140
Merge pull request #66 from GoodDollar/kris/realtime-donation-flow
krisbitney Jan 4, 2024
4e85141
Merge remote-tracking branch 'origin/web3Integrations' into kris/inte…
krisbitney Jan 4, 2024
96e19c2
added storage cache to apollo client
krisbitney Jan 4, 2024
e24a890
swap works!
krisbitney Jan 5, 2024
2fb34b3
adjustments to reflect uniswap default slippage tolerance
krisbitney Jan 5, 2024
b3ad4e1
fixed jsbi via vite configuration
krisbitney Jan 6, 2024
72e8905
changed priceImpact to number
krisbitney Jan 7, 2024
7688014
Merge remote-tracking branch 'origin/kris/integrate-swap' into kris/a…
krisbitney Jan 7, 2024
9e6b80a
updated default apollo client fetch policy to 'cache-and-network'
krisbitney Jan 7, 2024
cf67b5d
removed unused `WalletConnectionProvider` context
krisbitney Jan 8, 2024
f7cfdcf
by request, handleApproveToken is no longer memoized
krisbitney Jan 8, 2024
09dbb70
fixed GD formatting in Donor List
krisbitney Jan 9, 2024
f8b940e
Merge remote-tracking branch 'origin/kris/integrate-swap' into kris/a…
krisbitney Jan 9, 2024
4ee4e32
changed acceptable price impact percent to 5% and moved it to constan…
krisbitney Jan 9, 2024
6798a21
add swap and fix donate (#72)
krisbitney Jan 9, 2024
dbe2ec0
added steward verification check
krisbitney Jan 10, 2024
1438f46
added currentPool value fetching
krisbitney Jan 10, 2024
2ff9ee6
added "people supported" counts
krisbitney Jan 10, 2024
a24d8be
fixed for useIsStewardVerified and added FlowingDonationsRowItem to r…
krisbitney Jan 12, 2024
1d67a4e
fixes for currentPool, donor list
krisbitney Jan 12, 2024
162ab5f
fix for ens name support
krisbitney Jan 12, 2024
1dd9ca9
Merge pull request #74 from GoodDollar/kris/appolo-storage-cache
krisbitney Jan 12, 2024
4e1595b
Merge remote-tracking branch 'origin/web3Integrations' into kris/inte…
krisbitney Jan 12, 2024
3cae032
Merge pull request #82 from GoodDollar/kris/integrate-swap
krisbitney Jan 12, 2024
3f05ee7
Merge remote-tracking branch 'origin/web3Integrations' into kris/rema…
krisbitney Jan 12, 2024
82cfc75
Merge pull request #81 from GoodDollar/kris/remaining-details
krisbitney Jan 15, 2024
f112983
Bug fixes (#111)
krisbitney Jan 16, 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
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
pull_request:
types: [opened, synchronize, edited, ready_for_review]
branches:
- master
workflow_dispatch:
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Pull Request CI - NextJS & Hardhat
on:
workflow_dispatch:
push:
branches: [produciton, release, next]
branches: [production, release, next]
pull_request:
types: [opened, reopened, ready_for_review, synchronize]

Expand Down Expand Up @@ -55,25 +55,16 @@ jobs:
run: |
echo "$CHANGED_APP $CHANGED_CONTRACTS $CHANGED_SDK"

- name: 'Build contracts'
if: steps.changed-contracts.outputs.changed == 'true'
- name: 'Test Build'
run: |
yarn build:contracts
yarn build

- name: 'setup test contracts for sdk'
if: ${{ steps.changed-contracts.outputs.changed == 'true' || steps.changed-sdk.outputs.changed == 'true' }}
run: |
yarn test:setup

- name: 'test sdk & contracts'
if: ${{ steps.changed-contracts.outputs.changed == 'true' || steps.changed-sdk.outputs.changed == 'true' }}
run: |
yarn test

# - name: 'stop node'
# run: |
# pkill -f "hardhat node"

- name: 'Build app production'
if: steps.changed-app.outputs.changed == 'true'
run: |
yarn build:app
5 changes: 5 additions & 0 deletions .yarn/versions/a125cec7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
undecided:
- "@gooddollar/goodcollective"
- "@gooddollar/goodcollective-app"
- "@gooddollar/goodcollective-contracts"
- "@scaffold-eth/subgraph"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ This is the repo for the GoodCollective protocol and dapp, use it to:
- install dependencies
`yarn install`

- build all packages locally
`yarn build`

### Deploying contracts for local development

To start a local node with the deployed contracts:
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
],
"private": true,
"scripts": {
"publish": "yarn workspaces foreach --include '{@gooddollar/goodcollective-contracts,@gooddollar/goodcollective-sdk}' run publish",
"postinstall": "husky install",
"publish": "yarn workspaces foreach -t --include '{@gooddollar/goodcollective-contracts,@gooddollar/goodcollective-sdk}' run publish",
"build": "yarn workspaces foreach -tp --include '{@gooddollar/goodcollective-contracts,@gooddollar/goodcollective-sdk,@gooddollar/goodcollective-app}' run build",
"build:contracts": "yarn workspace @gooddollar/goodcollective-contracts compile",
"build:sdk": "yarn workspace @gooddollar/goodcollective-sdk build",
"deploy:contracts": "yarn workspace @gooddollar/goodcollective-contracts deploy",
Expand All @@ -22,11 +24,6 @@
},
"workspaces": {
"packages": [
"packages/app",
"packages/contracts",
"packages/sdk-js",
"packages/subgraph",
"packages/services/*",
"packages/*"
]
},
Expand Down Expand Up @@ -57,4 +54,4 @@
"resolutions": {
"@react-native-aria/interactions": "0.2.3"
}
}
}
1 change: 1 addition & 0 deletions packages/app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_NFTSTORAGE_KEY= eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweDg1RDNkNjZlNzZGRWUwNDQ4Y2YwMDlkOGMwYTUzNzg0NmYxRTBDMEYiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTY5MzM0NDI2NTUyNSwibmFtZSI6Imdvb2Rkb2xsYXJzZGsifQ.uXoOM-vy-Vt_I09Cck9Ohdsr54n5lavd6oGeRbLBKSk
3 changes: 3 additions & 0 deletions packages/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {
rules: {
'object-curly-spacing': 'off',
'comma-dangle': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
},
};
7 changes: 7 additions & 0 deletions packages/app/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.words": [
"celo",
"wagmi"
]
}
35 changes: 35 additions & 0 deletions packages/app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# How to theme

Current theme based on design system can be found here: GoodCollective/packages/app/src/theme
example of implementation can be found at:

1. import components from 'native-base' instead of 'react-native'
1a. they are mostly the same, but have extended styling options and are connected to the above mentioned theme
2. by using the withTheme hook you can apply styles similiar to how you would do with react-native's StyleSheet
ie.

```
import { withTheme } from '@gooddollar/good-design'
import { Text } from 'native-base'

export const theme = {
baseStyle: {
fontStyles: {
title: {
fontWeight: 700,
color: 'black',
fontFamily: 'heading',
fontSize: 'md',
}
},
...// define additional styles
}
}

const TestComponent = withTheme({ name: <Name of component, should match exported name> })(({ fontStyles }: any) => (
<Text {...fontStyles}>TestText </Text> // add as props so that it can apply the definitions from theme
))
```

3. todo: add example for breakpoint values
4. todo: add example for variants
75 changes: 40 additions & 35 deletions packages/app/index.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NNPTP7GK17"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-NNPTP7GK17');
</script>
<title>GoodCollective</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./web/main.tsx"></script>
</body>
<style>
/* These styles make the body full-height */
html,
body {
height: 100%;
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GoodCollective</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&display=swap" rel="stylesheet">

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NNPTP7GK17"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

/* These styles disable body scrolling if you are using <ScrollView> */
body {
overflow: hidden;
}
gtag('config', 'G-NNPTP7GK17');
</script>
<title>GoodCollective</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./web/main.tsx"></script>
</body>
<style>
/* These styles make the body full-height */
html,
body {
height: 100%;
}

/* These styles make the root element full-height */
#root {
height: 100%;
}
</style>
/* These styles disable body scrolling if you are using <ScrollView> */
body {
overflow: hidden;
}

/* These styles make the root element full-height */
#root {
height: 100%;
}
</style>
</html>
44 changes: 38 additions & 6 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,49 @@
"start": "react-native start",
"test": "jest",
"web": "vite -c web/vite.config.ts",
"build": "yarn build:web",
"build:web": "tsc && vite build -c web/vite.config.ts",
"preview:web": "vite preview -c web/vite.config.ts"
},
"dependencies": {
"@apollo/client": "^3.7.14",
"@celo-tools/celo-ethers-wrapper": "^0.4.0",
"@ethersproject/shims": "^5.7.0",
"@gooddollar/goodcollective-sdk": "^1.*",
"@gooddollar/web3sdk-v2": "^0.1.108",
"@gooddollar/good-design": "^0.1.31",
"@gooddollar/goodcollective-sdk": "^1.0.15",
"@gooddollar/web3sdk-v2": "^0.2.2",
"@react-native-aria/interactions": "0.2.3",
"@react-native-async-storage/async-storage": "^1.18.2",
"@react-native-firebase/analytics": "16.7.0",
"@react-native-firebase/app": "16.7.0",
"@superfluid-finance/sdk-core": "^0.3.2",
"@uniswap/router-sdk": "^1.7.1",
"@uniswap/sdk-core": "^4.0.7",
"@uniswap/smart-order-router": "^3.20.0",
"@uniswap/v3-sdk": "^3.10.0",
"@usedapp/core": "^1.2.10",
"@wagmi/core": "^1.4.5",
"@walletconnect/modal-react-native": "^1.0.0-rc.9",
"@web3-onboard/react": "^2.8.10",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"apollo-link": "^1.2.14",
"apollo-link-rest": "^0.9.0",
"apollo3-cache-persist": "^0.14.1",
"axios": "^1.5.0",
"crypto-browserify": "^3.12.0",
"decimal.js": "^10.4.3",
"ethers": "^5.6.2",
"fast-text-encoding": "^1.0.6",
"graphql": "^16.6.0",
"lodash": "^4.17.21",
"mixpanel-react-native": "^2.3.1",
"mobile-device-detect": "^0.4.3",
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"native-base": "^3.4.28",
"node-libs-react-native": "^1.2.1",
"qs": "^6.11.2",
"react": "18",
"react-dom": "18",
"react-native": "^0.71.11",
Expand All @@ -42,22 +64,29 @@
"react-native-safe-area-context": "3.3.2",
"react-native-svg": "^13.9.0",
"react-native-svg-web": "^1.0.9",
"react-native-web": "0.18.*"
"react-native-web": "0.18.*",
"react-router-dom": "^6.14.1",
"react-router-native": "^6.14.1",
"viem": "^1.10.8",
"wagmi": "^1.4.5"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@react-stately/checkbox": "^3.6.0",
"@react-stately/combobox": "^3.8.0",
"@tsconfig/react-native": "^2.0.2",
"@types/fast-text-encoding": "^1",
"@types/jest": "^29.2.1",
"@types/moment-duration-format": "^2",
"@types/qs": "^6",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@types/react-native": "^0.72.2",
"@types/react-test-renderer": "^18.0.0",
"@vitejs/plugin-react": "^4.0.0",
"@vitejs/plugin-react": "^4.1.1",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"eslint-plugin-react-refresh": "^0.4.1",
Expand All @@ -66,10 +95,13 @@
"metro-react-native-babel-preset": "0.73.9",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typechain": "^8.1.1",
"typescript": "^5.1.3",
"vercel": "latest",
"vite": "^4.3.9",
"vite-plugin-node-polyfills": "^0.9.0"
"vite": "^4.5.0",
"vite-plugin-dynamic-import": "^1.5.0",
"vite-plugin-node-polyfills": "^0.16.0",
"vite-tsconfig-paths": "^4.2.2"
},
"jest": {
"preset": "react-native"
Expand Down
Loading
Loading