Beispiel #1
0
def verify_deploy(ctx: ExecutionContext, node_id: NodeIdentifier, block_hash: str, deploy_hash: str):
    """Step deploy verifier.
    
    :param ctx: Execution context information.
    :param node_id: Identifier of node emitting chain event.
    :param block_hash: Hash of block in which deploy was batched.
    :param deploy_hash: Hash of deploy being processed.

    """
    verification.verify_deploy(ctx, block_hash, deploy_hash)
Beispiel #2
0
def verify_deploy(ctx: ExecutionContext, node_id: NodeIdentifier, block_hash: str, deploy_hash: str):
    """Step deploy verifier.
    
    :param ctx: Execution context information.
    :param node_id: Identifier of node emitting chain event.
    :param block_hash: Hash of block in which deploy was batched.
    :param deploy_hash: Hash of deploy being processed.
    :param deploy_index: Index of a finalized deploy in relation to the deploys dispatched during this step.

    """
    verification.verify_deploy(ctx, block_hash, deploy_hash)
Beispiel #3
0
def verify_deploy(ctx: ExecutionContext, node_id: NodeIdentifier, block_hash: str, deploy_hash: str):
    """Step deploy verifier.
    
    :param ctx: Execution context information.
    :param node_id: Identifier of node emitting chain event.
    :param block_hash: Hash of block in which deploy was batched.
    :param deploy_hash: Hash of deploy being processed.

    """
    verification.verify_deploy(ctx, block_hash, deploy_hash)
    verification.verify_account_balance(
        ctx,
        accounts.get_account_idx_for_run_faucet(ctx.args.accounts, ctx.args.transfers),
        accounts.get_faucet_initial_balance(ctx.args.transfers, ctx.args.amount),
        )    
Beispiel #4
0
def verify_deploy(ctx: ExecutionContext, node_id: NodeIdentifier, block_hash: str, deploy_hash: str):
    """Step deploy verifier.
    
    :param ctx: Execution context information.
    :param node_id: Identifier of node emitting chain event.
    :param block_hash: Hash of block in which deploy was batched.
    :param deploy_hash: Hash of deploy being processed.
    :param deploy_index: Index of a finalized deploy in relation to the deploys dispatched during this step.

    """
    deploy = verification.verify_deploy(ctx, block_hash, deploy_hash)
    verification.verify_account_balance_on_transfer(
        ctx,
        node_id,
        deploy.state_root_hash,
        deploy.associated_account_index,
        ctx.args.amount_to_fund,
        )