Skip to main content
Version: 5.14.1

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