diff --git a/api/api.gen.go b/api/api.gen.go index 4a2c4f05..5ff341bb 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 d0c7f1ab893283e358baff52cecf6a8cbabd641f +// sequence-api v0.4.0 97e7fd1fda64f3f3edb7b980afd511cc93d1a9b9 // -- // Code generated by webrpc-gen@v0.23.2 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "d0c7f1ab893283e358baff52cecf6a8cbabd641f" + return "97e7fd1fda64f3f3edb7b980afd511cc93d1a9b9" } type WebrpcGenVersions struct { @@ -277,6 +277,51 @@ func (x *TokenType) Is(values ...TokenType) bool { return false } +type TransakBuySell uint8 + +const ( + TransakBuySell_UNKNOWN TransakBuySell = 0 + TransakBuySell_BUY TransakBuySell = 1 + TransakBuySell_SELL TransakBuySell = 2 +) + +var TransakBuySell_name = map[uint8]string{ + 0: "UNKNOWN", + 1: "BUY", + 2: "SELL", +} + +var TransakBuySell_value = map[string]uint8{ + "UNKNOWN": 0, + "BUY": 1, + "SELL": 2, +} + +func (x TransakBuySell) String() string { + return TransakBuySell_name[uint8(x)] +} + +func (x TransakBuySell) MarshalText() ([]byte, error) { + return []byte(TransakBuySell_name[uint8(x)]), nil +} + +func (x *TransakBuySell) UnmarshalText(b []byte) error { + *x = TransakBuySell(TransakBuySell_value[string(b)]) + return nil +} + +func (x *TransakBuySell) Is(values ...TransakBuySell) bool { + if x == nil { + return false + } + for _, v := range values { + if *x == v { + return true + } + } + return false +} + type Version struct { WebrpcVersion string `json:"webrpcVersion"` SchemaVersion string `json:"schemaVersion"` @@ -784,6 +829,155 @@ type LootboxContent struct { Amounts [][]string `json:"amounts"` } +type TransakCountry struct { + Alpha2 string `json:"alpha2"` + Alpha3 string `json:"alpha3"` + IsAllowed bool `json:"isAllowed"` + IsLightKycAllowed bool `json:"isLightKycAllowed"` + Name string `json:"name"` + CurrencyCode string `json:"currencyCode"` + SupportedDocuments []string `json:"supportedDocuments"` + Partners []*TransakPartner `json:"partners"` + States []*TransakState `json:"states"` +} + +type TransakPartner struct { + Name string `json:"name"` + IsCardPayment bool `json:"isCardPayment"` + CurrencyCode string `json:"currencyCode"` +} + +type TransakState struct { + Code string `json:"code"` + Name string `json:"name"` + IsAllowed bool `json:"isAllowed"` +} + +type TransakCryptoCurrency struct { + ID string `json:"id"` + CoinID string `json:"coinID"` + Address string `json:"address"` + AddressAdditionalData interface{} `json:"addressAdditionalData"` + CreatedAt time.Time `json:"createdAt"` + Decimals int `json:"decimals"` + Image *TransakCryptoCurrencyImage `json:"image"` + IsAllowed bool `json:"isAllowed"` + IsPopular bool `json:"isPopular"` + IsStable bool `json:"isStable"` + Name string `json:"name"` + RoundOff int `json:"roundOff"` + Symbol string `json:"symbol"` + IsIgnorePriceVerification bool `json:"isIgnorePriceVerification"` + ImageBk *TransakCryptoCurrencyImage `json:"imageBk"` + KycCountriesNotSupported []string `json:"kycCountriesNotSupported"` + Network *TransakCryptoCurrencyNetwork `json:"network"` + UniqueID string `json:"uniqueID"` + TokenType string `json:"tokenType"` + TokenIdentifier string `json:"tokenIdentifier"` + IsPayInAllowed bool `json:"isPayInAllowed"` + IsSuspended bool `json:"isSuspended"` +} + +type TransakCryptoCurrencyImage struct { + Large string `json:"large"` + Small string `json:"small"` + Thumb string `json:"thumb"` +} + +type TransakCryptoCurrencyNetwork struct { + Name string `json:"name"` + FiatCurrenciesNotSupported []interface{} `json:"fiatCurrenciesNotSupported"` + ChainID string `json:"chainID"` +} + +type TransakCryptoCurrencyNetworkFiatNotSupported struct { + FiatCurrency string `json:"fiatCurrency"` + PaymentMethod string `json:"paymentMethod"` +} + +type TransakFiatCurrency struct { + Symbol string `json:"symbol"` + SupportingCountries []string `json:"supportingCountries"` + LogoSymbol string `json:"logoSymbol"` + Name string `json:"name"` + PaymentOptions []*TransakFiatCurrencyPaymentOption `json:"paymentOptions"` + IsPopular bool `json:"isPopular"` + IsAllowed bool `json:"isAllowed"` + RoundOff int `json:"roundOff"` + IsPayOutAllowed bool `json:"isPayOutAllowed"` + DefaultCountryForNFT string `json:"defaultCountryForNFT"` + Icon string `json:"icon"` + DisplayMessage string `json:"displayMessage"` +} + +type TransakFiatCurrencyPaymentOption struct { + Name string `json:"name"` + ID string `json:"id"` + IsNftAllowed bool `json:"isNftAllowed"` + IsNonCustodial bool `json:"isNonCustodial"` + ProcessingTime string `json:"processingTime"` + DisplayText bool `json:"displayText"` + Icon string `json:"icon"` + LimitCurrency string `json:"limitCurrency"` + IsActive bool `json:"isActive"` + Provider string `json:"provider"` + MaxAmount int `json:"maxAmount"` + MinAmount int `json:"minAmount"` + DefaultAmount int `json:"defaultAmount"` + IsConverted bool `json:"isConverted"` + VisaPayoutCountries []string `json:"visaPayoutCountries"` + MastercardPayoutCountries []string `json:"mastercardPayoutCountries"` + IsPayOutAllowed bool `json:"isPayOutAllowed"` + MinAmountForPayOut int `json:"minAmountForPayOut"` + MaxAmountForPayOut int `json:"maxAmountForPayOut"` + DefaultAmountForPayOut int `json:"defaultAmountForPayOut"` +} + +type TransakPrice struct { + QuoteID string `json:"quoteID"` + ConversionPrice float64 `json:"conversionPrice"` + MarketConversionPrice float64 `json:"marketConversionPrice"` + Slippage int `json:"slippage"` + FiatCurrency string `json:"fiatCurrency"` + CryptoCurrency string `json:"cryptoCurrency"` + PaymentMethod string `json:"paymentMethod"` + FiatAmount float64 `json:"fiatAmount"` + CryptoAmount float64 `json:"cryptoAmount"` + IsBuyOrSell string `json:"isBuyOrSell"` + Network string `json:"network"` + FeeDecimal float64 `json:"feeDecimal"` + TotalFee float64 `json:"totalFee"` + FeeBreakdown []*TransakPriceFeeBreakdown `json:"feeBreakdown"` + Nonce int `json:"nonce"` + CryptoLiquidityProvider string `json:"cryptoLiquidityProvider"` + Notes []interface{} `json:"notes"` +} + +type TransakPriceFeeBreakdown struct { + Name string `json:"Name"` + Value float64 `json:"Value"` + ID string `json:"ID"` + Ids []string `json:"Ids"` +} + +type TransakGetPriceParams struct { + // required Defaults to GBP + FiatCurrency string `json:"fiatCurrency"` + // required Defaults to ETH + CryptoCurrency string `json:"cryptoCurrency"` + // required Defaults to BUY + IsBuyOrSell TransakBuySell `json:"isBuyOrSell"` + // required Defaults to ethereum + Network string `json:"network"` + // required Defaults to credit_debit_card Payment method. You can get the payment method id from getFiatCurrencies endpoint + PaymentMethod string `json:"paymentMethod"` + // Defaults to 100 + FiatAmount float64 `json:"fiatAmount"` + CryptoAmount float64 `json:"cryptoAmount"` + // ISO 3166 Alpha-2 Country Code + QuoteCountryCode string `json:"quoteCountryCode"` +} + var methods = map[string]method{ "/rpc/API/Ping": { Name: "Ping", @@ -990,6 +1184,26 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{}, }, + "/rpc/API/TransakGetCountries": { + Name: "TransakGetCountries", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/TransakGetCryptoCurrencies": { + Name: "TransakGetCryptoCurrencies", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/TransakGetFiatCurrencies": { + Name: "TransakGetFiatCurrencies", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/TransakGetPrice": { + Name: "TransakGetPrice", + Service: "API", + Annotations: map[string]string{}, + }, "/rpc/API/GetCoinPrices": { Name: "GetCoinPrices", Service: "API", @@ -1224,6 +1438,10 @@ var WebRPCServices = map[string][]string{ "GetSardineClientToken", "GetSardineNFTCheckoutToken", "GetSardineNFTCheckoutOrderStatus", + "TransakGetCountries", + "TransakGetCryptoCurrencies", + "TransakGetFiatCurrencies", + "TransakGetPrice", "GetCoinPrices", "GetCollectiblePrices", "GetExchangeRate", @@ -1334,6 +1552,10 @@ type API interface { GetSardineNFTCheckoutToken(ctx context.Context, params *SardineNFTCheckoutParams) (*SardineNFTCheckout, error) // Deprecated. Use SardineGetNFTCheckoutOrderStatus() instead. GetSardineNFTCheckoutOrderStatus(ctx context.Context, orderId string) (*SardineOrder, error) + TransakGetCountries(ctx context.Context) ([]*TransakCountry, error) + TransakGetCryptoCurrencies(ctx context.Context) ([]*TransakCryptoCurrency, error) + TransakGetFiatCurrencies(ctx context.Context) ([]*TransakFiatCurrency, error) + TransakGetPrice(ctx context.Context, params *TransakGetPriceParams) (*TransakPrice, error) // // Price Feed // @@ -1479,6 +1701,10 @@ type APIClient interface { GetSardineNFTCheckoutToken(ctx context.Context, params *SardineNFTCheckoutParams) (*SardineNFTCheckout, error) // Deprecated. Use SardineGetNFTCheckoutOrderStatus() instead. GetSardineNFTCheckoutOrderStatus(ctx context.Context, orderId string) (*SardineOrder, error) + TransakGetCountries(ctx context.Context) ([]*TransakCountry, error) + TransakGetCryptoCurrencies(ctx context.Context) ([]*TransakCryptoCurrency, error) + TransakGetFiatCurrencies(ctx context.Context) ([]*TransakFiatCurrency, error) + TransakGetPrice(ctx context.Context, params *TransakGetPriceParams) (*TransakPrice, error) // // Price Feed // @@ -1561,12 +1787,12 @@ const APIPathPrefix = "/rpc/API/" type aPIClient struct { client HTTPClient - urls [77]string + urls [81]string } func NewAPIClient(addr string, client HTTPClient) APIClient { prefix := urlBase(addr) + APIPathPrefix - urls := [77]string{ + urls := [81]string{ prefix + "Ping", prefix + "Version", prefix + "RuntimeStatus", @@ -1608,6 +1834,10 @@ func NewAPIClient(addr string, client HTTPClient) APIClient { prefix + "GetSardineClientToken", prefix + "GetSardineNFTCheckoutToken", prefix + "GetSardineNFTCheckoutOrderStatus", + prefix + "TransakGetCountries", + prefix + "TransakGetCryptoCurrencies", + prefix + "TransakGetFiatCurrencies", + prefix + "TransakGetPrice", prefix + "GetCoinPrices", prefix + "GetCollectiblePrices", prefix + "GetExchangeRate", @@ -2433,6 +2663,73 @@ func (c *aPIClient) GetSardineNFTCheckoutOrderStatus(ctx context.Context, orderI return out.Ret0, err } +func (c *aPIClient) TransakGetCountries(ctx context.Context) ([]*TransakCountry, error) { + out := struct { + Ret0 []*TransakCountry `json:"regions"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[41], nil, &out) + if resp != nil { + cerr := resp.Body.Close() + if err == nil && cerr != nil { + err = ErrWebrpcRequestFailed.WithCausef("failed to close response body: %w", cerr) + } + } + + return out.Ret0, err +} + +func (c *aPIClient) TransakGetCryptoCurrencies(ctx context.Context) ([]*TransakCryptoCurrency, error) { + out := struct { + Ret0 []*TransakCryptoCurrency `json:"currencies"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[42], nil, &out) + if resp != nil { + cerr := resp.Body.Close() + if err == nil && cerr != nil { + err = ErrWebrpcRequestFailed.WithCausef("failed to close response body: %w", cerr) + } + } + + return out.Ret0, err +} + +func (c *aPIClient) TransakGetFiatCurrencies(ctx context.Context) ([]*TransakFiatCurrency, error) { + out := struct { + Ret0 []*TransakFiatCurrency `json:"currencies"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[43], nil, &out) + if resp != nil { + cerr := resp.Body.Close() + if err == nil && cerr != nil { + err = ErrWebrpcRequestFailed.WithCausef("failed to close response body: %w", cerr) + } + } + + return out.Ret0, err +} + +func (c *aPIClient) TransakGetPrice(ctx context.Context, params *TransakGetPriceParams) (*TransakPrice, error) { + in := struct { + Arg0 *TransakGetPriceParams `json:"params"` + }{params} + out := struct { + Ret0 *TransakPrice `json:"price"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[44], in, &out) + if resp != nil { + cerr := resp.Body.Close() + if err == nil && cerr != nil { + err = ErrWebrpcRequestFailed.WithCausef("failed to close response body: %w", cerr) + } + } + + return out.Ret0, err +} + func (c *aPIClient) GetCoinPrices(ctx context.Context, tokens []*Token) ([]*TokenPrice, error) { in := struct { Arg0 []*Token `json:"tokens"` @@ -2441,7 +2738,7 @@ func (c *aPIClient) GetCoinPrices(ctx context.Context, tokens []*Token) ([]*Toke Ret0 []*TokenPrice `json:"tokenPrices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[41], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[45], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2460,7 +2757,7 @@ func (c *aPIClient) GetCollectiblePrices(ctx context.Context, tokens []*Token) ( Ret0 []*TokenPrice `json:"tokenPrices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[42], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[46], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2479,7 +2776,7 @@ func (c *aPIClient) GetExchangeRate(ctx context.Context, toCurrency string) (*Ex Ret0 *ExchangeRate `json:"exchangeRate"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[43], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[47], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2499,7 +2796,7 @@ func (c *aPIClient) MemoryStore(ctx context.Context, key string, value string) ( Ret0 bool `json:"ok"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[44], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[48], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2518,7 +2815,7 @@ func (c *aPIClient) MemoryLoad(ctx context.Context, key string) (string, error) Ret0 string `json:"value"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[45], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[49], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2534,7 +2831,7 @@ func (c *aPIClient) GetInviteInfo(ctx context.Context) (*InviteInfo, error) { Ret0 *InviteInfo `json:"inviteInfo"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[46], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[50], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2553,7 +2850,7 @@ func (c *aPIClient) IsValidAccessCode(ctx context.Context, accessCode string) (b Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[47], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[51], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2573,7 +2870,7 @@ func (c *aPIClient) InternalClaimAccessCode(ctx context.Context, address string, Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[48], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[52], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2593,7 +2890,7 @@ func (c *aPIClient) BlockNumberAtTime(ctx context.Context, chainId uint64, times Ret0 []uint64 `json:"blocks"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[49], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[53], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2615,7 +2912,7 @@ func (c *aPIClient) PaperSessionSecret(ctx context.Context, chainName string, co Ret0 string `json:"secret"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[50], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[54], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2637,7 +2934,7 @@ func (c *aPIClient) PaperSessionSecret2(ctx context.Context, chainName string, c Ret0 string `json:"secret"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[51], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[55], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2663,7 +2960,7 @@ func (c *aPIClient) LinkWallet(ctx context.Context, parentWalletAddress string, Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[52], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[56], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2685,7 +2982,7 @@ func (c *aPIClient) GetLinkedWallets(ctx context.Context, parentWalletAddress st Ret0 []*LinkedWallet `json:"linkedWallets"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[53], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[57], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2708,7 +3005,7 @@ func (c *aPIClient) RemoveLinkedWallet(ctx context.Context, parentWalletAddress Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[54], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[58], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2728,7 +3025,7 @@ func (c *aPIClient) GenerateWaaSVerificationURL(ctx context.Context, walletAddre Ret1 string `json:"verificationURL"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[55], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[59], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2750,7 +3047,7 @@ func (c *aPIClient) ValidateWaaSVerificationNonce(ctx context.Context, nonce str Ret0 string `json:"walletAddress"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[56], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[60], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2770,7 +3067,7 @@ func (c *aPIClient) ListAdoptedWallets(ctx context.Context, page *Page) (*Page, Ret1 []*AdoptedChildWallet `json:"wallets"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[57], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[61], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2793,7 +3090,7 @@ func (c *aPIClient) GetSwapPermit2Price(ctx context.Context, buyCurrencyAddress Ret0 *SwapPermit2Price `json:"swapPermit2Price"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[58], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[62], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2816,7 +3113,7 @@ func (c *aPIClient) GetSwapPermit2Prices(ctx context.Context, userAddress string Ret0 []*SwapPermit2Price `json:"swapPermit2Prices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[59], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[63], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2841,7 +3138,7 @@ func (c *aPIClient) GetSwapPermit2Quote(ctx context.Context, userAddress string, Ret0 *SwapPermit2Quote `json:"swapPermit2Quote"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[60], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[64], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2864,7 +3161,7 @@ func (c *aPIClient) GetSwapPrice(ctx context.Context, buyCurrencyAddress string, Ret0 *SwapPrice `json:"swapPrice"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[61], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[65], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2887,7 +3184,7 @@ func (c *aPIClient) GetSwapPrices(ctx context.Context, userAddress string, buyCu Ret0 []*SwapPrice `json:"swapPrices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[62], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[66], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2912,7 +3209,7 @@ func (c *aPIClient) GetSwapQuote(ctx context.Context, userAddress string, buyCur Ret0 *SwapQuote `json:"swapQuote"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[63], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[67], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2932,7 +3229,7 @@ func (c *aPIClient) IntentQuery(ctx context.Context, wallet string, precondition Ret0 []*IntentSolution `json:"solutions"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[64], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[68], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2948,7 +3245,7 @@ func (c *aPIClient) ListCurrencyGroups(ctx context.Context) ([]*CurrencyGroup, e Ret0 []*CurrencyGroup `json:"currencyGroups"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[65], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[69], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2967,7 +3264,7 @@ func (c *aPIClient) AddOffchainInventory(ctx context.Context, inventory *Offchai Ret0 uint64 `json:"inventoryId"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[66], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[70], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2986,7 +3283,7 @@ func (c *aPIClient) GetOffchainInventory(ctx context.Context, inventoryId uint64 Ret0 *OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[67], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[71], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3005,7 +3302,7 @@ func (c *aPIClient) ListOffchainInventories(ctx context.Context, projectId uint6 Ret0 []*OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[68], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[72], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3021,7 +3318,7 @@ func (c *aPIClient) UpdateOffchainInventory(ctx context.Context, inventory *Offc Arg0 *OffchainInventory `json:"inventory"` }{inventory} - resp, err := doHTTPRequest(ctx, c.client, c.urls[69], in, nil) + resp, err := doHTTPRequest(ctx, c.client, c.urls[73], in, nil) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3040,7 +3337,7 @@ func (c *aPIClient) DeleteOffchainInventory(ctx context.Context, inventoryId uin Ret0 bool `json:"ok"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[70], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[74], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3062,7 +3359,7 @@ func (c *aPIClient) RequestOffchainPayment(ctx context.Context, inventoryId uint Ret0 *PaymentResponse `json:"payment"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[71], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[75], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3083,7 +3380,7 @@ func (c *aPIClient) ListOffchainPayments(ctx context.Context, inventoryId uint64 Ret1 []*OffchainPayment `json:"payments"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[72], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[76], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3102,7 +3399,7 @@ func (c *aPIClient) SaveLootbox(ctx context.Context, lootbox *Lootbox) (string, Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[73], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[77], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3122,7 +3419,7 @@ func (c *aPIClient) GetLootbox(ctx context.Context, contractAddress string, chai Ret0 *Lootbox `json:"lootbox"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[74], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[78], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3142,7 +3439,7 @@ func (c *aPIClient) DeleteLootbox(ctx context.Context, contractAddress string, c Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[75], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[79], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3161,7 +3458,7 @@ func (c *aPIClient) UpdateLootboxContent(ctx context.Context, lootbox *Lootbox) Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[76], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[80], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil {