Skip to content

Commit

Permalink
chore: replace deploymentMessageId with deploymentTxHash
Browse files Browse the repository at this point in the history
  • Loading branch information
canhtrinh committed Feb 4, 2024
1 parent e51dce9 commit 80da059
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 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({
deploySalt: z.string(),
chains: z.array(chains),
coinGeckoId: z.string().optional(),
deploymentTxHash: hash,
deploymentMessageId: z.string(),
});

export const version = z.object({
Expand Down
4 changes: 2 additions & 2 deletions cli/wizard/commands/list-squid-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export type RemoteInterchainTokenApiResponse = {
tokenManagerAddress: string;
tokenManagerType: string;
deploymentStatus: string;
deploymentTxHash: string;
deploymentMessageId: string;
};

export type InterchainTokenDetailsApiResponse = {
Expand Down Expand Up @@ -183,7 +183,7 @@ function parseAsInterchainTokenConfig(
iconUrls: {
svg: `${BASE_REPO_URL}/images/tokens/${data.tokenSymbol.toLowerCase()}.svg`,
},
deploymentTxHash: data.deploymentMessageId?.split("-")[0] ?? "",
deploymentMessageId: data.deploymentMessageId ?? "",
chains: [
...[
{
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 @@ -19,7 +19,7 @@
"deployer": "0x0000000000000000000000000000000000000000",
"originalMinter": "0x0000000000000000000000000000000000000000",
"deploySalt": "0x",
"deploymentTxHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"deploymentMessageId": "0x0000000000000000000000000000000000000000000000000000000000000000-0",
"chains": [
{
"axelarChainId": "moonbeam",
Expand Down
6 changes: 2 additions & 4 deletions registry/schemas/interchain-tokenlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@
"items": { "$ref": "#/definitions/chains" }
},
"coinGeckoId": { "type": "string" },
"deploymentTxHash": {
"$ref": "#/definitions/interchainToken/properties/tokenId"
}
"deploymentMessageId": { "type": "string" }
},
"required": [
"tokenId",
Expand All @@ -80,7 +78,7 @@
"iconUrls",
"deploySalt",
"chains",
"deploymentTxHash"
"deploymentMessageId"
],
"additionalProperties": false
},
Expand Down

0 comments on commit 80da059

Please sign in to comment.