Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/ adjusted swap data structure #204

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

feat/ adjusted swap data structure #204

wants to merge 3 commits into from

Conversation

faboweb
Copy link
Contributor

@faboweb faboweb commented May 31, 2022

closes #177

@clockworkgr @luciorubeens is that data structure correct?

window.emeris.signTransaction({
    chainId: 'cosmos-hub', 
    signingAddress: 'cosmos16slmknhr8p9c254dk8xctkwl6340p0k8g8levh', 
    messages: [
        { 
            type: 'swap', 
            data: [{
                from: { denom: 'uatom', amount: 1 }, 
                to: { denom: 'uosmo' }, 
                chain_name: 'cosmos-hub', 
                orderPrice: 2
            },{
                from: { denom: 'uosmo', amount: 1 }, 
                to: { denom: 'uregen' }, 
                chain_name: 'cosmos-hub', 
                orderPrice: 4
            }]
        },
    ],
    fee: {
        gas: "200000",
        amount: [{
amount: 2000,
        denom: 'uatom'}]
    }
    }).then(console.log)
    ```

@faboweb faboweb marked this pull request as ready for review May 31, 2022 03:06
@github-actions
Copy link

github-actions bot commented May 31, 2022

Visit the preview URL for this PR (updated for commit e8fde0a):

https://emeris-extension--pr204-feat-new-swap-hpjlfuct.web.app

(expires Tue, 07 Jun 2022 10:46:49 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@clockworkgr
Copy link
Collaborator

@faboweb
Copy link
Contributor Author

faboweb commented May 31, 2022

order price vanished from the abstract?

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle new Swap data structure
2 participants