SafeMath
@opcat-labs/cat-sdk / SafeMath
Class: SafeMath
Defined in: packages/cat-sdk/src/contracts/utils/safeMath.ts:9
The safe math utilities for the CAT contracts
Onchain
Extends
SmartContractLib
Constructors
new SafeMath()
new SafeMath(...
args):SafeMath
Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:18
Parameters
args
...SupportedParamType[]
Returns
Inherited from
SmartContractLib.constructor
Properties
args
args:
any[]
Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:17
Inherited from
SmartContractLib.args
artifact
staticartifact:Artifact
Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:14
Inherited from
SmartContractLib.artifact
stateType?
staticoptionalstateType:string
Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:15
Inherited from
SmartContractLib.stateType
Methods
add()
staticadd(a,b):bigint
Defined in: packages/cat-sdk/src/contracts/utils/safeMath.ts:11
Parameters
a
bigint
b
bigint
Returns
bigint
loadArtifact()
staticloadArtifact(artifact): typeofSmartContractLib
Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:16
Parameters
artifact
Artifact
Returns
typeof SmartContractLib
Inherited from
SmartContractLib.loadArtifact