Skip to content

FossNZ/test-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

const {createAsset, setBeneficiaries, setLivingSwitchCondition, withdraw} = require('./prepare');
api = await require('./init');
const {alice, alex, ian, cherry} = require('./keyring')()

// STEP 1 createAsset
const assetId = await createAsset();

// STEP 2 setBeneficiaries
// {
//        address: alex.address,
//        weight: 100
//    },
//    {
//        address: ian.address,
//        weight: 200
//    },
//    {
//        address: cherry.address,
//        weight: 100
//    }
//}
await setBeneficiaries();

// STEP 3 setLivingSwitchCondition
// current block height + 5
await setLivingSwitchCondition();

// STEP 4 withdraw
await withdraw();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published