Skip to main content
Version: 11.x

Type Alias: CommonContractOptions

CommonContractOptions = object

Defined in: src/contract/types/index.type.ts:64

Properties​

parseRequest?​

optional parseRequest?: boolean

Defined in: src/contract/types/index.type.ts:69

compile and validate arguments

Default​

true

parseResponse?​

optional parseResponse?: boolean

Defined in: src/contract/types/index.type.ts:75

Parse elements of the response array and structuring them into response object

Default​

true

parsingStrategy?​

optional parsingStrategy?: ParsingStrategy | CairoTypeStrategy

Defined in: src/contract/types/index.type.ts:85

Custom parsing strategy for request/response processing

Which of the two shapes applies follows from the abi: a Cairo 1 or Cairo 2 contract is served by the Cairo type classes and takes a CairoTypeStrategy — cairoTypeStrategy, fastCairoTypeStrategy, or one of your own built from either. A Cairo 0 contract takes the older ParsingStrategy. Handing over the wrong one raises, rather than being ignored.