Code Monkey home page Code Monkey logo

kuokamultisig's Introduction

Kuoka Multisig Workflows

Intro

This project in an implementation of a multisig contract for the Kuoka Project (@KuokaProject). It is based on the HoverLabs multisig-timelock contract. Modification were made to add the ability to directly manage an xtz coin balance and to set a delegate.

Other code in this repository contains examples of how this contract can be used in several scenarios. It is using the ConseilJS library from Cryptonomic. Smart contract is written using SmartPy.

Deploy

The code in this repository is not meant to be used in production directly. It is a collection of examples that can be integrated into a user-friend UI for the relevant multisig workflows. The included code can be used to demonstrate the functionality of the contract. To do so, several test accounts need to be created and the the base contract needs to be deployed. Token transfers, both plain (FA1.2) and indexed (FA2) will require a token balance to be assigned to the multisig contract.

To deploy the contract use npm run deployMultisig.

Rotate Keys

Using npm run rotateKeys

Delegate

TBD

Transfer Balance

Using npm run transferBalance

Transfer Tokens

Using npm run transferToken

Transfer Indexed Tokens

TBD

Initialize Test Accounts

Test accounts can be created on teztnets. Several will be needed to run a full test, including at least three for the signers and perhaps more for deployment and contribution testing.

Configuration Items

config.json includes some required parameters. node is a Tezos RPC node for blockchain interactions. Currently it's using Nautilus Cloud from Cryptonomic. accounts is a list of tz1 Tezos accounts which will be interpreted as file names for the /accounts directory. tz1---.json is expected to be a faucet file from teztnets. tz1---.keys is expected to be a JSON file containing two keys, sk and pk, secret and public key respectively. At a minimum this repo requires three accounts. The multisig section contains a threshold, which is set to two initially, that is a minimum number of signatures required to execute an operation and timelock โ€“ a number of seconds to wait before an operation can be executed, for testing it's set to 30 seconds. After a contract is deployed an address will be added to this section which the various test scripts in this repo will use to interact with the multisig.

kuokamultisig's People

Contributors

anonymoussprocket avatar

Watchers

James Cloos 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.