本文整理匯總了TypeScript中abi-decoder.removeABI函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript removeABI函數的具體用法?TypeScript removeABI怎麽用?TypeScript removeABI使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了removeABI函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: after
after(async () => {
if (!scenario.permissionToCollateralize) {
await this.contracts.collateralizerContract.addAuthorizedCollateralizeAgent.sendTransactionAsync(
this.contracts.collateralizedSimpleInterestTermsContract.address,
{ from: this.accounts.CONTRACT_OWNER },
);
}
// Tear down ABIDecoder before next set of tests
ABIDecoder.removeABI(this.contracts.collateralizedSimpleInterestTermsContract.abi);
ABIDecoder.removeABI(this.contracts.collateralizerContract.abi);
});
示例2: submitMultiSigTransaction
export async function submitMultiSigTransaction(
multiSig: DharmaMultiSigWalletContract,
contract: BaseContract,
methodName: string,
args: any[],
txData: TxData,
): Promise<BigNumber> {
ABIDecoder.addABI(multiSig.abi);
const encodedTransaction = await contract.web3ContractInstance[methodName].getData.apply(
null,
args,
);
const txHash = await multiSig.submitTransaction.sendTransactionAsync(
contract.address,
// Ether value - 0.
new BigNumber(0),
encodedTransaction,
txData,
);
// Get the transaction ID from the logs.
const receipt = await web3.eth.getTransactionReceipt(txHash);
const submission = ABIDecoder.decodeLogs(receipt.logs)[0] as DecodedLog<
MultiSigSubmissionEventArgs
>;
const transactionId = submission.events[0].value;
ABIDecoder.removeABI(multiSig.abi);
return transactionId;
}
示例3: after
after(() => {
ABIDecoder.removeABI(termsContract.abi);
});
示例4: after
after(() => {
ABIDecoder.removeABI(router.abi);
});
示例5: after
after(async () => {
ABIDecoder.removeABI(proxy.abi);
});
示例6: after
after(() => {
ABIDecoder.removeABI(contractRegistry.abi);
});
示例7: after
after(() => {
ABIDecoder.removeABI(collateralizer.abi);
});
示例8: after
after(() => {
ABIDecoder.removeABI(this.contracts.simpleInterestTermsContract.abi);
});
示例9: after
after(() => {
// Tear down ABIDecoder before next set of tests.
ABIDecoder.removeABI(dummyContract.abi);
});