Releases: elliottech/lighter-go
Releases · elliottech/lighter-go
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
Better support for transfer memo
Transfer memo is accepted either as str of len 32 (in which case, they are interpreted as bytes) or as 64 hex encoded string or 0x[hex]
Spot
Last pre-spot release
0.1.6 add default client for account index (#34)
Improve Sign response & wasm support
Refactor: Separate pure Go logic from CGO/WASM platform wrappers (#29) * split the logic * all exported * Refactor: Separate pure Go business logic from platform wrappers - Created executables/shared.go with pure Go business logic - Refactored executables/sharedlib/main.go as thin CGO wrapper - Refactored executables/wasm/main.go as thin WASM wrapper - Updated sharedlib/sharedlib.go with PR #27 changes (monolithic reference) - Integrated multi-account support with apiKeyIndex/accountIndex params - Removed code duplication between CGO and WASM builds - Updated TypeScript SDK for new signer API - Verified Python SDK compatibility with SwitchAPIKey mechanism * Add missing defaultTxClient initialization and SwitchAPIKey to sharedlib.go * Changes in order expiry * Refactor: Separate pure Go logic from platform wrappers - Move pure Go business logic to client/client.go - Create thin CGO wrapper in sharedlib/main.go - Create thin WASM wrapper in wasm/main.go - Remove legacy executables/ folder and sharedlib/sharedlib.go - Update justfile paths to match new structure - All 19 exported functions preserved and tested * Refactor: Separate pure Go logic from CGO/WASM wrappers - Extract pure Go business logic to client/client.go - Create thin CGO wrapper in sharedlib/main.go - Create thin WASM wrapper in wasm/main.go - Remove monolithic sharedlib/sharedlib.go - Update justfile for new structure - All 19 exported functions preserved with full functionality - Supports multi-account and multi-API key management - Maintains backward compatibility * Remove legacy code from client/client.go - make change pub key method - return struct for change pub key * changes in error handling,txhash and type included * changes in error handling,txhash and type included * Refactor: Remove wrappers and add composite response format Multi-Client Support, Removed Wrappers, Composite Response, updated CGO/WASM * small consistency & easier to read stuff --------- Co-authored-by: Alex Velea <dev@velea.cc>
Easier support for multiple accounts / API Keys
Methods are split into:
- Client related; initiate & checks an Account Index <> Api Key pair
- API Keys related; generate a new pair, change an API key & create auth token
- Trading related; all trading related calls receive 3 arguments at the end
- nonce
- accountIndex
- apiKeyIndex
Users can specify these fields to create transactions from different API Keys / sub accounts