registerPortrait()
/**
* Register the Collective Portrait.
*
* @remarks
* Registering the Collective Portrait will register the Collective Portrait with the Portrait Protocol.
*
* @param {number} payableAmount - The amount of ether to pay for the registration.
* @param {CollectivePortraitName} identity - The name of the Collective Portrait that the user would like to register.
* @param {number} shares - The number of shares to register the Collective Portrait with.
* @param {number} minimumControlshares - The minimum number of shares required to control the Collective Portrait.
* @param {number} years - The number of years to register the Collective Portrait for.
* @returns {ethers.ContractTransaction} - The transaction object of the transaction that registers the Collective Portrait.
* @beta
* @async
*/
registerPortrait(
payableAmount: number,
identity: CollectivePortraitName,
shares: number,
minimumControlshares: number,
years: number,
): Promise<ethers.ContractTransaction> {
return this.portrait.portraitCollectiveContract.registerPortrait(
payableAmount,
identity,
shares,
minimumControlshares,
years,
);
}Last updated