Skip to main content
Version: Next

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:22


randomAddress

randomAddress(): string

Returns

string

Defined in

src/utils/stark.ts:28


makeAddress

makeAddress(input): string

Parameters

NameType
inputstring

Returns

string

Defined in

src/utils/stark.ts:33


formatSignature

formatSignature(sig?): ArraySignatureType

Parameters

NameType
sig?Signature

Returns

ArraySignatureType

Defined in

src/utils/stark.ts:37


signatureToDecimalArray

signatureToDecimalArray(sig?): ArraySignatureType

Parameters

NameType
sig?Signature

Returns

ArraySignatureType

Defined in

src/utils/stark.ts:50


signatureToHexArray

signatureToHexArray(sig?): ArraySignatureType

Parameters

NameType
sig?Signature

Returns

ArraySignatureType

Defined in

src/utils/stark.ts:54


estimatedFeeToMaxFee

estimatedFeeToMaxFee(estimatedFee, overhead?): bigint

Parameters

NameTypeDefault value
estimatedFeeBigNumberishundefined
overheadnumber0.5

Returns

bigint

Defined in

src/utils/stark.ts:58