Masa SDK v4.2.0 • Docs
Masa SDK v4.2.0 / SBTContract
new SBTContract(
masa,instances):SBTContract
• masa: MasaInterface
• instances: IIdentityContracts
protectedinstances:IIdentityContracts
protectedreadonlymasa:MasaInterface
attach<
Contract>(contract):SBTContractWrapper<Contract>
• Contract extends MasaSBT
• contract: Contract
SBTContractWrapper<Contract>
connect<
Contract>(address,factory):Promise<SBTContractWrapper<Contract>>
loads an sbt instance and connects the contract functions to it
• Contract extends MasaSBT
• address: string
• factory: ContractFactory = MasaSBT__factory
Promise<SBTContractWrapper<Contract>>
protectedcreateOverrides(value?):Promise<PayableOverrides>
• value?: BigNumber
Promise<PayableOverrides>
MasaSBTModuleBase.createOverrides
protectedestimateGasWithSlippage(estimateGas,args?,overrides?):Promise<BigNumber>
• estimateGas
• args?: unknown[]
• overrides?: PayableOverrides
Promise<BigNumber>
MasaSBTModuleBase.estimateGasWithSlippage
protectedformatPrice(paymentAddress,price):Promise<string>
• paymentAddress: string
• price: BigNumber
Promise<string>
protectedgetMintPrice(paymentMethod,contract,slippage):Promise<PriceInformation>
• paymentMethod: PaymentMethod
• contract: MasaSBT
• slippage: undefined | number = 250
Promise<PriceInformation>
MasaSBTModuleBase.getMintPrice
protectedgetNetworkFeeInformation():Promise<undefined|FeeData>
Promise<undefined | FeeData>
MasaSBTModuleBase.getNetworkFeeInformation
protectedloadSBTContract<Contract>(address,factory):Promise<Contract>
• Contract extends MasaSBT
• address: string
• factory: ContractFactory
Promise<Contract>
MasaSBTModuleBase.loadSBTContract
protectedverify(errorMessage,contract,domain,types,value,signature,authorityAddress):Promise<void>
verify a signature created during one of the SBT signing flows
• errorMessage: string
• contract: SoulLinker | SoulStore | MasaSBT | MasaSBTSelfSovereign | MasaSBTAuthority
• domain: TypedDataDomain
• types: Record<string, TypedDataField[]>
• value: Record<string, string | number | boolean | BigNumber>
• signature: string
• authorityAddress: string
Promise<void>
protectedstaticaddSlippage(price,slippage):BigNumber
adds a percentage to the price as slippage
• price: BigNumber
• slippage: number
BigNumber