A python package for interacting with the superfluid-finance primitive 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
Built Distribution
Hashes for superfluid_finance-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9de62f9e08be3830f84fdce962b5f93f6fe7a59104346726f1ad0f8c3eadd6c8 |
|
MD5 | b4437699f53dcacf40854824d8b3d746 |
|
BLAKE2b-256 | 6b53b8493159bc1cf432526fe8d5030c4e16139496190f15230327856026bf00 |