Skip to main content
Version: 5.19.5

Namespace: stark

Functions​

compressProgram​

â–¸ compressProgram(jsonProgram): CompressedProgram

Function to compress compiled cairo program

Reference

Parameters​

NameTypeDescription
jsonProgramstring | Programjson file representing the compiled cairo program

Returns​

CompressedProgram

Compressed cairo program

Defined in​

src/utils/stark.ts:21


decompressProgram​

â–¸ decompressProgram(base64): any

Function to decompress compressed compiled cairo program

Parameters​

NameTypeDescription
base64stringCompressedProgram

Returns​

any

parsed decompressed compiled cairo program

Defined in​

src/utils/stark.ts:33


randomAddress​

â–¸ randomAddress(): string

Returns​

string

Defined in​

src/utils/stark.ts:39


makeAddress​

â–¸ makeAddress(input): string

Parameters​

NameType
inputstring

Returns​

string

Defined in​

src/utils/stark.ts:44


formatSignature​

â–¸ formatSignature(sig?): ArraySignatureType

Parameters​

NameType
sig?Signature

Returns​

ArraySignatureType

Defined in​

src/utils/stark.ts:48


signatureToDecimalArray​

â–¸ signatureToDecimalArray(sig?): ArraySignatureType

Parameters​

NameType
sig?Signature

Returns​

ArraySignatureType

Defined in​

src/utils/stark.ts:61


signatureToHexArray​

â–¸ signatureToHexArray(sig?): ArraySignatureType

Parameters​

NameType
sig?Signature

Returns​

ArraySignatureType

Defined in​

src/utils/stark.ts:65


estimatedFeeToMaxFee​

â–¸ estimatedFeeToMaxFee(estimatedFee, overhead?): bigint

Parameters​

NameTypeDefault value
estimatedFeeBigNumberishundefined
overheadnumber0.5

Returns​

bigint

Defined in​

src/utils/stark.ts:69