Releases: 1inch/1inch-sdk-go
Releases · 1inch/1inch-sdk-go
v1.0.0-beta.3
- Fusion Plus support added
- Pending Fusion orders can now be tracked using the SDK
- Orderbook client updated to support new API schema
v1.0.0-beta.2
What's Changed
- Classic Swap updated to use V6 API
- Added examples for all Classic Swap endpoints
- When using TransactionBuilder, if no
gas
value is specified in the transaction config,eth_estimateGas
will be used by default
Full Changelog: v1.0.0-beta.1...v1.0.0-beta.2
v1.0.0-beta.1
What's Changed
- Adding Portfolio API and fixing codegen script pointer modification by @Tanz0rz in #68
- Fusion SDK Added by @Tanz0rz in #70
- Filled out remaining API links in README by @Tanz0rz in #72
- Various improvements to usability and naming by @Tanz0rz in #73
- Normalizing and improving examples by @Tanz0rz in #74
- Updating Geth version by @Tanz0rz in #76
- Various improvements from the TODOs by @Tanz0rz in #77
- Web3 API added. Types generation script updated to handle Web3 API spec design. by @Tanz0rz in #75
- Updating readme to match latest code by @Tanz0rz in #78
Full Changelog: v0.0.6-developer-preview...v1.0.0-beta.1
v0.0.6-developer-preview
What's Changed
- Refactored all non-essential client-level configuration values to be set by the user at request-time instead by @Tanz0rz in #6
- Improving parameter isolation when building REST requests by @Tanz0rz in #7
- Standardized validation pattern for input parameters by @Tanz0rz in #8
- Isolating and improving input validation by @Tanz0rz in #9
- Optimizing how validation logic is applied to structs by @Tanz0rz in #10
- Improving validation logic and project-wide code checking tests by @Tanz0rz in #11
- Further simplifying validation logic for generated structs by @Tanz0rz in #12
- Swagger/struct generation now uses concrete types exclusively to simplify config object setup by @Tanz0rz in #16
- Fix incorrect string literal in ReadContractSymbol by @svanas in #15
- Remove pointers from slice response objects in Orderbook service by @svanas in #17
- README links statically use the main branch, config validation improvements, User Agent set by @Tanz0rz in #18
- More links on README now point to main branch by @Tanz0rz in #19
- Validation logic/structure improvements. Orderbook request param naming refactor. Better Limit Order Receiver defaults. by @Tanz0rz in #20
- Swap service parameter validation completed. Simplified token data lookup logic to use SDK instead of chain. ERC20 symbol lookup naming improved. by @Tanz0rz in #21
- Removing duplicate Content-Type header by @Tanz0rz in #22
- Limit orders can now be set to auto-expire in the Orderbook service by @Tanz0rz in #23
- Orderbook orders will now be created using permits when possible by @Tanz0rz in #24
- Permit1 support in Orderbook. Tenderly custom balances and refactor. Token versions used in permit. Approval fallback for failed Permits. by @Tanz0rz in #25
- When creating a limit order, enable the integrator to error out when an approval is needed by @Tanz0rz in #26
- Add strongly typed errors for fail-on-no-approval scenario by @Tanz0rz in #27
- Adding main repo README by @Tanz0rz in #28
- Refactoring the SDK structure to be more discoverable by @Tanz0rz in #29
- Updating docs to reflect v0.0.3-developer-preview release by @Tanz0rz in #30
- Cleaning up main client config organization by @Tanz0rz in #31
- Moving the Golang SDK to the root of this repository by @Tanz0rz in #32
- E2E tests will now only run when a Tenderly key is present by @Tanz0rz in #33
- Updating the go mod file and imports to match new repo name by @Tanz0rz in #34
- Improving client config naming now that it is in the models package by @Tanz0rz in #35
- feat: global refactoring by @EnoRage in #38
New Contributors
Full Changelog: v0.0.2-developer-preview...v0.0.6-developer-preview
v0.0.5-developer-preview
New Features and Enhancements:
- Repo has been updated to be exclusively for the Go SDK. This required changing the import paths across the entire project.
NOTE: Traditional semver will be used after the SDK exits the developer preview phase
v0.0.3-developer-preview
New Features and Enhancements:
- All non-global query configurations have been moved to the request-level params (PR)
- RPC providers for all chains will now be defined/set at SDK startup
- Query parameters now use concrete types instead of pointers (PR)
- Limit orders created within the SDK now support auto-expiration (PR)
- Permit1 properly supported for limit orders when possible (fallback to Approval if Permit1 does not work) (commit)
- When creating a limit order, integrators can error out when an approval is needed. This is useful for integrators who want all onchain actions to be performed manually by their users (PR)
Optimizations and Bug Fixes:
v0.0.2-developer-preview
Release Notes
New Features and Enhancements:
- Added Tenderly support for e2e swap tests
- e2e tests will now create forks, apply state overrides, and run simulations when a Tenderly API key is provided.
- Added approval type selection
- Users can choose between
Approve
andPermit1
(Permit2
currently unsupported)
- Users can choose between
- Implemented nonce cache to address RPC lag
- Once a wallet has posted a transaction, the nonce of that transaction is tracked and incremented internally by the SDK.
Optimizations and Bug Fixes:
- Updated orderbook to use string inputs instead of integers to support all of uint256.
- Increased gas limit and reduced permit duration to improve transactions success and debugging.
- Moved Actions into a service within the main client to consolidate SDK structure.
- Simplified tests and refactored onchain actions to have more uniformity across the library.
v0.0.1-developer-preview
This is the initial developer preview release of the 1inch Dev Portal SDK
Release Notes
Limit Order support
- Enables posting orders to the 1inch Limit Order Protocol
- Enables reading orders from the 1inch Limit Order Protocol
- Most endpoints from the Limit Order API supported
has-active-orders-with-permit
REST endpoint still untested
Aggregator Protocol support
- All REST endpoints supported
- Get quotes and swap data from the Aggregator Protocol
Onchain execution support
- Execute swaps onchain from within the SDK