Skip to content

Commit

Permalink
chore: fix tokenList
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrsoares committed Feb 3, 2024
1 parent 0cb0266 commit ab42ea3
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 197 deletions.
2 changes: 1 addition & 1 deletion cli/wizard/commands/list-squid-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function parseAsInterchainTokenConfig(
name: data.tokenName,
originAxelarChainId: data.axelarChainId,
tokenType: data.kind,
tokenSalt: data.salt,
deploySalt: data.salt,
iconUrls: {
svg: `${BASE_REPO_URL}/images/tokens/${data.tokenSymbol.toLowerCase()}.svg`,
},
Expand Down
2 changes: 1 addition & 1 deletion registry/mainnet/cosmos/chains.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../schemas/cosmos-chains.schema.json",
"name": "MAINNET chain list for COSMOS [generated by 'scripts/codegen-chains.ts', do not edit manually]",
"timestamp": "2023-08-27T08:52:43.243Z",
"timestamp": "2024-02-03T07:24:15.576Z",
"chains": [
{
"rest": "https://api.cosmos.network",
Expand Down
2 changes: 1 addition & 1 deletion registry/mainnet/evm/chains.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../schemas/evm-chains.schema.json",
"name": "MAINNET chain list for EVM [generated by 'scripts/codegen-chains.ts', do not edit manually]",
"timestamp": "2023-08-27T08:52:43.242Z",
"timestamp": "2024-02-03T07:24:15.575Z",
"chains": [
{
"id": 42161,
Expand Down
6 changes: 4 additions & 2 deletions registry/mainnet/interchain/squid.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
"originAxelarChainId": "moonbeam",
"tokenType": "interchain",
"iconUrls": {
"svg": "/images/tokens/rmrk.svg"
"svg": "https://raw.githubusercontent.com/axelarnetwork/axelar-configs/main/images/tokens/rmrk.svg"
},
"deployer": "0x0000000000000000000000000000000000000000",
"originalMinter": "0x0000000000000000000000000000000000000000",
"deploySalt": "0x",
"deploymentTxHash": "",
"deploymentTxHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"chains": [
{
"axelarChainId": "moonbeam",
Expand Down
85 changes: 42 additions & 43 deletions registry/schemas/interchain-tokenlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,86 +11,85 @@
"version": { "$ref": "#/definitions/version" },
"tokens": {
"type": "object",
"properties": {
"$id": {
"type": "string"
},
"$schema": {
"type": "object",
"$ref": "#/definitions/interchainToken"
}
}
"additionalProperties": { "$ref": "#/definitions/interchainToken" }
}
},
"required": ["$schema", "name", "version", "tokens"],
"additionalProperties": false,
"definitions": {
"IconUrlsSchema": {
"type": "object",
"properties": { "svg": { "type": "string" } },
"properties": { "svg": { "type": "string", "format": "uri" } },
"required": ["svg"],
"additionalProperties": false
},
"chains": {
"type": "object",
"properties": {
"axelarChainId": { "type": "string" },
"tokenAddress": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" },
"tokenManager": {
"$ref": "#/definitions/chains/properties/tokenAddress"
},
"tokenManagerType": { "type": "string" }
},
"required": [
"axelarChainId",
"tokenAddress",
"tokenManager",
"tokenManagerType"
],
"additionalProperties": false
},
"interchainToken": {
"type": "object",
"properties": {
"tokenId": { "type": "string", "pattern": "^0x[a-fA-F0-9]{64}$" },
"tokenAddress": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" },
"tokenAddress": {
"$ref": "#/definitions/chains/properties/tokenAddress"
},
"tokenManager": {
"$ref": "#/definitions/chains/properties/tokenAddress"
},
"deployer": { "$ref": "#/definitions/chains/properties/tokenAddress" },
"originalMinter": {
"$ref": "#/definitions/chains/properties/tokenAddress"
},
"tokenManagerType": { "type": "string" },
"symbol": { "type": "string" },
"prettySymbol": { "type": "string" },
"decimals": { "type": "integer" },
"name": { "type": "string" },
"originAxelarChainId": { "type": "string" },
"tokenType": { "type": "string" },
"deploymentTxHash": { "type": "string" },
"iconUrls": { "$ref": "#/definitions/IconUrlsSchema" },
"deploySalt": { "type": "string" },
"chains": {
"type": "array",
"items": { "$ref": "#/definitions/chains" }
},
"tokenManager": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"tokenManagerType": { "type": "string" },
"coinGeckoId": { "type": "string" }
"coinGeckoId": { "type": "string" },
"deploymentTxHash": {
"$ref": "#/definitions/interchainToken/properties/tokenId"
}
},
"required": [
"tokenId",
"tokenAddress",
"tokenManager",
"deployer",
"originalMinter",
"tokenManagerType",
"symbol",
"prettySymbol",
"decimals",
"name",
"originAxelarChainId",
"tokenType",
"iconUrls",
"deploySalt",
"chains",
"deploymentTxHash",
"tokenManager",
"tokenManagerType"
],
"additionalProperties": false
},
"chains": {
"type": "object",
"properties": {
"axelarChainId": { "type": "string" },
"tokenAddress": {
"$ref": "#/definitions/interchainToken/properties/tokenAddress"
},
"tokenManager": {
"$ref": "#/definitions/interchainToken/properties/tokenManager"
},
"tokenManagerType": {
"$ref": "#/definitions/interchainToken/properties/tokenManagerType"
}
},
"required": [
"axelarChainId",
"tokenAddress",
"tokenManager",
"tokenManagerType"
"deploymentTxHash"
],
"additionalProperties": false
},
Expand Down
Loading

0 comments on commit ab42ea3

Please sign in to comment.