Skip to main content

SafeMath

@opcat-labs/cat-sdk v1.0.3


@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​

SafeMath

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​

static artifact: Artifact

Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:14

Inherited from​

SmartContractLib.artifact


stateType?​

static optional stateType: string

Defined in: node_modules/@opcat-labs/scrypt-ts-opcat/dist/types/smart-contract/smartContractLib.d.ts:15

Inherited from​

SmartContractLib.stateType

Methods​

add()​

static add(a, b): bigint

Defined in: packages/cat-sdk/src/contracts/utils/safeMath.ts:11

Parameters​

a​

bigint

b​

bigint

Returns​

bigint


loadArtifact()​

static loadArtifact(artifact): typeof SmartContractLib

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