Skip to content

Releases: elliottech/lighter-go

v1.0.6

30 Mar 16:05
dd454f9

Choose a tag to compare

  • add skip nonce capabilities

v1.0.5

25 Mar 11:13
c3f35bd

Choose a tag to compare

  • export go Free function
  • wasm improvements

v1.0.4

09 Mar 18:00
87d580c

Choose a tag to compare

  • support for subaccount as integrator

v1.0.3

08 Mar 11:28
8a43ec0

Choose a tag to compare

  • integrator txs support
  • staking txs support

v1.0.2

19 Dec 16:13
37514ad

Choose a tag to compare

v1.0.2 (#44)

Better support for transfer memo

04 Dec 20:57
0d4ddf1

Choose a tag to compare

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

04 Dec 19:21
da79e0f

Choose a tag to compare

1.0.0

Spot (#33)

Last pre-spot release

02 Dec 03:14
b5bfb3b

Choose a tag to compare

0.1.6

add default client for account index (#34)

Improve Sign response & wasm support

21 Nov 14:21
d951267

Choose a tag to compare

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

04 Nov 17:22
78b9b55

Choose a tag to compare

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