Skip to content

Commit

Permalink
fix: type mapping on script
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrsoares committed Feb 3, 2024
1 parent 88cfcff commit 0cb0266
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/schemas/interchain-tokenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const interchainToken = z.object({
originAxelarChainId: z.string(),
tokenType: z.string(),
iconUrls: IconUrlsSchema,
salt: z.string(),
deploySalt: z.string(),
chains: z.array(chains),
coinGeckoId: z.string().optional(),
deploymentTxHash: hash,
Expand Down
10 changes: 5 additions & 5 deletions cli/wizard/commands/list-squid-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function listSquidToken() {
export type InterchainTokenInfo = {
tokenId: string;
tokenAddress: string;
tokenManager: string;
tokenManagerAddress: string;
tokenManagerType: string;
isOriginToken: boolean;
isRegistered: boolean;
Expand Down Expand Up @@ -156,7 +156,7 @@ export type InterchainTokenDetails = {
tokenSymbol: string;
tokenDecimals: number;
tokenAddress: string;
tokenManager: string;
tokenManagerAddress: string;
tokenManagerType: string;
originalMinterAddress: string;
axelarChainId: string;
Expand All @@ -172,7 +172,7 @@ function parseAsInterchainTokenConfig(
return {
tokenId: hash.parse(data.tokenId),
tokenAddress: address.parse(data.tokenAddress),
tokenManager: address.parse(data.tokenManager),
tokenManager: address.parse(data.tokenManagerAddress),
tokenManagerType: convertCase(
"CONSTANT_CASE",
"camelCase"
Expand All @@ -185,7 +185,7 @@ function parseAsInterchainTokenConfig(
name: data.tokenName,
originAxelarChainId: data.axelarChainId,
tokenType: data.kind,
salt: data.salt,
tokenSalt: data.salt,
iconUrls: {
svg: `${BASE_REPO_URL}/images/tokens/${data.tokenSymbol.toLowerCase()}.svg`,
},
Expand All @@ -195,7 +195,7 @@ function parseAsInterchainTokenConfig(
{
axelarChainId: data.axelarChainId,
tokenAddress: address.parse(data.tokenAddress),
tokenManager: address.parse(data.tokenManager),
tokenManager: address.parse(data.tokenManagerAddress),
tokenManagerType: convertCase(
"CONSTANT_CASE",
"camelCase"
Expand Down
2 changes: 1 addition & 1 deletion registry/mainnet/interchain/squid.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"iconUrls": {
"svg": "/images/tokens/rmrk.svg"
},
"salt": "0x",
"deploySalt": "0x",
"deploymentTxHash": "",
"chains": [
{
Expand Down

0 comments on commit 0cb0266

Please sign in to comment.