Skip to main content

A python package for interacting with the superfluid-finance protocol in your application

Project description

Superfluid Python Module

How to work with the package

You need to have python3 installed on your machine

Quick start

Open the terminal then run these commands in your terminal.

1. Install the project

$ pip3 install superfluid_finance

2. set your environment variables

set your environment variables for the RPC provider

if infura,

$ export WEB3_INFURA_PROJECT_ID="aF2hdgfyugwOFGF..."

if you use moralis endpoints

$ export MORALIS_{CHAIN}_URL="https://morali....."

**eg:** MORALIS_KOVAN_URL

For Alchemy,

$ export ALCHEMY_{CHAIN}_KEY= "ft3s0hDFF#....."

if you wish for another provider, open an issue on github and we will try to includ it soonest

3. Navigate to the python interpreter

$ python3
Python 3.9.7 (default, Sep 10 2021, 14:59:43) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>|

4. import the package:

>>> 
>>> from superfluid_finance.host import Host

Cconfirm the pachage is imported by running these commands.

NOTE: ensure you have exported the appropirate environment variables

>>> import provider
>>> provider.infura_connect(kovan)

Test the host contract of your chain by running

>>> 
>>> ht = Host("kovan", "infura")
>>> ht.get_address()
'0xF0d7d1D47109bA426B9D8A3Cde1941327af1eea3'

Specialized examples

Working with accounts accounts

Connecting to an RPC Endpoint

Interacting with The Factory Contract

Interacting with a Super Token

Interacting with The Host Contract

Interacting with The Constant Flow Agreement

Interacting with The Instant Distribution Agreement

Project details


Download files

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

Source Distribution

superfluid-finance-0.0.4.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superfluid_finance-0.0.4-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file superfluid-finance-0.0.4.tar.gz.

File metadata

  • Download URL: superfluid-finance-0.0.4.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for superfluid-finance-0.0.4.tar.gz
Algorithm Hash digest
SHA256 df0f72e749c3a6ac92a8985fbc07537e2e6f5b6a3400f0fad6f806dd059047cd
MD5 14064ae50548cb1a4a4e688957d7c1d1
BLAKE2b-256 8045b97f0a340ebc424f3eb345af5c3075d30cbac4ed9e8d0108e63c7627e76a

See more details on using hashes here.

File details

Details for the file superfluid_finance-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: superfluid_finance-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for superfluid_finance-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 355a5767b3bc0259702ab7046975474250baeed2c5e2084c4ae0db51385b4f93
MD5 8cefec446300a96b6cc04ba3a95c2cff
BLAKE2b-256 c31984fab95a653fd257c36a90706df3f40d67ec4c1e7b60097d982217be0d25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page