承接 deemru/wavesreproduce 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deemru/wavesreproduce

最新稳定版本:1.0.1

Composer 安装命令:

composer require deemru/wavesreproduce

包简介

Waves Reproduce framework

关键字:

README 文档

README

packagist php-v GitHub license

WavesReproduce is a framework for reproducing transactions logic already applied to a Waves type blockchain.

  • Automatically reconstructs on-chain state
  • Watches multiple addresses
  • Lets you attach custom logic to different transaction types

Installation

composer require deemru/wavesreproduce

Basic usage

use deemru\WavesKit;
use deemru\WavesReproduce;

$wk = new WavesKit;
$address = 'target_waves_address';

$rp = new WavesReproduce( $wk, $address );
$rp->update();

$handlers = [
    // Data transactions (type = 12)
    12 => [
        $address => function( $tx ) {
            // Handle data tx for this address
        }
    ],
    // Invoke transactions (type = 16)
    16 => [
        $address => function( $tx ) {
            // Handle invoke tx for this address
        }
    ],
];

// Replay all transactions of interest from the earliest recorded height
$rp->reproduce( $handlers );

// Access your replicated state
$state = $rp->state[$address];

Documentaion

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-20