当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript abi-decoder.removeABI函数代码示例

本文整理汇总了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);
            });
开发者ID:TheRealest,项目名称:charta,代码行数:12,代码来源:register_term_start.ts

示例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;
}
开发者ID:TheRealest,项目名称:charta,代码行数:34,代码来源:multisig.ts

示例3: after

 after(() => {
     ABIDecoder.removeABI(termsContract.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:collateralized_simple_interest_terms_contract.ts

示例4: after

 after(() => {
     ABIDecoder.removeABI(router.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:repayment_router.ts

示例5: after

 after(async () => {
     ABIDecoder.removeABI(proxy.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:token_transfer_proxy.ts

示例6: after

 after(() => {
     ABIDecoder.removeABI(contractRegistry.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:contract_registry.ts

示例7: after

 after(() => {
     ABIDecoder.removeABI(collateralizer.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:collateralize.ts

示例8: after

 after(() => {
     ABIDecoder.removeABI(this.contracts.simpleInterestTermsContract.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:3,代码来源:register_repayment.ts

示例9: after

 after(() => {
     // Tear down ABIDecoder before next set of tests.
     ABIDecoder.removeABI(dummyContract.abi);
 });
开发者ID:TheRealest,项目名称:charta,代码行数:4,代码来源:permissions.ts


注:本文中的abi-decoder.removeABI函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。