From 11a3e7bd6a5512e946140cded8806a5b95ea8894 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 8 Oct 2024 19:53:45 +0000 Subject: [PATCH 1/3] feat(api): update via SDK Studio (#11) --- README.md | 36 +++++++++++++++------- address.go | 2 +- addressbrc20.go | 2 +- addressrune.go | 2 +- addresstx.go | 2 +- addressutxo.go | 2 +- asset.go | 2 +- assetbrc20.go | 2 +- assetbrc20holder.go | 2 +- assetrune.go | 2 +- assetruneholder.go | 2 +- assetruneutxo.go | 2 +- block.go | 2 +- blocklatest.go | 2 +- client.go | 4 +-- client_test.go | 48 +++++++++++++++++++++++++----- general.go | 2 +- generalinfo.go | 2 +- option/requestoption.go | 17 +++++++---- rpc.go | 2 +- rpcmempool.go | 2 +- rpcmempoolinfo.go | 2 +- rpcmempooltransaction.go | 2 +- rpcmempooltransactionancestor.go | 2 +- rpcmempooltransactiondescendant.go | 2 +- rpctransaction.go | 2 +- transaction.go | 2 +- transactionpsbt.go | 2 +- usage_test.go | 8 +++-- 29 files changed, 110 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index f075261..d0d4401 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ -# Maestro Bitcoin Go SDK +# Maestro Bitcoin Go SDK API Library Go Reference -The Maestro Bitcoin Go SDK provides convenient access to [the Maestro Bitcoin REST +The Maestro Bitcoin Go SDK library provides convenient access to [the Maestro REST + API](https://docs.gomaestro.org/) from applications written in Go. The full API of this library can be found in [api.md](api.md). ## Installation @@ -49,13 +50,17 @@ import ( func main() { client := maestrobitcoingosdk.NewClient( option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("API_KEY") - option.WithEnvironmentMainnet(), // defaults to option.WithEnvironmentMainnet() + option.WithEnvironmentMainnet(), // or option.WithEnvironmentTestnet() | option.WithEnvironmentDefault(); defaults to option.WithEnvironmentTestnet() + ) + paginatedUtxo, err := client.Addresses.Utxos.List( + context.TODO(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, ) - timestampedBlock, err := client.Blocks.Latest.Get(context.TODO()) if err != nil { panic(err.Error()) } - fmt.Printf("%+v\n", timestampedBlock.Data) + fmt.Printf("%+v\n", paginatedUtxo.Data) } ``` @@ -144,7 +149,7 @@ client := maestrobitcoingosdk.NewClient( option.WithHeader("X-Some-Header", "custom_header_info"), ) -client.Blocks.Latest.Get(context.TODO(), ..., +client.Addresses.Utxos.List(context.TODO(), ..., // Override the header option.WithHeader("X-Some-Header", "some_other_custom_header_info"), // Add an undocumented field to the request body, using sjson syntax @@ -173,14 +178,18 @@ When the API returns a non-success status code, we return an error with type To handle errors, we recommend that you use the `errors.As` pattern: ```go -_, err := client.Blocks.Latest.Get(context.TODO()) +_, err := client.Addresses.Utxos.List( + context.TODO(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, +) if err != nil { var apierr *maestrobitcoingosdk.Error if errors.As(err, &apierr) { println(string(apierr.DumpRequest(true))) // Prints the serialized HTTP request println(string(apierr.DumpResponse(true))) // Prints the serialized HTTP response } - panic(err.Error()) // GET "/blocks/latest": 400 Bad Request { ... } + panic(err.Error()) // GET "/addresses/{address}/utxos": 400 Bad Request { ... } } ``` @@ -198,8 +207,10 @@ To set a per-retry timeout, use `option.WithRequestTimeout()`. // This sets the timeout for the request, including all the retries. ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) defer cancel() -client.Blocks.Latest.Get( +client.Addresses.Utxos.List( ctx, + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, // This sets the per-retry timeout option.WithRequestTimeout(20*time.Second), ) @@ -233,7 +244,12 @@ client := maestrobitcoingosdk.NewClient( ) // Override per-request: -client.Blocks.Latest.Get(context.TODO(), option.WithMaxRetries(5)) +client.Addresses.Utxos.List( + context.TODO(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + option.WithMaxRetries(5), +) ``` ### Making custom/undocumented requests diff --git a/address.go b/address.go index 8eb1bf7..867fc0c 100644 --- a/address.go +++ b/address.go @@ -7,7 +7,7 @@ import ( ) // AddressService contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/addressbrc20.go b/addressbrc20.go index fd3a75d..1aea71c 100644 --- a/addressbrc20.go +++ b/addressbrc20.go @@ -14,7 +14,7 @@ import ( ) // AddressBrc20Service contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/addressrune.go b/addressrune.go index db7d38e..4d69879 100644 --- a/addressrune.go +++ b/addressrune.go @@ -17,7 +17,7 @@ import ( ) // AddressRuneService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/addresstx.go b/addresstx.go index 9aa3816..43f2be6 100644 --- a/addresstx.go +++ b/addresstx.go @@ -17,7 +17,7 @@ import ( ) // AddressTxService contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/addressutxo.go b/addressutxo.go index e35a216..f6be1ac 100644 --- a/addressutxo.go +++ b/addressutxo.go @@ -17,7 +17,7 @@ import ( ) // AddressUtxoService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/asset.go b/asset.go index 5cb61cd..986e3da 100644 --- a/asset.go +++ b/asset.go @@ -7,7 +7,7 @@ import ( ) // AssetService contains methods and other services that help with interacting with -// the maestro API. +// the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/assetbrc20.go b/assetbrc20.go index 3e50fe4..fcb3b45 100644 --- a/assetbrc20.go +++ b/assetbrc20.go @@ -17,7 +17,7 @@ import ( ) // AssetBrc20Service contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/assetbrc20holder.go b/assetbrc20holder.go index 06acbcd..7d985a4 100644 --- a/assetbrc20holder.go +++ b/assetbrc20holder.go @@ -17,7 +17,7 @@ import ( ) // AssetBrc20HolderService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/assetrune.go b/assetrune.go index ae7ed98..2937519 100644 --- a/assetrune.go +++ b/assetrune.go @@ -17,7 +17,7 @@ import ( ) // AssetRuneService contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/assetruneholder.go b/assetruneholder.go index b243da2..efff0a8 100644 --- a/assetruneholder.go +++ b/assetruneholder.go @@ -17,7 +17,7 @@ import ( ) // AssetRuneHolderService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/assetruneutxo.go b/assetruneutxo.go index d35a590..4162bb7 100644 --- a/assetruneutxo.go +++ b/assetruneutxo.go @@ -17,7 +17,7 @@ import ( ) // AssetRuneUtxoService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/block.go b/block.go index 76567fb..e048274 100644 --- a/block.go +++ b/block.go @@ -15,7 +15,7 @@ import ( ) // BlockService contains methods and other services that help with interacting with -// the maestro API. +// the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/blocklatest.go b/blocklatest.go index 9edeac2..13ccbfc 100644 --- a/blocklatest.go +++ b/blocklatest.go @@ -11,7 +11,7 @@ import ( ) // BlockLatestService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/client.go b/client.go index cd126a3..a92972c 100644 --- a/client.go +++ b/client.go @@ -12,7 +12,7 @@ import ( ) // Client creates a struct with services and top level methods that help with -// interacting with the maestro API. You should not instantiate this client +// interacting with the Maestro API. You should not instantiate this client // directly, and instead use the [NewClient] method instead. type Client struct { Options []option.RequestOption @@ -30,7 +30,7 @@ type Client struct { // default arguments, and all option will be passed down to the services and // requests that this client makes. func NewClient(opts ...option.RequestOption) (r *Client) { - defaults := []option.RequestOption{option.WithEnvironmentMainnet()} + defaults := []option.RequestOption{option.WithEnvironmentTestnet()} if o, ok := os.LookupEnv("API_KEY"); ok { defaults = append(defaults, option.WithAPIKey(o)) } diff --git a/client_test.go b/client_test.go index d9129c5..05da746 100644 --- a/client_test.go +++ b/client_test.go @@ -37,7 +37,11 @@ func TestUserAgentHeader(t *testing.T) { }, }), ) - client.Blocks.Latest.Get(context.Background()) + client.Addresses.Utxos.List( + context.Background(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if userAgent != fmt.Sprintf("Maestro/Go %s", internal.PackageVersion) { t.Errorf("Expected User-Agent to be correct, but got: %#v", userAgent) } @@ -60,7 +64,11 @@ func TestRetryAfter(t *testing.T) { }, }), ) - res, err := client.Blocks.Latest.Get(context.Background()) + res, err := client.Addresses.Utxos.List( + context.Background(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("Expected there to be a cancel error and for the response to be nil") } @@ -94,7 +102,11 @@ func TestDeleteRetryCountHeader(t *testing.T) { }), option.WithHeaderDel("X-Stainless-Retry-Count"), ) - res, err := client.Blocks.Latest.Get(context.Background()) + res, err := client.Addresses.Utxos.List( + context.Background(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("Expected there to be a cancel error and for the response to be nil") } @@ -123,7 +135,11 @@ func TestOverwriteRetryCountHeader(t *testing.T) { }), option.WithHeader("X-Stainless-Retry-Count", "42"), ) - res, err := client.Blocks.Latest.Get(context.Background()) + res, err := client.Addresses.Utxos.List( + context.Background(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("Expected there to be a cancel error and for the response to be nil") } @@ -151,7 +167,11 @@ func TestRetryAfterMs(t *testing.T) { }, }), ) - res, err := client.Blocks.Latest.Get(context.Background()) + res, err := client.Addresses.Utxos.List( + context.Background(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("Expected there to be a cancel error and for the response to be nil") } @@ -173,7 +193,11 @@ func TestContextCancel(t *testing.T) { ) cancelCtx, cancel := context.WithCancel(context.Background()) cancel() - res, err := client.Blocks.Latest.Get(cancelCtx) + res, err := client.Addresses.Utxos.List( + cancelCtx, + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("Expected there to be a cancel error and for the response to be nil") } @@ -192,7 +216,11 @@ func TestContextCancelDelay(t *testing.T) { ) cancelCtx, cancel := context.WithTimeout(context.Background(), 2*time.Millisecond) defer cancel() - res, err := client.Blocks.Latest.Get(cancelCtx) + res, err := client.Addresses.Utxos.List( + cancelCtx, + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("expected there to be a cancel error and for the response to be nil") } @@ -217,7 +245,11 @@ func TestContextDeadline(t *testing.T) { }, }), ) - res, err := client.Blocks.Latest.Get(deadlineCtx) + res, err := client.Addresses.Utxos.List( + deadlineCtx, + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err == nil || res != nil { t.Error("expected there to be a deadline error and for the response to be nil") } diff --git a/general.go b/general.go index a431640..4d6c6a8 100644 --- a/general.go +++ b/general.go @@ -7,7 +7,7 @@ import ( ) // GeneralService contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/generalinfo.go b/generalinfo.go index 683006c..57447b7 100644 --- a/generalinfo.go +++ b/generalinfo.go @@ -12,7 +12,7 @@ import ( ) // GeneralInfoService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/option/requestoption.go b/option/requestoption.go index 7c2dafa..4135423 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -15,7 +15,7 @@ import ( "github.com/tidwall/sjson" ) -// RequestOption is an option for the requests made by the maestro API Client +// RequestOption is an option for the requests made by the Maestro API Client // which can be supplied to clients, services, and methods. You can read more about this functional // options pattern in our [README]. // @@ -221,6 +221,13 @@ func WithRequestTimeout(dur time.Duration) RequestOption { } } +// WithEnvironmentTestnet returns a RequestOption that sets the current +// environment to be the "testnet" environment. An environment specifies which base URL +// to use by default. +func WithEnvironmentTestnet() RequestOption { + return WithBaseURL("https://xbt-testnet.gomaestro-api.org/v0/") +} + // WithEnvironmentMainnet returns a RequestOption that sets the current // environment to be the "mainnet" environment. An environment specifies which base URL // to use by default. @@ -228,11 +235,11 @@ func WithEnvironmentMainnet() RequestOption { return WithBaseURL("https://xbt-mainnet.gomaestro-api.org/v0/") } -// WithEnvironmentTestnet returns a RequestOption that sets the current -// environment to be the "testnet" environment. An environment specifies which base URL +// WithEnvironmentDefault returns a RequestOption that sets the current +// environment to be the "default" environment. An environment specifies which base URL // to use by default. -func WithEnvironmentTestnet() RequestOption { - return WithBaseURL("https://xbt-testnet.gomaestro-api.org/v0/") +func WithEnvironmentDefault() RequestOption { + return WithBaseURL("mainnet/") } // WithAPIKey returns a RequestOption that sets the client setting "api_key". diff --git a/rpc.go b/rpc.go index 19c31da..4d367c1 100644 --- a/rpc.go +++ b/rpc.go @@ -7,7 +7,7 @@ import ( ) // RpcService contains methods and other services that help with interacting with -// the maestro API. +// the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpcmempool.go b/rpcmempool.go index cf86056..444830a 100644 --- a/rpcmempool.go +++ b/rpcmempool.go @@ -7,7 +7,7 @@ import ( ) // RpcMempoolService contains methods and other services that help with interacting -// with the maestro API. +// with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpcmempoolinfo.go b/rpcmempoolinfo.go index 447e5d7..2ea49f7 100644 --- a/rpcmempoolinfo.go +++ b/rpcmempoolinfo.go @@ -12,7 +12,7 @@ import ( ) // RpcMempoolInfoService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpcmempooltransaction.go b/rpcmempooltransaction.go index 49593bf..f027e43 100644 --- a/rpcmempooltransaction.go +++ b/rpcmempooltransaction.go @@ -14,7 +14,7 @@ import ( ) // RpcMempoolTransactionService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpcmempooltransactionancestor.go b/rpcmempooltransactionancestor.go index 0522f68..211345c 100644 --- a/rpcmempooltransactionancestor.go +++ b/rpcmempooltransactionancestor.go @@ -14,7 +14,7 @@ import ( ) // RpcMempoolTransactionAncestorService contains methods and other services that -// help with interacting with the maestro API. +// help with interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpcmempooltransactiondescendant.go b/rpcmempooltransactiondescendant.go index 89a392f..2005a4d 100644 --- a/rpcmempooltransactiondescendant.go +++ b/rpcmempooltransactiondescendant.go @@ -14,7 +14,7 @@ import ( ) // RpcMempoolTransactionDescendantService contains methods and other services that -// help with interacting with the maestro API. +// help with interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/rpctransaction.go b/rpctransaction.go index 1d629c6..52708da 100644 --- a/rpctransaction.go +++ b/rpctransaction.go @@ -14,7 +14,7 @@ import ( ) // RpcTransactionService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/transaction.go b/transaction.go index 386499b..2beb92b 100644 --- a/transaction.go +++ b/transaction.go @@ -14,7 +14,7 @@ import ( ) // TransactionService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/transactionpsbt.go b/transactionpsbt.go index 1494bbf..54742fa 100644 --- a/transactionpsbt.go +++ b/transactionpsbt.go @@ -12,7 +12,7 @@ import ( ) // TransactionPsbtService contains methods and other services that help with -// interacting with the maestro API. +// interacting with the Maestro API. // // Note, unlike clients, this service does not read variables from the environment // automatically. You should not instantiate this service directly, and instead use diff --git a/usage_test.go b/usage_test.go index c24ee39..9d3ccc9 100644 --- a/usage_test.go +++ b/usage_test.go @@ -24,9 +24,13 @@ func TestUsage(t *testing.T) { option.WithBaseURL(baseURL), option.WithAPIKey("My API Key"), ) - timestampedBlock, err := client.Blocks.Latest.Get(context.TODO()) + paginatedUtxo, err := client.Addresses.Utxos.List( + context.TODO(), + "REPLACE_ME", + maestrobitcoingosdk.AddressUtxoListParams{}, + ) if err != nil { t.Error(err) } - t.Logf("%+v\n", timestampedBlock.Data) + t.Logf("%+v\n", paginatedUtxo.Data) } From 636420ea7e5c57129bf846858df2bf1f72614634 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 8 Oct 2024 19:55:52 +0000 Subject: [PATCH 2/3] feat(api): update via SDK Studio (#13) --- README.md | 5 ++--- addressbrc20_test.go | 1 + addressrune_test.go | 2 ++ addresstx_test.go | 1 + addressutxo_test.go | 1 + assetbrc20_test.go | 2 ++ assetbrc20holder_test.go | 1 + assetrune_test.go | 2 ++ assetruneholder_test.go | 1 + assetruneutxo_test.go | 1 + block_test.go | 1 + blocklatest_test.go | 1 + generalinfo_test.go | 1 + rpcmempoolinfo_test.go | 1 + rpcmempooltransaction_test.go | 2 ++ rpcmempooltransactionancestor_test.go | 1 + rpcmempooltransactiondescendant_test.go | 1 + rpctransaction_test.go | 1 + transaction_test.go | 2 ++ transactionpsbt_test.go | 1 + 20 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0d4401..43ca4c2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# Maestro Bitcoin Go SDK API Library +# Maestro Bitcoin Go API Library Go Reference -The Maestro Bitcoin Go SDK library provides convenient access to [the Maestro REST - +The Maestro Bitcoin Go library provides convenient access to [the Maestro REST API](https://docs.gomaestro.org/) from applications written in Go. The full API of this library can be found in [api.md](api.md). ## Installation diff --git a/addressbrc20_test.go b/addressbrc20_test.go index 8f100ee..928d424 100644 --- a/addressbrc20_test.go +++ b/addressbrc20_test.go @@ -14,6 +14,7 @@ import ( ) func TestAddressBrc20List(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressrune_test.go b/addressrune_test.go index 5f9ef9b..99e28ba 100644 --- a/addressrune_test.go +++ b/addressrune_test.go @@ -14,6 +14,7 @@ import ( ) func TestAddressRuneGetWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -47,6 +48,7 @@ func TestAddressRuneGetWithOptionalParams(t *testing.T) { } func TestAddressRuneList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addresstx_test.go b/addresstx_test.go index 3005507..66d4d93 100644 --- a/addresstx_test.go +++ b/addresstx_test.go @@ -14,6 +14,7 @@ import ( ) func TestAddressTxListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/addressutxo_test.go b/addressutxo_test.go index 7e9febd..a711d22 100644 --- a/addressutxo_test.go +++ b/addressutxo_test.go @@ -14,6 +14,7 @@ import ( ) func TestAddressUtxoListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/assetbrc20_test.go b/assetbrc20_test.go index 9631dd6..e9dd829 100644 --- a/assetbrc20_test.go +++ b/assetbrc20_test.go @@ -14,6 +14,7 @@ import ( ) func TestAssetBrc20Get(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -36,6 +37,7 @@ func TestAssetBrc20Get(t *testing.T) { } func TestAssetBrc20ListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/assetbrc20holder_test.go b/assetbrc20holder_test.go index e8ccb38..df6c389 100644 --- a/assetbrc20holder_test.go +++ b/assetbrc20holder_test.go @@ -14,6 +14,7 @@ import ( ) func TestAssetBrc20HolderListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/assetrune_test.go b/assetrune_test.go index 0c5685c..767affe 100644 --- a/assetrune_test.go +++ b/assetrune_test.go @@ -14,6 +14,7 @@ import ( ) func TestAssetRuneGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -36,6 +37,7 @@ func TestAssetRuneGet(t *testing.T) { } func TestAssetRuneListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/assetruneholder_test.go b/assetruneholder_test.go index dacb707..f004106 100644 --- a/assetruneholder_test.go +++ b/assetruneholder_test.go @@ -14,6 +14,7 @@ import ( ) func TestAssetRuneHolderListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/assetruneutxo_test.go b/assetruneutxo_test.go index d2d95ef..87efdaf 100644 --- a/assetruneutxo_test.go +++ b/assetruneutxo_test.go @@ -14,6 +14,7 @@ import ( ) func TestAssetRuneUtxoListWithOptionalParams(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/block_test.go b/block_test.go index 9106db3..ebccff2 100644 --- a/block_test.go +++ b/block_test.go @@ -14,6 +14,7 @@ import ( ) func TestBlockGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/blocklatest_test.go b/blocklatest_test.go index e27c10d..70ab77c 100644 --- a/blocklatest_test.go +++ b/blocklatest_test.go @@ -14,6 +14,7 @@ import ( ) func TestBlockLatestGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/generalinfo_test.go b/generalinfo_test.go index c64e7b0..4704546 100644 --- a/generalinfo_test.go +++ b/generalinfo_test.go @@ -14,6 +14,7 @@ import ( ) func TestGeneralInfoGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rpcmempoolinfo_test.go b/rpcmempoolinfo_test.go index 0e14b4b..2e7bd3d 100644 --- a/rpcmempoolinfo_test.go +++ b/rpcmempoolinfo_test.go @@ -14,6 +14,7 @@ import ( ) func TestRpcMempoolInfoGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rpcmempooltransaction_test.go b/rpcmempooltransaction_test.go index 344caad..45e9fc0 100644 --- a/rpcmempooltransaction_test.go +++ b/rpcmempooltransaction_test.go @@ -14,6 +14,7 @@ import ( ) func TestRpcMempoolTransactionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -36,6 +37,7 @@ func TestRpcMempoolTransactionGet(t *testing.T) { } func TestRpcMempoolTransactionList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rpcmempooltransactionancestor_test.go b/rpcmempooltransactionancestor_test.go index f5b76c9..534cd08 100644 --- a/rpcmempooltransactionancestor_test.go +++ b/rpcmempooltransactionancestor_test.go @@ -14,6 +14,7 @@ import ( ) func TestRpcMempoolTransactionAncestorList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rpcmempooltransactiondescendant_test.go b/rpcmempooltransactiondescendant_test.go index 7a0107a..a98aa10 100644 --- a/rpcmempooltransactiondescendant_test.go +++ b/rpcmempooltransactiondescendant_test.go @@ -14,6 +14,7 @@ import ( ) func TestRpcMempoolTransactionDescendantList(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/rpctransaction_test.go b/rpctransaction_test.go index a751516..b0e91d9 100644 --- a/rpctransaction_test.go +++ b/rpctransaction_test.go @@ -14,6 +14,7 @@ import ( ) func TestRpcTransactionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/transaction_test.go b/transaction_test.go index f7607e5..ae29924 100644 --- a/transaction_test.go +++ b/transaction_test.go @@ -14,6 +14,7 @@ import ( ) func TestTransactionGet(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL @@ -36,6 +37,7 @@ func TestTransactionGet(t *testing.T) { } func TestTransactionSubmit(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL diff --git a/transactionpsbt_test.go b/transactionpsbt_test.go index 344de94..2fb9a5b 100644 --- a/transactionpsbt_test.go +++ b/transactionpsbt_test.go @@ -14,6 +14,7 @@ import ( ) func TestTransactionPsbtDecode(t *testing.T) { + t.Skip("skipped: tests are disabled for the time being") baseURL := "http://localhost:4010" if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok { baseURL = envURL From 86d4ba58bbdfd2d99d49da649cc7343c7503b4f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:56:14 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.4 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index aaf968a..b56c3d0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.3" + ".": "0.1.0-alpha.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4964da1..2e8e32b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.4 (2024-10-08) + +Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/maestro-org/maestro-bitcoin-go-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4) + +### Features + +* **api:** update via SDK Studio ([#11](https://github.com/maestro-org/maestro-bitcoin-go-sdk/issues/11)) ([11a3e7b](https://github.com/maestro-org/maestro-bitcoin-go-sdk/commit/11a3e7bd6a5512e946140cded8806a5b95ea8894)) +* **api:** update via SDK Studio ([#13](https://github.com/maestro-org/maestro-bitcoin-go-sdk/issues/13)) ([636420e](https://github.com/maestro-org/maestro-bitcoin-go-sdk/commit/636420ea7e5c57129bf846858df2bf1f72614634)) + ## 0.1.0-alpha.3 (2024-10-08) Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/maestro-org/maestro-bitcoin-go-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3) diff --git a/README.md b/README.md index 43ca4c2..f400f03 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Or to pin the version: ```sh -go get -u 'github.com/maestro-org/maestro-bitcoin-go-sdk@v0.1.0-alpha.3' +go get -u 'github.com/maestro-org/maestro-bitcoin-go-sdk@v0.1.0-alpha.4' ``` diff --git a/internal/version.go b/internal/version.go index 2d1d85e..5469df6 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.1.0-alpha.3" // x-release-please-version +const PackageVersion = "0.1.0-alpha.4" // x-release-please-version