Namespace: stark
Functions​
compressProgram​
â–¸ compressProgram(jsonProgram
): CompressedProgram
Function to compress compiled cairo program
Parameters​
Name | Type | Description |
---|---|---|
jsonProgram | string | Program | json file representing the compiled cairo program |
Returns​
Compressed cairo program
Defined in​
decompressProgram​
â–¸ decompressProgram(base64
): any
Function to decompress compressed compiled cairo program
Parameters​
Name | Type | Description |
---|---|---|
base64 | string | CompressedProgram |
Returns​
any
parsed decompressed compiled cairo program
Defined in​
randomAddress​
â–¸ randomAddress(): string
Returns​
string
Defined in​
makeAddress​
â–¸ makeAddress(input
): string
Parameters​
Name | Type |
---|---|
input | string |
Returns​
string
Defined in​
formatSignature​
â–¸ formatSignature(sig?
): ArraySignatureType
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Defined in​
signatureToDecimalArray​
â–¸ signatureToDecimalArray(sig?
): ArraySignatureType
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Defined in​
signatureToHexArray​
â–¸ signatureToHexArray(sig?
): ArraySignatureType
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Defined in​
estimatedFeeToMaxFee​
â–¸ estimatedFeeToMaxFee(estimatedFee
, overhead?
): bigint
Parameters​
Name | Type | Default value |
---|---|---|
estimatedFee | BigNumberish | undefined |
overhead | number | 0.5 |
Returns​
bigint