mockenv deployment rework; price and setprice scripts

This commit is contained in:
Tim Olson
2023-11-02 17:23:48 -04:00
parent f3aef443b3
commit 3f15985bf5
4 changed files with 16 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<v-chip> <v-chip>
<!-- <v-avatar start :image="token.icon === null ? '' : token.icon"/>--> <!-- <v-avatar start :image="token.image === null ? '' : token.image"/>-->
{{token.symbol}}&nbsp;{{token.name}} {{token.symbol}}&nbsp;{{token.name}}
</v-chip> </v-chip>
</template> </template>

View File

@@ -35,7 +35,7 @@ const fixed = computed(() => FixedNumber.fromValue(props.amount, token.decimals,
width: 256, width: 256,
decimals: token.decimals decimals: token.decimals
})) }))
const imageSrc = computed(() => null) const imageSrc = computed(() => token.image)
const withdrawing = ref(false) const withdrawing = ref(false)
</script> </script>

View File

@@ -23,10 +23,11 @@
</v-card-text> </v-card-text>
</PhoneCard> </PhoneCard>
--> -->
<v-card v-if="s.vaults.length<num"> <v-card v-if="s.vaults.length<=num">
<v-card-title><v-icon icon="mdi-safe-square-outline" size="small" color="red"/> No Vault Yet</v-card-title> <v-card-title><v-icon icon="mdi-safe-square-outline" size="small" color="red"/> No Vault Yet</v-card-title>
<v-card-text v-if="num!==0"><!--todo-->Multiple vaults are not yet supported</v-card-text> <v-card-text v-if="num!==0"><!--todo-->Multiple vaults are not yet supported</v-card-text>
<v-card-text v-if="num===0">Create an order first, then your vault account will appear here to accept a deposit of trading funds.</v-card-text> <v-card-text v-if="num===0">Create an order first, then your vault account will appear here to accept a deposit of trading funds.</v-card-text>
<v-card-actions><v-btn prepend-icon="mdi-plus" text="Create Order" @click="$router.push('/orders')"/></v-card-actions>
</v-card> </v-card>
<v-card v-if="s.vaults.length>num"> <v-card v-if="s.vaults.length>num">
<v-card-title><v-icon icon="mdi-safe-square-outline" size="small"/> My Vault {{s.vaults.length>1?'#'+(num+1):''}}</v-card-title> <!-- todo vault nicknames --> <v-card-title><v-icon icon="mdi-safe-square-outline" size="small"/> My Vault {{s.vaults.length>1?'#'+(num+1):''}}</v-card-title> <!-- todo vault nicknames -->

View File

@@ -4,7 +4,7 @@ const known_chains = [
{ {
name: 'Arbitrum One', name: 'Arbitrum One',
id: 42161, id: 42161,
icon: null, image: null,
} }
] ]
@@ -13,77 +13,77 @@ const arbitrumTokens = [
name: 'Wrapped Ether', name: 'Wrapped Ether',
symbol: 'WETH', symbol: 'WETH',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
}, },
{ {
name: 'USD Coin (Bridged)', name: 'USD Coin (Bridged)',
symbol: 'USDC.e', symbol: 'USDC.e',
decimals: 6, decimals: 6,
icon: null, image: null,
address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
}, },
{ {
name: 'Tether USD', name: 'Tether USD',
symbol: 'USDT', symbol: 'USDT',
decimals: 6, decimals: 6,
icon: null, image: null,
address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
}, },
{ {
name: 'Wrapped Bitcoin', name: 'Wrapped Bitcoin',
symbol: 'WBTC', symbol: 'WBTC',
decimals: 8, decimals: 8,
icon: null, image: null,
address: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', address: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f',
}, },
{ {
name: 'DAI Stablecoin', name: 'DAI Stablecoin',
symbol: 'DAI', symbol: 'DAI',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', address: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
}, },
{ {
name: 'Uniswap', name: 'Uniswap',
symbol: 'UNI', symbol: 'UNI',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0', address: '0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0',
}, },
{ {
name: 'Chainlink Token', name: 'Chainlink Token',
symbol: 'LINK', symbol: 'LINK',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0xf97f4df75117a78c1A5a0DBb814Af92458539FB4', address: '0xf97f4df75117a78c1A5a0DBb814Af92458539FB4',
}, },
{ {
name: 'USD Coin (Native)', name: 'USD Coin (Native)',
symbol: 'USDC', symbol: 'USDC',
decimals: 6, decimals: 6,
icon: null, image: null,
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
}, },
{ {
name: 'TrueUSD', name: 'TrueUSD',
symbol: 'TUSD', symbol: 'TUSD',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0x4D15a3A2286D883AF0AA1B3f21367843FAc63E07', address: '0x4D15a3A2286D883AF0AA1B3f21367843FAc63E07',
}, },
{ {
name: 'Lido DAO Token', name: 'Lido DAO Token',
symbol: 'LDO', symbol: 'LDO',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60', address: '0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60',
}, },
{ {
name: 'Arbitrum', name: 'Arbitrum',
symbol: 'ARB', symbol: 'ARB',
decimals: 18, decimals: 18,
icon: null, image: null,
address: '0x912CE59144191C1204E64559FE8253a0e49E6548', address: '0x912CE59144191C1204E64559FE8253a0e49E6548',
}, },
]; ];