Skip to content

Commit 538d87f

Browse files
committed
feat: update token constants and add new tokens for Celo ecosystem in documentation and components
1 parent dfcd8b1 commit 538d87f

7 files changed

Lines changed: 12774 additions & 13695 deletions

File tree

apps/docs/docs/pages/components/balance.mdx

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
import {
2-
Balance,
3-
BalanceInput,
4-
BalanceOptions,
5-
BalanceText,
6-
} from "@composer-kit/ui/balance";
7-
import { ComposerKitProvider } from "@composer-kit/ui/core";
8-
import { swapableTokens } from "../../../utils/constants";
91

102
# Balance
113

@@ -40,6 +32,13 @@ import {
4032
} from "@composer-kit/ui/balance";
4133

4234
const tokens = [
35+
{
36+
chainId: 42220,
37+
symbol: "CELO",
38+
name: "Celo",
39+
address: "0x471ece3750da237f93b8e339c536989b8978a438",
40+
decimals: 18,
41+
},
4342
{
4443
address: "0x765de816845861e75a25fca122bb6898b8b1282a",
4544
chainId: 42220,
@@ -55,11 +54,67 @@ const tokens = [
5554
symbol: "USDT",
5655
},
5756
{
57+
address: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
58+
chainId: 42220,
59+
decimals: 6,
60+
name: "USDC",
61+
symbol: "USDC",
62+
},
63+
{
64+
address: "0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73",
65+
chainId: 42220,
66+
decimals: 18,
67+
name: "cEUR",
68+
symbol: "cEUR",
69+
},
70+
{
71+
address: "0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787",
72+
chainId: 42220,
73+
decimals: 18,
74+
name: "cREAL",
75+
symbol: "cREAL",
76+
},
77+
{
78+
address: "0x73F93dcc49cB8A239e2032663e9475dd5ef29A08",
79+
chainId: 42220,
80+
decimals: 18,
81+
name: "eXOF",
82+
symbol: "eXOF",
83+
},
84+
{
85+
address: "0x456a3D042C0DbD3db53D5489e98dFb038553B0d0",
86+
chainId: 42220,
87+
decimals: 18,
88+
name: "cKES",
89+
symbol: "cKES",
90+
},
91+
{
92+
address: "0x105d4A9306D2E55a71d2Eb95B81553AE1dC20d7B",
93+
chainId: 42220,
94+
decimals: 18,
95+
name: "PUSO",
96+
symbol: "PUSO",
97+
},
98+
{
99+
address: "0x8A567e2aE79CA692Bd748aB832081C45de4041eA",
100+
chainId: 42220,
101+
decimals: 18,
102+
name: "cCOP",
103+
symbol: "cCOP",
104+
},
105+
{
106+
address: "0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313",
107+
chainId: 42220,
108+
decimals: 18,
109+
name: "cGHS",
110+
symbol: "cGHS",
111+
},
112+
{
113+
address: "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3",
58114
chainId: 42220,
59-
symbol: "CELO",
60-
name: "Celo",
61-
address: "0x471ece3750da237f93b8e339c536989b8978a438",
62115
decimals: 18,
116+
name: "USDGLO",
117+
symbol: "USDGLO",
63118
},
64119
];
65120

apps/docs/docs/pages/components/token-select.mdx

Lines changed: 66 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
import {
2-
TokenSelect,
3-
TokenSelectGroup,
4-
TokenSelectInput,
5-
TokenSelectOption,
6-
TokenSelectDropdown,
7-
} from "@composer-kit/ui/token-select";
8-
import { ComposerKitProvider } from "@composer-kit/ui/core";
9-
import { swapableTokens } from "../../../utils/constants";
101

112
# Token Select
123

@@ -41,6 +32,13 @@ import {
4132
} from "@composer-kit/ui/token-select";
4233

4334
const tokens = [
35+
{
36+
chainId: 42220,
37+
symbol: "CELO",
38+
name: "Celo",
39+
address: "0x471ece3750da237f93b8e339c536989b8978a438",
40+
decimals: 18,
41+
},
4442
{
4543
address: "0x765de816845861e75a25fca122bb6898b8b1282a",
4644
chainId: 42220,
@@ -56,11 +54,67 @@ const tokens = [
5654
symbol: "USDT",
5755
},
5856
{
57+
address: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
58+
chainId: 42220,
59+
decimals: 6,
60+
name: "USDC",
61+
symbol: "USDC",
62+
},
63+
{
64+
address: "0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73",
65+
chainId: 42220,
66+
decimals: 18,
67+
name: "cEUR",
68+
symbol: "cEUR",
69+
},
70+
{
71+
address: "0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787",
72+
chainId: 42220,
73+
decimals: 18,
74+
name: "cREAL",
75+
symbol: "cREAL",
76+
},
77+
{
78+
address: "0x73F93dcc49cB8A239e2032663e9475dd5ef29A08",
79+
chainId: 42220,
80+
decimals: 18,
81+
name: "eXOF",
82+
symbol: "eXOF",
83+
},
84+
{
85+
address: "0x456a3D042C0DbD3db53D5489e98dFb038553B0d0",
86+
chainId: 42220,
87+
decimals: 18,
88+
name: "cKES",
89+
symbol: "cKES",
90+
},
91+
{
92+
address: "0x105d4A9306D2E55a71d2Eb95B81553AE1dC20d7B",
93+
chainId: 42220,
94+
decimals: 18,
95+
name: "PUSO",
96+
symbol: "PUSO",
97+
},
98+
{
99+
address: "0x8A567e2aE79CA692Bd748aB832081C45de4041eA",
100+
chainId: 42220,
101+
decimals: 18,
102+
name: "cCOP",
103+
symbol: "cCOP",
104+
},
105+
{
106+
address: "0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313",
107+
chainId: 42220,
108+
decimals: 18,
109+
name: "cGHS",
110+
symbol: "cGHS",
111+
},
112+
{
113+
address: "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3",
59114
chainId: 42220,
60-
symbol: "CELO",
61-
name: "Celo",
62-
address: "0x471ece3750da237f93b8e339c536989b8978a438",
63115
decimals: 18,
116+
name: "USDGLO",
117+
symbol: "USDGLO",
64118
},
65119
];
66120

apps/docs/utils/constants.ts

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
export const swapableTokens = [
2+
{
3+
chainId: 42220,
4+
symbol: "CELO",
5+
name: "Celo",
6+
address: "0x471ece3750da237f93b8e339c536989b8978a438",
7+
decimals: 18,
8+
},
29
{
310
address: "0x765de816845861e75a25fca122bb6898b8b1282a",
411
chainId: 42220,
@@ -14,10 +21,66 @@ export const swapableTokens = [
1421
symbol: "USDT",
1522
},
1623
{
24+
address: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
25+
chainId: 42220,
26+
decimals: 6,
27+
name: "USDC",
28+
symbol: "USDC",
29+
},
30+
{
31+
address: "0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73",
32+
chainId: 42220,
33+
decimals: 18,
34+
name: "cEUR",
35+
symbol: "cEUR",
36+
},
37+
{
38+
address: "0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787",
39+
chainId: 42220,
40+
decimals: 18,
41+
name: "cREAL",
42+
symbol: "cREAL",
43+
},
44+
{
45+
address: "0x73F93dcc49cB8A239e2032663e9475dd5ef29A08",
46+
chainId: 42220,
47+
decimals: 18,
48+
name: "eXOF",
49+
symbol: "eXOF",
50+
},
51+
{
52+
address: "0x456a3D042C0DbD3db53D5489e98dFb038553B0d0",
53+
chainId: 42220,
54+
decimals: 18,
55+
name: "cKES",
56+
symbol: "cKES",
57+
},
58+
{
59+
address: "0x105d4A9306D2E55a71d2Eb95B81553AE1dC20d7B",
60+
chainId: 42220,
61+
decimals: 18,
62+
name: "PUSO",
63+
symbol: "PUSO",
64+
},
65+
{
66+
address: "0x8A567e2aE79CA692Bd748aB832081C45de4041eA",
67+
chainId: 42220,
68+
decimals: 18,
69+
name: "cCOP",
70+
symbol: "cCOP",
71+
},
72+
{
73+
address: "0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313",
74+
chainId: 42220,
75+
decimals: 18,
76+
name: "cGHS",
77+
symbol: "cGHS",
78+
},
79+
{
80+
address: "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3",
1781
chainId: 42220,
18-
symbol: "CELO",
19-
name: "Celo",
20-
address: "0x471ece3750da237f93b8e339c536989b8978a438",
2182
decimals: 18,
83+
name: "USDGLO",
84+
symbol: "USDGLO",
2285
},
2386
];

apps/storybook/stories/balance.stories.tsx

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
2-
import { Avatar, Identity, Name, Social } from "@composer-kit/ui/identity";
31
import {
42
Balance,
53
BalanceInput,
64
BalanceOptions,
75
BalanceText,
86
} from "@composer-kit/ui/balance";
7+
import { Identity } from "@composer-kit/ui/identity";
8+
import type { Meta, StoryObj } from "@storybook/react";
99

1010
const meta: Meta<typeof Identity> = {
1111
component: Identity,
@@ -17,6 +17,13 @@ export default meta;
1717
type Story = StoryObj<typeof Identity>;
1818

1919
const tokens = [
20+
{
21+
chainId: 42220,
22+
symbol: "CELO",
23+
name: "Celo",
24+
address: "0x471ece3750da237f93b8e339c536989b8978a438",
25+
decimals: 18,
26+
},
2027
{
2128
address: "0x765de816845861e75a25fca122bb6898b8b1282a",
2229
chainId: 42220,
@@ -32,11 +39,67 @@ const tokens = [
3239
symbol: "USDT",
3340
},
3441
{
42+
address: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
43+
chainId: 42220,
44+
decimals: 6,
45+
name: "USDC",
46+
symbol: "USDC",
47+
},
48+
{
49+
address: "0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73",
50+
chainId: 42220,
51+
decimals: 18,
52+
name: "cEUR",
53+
symbol: "cEUR",
54+
},
55+
{
56+
address: "0xe8537a3d056DA446677B9E9d6c5dB704EaAb4787",
57+
chainId: 42220,
58+
decimals: 18,
59+
name: "cREAL",
60+
symbol: "cREAL",
61+
},
62+
{
63+
address: "0x73F93dcc49cB8A239e2032663e9475dd5ef29A08",
64+
chainId: 42220,
65+
decimals: 18,
66+
name: "eXOF",
67+
symbol: "eXOF",
68+
},
69+
{
70+
address: "0x456a3D042C0DbD3db53D5489e98dFb038553B0d0",
71+
chainId: 42220,
72+
decimals: 18,
73+
name: "cKES",
74+
symbol: "cKES",
75+
},
76+
{
77+
address: "0x105d4A9306D2E55a71d2Eb95B81553AE1dC20d7B",
78+
chainId: 42220,
79+
decimals: 18,
80+
name: "PUSO",
81+
symbol: "PUSO",
82+
},
83+
{
84+
address: "0x8A567e2aE79CA692Bd748aB832081C45de4041eA",
85+
chainId: 42220,
86+
decimals: 18,
87+
name: "cCOP",
88+
symbol: "cCOP",
89+
},
90+
{
91+
address: "0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313",
92+
chainId: 42220,
93+
decimals: 18,
94+
name: "cGHS",
95+
symbol: "cGHS",
96+
},
97+
{
98+
address: "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3",
3599
chainId: 42220,
36-
symbol: "CELO",
37-
name: "Celo",
38-
address: "0x471ece3750da237f93b8e339c536989b8978a438",
39100
decimals: 18,
101+
name: "USDGLO",
102+
symbol: "USDGLO",
40103
},
41104
];
42105

0 commit comments

Comments
 (0)