Properties
_estimateGas
_estimateGas: ((name: string, params: any[], options: object) => Promise<number>)
Type declaration
-
- (name: string, params: any[], options: object): Promise<number>
-
Parameters
-
name: string
-
params: any[]
-
options: object
Returns Promise<number>
Optional
bytecode
bytecode?: `cb_${string}`
call
call
: ((fn
: string, params
?: any[], options
?: {}) => Promise<{ decodedEvents
: DecodedEvent[]; decodedResult
: any; hash
: string; rawTx
: string; result
: { callerId
: `ak_${string}`; callerNonce
: number; contractId
: `ct_${string}`; gasPrice
: number; gasUsed
: number; height
: number; log
: any[]; returnType
: ContractCallReturnType; returnValue
: string }; tx
: any; txData
: SendReturnType }>)
Type declaration
-
- (fn: string, params?: any[], options?: {}): Promise<{ decodedEvents: DecodedEvent[]; decodedResult: any; hash: string; rawTx: string; result: { callerId: `ak_${string}`; callerNonce: number; contractId: `ct_${string}`; gasPrice: number; gasUsed: number; height: number; log: any[]; returnType: ContractCallReturnType; returnValue: string }; tx: any; txData: SendReturnType }>
-
Parameters
-
fn: string
-
Optional
params: any[]
-
Optional
options: {}
Returns Promise<{ decodedEvents: DecodedEvent[]; decodedResult: any; hash: string; rawTx: string; result: { callerId: `ak_${string}`; callerNonce: number; contractId: `ct_${string}`; gasPrice: number; gasUsed: number; height: number; log: any[]; returnType: ContractCallReturnType; returnValue: string }; tx: any; txData: SendReturnType }>
compile
compile: ((options?: {}) => Promise<`cb_${string}`>)
Type declaration
-
- (options?: {}): Promise<`cb_${string}`>
-
Returns Promise<`cb_${string}`>
decodeEvents
Type declaration
-
- (events: <internal>.Event[], options?: { contractAddressToName?: any; omitUnknown?: boolean }): DecodedEvent[]
-
Parameters
-
-
Optional
options: { contractAddressToName?: any; omitUnknown?: boolean }
-
Optional
contractAddressToName?: any
-
Optional
omitUnknown?: boolean
deploy
deploy: ((params?: any[], options?: object) => Promise<any>)
Type declaration
-
- (params?: any[], options?: object): Promise<any>
-
Parameters
-
Optional
params: any[]
-
Optional
options: object
Returns Promise<any>
deployInfo
deploy
Info
: { address
?: `ct_${string}`; owner
?: `ak_${string}`; rawTx
?: string; result
?: { callerId
: string; callerNonce
: string; contractId
: string; gasPrice
: bigint; gasUsed
: number; height
: number; log
: any[]; returnType
: ContractCallReturnType; returnValue
: string }; transaction
?: string; txData
?: SendReturnType }
Type declaration
-
Optional
address?: `ct_${string}`
-
Optional
owner?: `ak_${string}`
-
Optional
rawTx?: string
-
Optional
result?: { callerId: string; callerNonce: string; contractId: string; gasPrice: bigint; gasUsed: number; height: number; log: any[]; returnType: ContractCallReturnType; returnValue: string }
-
callerId: string
-
callerNonce: string
-
contractId: string
-
gasPrice: bigint
-
gasUsed: number
-
height: number
-
log: any[]
-
-
returnValue: string
-
Optional
transaction?: string
-
Optional
source
source?: string