Skip to content

Commit

Permalink
feat: add asset list uri to chain metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Mar 25, 2024
1 parent 2b8ea04 commit 58def9c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
3 changes: 1 addition & 2 deletions _package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia-registry-types",
"version": "0.0.6",
"version": "0.0.7",
"description": "The package provides TypeScript type definitions and Zod integration for initia-registry.",
"types": "./dist/types/index.d.ts",
"exports": {
Expand Down Expand Up @@ -36,4 +36,3 @@
"typescript": "^5.2.2"
}
}

4 changes: 4 additions & 0 deletions _package/src/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ export interface Chain {
"nft-transfer"?: string;
}[];
};
/**
* URL pointing to the asset list, which provides metadata associated with Cosmos denoms.
*/
asset_list?: string;
};
}
export interface FeeToken {
Expand Down
6 changes: 6 additions & 0 deletions _package/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,12 @@ export const ChainSchema = z
"[Optional] The list of IBC channels that are supported by the chain."
)
.optional(),
asset_list: z
.string()
.describe(
"URL pointing to the asset list, which provides metadata associated with Cosmos denoms."
)
.optional(),
})
.strict()
.optional(),
Expand Down
4 changes: 4 additions & 0 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,10 @@
}
],
"description": "[Optional] The list of IBC channels that are supported by the chain."
},
"asset_list": {
"type": "string",
"description": "URL pointing to the asset list, which provides metadata associated with Cosmos denoms."
}
},
"additionalProperties": false
Expand Down
3 changes: 2 additions & 1 deletion devnets/mahalo/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"transfer": "channel-1"
}
]
}
},
"asset_list": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/assetlist.json"
}
}
3 changes: 2 additions & 1 deletion devnets/minimove/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"transfer": "channel-0"
}
]
}
},
"asset_list": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/assetlist.json"
}
}
3 changes: 2 additions & 1 deletion devnets/miniwasm/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"transfer": "channel-0"
}
]
}
},
"asset_list": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/assetlist.json"
}
}

0 comments on commit 58def9c

Please sign in to comment.