Giter Site home page Giter Site logo

tinyman-go-sdk's Introduction

tinyman-go-sdk

Overview

This is a Golang SDK providing access to the Tinyman AMM on the Algorand blockchain. It currently supports V1.1 Tinyman.

Installation

go get github.com/synycboom/[email protected]

This SDK also requires gl-algorand-sdk

go get -u github.com/algorand/go-algorand-sdk/...

Package overview

v1 package provides a Tinyman client which is a main entry point for this SDK. v1/constants contains constants for using with the SDK. v1/contracts provides a getter function to retrieve the pool logic signature account. v1/pools provides a liquidity pool utilities that you'll use to interact with it. v1/prepare contains functions that prepare transaction groups to interact with the Tinyman contracts.

utils provides utilities like converting numbers, getting states, etc.

types contains data types used in the SDK.

examples are the example codes.

Usage

Boostrapping

Bootstrap a liquidity pool /example/bootstrap

Minting

Add assets to an existing pool in exchange for the liquidity pool asset /example/mint.

Burning

Exchange the liquidity pool asset for the pool assets /example/burn.

Swapping

Swap one asset for another in an existing pool /example/swap.

Redeeming

Redeem excess amounts from previous transactions /example/redeem.

Running example

To run the examples, create a new /example/.env file by following the variables in /example/.env.example Then setup /.vscode/launch.json, and use it to run the examples

License

tinyman-go-sdk is licensed under a MIT license except for the exceptions listed below. See the LICENSE file for details.

Exceptions

v1/contracts/asc-v1_1.json is currently unlicensed. It may be used by this SDK but may not be used in any other way or be distributed separately without the express permission of Tinyman.

Disclaimer

Nothing in the repo constitutes professional and/or financial advice. Use this SDK at your own risk.

tinyman-go-sdk's People

Contributors

synycboom avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.