本文整理汇总了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);
});