Namespace: stark
Functions​
compressProgram​
â–¸ compressProgram(jsonProgram
): CompressedProgram
Compress compiled Cairo program
Parameters​
Name | Type | Description |
---|---|---|
jsonProgram | string | Program | Representing the compiled cairo program |
Returns​
Defined in​
decompressProgram​
â–¸ decompressProgram(base64
): any
Decompress compressed compiled Cairo program
Parameters​
Name | Type | Description |
---|---|---|
base64 | string | Compressed program |
Returns​
any
Parsed decompressed compiled Cairo program
Defined in​
randomAddress​
â–¸ randomAddress(): string
Random Address based on random keyPair
Returns​
string
Defined in​
makeAddress​
â–¸ makeAddress(input
): string
Lowercase and hex prefix string
Deprecated
Not used internally, naming is confusing based on functionality
Parameters​
Name | Type |
---|---|
input | string |
Returns​
string
Defined in​
formatSignature​
â–¸ formatSignature(sig?
): ArraySignatureType
Format Signature to standard type (hex array)
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Custom hex array or weierstrass.SignatureType hex array
Defined in​
signatureToDecimalArray​
â–¸ signatureToDecimalArray(sig?
): ArraySignatureType
Format Signature to decimal string array
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Defined in​
signatureToHexArray​
â–¸ signatureToHexArray(sig?
): ArraySignatureType
Format Signature to hex string array
Parameters​
Name | Type |
---|---|
sig? | Signature |
Returns​
Defined in​
estimatedFeeToMaxFee​
â–¸ estimatedFeeToMaxFee(estimatedFee
, overhead?
): bigint
Convert estimated fee to max fee with overhead
Parameters​
Name | Type | Default value |
---|---|---|
estimatedFee | BigNumberish | undefined |
overhead | number | 0.5 |
Returns​
bigint