Giter Site home page Giter Site logo

pinkdiamond1 / wallet-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xsequence/wallet-contracts

0.0 1.0 0.0 3.54 MB

Sequence, Ethereum Smart Wallet Contracts

Home Page: https://sequence.build

License: Other

JavaScript 36.02% TypeScript 55.05% Solidity 8.92%

wallet-contracts's Introduction

Sequence Smart Wallet Contracts

Ethereum contracts for the Sequence Smart Wallet at https://sequence.app.

For more information see, https://sequence.build

Usage

Please visit https://sequence.app to access the Sequence Wallet via your Web Browser, or download "Sequence Wallet" from the respective Apple/Google stores.

You may also access, interface or develop your own Sequence Wallet via sequence.js. The sequence.js library offers a full open source library to interact, create, deploy and manage a Sequence Smart Wallet Account, as defined by the contracts in this respository. Also see go-sequence for an implementation in Go.

Connecting your Dapp with Sequence Wallet

If you wish to use Sequence Wallet in your Dapp, simply use sequence.js. Sequence.js is an Ethereum client library built on ethers.js, that provides an additional Sequence Smart Wallet Signer.

  1. Install Sequence.js, an Ethereum client library built on ethers.js -- yarn add 0xsequence or npm install 0xsequence

  2. Setup an Ethereum web3-compatible provider from your dapp to the Sequence Wallet

import { sequence } from '0xsequence'

const wallet = new sequence.Wallet('mainnet')
await wallet.login()

const provider = wallet.getProvider()
// .. connect provider to your dapp

Developing a custom Wallet UI for Sequence (advanced!)

If you wish to the Sequence Wallet Contracts @0xsequence/wallet-contracts directly:

  1. Install the contracts -- yarn add @0xsequence/wallet-contracts or npm install @0xsequence/wallet-contracts
  2. Install the Sequence Wallet libraries -- yarn add @0xsequence/wallet or npm install @0xsequence/wallet. To view the source, of the wallet libraries, see here, and review the test for sample usage, as well as the tests here.

NOTE: this integration is only needed if you want low-level access to the Sequence Wallet contracts, such as if you'd building your own custom wallet, or perhaps a CLI tool for managing your wallet.

Security Review

@0xsequence/wallet-contracts has been audited by two independant parties

Dev env & release

This repository is configured as a yarn workspace, and has multiple pacakge.json files. Specifically, we have the root ./package.json for the development environment, contract compilation and testing. Contract source code and distribution files are packaged in "src/package.json".

To release a new version, make sure to bump the version, tag it, and run yarn release. The release command will publish the @0xsequence/wallet-contracts package in the "src/" folder, separate from the root package. The advantage here is that application developers who consume @0xsequence/wallet-contracts aren't required to install any of the devDependencies in their toolchains as our build and contract packages are separated.

LICENSE

Copyright (c) 2017-present Horizon Blockchain Games Inc.

Licensed under Apache-2.0

wallet-contracts's People

Contributors

acrylix avatar agusx1211 avatar attente avatar danielrea avatar dependabot[bot] avatar phabc avatar pkieltyka avatar

Watchers

 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.