Skip to content

Commit

Permalink
Add new instance
Browse files Browse the repository at this point in the history
  • Loading branch information
faust403 committed Oct 29, 2024
1 parent 2a5870f commit 38b90d0
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 17 deletions.
50 changes: 44 additions & 6 deletions docs/deployments/testnet.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
import Contracts from "/deployments/testnet/cosmoshub/contracts.json";
import Denoms from "/deployments/testnet/cosmoshub/denoms.json";
import ICA from "/deployments/testnet/cosmoshub/ica.json";
import CosmosHubContracts from "/deployments/testnet/cosmoshub/contracts.json";
import CosmosHubDenoms from "/deployments/testnet/cosmoshub/denoms.json";
import CosmosHubICA from "/deployments/testnet/cosmoshub/ica.json";

import InitiaContracts from "/deployments/testnet/initia/contracts.json";

# pion-1 [testnet]

## Initia Instance

### Contracts

<table>
<thead>
<tr>
<th>Contract</th>
<th>Address</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
{Contracts.map((contract) => {
const href = `https://neutron.celat.one/pion-1/contracts/${contract.address}`;
return (
<tr>
<td>
<code>{contract.name}</code>
</td>
<td>
<a href={href}>{contract.address}</a>
</td>
<td>
<code>{contract.checksum}</code>
</td>
</tr>
);
})}
</tbody>
</table>

### Denoms

### ICA address

## Cosmos Hub Instance

Current Cosmos Hub Drop testnet instance uses `theta-testnet-001` testnet.
Expand All @@ -19,7 +57,7 @@ Current Cosmos Hub Drop testnet instance uses `theta-testnet-001` testnet.
</tr>
</thead>
<tbody>
{Contracts.map((contract) => {
{CosmosHubContracts.map((contract) => {
const href = `https://neutron.celat.one/pion-1/contracts/${contract.address}`;
return (
<tr>
Expand Down Expand Up @@ -48,7 +86,7 @@ Current Cosmos Hub Drop testnet instance uses `theta-testnet-001` testnet.
</tr>
</thead>
<tbody>
{Denoms.map((denom) => {
{CosmosHubDenoms.map((denom) => {
return (
<tr>
<td>{denom.symbol}</td>
Expand All @@ -71,7 +109,7 @@ Current Cosmos Hub Drop testnet instance uses `theta-testnet-001` testnet.
</tr>
</thead>
<tbody>
{ICA.map((ica) => {
{CosmosHubICA.map((ica) => {
return (
<tr>
<td>{ica.contract}</td>
Expand Down
23 changes: 12 additions & 11 deletions docs/integrations/lsm_staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
Liquidity Staking Module (LSM) allows users to transfer their staked assets from one address to another without unstaking them and waiting the entire unbonding period.
To learn more about it, visit the repository: https://github.com/iqlusioninc/liquidity-staking-module.

To achieve that, the LSM mints special tokens that represent staked asset ownership.
One can "tokenize" their staked assets, and by sending them, transfer ownership to another user or protocol.
To achieve that, the LSM mints special tokens that represent staked asset ownership.
One can "tokenize" their staked assets, and by sending them, transfer ownership to another user or protocol.
These tokens are called _LSM shares_ below for simplicity.

Each LSM share is represented by a unique denom.
Each LSM share is represented by a unique denom.
This means that one can send a partial share to someone but two different shares aren't fungible with each other.

Drop can accept such shares and mint dAssets based on them (i.e., if one has traditionally staked tokens delegated to a validator, they can tokenize their shares via the LSM, IBC transfer them to Neutron, and liquid stake with Drop to receive dAssets).
Drop can accept such shares and mint dAssets based on them (i.e., if one has traditionally staked tokens delegated to a validator, they can tokenize their shares via the LSM, IBC transfer them to Neutron, and liquid stake with Drop to receive dAssets).
Under the hood, this means that the ownership of those staked assets is transferred to Drop Protocol and the user gets their respective amount of dAssets in exchange.

## Tokenized share creation
Expand All @@ -37,19 +37,20 @@ Where:
- `cosmos_delegator_address` is an address of the user that currently has staked assets
- `validator_address` is the address of the validator the user’s assets are delegated to
- `tokenized_share_owner` is the address which will be getting rewards.
Regardless of the current owner of tokenized share tokens, the rewards will be distributed to the address specified here.
Regardless of the current owner of tokenized share tokens, the rewards will be distributed to the address specified here.

In order to reveal how many tokens a user has staked, use [this](https://cosmos-lcd.quickapi.com/swagger/#/Query/DelegatorDelegations) query.

Once the operation above is performed, a new denom is created and the user gets new minted tokens that represent staked tokens.
The denom has the following structure: `cosmosvaloper1**************************************/123`, so it consists of the validator address and an index of this LSM share.
Once the operation above is performed, a new denom is created and the user gets new minted tokens that represent staked tokens.
The denom has the following structure: `cosmosvaloper1**************************************/123`, so it consists of the validator address and an index of this LSM share.

## Drop LSM staking restrictions
## Drop LSM staking restrictions

That tokenized share can be staked with Drop only if it was produced by validatator from the Drop _validator list_.
That tokenized share can be staked with Drop only if it was produced by validatator from the Drop _validator list_.
To get this list you need to do the following:

- Query `core` contract config:

```json
{
"config": {}
Expand Down Expand Up @@ -102,7 +103,7 @@ To get this list you need to do the following:

## IBC transfer and staking LSM share with Drop

After one created a tokenized share on Cosmos Hub, it can be staked with Drop.
After one created a tokenized share on Cosmos Hub, it can be staked with Drop.
As well as with ATOM, transfer and stake can be done in one transaction (thankfully to IBC hooks):

```json
Expand Down Expand Up @@ -139,4 +140,4 @@ Where:

Alternatively, one can split the operations in two.
In this case, it will be regular IBC transfer for the LSM share, and regular staking with Drop.
LSM share staking process is the very same as [ASSET staking](overview#staking), but the coin attached to the message is an LSM share IBC-transferred to Neutron.
LSM share staking process is the very same as [ASSET staking](overview#staking), but the coin attached to the message is an LSM share IBC-transferred to Neutron.
77 changes: 77 additions & 0 deletions static/deployments/testnet/initia/contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"name": "factory_contract",
"address": "neutron173ngx9yztcjyr40nay83qwee6hsvrjzz0ahn97cjug2ckdzaz7lswtwnqh",
"checksum": "BD7C738AC9DF7E52425A65AFD8BCFF364FA1073BD0A201C2582AD259AFABE3E2"
},
{
"name": "core_contract",
"address": "neutron15nxt28yhceft6k32zk87mvdnk7qact5uj4q8cc26ldmqzpav2txq4dda03",
"checksum": "C49E34ACDB628CFA17D349357C9C7B63EB9A1C6425F4A91DFD09EDFF896CC426"
},
{
"name": "distribution_contract",
"address": "neutron1hexavupr8qtz88w9jywulduv9lptsvpsx4m4sukgpm2243cltxqq4pcan2",
"checksum": "9904500D04C57EAF724733E1E185BE54E1AFFDFEA50CA72B0FBB135339BAA0B3"
},
{
"name": "puppeteer_contract",
"address": "neutron14gupyw4w3zhhx5p8qfgzu9nre78n4glfq9zwuyfz6uterrjttv3qn7styx",
"checksum": "D6B4CF9EF7DD34EB073ACC4EB1385066576C00915712F2CAE7AADC7B46170EC9"
},
{
"name": "rewards_manager_contract",
"address": "neutron1pt4tvp3h3przy52cqunv2rjrl3x9a547fem4akjpasm6lnv9wqlq7v2wrm",
"checksum": "E8FF091D936834B1B9C1569DB804389BCF2C97F00B0A1727E712ACD94BD3A891"
},
{
"name": "rewards_pump_contract",
"address": "neutron1rlkekv7w86l0fwfeuea0fc9zf4el6d7aerqy4yfl56mg7e6mk7zskt49jn",
"checksum": "BC07A1E294E698B05CFAF9815B5024293B02681E4CB30550B1E05CF6E68236B4"
},
{
"name": "strategy_contract",
"address": "neutron1cc07q8a8mj3k7deweq8qpsahgvlthjt3c0wr36znum0dqhjxrnrsq99fhz",
"checksum": "8E9E8D0E28973E492C34BDB8AA3EE5E23F02F1D43040871045D16C8A51ED2703"
},
{
"name": "token_contract",
"address": "neutron1japgvw9af60xm4aynq809xwwjp53y8p29pkz9vptceqy77a5ehtq89pj9z",
"checksum": "D91D101328F27A8071E8A356C3E3CFD2D975A683C6A3D5F38B8A1B08F7EE1AB3"
},
{
"name": "validators_set_contract",
"address": "neutron1cws8xltpntzh2t8rzulxm8zejy8ehzvp7vjlk8m0nsdwh25pdvfsgf3krs",
"checksum": "1A7E5FCC46CFB1F3CF1E92F01254E7F40ADA4068B0D0E3A771E71203D8B14D42"
},
{
"name": "unbonding_pump_contract",
"address": "neutron12a6zkxm3w7x8hgxcxj5dc43faymsppg0penmscfmnyz28dw33jms5qgtp4",
"checksum": "BC07A1E294E698B05CFAF9815B5024293B02681E4CB30550B1E05CF6E68236B4"
},
{
"name": "withdrawal_manager_contract",
"address": "neutron1sm8ryu0sczjlw5qe5kvajph74pdlns2j90g78dk4ndp4z999usgs8r4jgj",
"checksum": "5D678C422A973943A62E954C71D6B45D20425E4C760F0C4B7CF019014482FEFA"
},
{
"name": "withdrawal_voucher_contract",
"address": "neutron1d0vfpc226dakkhpxaq579qs5ppc8240lugmsy4efzkvux08vdkeqjs53uw",
"checksum": "6060A7912F2FB4F9B40F722287CABB1CED6B06E842C480BDDA7F4519F0CE487C"
},
{
"name": "splitter_contract",
"address": "neutron18g2ukaz2x9nkk5jjn7l34dvkekjq48gml3vhn2jd26j5gxmlz6dsjyueld",
"checksum": "7E124AC11893EF79E202853BAE01422B15AD2328812098787D3AE54800979352"
},
{
"name": "lsm_share_bond_provider_contract",
"address": "neutron1z4ey664c57rl65hwwj5jmsgvszh4d5nvc7kcq0y5jarg9afvaqws99xyp0",
"checksum": "3650FD18B949727B5F49C9F2BDD4E2AFCAD47C0C54197DCCB484DF346E503997"
},
{
"name": "native_bond_provider_contract",
"address": "neutron1xuh9l5w2l6nsdm0fv99567vmdz370s26aj6ejzlkuyz6nr8vvhts7purtj",
"checksum": "68AD50D4AFA1B2BB2CDE152AEC7B4E012504FFD68B5861CBBCD77BDEBB6F19C5"
}
]
10 changes: 10 additions & 0 deletions static/deployments/testnet/initia/denoms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"symbol": "move/dbf06c48af3984ec6d9ae8a9aa7dbb0bb1e784aa9b8c4a5681af660cf8558d7d",
"denom": "ibc/7B29BA039ABF5F08DD3703880B8A17698ADAC960815EE94E89DBB26091B2D894"
},
{
"symbol": "uinit",
"denom": "ibc/88D23FA17DED8BD951FB9C52CE85ADFB8C1FE6EBC67942B4B8396877AD1368CF"
}
]
14 changes: 14 additions & 0 deletions static/deployments/testnet/initia/ica.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"contract": "Puppeteer",
"address": "init1eh5a87vf0guxe0n08rk0jxq5gpflj9kq07v2eesdsjwujd2k8n4s6mdfa7"
},
{
"contract": "Unbonding Pump",
"address": "init1x2pymyyusew6g788hf0avqehtjggdwk5lz4ezpvk3x7ulpwksqks20uglh"
},
{
"contract": "Rewards Pump",
"address": "init1rxr2dgdqx6qsnmnc6hmetfjql45wspm0zeyu59thewz509rvw2sqla0wh3"
}
]

0 comments on commit 38b90d0

Please sign in to comment.