vaultCreation


This stores a new Intu smart contract (in registration phase) on the network.

Users who have been included in the vault can then register, and once everyone has registered, they can interact with it.

*A VAULT CURRENTLY REQUIRES 3 PARTICIPANTS WITH 2 SIGNERS -- IT CANNOT HAVE A 3 of 3 SIGNING SCHEME*

Arguments:

import { vaultCreation } from "@intuweb3/web";
/*
RotateThreshold = % of participants required to add or remove someone from the vault
TransactionThreshold = % of participants required to send a transaction from the vault
AdminThreshold = % of participants required to change a threshold %, change the name, etc.
*/
await vaultCreation([arrayOfAddresses], "MyEasyToReadVaultName",  rotateThreshold,txThreshold,adminThreshold, signer)

InputType of InputDescription
proposedAddressesArray of addressesArray of all the addresses you want to submit for the new vault [0x1, 0x2, 0x3 ... ]
vaultNameStringEasy to read name for reference
rotateThresholdnumberpercentage required to rotate a user in or out of the account
txThresholdnumberpercentage required to send a transaction for the account
adminThresholdnumberpercentage required to change a threshold or name
signerObjectSigner object acquired from ethers or equivalent

The function does not return any values.