Class SmartContractTransactionsOutcomeParser
Constructors
constructor
- new SmartContractTransactionsOutcomeParser(
options?: { abi?: IAbi; legacyResultsParser?: ILegacyResultsParser },
): SmartContractTransactionsOutcomeParser Parameters
Optional
options: { abi?: IAbi; legacyResultsParser?: ILegacyResultsParser }
Methods
Protected
findDirectSmartContractCallOutcome
Protected
findDirectSmartContractCallOutcomeIfError
Protected
findDirectSmartContractCallOutcomeWithinSmartContractResults
Protected
findDirectSmartContractCallOutcomeWithinWriteLogEvents
parseDeploy
- parseDeploy(
options:
| { transactionOutcome: TransactionOutcome }
| { transactionOnNetwork: ITransactionOnNetwork },
): {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
} Returns {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
}
Protected
parseDeployGivenTransactionOnNetwork
- parseDeployGivenTransactionOnNetwork(
transactionOnNetwork: ITransactionOnNetwork,
): {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
} Returns {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
}
Protected
parseDeployGivenTransactionOutcome
- parseDeployGivenTransactionOutcome(
transactionOutcome: TransactionOutcome,
): {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
} Returns {
contracts: {
address: string;
codeHash: Uint8Array<ArrayBufferLike>;
ownerAddress: string;
}[];
returnCode: string;
returnMessage: string;
}
parseExecute
- parseExecute(
options:
| { function?: string; transactionOutcome: TransactionOutcome }
| { function?: string; transactionOnNetwork: ITransactionOnNetwork },
): { returnCode: string; returnMessage: string; values: any[] } Returns { returnCode: string; returnMessage: string; values: any[] }
Protected
parseExecuteGivenTransactionOnNetwork
- parseExecuteGivenTransactionOnNetwork(
transactionOnNetwork: ITransactionOnNetwork,
functionName?: string,
): { returnCode: string; returnMessage: string; values: any[] } Returns { returnCode: string; returnMessage: string; values: any[] }
Protected
parseExecuteGivenTransactionOutcome
- parseExecuteGivenTransactionOutcome(
transactionOutcome: TransactionOutcome,
functionName?: string,
): { returnCode: string; returnMessage: string; values: any[] } Returns { returnCode: string; returnMessage: string; values: any[] }
Legacy approach.