Skip to content

Commit

Permalink
fix: Fix a test data to foo token
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Dec 8, 2023
1 parent c309d53 commit 3c566ad
Show file tree
Hide file tree
Showing 20 changed files with 425 additions and 432 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ const Template: ComponentStory<typeof EnterAmounts> = args => (
);

const token: TokenModel = {
"chainId": "test3",
"address": "0x111111111117dC0aa78b770fA6A738034120C302",
"path": "gno.land/r/demo/1inch",
"name": "1inch",
"symbol": "1INCH",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
"type": "grc20",
"priceId": "1inch",
"createdAt": "1999-01-01T00:00:01Z"
type: "grc20",
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
};

export const Default = Template.bind({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ const Template: ComponentStory<typeof SelectPairButton> = args => (
export const Selected = Template.bind({});
Selected.args = {
token: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,29 @@ const Template: ComponentStory<typeof SelectPair> = args => (
);

const tokenA: TokenModel = {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
};

const tokenB: TokenModel = {
name: "Wrapped Ether",
address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
path: "gno.land/r/demo/weth",
symbol: "WETH",
decimals: 6,
chainId: "test3",
type: "grc20",
priceId: "weth",
createdAt: "1999-01-01T00:00:02Z",
isWrappedGasToken: true,
logoURI: "https://s2.coinmarketcap.com/static/img/coins/64x64/2396.png"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
};

export const Default = Template.bind({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ const tokenA: {
usdPrice: string;
} = {
info: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
amount: "12,211",
usdPrice: "$12.3",
Expand All @@ -36,16 +36,16 @@ const tokenB: {
usdPrice: string;
} = {
info: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
amount: "12,211",
usdPrice: "$12.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ import { SwapTokenInfo } from "@models/swap/swap-token-info";

const swapTokenInfo: SwapTokenInfo = {
tokenA: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
tokenAAmount: "",
tokenABalance: "",
tokenAUSD: 0,
tokenAUSDStr: "0",
tokenB: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
tokenBAmount: "",
tokenBBalance: "",
Expand All @@ -46,28 +46,28 @@ const swapTokenInfo: SwapTokenInfo = {

const swapSummaryInfo: SwapSummaryInfo = {
tokenA: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
tokenB: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
swapDirection: "EXACT_IN",
swapRate: 1.14,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ import { SwapSummaryInfo } from "@models/swap/swap-summary-info";

const swapSummaryInfo: SwapSummaryInfo = {
tokenA: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
tokenB: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
swapDirection: "EXACT_IN",
swapRate: 1.14,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ import { SwapRouteInfo } from "@models/swap/swap-route-info";

const swapRouteInfos: SwapRouteInfo[] = [{
from: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
to: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
gasFee: {
amount: 0.000001,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ import { SwapSummaryInfo } from "@models/swap/swap-summary-info";

const swapSummaryInfo: SwapSummaryInfo = {
tokenA: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
tokenB: {
chainId: "test3",
address: "0x111111111117dC0aa78b770fA6A738034120C302",
path: "gno.land/r/demo/1inch",
name: "1inch",
symbol: "1INCH",
decimals: 6,
logoURI: "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
type: "grc20",
priceId: "1inch",
createdAt: "1999-01-01T00:00:01Z"
chainId: "dev.gnoswap",
createdAt: "2023-12-08T03:57:43Z",
name: "Foo",
path: "gno.land/r/foo",
decimals: 4,
symbol: "FOO",
logoURI: "https://raw.githubusercontent.com/onbloc/gno-token-resource/main/grc20/images/gno_land_r_foo.svg",
priceId: "gno.land/r/foo",
address: ""
},
swapDirection: "EXACT_IN",
swapRate: 1.14,
Expand Down
Loading

0 comments on commit 3c566ad

Please sign in to comment.