Skip to main content

A small example package

Project description

Event Chain: An Event System Built on Forge

Quick Setup

  1. Go to your python environment

  2. pip install forge-event-chain

Run

Before running event_chain, make sure your local forge is running properly.

  1. Add event_chain config in your forge config.

    [app]
    name = Event-Chain
    version = 0.26.9"
    path = “~/.forge/event_chain
    host=localhost
    forge_port=8210
    
  2. restart forge to activate the updated config.

  3. deploy transaction protocol:

data="EgtldmVudF9jaGFpbhgBIgZDb3JlVHgqI3Byb3RvY29sIGluZm9ybWF0aW9uIGZvciBldmVudGNoYWluMiUKD2VjOnM6ZXZlbnRfaW5mbxISRm9yZ2VBYmkuRXZlbnRJbmZvMi0KE2VjOnM6Z2VuZXJhbF90aWNrZXQSFkZvcmdlQWJpLkdlbmVyYWxUaWNrZXQ6twJzeW50YXggPSAicHJvdG8zIjsKcGFja2FnZSBmb3JnZV9hYmk7CgptZXNzYWdlIEdlbmVyYWxUaWNrZXQgewogICAgc3RyaW5nIGlkID0gMTsKICAgIC8vIHNhbWUgYXMgZXZlbnQsIGZpeGVkCiAgICBzdHJpbmcgc3RhcnRfdGltZSA9IDI7CiAgICBzdHJpbmcgZW5kX3RpbWUgPSAzOwogICAgc3RyaW5nIGxvY2F0aW9uID0gNDsKICAgIHN0cmluZyBpbWdfdXJsID0gNjsKICAgIHN0cmluZyB0aXRsZT03Owp9CgptZXNzYWdlIEV2ZW50SW5mbyB7CiAgICBzdHJpbmcgZGV0YWlscyA9IDE7CiAgICBieXRlcyBjb25zdW1lX2Fzc2V0X3R4ID0gMjsKfUI1LS0tCm5hbWU6IGV2ZW50X2NoYWluCmNoZWNrOiBbXQp2ZXJpZnk6IFtdCnVwZGF0ZTogW11S2wMKEF-eMoHnfhQNpxMvmIXN7jgSxgMfiwgAAAAAAAADdZHPa9RAFMfnJTXdbqs7m9CKIBgKHsSy_cWCSy9pl2gL6w9q69Ekm7y0A_nF7KykN_HWW-kt0ENPnv0TRPDgRcS_oPgXSP-CzmwjFsGBz7yZL-99Zx7v6cvdVUK07S138_mAZUg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BnSuRlQwHAAA"

Forge.Unsafe.LoadTxs.update_one(data,wallet)
  1. simulate original data to start with:

    FORGE_CONFIG=/home/User/forge_release.toml python3.7 -m event_chain.simulation.simulate

  2. start event_chain application:

FORGE_CONFIG=/home/User/forge_release.toml python3.7 -m event_chain.runner normal

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for forge-event-chain, version 0.27.0
Filename, size File type Python version Upload date Hashes
Filename, size forge_event_chain-0.27.0-py2.py3-none-any.whl (6.1 MB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size forge-event-chain-0.27.0.tar.gz (6.1 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page