Goat plugin for Superfluid
Project description
Superfluid Plugin for GOAT SDK
A plugin for the GOAT SDK that provides real-time token streaming and programmable cashflow functionality through the Superfluid Protocol.
Installation
# Install the plugin
poetry add goat-sdk-plugin-superfluid
# Install required wallet dependency
poetry add goat-sdk-wallet-evm
Usage
from goat_plugins.superfluid import superfluid, SuperfluidPluginOptions
# Initialize the plugin
options = SuperfluidPluginOptions(
rpc_url="${RPC_PROVIDER_URL}" # Your EVM RPC URL
)
plugin = superfluid(options)
# Create a token stream
stream = await plugin.create_stream(
chain_id=137, # Polygon
token_address="0xCAa7349CEA390F89641fe306D93591f87595dc1F", # USDC.e
recipient="recipient_address",
flow_rate="385802469135802", # 1000 tokens per month
)
# Get stream details
flow_info = await plugin.get_flow(
chain_id=137,
token_address="0xCAa7349CEA390F89641fe306D93591f87595dc1F",
sender="sender_address",
recipient="recipient_address"
)
# Manage index subscription
subscription = await plugin.update_subscription(
chain_id=137,
token_address="0xCAa7349CEA390F89641fe306D93591f87595dc1F",
publisher="publisher_address",
index_id=1,
units=100
)
Features
-
Token Streaming:
- Create and manage token streams
- Real-time balance updates
- Flow rate calculations
- Stream statistics
-
Pool Management:
- Instant Distribution Agreements (IDA)
- Pool membership control
- Units management
- Distribution calculations
-
Advanced Features:
- Super Agreements
- Super Tokens
- Batch call support
- Stream automation
-
Supported Networks:
- Ethereum
- Polygon
- Arbitrum
- Optimism
- Avalanche
- BSC
- Base
- All Superfluid-enabled chains
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goat_sdk_plugin_superfluid-0.1.1.tar.gz.
File metadata
- Download URL: goat_sdk_plugin_superfluid-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e5ebd933060e829ea28949e993529e922e8a4ba53677d260dd3560217e3144
|
|
| MD5 |
0c1645a30140033bed0a37aa3953acdf
|
|
| BLAKE2b-256 |
2b5a183bac0e4873405ee03cdbea3f794a45a3c60b700a6fc604b42aeca595e6
|
File details
Details for the file goat_sdk_plugin_superfluid-0.1.1-py3-none-any.whl.
File metadata
- Download URL: goat_sdk_plugin_superfluid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6828051a9b47b08eb06ab846f5c271e5f52ed25175112546b61306799ee05b4e
|
|
| MD5 |
57dcb546a945614a29672dd299df742b
|
|
| BLAKE2b-256 |
6bb04d200f31c1c054a1808608bbe559ef709f8f52a9547448a1a6e9ffafa721
|