Skip to content

Commit

Permalink
chore(token-registry): add xNIBI Astrovault LST to registry (#2145)
Browse files Browse the repository at this point in the history
* chore(token-registry): add xNIBI Astrovault LST to registry

* chore: change log
  • Loading branch information
Unique-Divine authored Jan 8, 2025
1 parent 2c4c224 commit df8c394
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#2141](https://github.com/NibiruChain/nibiru/pull/2141) - refactor: simplify account retrieval operation in `nibid q evm account`.
- [#2142](https://github.com/NibiruChain/nibiru/pull/2142) - fix(bank): add additional missing methods to the NibiruBankKeeper
- [#2144](https://github.com/NibiruChain/nibiru/pull/2144) - feat(token-registry): Implement strongly typed Nibiru Token Registry and generation command
- [#2145](https://github.com/NibiruChain/nibiru/pull/2145) - chore(token-registry): add xNIBI Astrovault LST to registry

#### Nibiru EVM | Before Audit 2 - 2024-12-06

Expand Down
36 changes: 32 additions & 4 deletions token-registry/assetlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func NibiruAssetList() AssetList {
func TOKENS() []Token {
return []Token{
{
Name: "Nibiru",
Description: "The native token of Nibiru blockchain",
ExtendedDescription: some("Nibiru is a smart contract ecosystem with a high-performance, EVM-equivalent execution layer. Nibiru is engineered to meet the growing demand for versatile, scalable, and easy-to-use Web3 applications."),
Socials: &SocialLinks{
Expand All @@ -28,7 +29,6 @@ func TOKENS() []Token {
{Denom: "attonibi", Exponent: 18},
},
Base: "unibi",
Name: "Nibiru",
Display: "nibi",
Symbol: "NIBI",
LogoURIs: &LogoURIs{
Expand All @@ -48,6 +48,7 @@ func TOKENS() []Token {
TypeAsset: TypeAsset_SDKCoin,
},
{
Name: "Liquid Staked Nibiru (Eris)",
Description: "Liquid Staked Nibiru (Eris)",
ExtendedDescription: some("Liquid Staked Nibiru, powered by Eris Protocol's amplifier contracts. Nibiru is a smart contract ecosystem with a high-performance, EVM-equivalent execution layer. Nibiru is engineered to meet the growing demand for versatile, scalable, and easy-to-use Web3 applications."),
Socials: &SocialLinks{
Expand All @@ -59,7 +60,6 @@ func TOKENS() []Token {
{Denom: "stNIBI", Exponent: 6},
},
Base: "tf/nibi1udqqx30cw8nwjxtl4l28ym9hhrp933zlq8dqxfjzcdhvl8y24zcqpzmh8m/ampNIBI",
Name: "Liquid Staked Nibiru (Eris)",
Display: "stNIBI",
Symbol: "stNIBI",
LogoURIs: &LogoURIs{
Expand Down Expand Up @@ -88,13 +88,13 @@ func TOKENS() []Token {
TypeAsset: TypeAsset_SDKCoin,
},
{
Name: "Noble USDC",
Description: "Noble USDC on Nibiru",
DenomUnits: []DenomUnit{
{Denom: "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", Exponent: 0},
{Denom: "usdc", Exponent: 6},
},
Base: "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349",
Name: "Noble USDC",
Display: "usdc",
Symbol: "USDC",
Traces: []Trace{
Expand Down Expand Up @@ -131,7 +131,9 @@ func TOKENS() []Token {
},
TypeAsset: TypeAsset_ICS20,
},

{
Name: "Astrovault token",
Description: "AXV",
ExtendedDescription: some("AXV is the Astrovault token."),
Socials: &SocialLinks{
Expand All @@ -143,7 +145,6 @@ func TOKENS() []Token {
{Denom: "AXV", Exponent: 6},
},
Base: "tf/nibi1vetfuua65frvf6f458xgtjerf0ra7wwjykrdpuyn0jur5x07awxsfka0ga/axv",
Name: "AXV",
Display: "AXV",
Symbol: "AXV",
LogoURIs: &LogoURIs{
Expand All @@ -162,6 +163,33 @@ func TOKENS() []Token {
},
TypeAsset: TypeAsset_SDKCoin,
},

{
Name: "Astrovault Nibiru LST (xNIBI)",
Description: "Astrovault Nibiru LST (xNIBI)",
TypeAsset: TypeAsset_CW20,
ExtendedDescription: some("xNIBI is a liquid staking derivative for NIBI created by Astrovault."),
Socials: &SocialLinks{
Website: some("https://astrovault.io/"),
Twitter: some("https://x.com/axvdex"),
},
DenomUnits: []DenomUnit{
{Denom: "cw20:nibi1cehpv50vl90g9qkwwny8mw7txw79zs6f7wsfe8ey7dgp238gpy4qhdqjhm", Exponent: 0},
{Denom: "xNIBI", Exponent: 6},
},
Base: "cw20:nibi1cehpv50vl90g9qkwwny8mw7txw79zs6f7wsfe8ey7dgp238gpy4qhdqjhm",
Display: "xNIBI",
Symbol: "xNIBI",
LogoURIs: &LogoURIs{
Svg: some("./img/0004_astrovault-xnibi.svg"),
},
Images: []AssetImage{
{
Svg: some("./img/0004_astrovault-xnibi.svg"),
},
},
},

{
Description: "uoprek",
DenomUnits: []DenomUnit{
Expand Down
19 changes: 19 additions & 0 deletions token-registry/img/0004_astrovault-xnibi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion token-registry/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,16 @@ type ImageSync struct {
}

// TypeAsset is an enum type for "type_asset". Valid values include "sdk.coin",
// "ics20", and "erc20".
// "ics20", and "erc20". See [Examples].
//
// [Examples]: https://www.notion.so/nibiru/Nibiru-Token-Registry-Info-Fungible-Tokens-on-Nibiru-cf46d37ccd9c4c33bb083e20e0fa8e20?pvs=4
type TypeAsset string

const (
TypeAsset_SDKCoin TypeAsset = "sdk.coin"
TypeAsset_ICS20 TypeAsset = "ics20"
TypeAsset_ERC20 TypeAsset = "erc20"
TypeAsset_CW20 TypeAsset = "cw20"
)

// Trace represents trace data for cross-chain or liquid staking assets.
Expand Down
6 changes: 4 additions & 2 deletions x/evm/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ const (
CallTypeSmart
)

var EVM_MODULE_ADDRESS gethcommon.Address
var EVM_MODULE_ADDRESS_NIBI sdk.AccAddress
var (
EVM_MODULE_ADDRESS gethcommon.Address
EVM_MODULE_ADDRESS_NIBI sdk.AccAddress
)

func init() {
EVM_MODULE_ADDRESS_NIBI = authtypes.NewModuleAddress(ModuleName)
Expand Down

0 comments on commit df8c394

Please sign in to comment.