From 5594aa23ff1838ef2c9a60b8def1bd93e0e41bae Mon Sep 17 00:00:00 2001 From: Tanner Moore Date: Wed, 23 Oct 2024 21:05:28 -0600 Subject: [PATCH 1/2] Bumping version to beta.2 --- internal/http-executor/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http-executor/http.go b/internal/http-executor/http.go index b95b7bf9..7de01a63 100644 --- a/internal/http-executor/http.go +++ b/internal/http-executor/http.go @@ -72,7 +72,7 @@ func (c *Client) prepareRequest(ctx context.Context, method string, fullURL *url return nil, err } - req.Header.Set("User-Agent", "1inch-dev-portal-client-go:0.0.3-developer-preview") + req.Header.Set("User-Agent", "1inch-dev-portal-client-go:beta.2") req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", c.apiKey)) if len(body) > 0 { req.Header.Set("Content-Type", "application/json") From 7cec2c2f7ed68f3aa16edea2d7b9109aa2c96cff Mon Sep 17 00:00:00 2001 From: Tanner Moore Date: Wed, 23 Oct 2024 21:13:34 -0600 Subject: [PATCH 2/2] Changelog and Agent string updated --- CHANGELOG.md | 9 ++++++++- internal/http-executor/http.go | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c50a510e..d6096c21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) starting with the *v1.0.0-beta.1* release. +## [v1.0.0-beta.2] - 2024-10-23 +[v1.0.0-beta.2 release page](https://github.com/1inch/1inch-sdk-go/releases/tag/v1.0.0-beta.2) +### 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 + ## [v1.0.0-beta.1] - 2024-8-22 -[v1.0.0-beta.1 releas page](https://github.com/1inch/1inch-sdk-go/releases/tag/v1.0.0-beta.1) +[v1.0.0-beta.1 release page](https://github.com/1inch/1inch-sdk-go/releases/tag/v1.0.0-beta.1) Note: This changelog summarizes all changes since the last *changelog* version of v0.0.3-developer-preview diff --git a/internal/http-executor/http.go b/internal/http-executor/http.go index 7de01a63..b0de6800 100644 --- a/internal/http-executor/http.go +++ b/internal/http-executor/http.go @@ -72,7 +72,7 @@ func (c *Client) prepareRequest(ctx context.Context, method string, fullURL *url return nil, err } - req.Header.Set("User-Agent", "1inch-dev-portal-client-go:beta.2") + req.Header.Set("User-Agent", "1inch-dev-portal-client-go:v1.0.0-beta.2") req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", c.apiKey)) if len(body) > 0 { req.Header.Set("Content-Type", "application/json")