refactor: restructure Lighter SDK by removing deprecated Go files and enhancing Python documentation with new examples and models

This commit is contained in:
discountry
2025-12-07 19:14:56 +08:00
parent 85705dd27c
commit 5f79b134f2
310 changed files with 47112 additions and 3698 deletions
@@ -0,0 +1,26 @@
import asyncio
from utils import default_example_setup
POOL_ACCOUNT_INDEX = 281474976710651
async def main():
client, api_client, _ = default_example_setup()
err = client.check_client()
if err is not None:
print(f"CheckClient error: {err}")
return
auth, _ = client.create_auth_token_with_expiry()
tx_info, response, err = await client.burn_shares(public_pool_index=POOL_ACCOUNT_INDEX, share_amount=10_000)
if err is not None:
raise Exception(f'failed to mint shares {err}')
await client.close()
await api_client.close()
if __name__ == "__main__":
asyncio.run(main())