當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。