Skip to content

DAO-TON-CON/dao-multisig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TON Multisig

Simple multlisig TON

Installation

yarn

Build

Compile with func -SPA stdlib.fc multisig-code.fc multisig-code.fif

Client

Generate private key

npm run client:generate-key ./data/key

Copy public key from console and sent to admin

After server admin setups multisig smart contract, you are ready to submit transaction by running npm run client:send-tx.

Parameters:

  1. Receiving address
  2. Amount in TON
  3. Public address
  4. Path to your private key.

Example:

npm run client:send-tx EQBW-Tltrbbg-HlmQC47uuEzP31OM1o5RtI5j7QSGxVrO1YD 0.1 PuZnMzx6J2E3obmLjtuQiBPbQrqFtEiKYg2+STwvp9i/ty7S ./data/key

Server

Copy addresses to ./data/keys.pub

Prepare smart contract by running npm run multisig:create.

Parameters:

  1. k = minimum number of signatures. Example:
npm run multisig:create 2

Fund bounceable address with some TON. Deploy smart contract by running

npm run multisig:deploy

Deploy takes no parameters.

Run server

npm run server:start

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.3%
  • Shell 24.3%
  • CSS 14.3%
  • HTML 11.1%