Masa SDK v4.2.0 • Docs
Masa SDK v4.2.0 / SBTContract
new SBTContract(
masa
,instances
):SBTContract
• masa: MasaInterface
• instances: IIdentityContracts
protected
instances:IIdentityContracts
protected
readonly
masa: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
>>
protected
createOverrides(value
?):Promise
<PayableOverrides
>
• value?: BigNumber
Promise
<PayableOverrides
>
MasaSBTModuleBase
.createOverrides
protected
estimateGasWithSlippage(estimateGas
,args
?,overrides
?):Promise
<BigNumber
>
• estimateGas
• args?: unknown
[]
• overrides?: PayableOverrides
Promise
<BigNumber
>
MasaSBTModuleBase
.estimateGasWithSlippage
protected
formatPrice(paymentAddress
,price
):Promise
<string
>
• paymentAddress: string
• price: BigNumber
Promise
<string
>
protected
getMintPrice(paymentMethod
,contract
,slippage
):Promise
<PriceInformation
>
• paymentMethod: PaymentMethod
• contract: MasaSBT
• slippage: undefined
| number
= 250
Promise
<PriceInformation
>
MasaSBTModuleBase
.getMintPrice
protected
getNetworkFeeInformation():Promise
<undefined
|FeeData
>
Promise
<undefined
| FeeData
>
MasaSBTModuleBase
.getNetworkFeeInformation
protected
loadSBTContract<Contract
>(address
,factory
):Promise
<Contract
>
• Contract extends MasaSBT
• address: string
• factory: ContractFactory
Promise
<Contract
>
MasaSBTModuleBase
.loadSBTContract
protected
verify(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
>
protected
static
addSlippage(price
,slippage
):BigNumber
adds a percentage to the price as slippage
• price: BigNumber
• slippage: number
BigNumber