Coder Social home page Coder Social logo

saber-hq / sail Goto Github PK

View Code? Open in Web Editor NEW
77.0 5.0 10.0 8.77 MB

⛵️ A React library for Solana account management and transaction processing.

Home Page: https://sail.saber.so/ts/

License: Apache License 2.0

JavaScript 0.34% TypeScript 99.02% Shell 0.07% Nix 0.57%

sail's Introduction

sail ⛵️

NPM License Build Status Contributors

A React library for Solana account management and transaction handling.

Setup

Run:

yarn add @saberhq/sail react-query

Usage

You will need to first set up React Query.

Then:

import { SailProvider } from "@saberhq/sail";
import { QueryClient, QueryClientProvider } from "react-query";

const queryClient = new QueryClient();

const MyApp: React.FC = () => (
  <QueryClientProvider client={queryClient}>
    <SailProvider initialState={{ onTxSend, onSailError }}>
      {/* stuff */}
    </SailProvider>
  </QueryClientProvider>
);

Examples

The most prominent open source example is the Friktion frontend.

You can view a list of open source GitHub projects that use Sail here.

License

Sail is licensed under the Apache License, Version 2.0.

sail's People

Contributors

macalinao avatar dependabot[bot] avatar michaelhly avatar andrewtian avatar

Stargazers

Perseu avatar qo7835110 avatar Kevin Rodríguez avatar Jake Burden avatar  avatar Luc Succes avatar Ranger avatar Buns Enchantress avatar AboveWallStreet avatar Piyush Chauhan avatar Javed Khan avatar Jonatan E. Salas avatar Ravindra Kumar avatar Hoon Wee avatar Jimmy Le Vagueresse avatar  avatar Kevin Connors avatar GigaChad.Dev  avatar Anmol Maini avatar  avatar  avatar Surya Khosla avatar The Gnosis Assembler avatar Eric Kim avatar Aslak avatar Đức An avatar Vincent Lyons avatar Vladislav avatar Hampus Ohlsson avatar Luke Hartman avatar  avatar jn avatar Noel Jackson avatar Beni Ben zikry avatar JollyΞ avatar yiming liu avatar  avatar Harshal Sheth avatar Nick avatar Nikita avatar Georgios Konstantopoulos avatar Jiayu Shen avatar Vladimir avatar  avatar Pedro Lopes avatar Adam Lawrence avatar sangha avatar  avatar Araviel avatar Lorem Ipsum avatar Charlie You avatar Zahin Mohammad avatar  avatar Milk avatar Jorge Valdez avatar rob shaw avatar Davo avatar  avatar Rohan Kapur avatar Conor Murphy avatar Shun Kakinoki avatar Rotche  Capuyan  Ouano avatar TuanD avatar Obi avatar omar avatar Andy Bell avatar Chris avatar Pranoy Dev avatar gpalrepo avatar  avatar Ifiok Jr. avatar Alexey Elizarov avatar  avatar nana avatar ss avatar  avatar  avatar

Watchers

 avatar Alexey Elizarov avatar  avatar  avatar  avatar

sail's Issues

Remove getAccountInfo call in handleTX

This call is unnecessary since the simulation will return an error code about the SOL account having insufficient funds.

This should reduce load a bit

Case with a request for user tokens

It is interesting to consider the case of using the library when you need to load user tokens (for example, for future display, etc.)

How can this be done using this library?

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.