From bd98feb06692af9db783e8475d1160b293a65490 Mon Sep 17 00:00:00 2001 From: VojtechVitek <139342+VojtechVitek@users.noreply.github.com> Date: Wed, 13 Aug 2025 00:24:25 +0000 Subject: [PATCH 1/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 510 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 431 insertions(+), 79 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index d748c398..7f52554e 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85 +// sequence-api v0.4.0 3129ee0cac1b417bbac1774ce408cd8753c6ce78 // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "e4239870ee5f32736b2f3cc35ad37abb59d7fe85" + return "3129ee0cac1b417bbac1774ce408cd8753c6ce78" } type WebrpcGenVersions struct { @@ -232,6 +232,48 @@ func (x *SardineQuoteType) Is(values ...SardineQuoteType) bool { return false } +type GetLifiSwapRouteDirection uint8 + +const ( + GetLifiSwapRouteDirection_to GetLifiSwapRouteDirection = 1 + GetLifiSwapRouteDirection_from GetLifiSwapRouteDirection = 2 +) + +var GetLifiSwapRouteDirection_name = map[uint8]string{ + 1: "to", + 2: "from", +} + +var GetLifiSwapRouteDirection_value = map[string]uint8{ + "to": 1, + "from": 2, +} + +func (x GetLifiSwapRouteDirection) String() string { + return GetLifiSwapRouteDirection_name[uint8(x)] +} + +func (x GetLifiSwapRouteDirection) MarshalText() ([]byte, error) { + return []byte(GetLifiSwapRouteDirection_name[uint8(x)]), nil +} + +func (x *GetLifiSwapRouteDirection) UnmarshalText(b []byte) error { + *x = GetLifiSwapRouteDirection(GetLifiSwapRouteDirection_value[string(b)]) + return nil +} + +func (x *GetLifiSwapRouteDirection) Is(values ...GetLifiSwapRouteDirection) bool { + if x == nil { + return false + } + for _, v := range values { + if *x == v { + return true + } + } + return false +} + type TokenType uint8 const ( @@ -896,6 +938,17 @@ type LifiToken struct { LogoURI string `json:"logoUri"` } +type GetLifiSwapRouteParams struct { + Direction GetLifiSwapRouteDirection `json:"direction"` + // Required + ChainID uint64 `json:"chainId"` + // Required + WalletAddress prototyp.Hash `json:"walletAddress"` + // Required + TokenAddress prototyp.Hash `json:"tokenAddress"` + TokenAmount string `json:"tokenAmount"` +} + type LifiSwapRoute struct { FromChainID uint64 `json:"fromChainId"` ToChainID uint64 `json:"toChainId"` @@ -967,6 +1020,18 @@ type OffchainInventory struct { DeletedAt *time.Time `json:"-" db:"deleted_at,omitempty"` } +type CCTPTransfer struct { + ID string `json:"id"` + SourceTxHash string `json:"sourceTxHash"` + SourceChainID uint64 `json:"sourceChainId"` + DestinationChainID uint64 `json:"destinationChainId"` + Message string `json:"message"` + Attestation string `json:"attestation"` + Status string `json:"status"` + CreatedAt time.Time `json:"createdAt"` + UpdatedAt time.Time `json:"updatedAt"` +} + type OffchainPayment struct { ID uint64 `json:"id" db:"id,omitempty"` OffchainInventoryID uint64 `json:"offchainInventoryId" db:"offchain_inventory_id"` @@ -1003,12 +1068,14 @@ type Pack struct { ChainID uint64 `json:"chainId" db:"chain_id"` ProjectID uint64 `json:"projectId,omitempty" db:"project_id"` ContractAddress prototyp.Hash `json:"contractAddress" db:"contract_address"` + PackID string `json:"packId" db:"pack_id"` Content []*PackContent `json:"content" db:"content"` CreatedAt *time.Time `json:"createdAt,omitempty" db:"created_at,omitempty"` } type PackContent struct { TokenAddresses []string `json:"tokenAddresses"` + IsERC721 []bool `json:"isERC721"` TokenIds [][]string `json:"tokenIds"` Amounts [][]string `json:"amounts"` } @@ -1187,6 +1254,81 @@ type CheckoutOptions struct { OnRamp []CheckoutOptionOnRampProvider `json:"onRamp"` } +type FortePayCreateIntent struct { + Blockchain string `json:"blockchain"` + Buyer *FortePayBuyer `json:"buyer"` + Currency string `json:"currency"` + IdempotencyKey string `json:"idempotencyKey"` + Items []*FortePayItem `json:"items"` + Seller *FortePaySeller `json:"seller"` + TransactionType string `json:"transactionType"` +} + +type FortePayBuyer struct { + Wallet *FortePayWallet `json:"wallet"` + Email string `json:"email"` + ID string `json:"id"` +} + +type FortePaySeller struct { + Wallet *FortePayWallet `json:"wallet"` +} + +type FortePayWallet struct { + Address string `json:"address"` + Blockchain string `json:"blockchain"` +} + +type FortePayItem struct { + Amount string `json:"amount"` + ID string `json:"id"` + ImageURL string `json:"imageUrl"` + ListingData *FortePayItemListingData `json:"listingData"` + NFTData *FortePayItemNFTData `json:"nftData"` + MintData *FortePayItemMintData `json:"mintData"` + Title string `json:"title"` +} + +type FortePayItemListingData struct { + OrderHash string `json:"orderHash"` + Protocol string `json:"protocol"` + ProtocolAddress string `json:"protocolAddress"` + AuctionHouse string `json:"auctionHouse"` + TokenAddress string `json:"tokenAddress"` + Calldata string `json:"calldata"` + PayToAddress string `json:"payToAddress"` + StructuredCalldata interface{} `json:"structuredCalldata"` +} + +type FortePayItemNFTData struct { + ContractAddress string `json:"contractAddress"` + TokenID string `json:"tokenId"` +} + +type FortePayItemMintData struct { + Nonce string `json:"nonce"` + Protocol string `json:"protocol"` + ProtocolAddress string `json:"protocolAddress"` + Signature string `json:"signature"` + TokenIDs []string `json:"tokenIds"` + Calldata string `json:"calldata"` + PayToAddress string `json:"payToAddress"` + TokenContractAddress string `json:"tokenContractAddress"` + StructuredCalldata interface{} `json:"structuredCalldata"` +} + +type FortePayIntent struct { + Flow string `json:"flow"` + WidgetData string `json:"widgetData"` + PaymentIntentID string `json:"paymentIntentId"` + Notes []string `json:"notes"` +} + +type FortePaymentStatus struct { + PaymentIntentId string `json:"paymentIntentId"` + Status string `json:"status"` +} + var methods = map[string]method{ "/rpc/API/Ping": { Name: "Ping", @@ -1333,6 +1475,11 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{"public": ""}, }, + "/rpc/API/GetOnRampURL": { + Name: "GetOnRampURL", + Service: "API", + Annotations: map[string]string{}, + }, "/rpc/API/SardineGetClientToken": { Name: "SardineGetClientToken", Service: "API", @@ -1573,6 +1720,11 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{}, }, + "/rpc/API/GetPackIds": { + Name: "GetPackIds", + Service: "API", + Annotations: map[string]string{}, + }, "/rpc/API/DeletePack": { Name: "DeletePack", Service: "API", @@ -1583,6 +1735,11 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{}, }, + "/rpc/API/GetRevealTxData": { + Name: "GetRevealTxData", + Service: "API", + Annotations: map[string]string{}, + }, "/rpc/API/CheckoutOptionsPrimary": { Name: "CheckoutOptionsPrimary", Service: "API", @@ -1598,6 +1755,26 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{}, }, + "/rpc/API/FortePayCreateIntent": { + Name: "FortePayCreateIntent", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/FortePayGetPaymentStatuses": { + Name: "FortePayGetPaymentStatuses", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/GetCCTPTransfer": { + Name: "GetCCTPTransfer", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, + "/rpc/API/QueueCCTPTransfer": { + Name: "QueueCCTPTransfer", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, } func WebrpcMethods() map[string]method { @@ -1640,6 +1817,7 @@ var WebRPCServices = map[string][]string{ "IsValidMessageSignature", "IsValidTypedDataSignature", "IsValidETHAuthProof", + "GetOnRampURL", "SardineGetClientToken", "SardineGetNFTCheckoutToken", "SardineGetNFTCheckoutOrderStatus", @@ -1688,11 +1866,17 @@ var WebRPCServices = map[string][]string{ "ListOffchainPayments", "SavePack", "GetPack", + "GetPackIds", "DeletePack", "UpdatePackContent", + "GetRevealTxData", "CheckoutOptionsPrimary", "CheckoutOptionsSecondary", "CheckoutOptionsGetTransakContractID", + "FortePayCreateIntent", + "FortePayGetPaymentStatuses", + "GetCCTPTransfer", + "QueueCCTPTransfer", }, } @@ -1752,6 +1936,7 @@ type API interface { IsValidMessageSignature(ctx context.Context, chainId string, walletAddress string, message string, signature string) (bool, error) IsValidTypedDataSignature(ctx context.Context, chainId string, walletAddress string, typedData interface{}, signature string) (bool, error) IsValidETHAuthProof(ctx context.Context, chainId string, walletAddress string, ethAuthProofString string) (bool, error) + GetOnRampURL(ctx context.Context, chainId string) (string, error) SardineGetClientToken(ctx context.Context) (string, error) SardineGetNFTCheckoutToken(ctx context.Context, params *SardineNFTCheckoutParams) (*SardineNFTCheckout, error) SardineGetNFTCheckoutOrderStatus(ctx context.Context, orderId string) (*SardineOrder, error) @@ -1816,12 +2001,11 @@ type API interface { // WaaS child wallet adoption // ListAdoptedWallets(ctx context.Context, page *Page) (*Page, []*AdoptedChildWallet, error) - // - // Currency abstraction - // GetLifiChains(ctx context.Context) ([]uint64, error) GetLifiTokens(ctx context.Context, chainIds []uint64) ([]*Token, error) - GetLifiSwapRoutes(ctx context.Context, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) + // All parameters except `params` are deprecated. + // Use only the `params` object to pass values. + GetLifiSwapRoutes(ctx context.Context, params *GetLifiSwapRouteParams, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuoteParams) (*LifiSwapQuote, error) // // Inventory, payments and management @@ -1838,12 +2022,21 @@ type API interface { // Packs // SavePack(ctx context.Context, pack *Pack) (string, error) - GetPack(ctx context.Context, contractAddress string, chainId uint64) (*Pack, error) - DeletePack(ctx context.Context, contractAddress string, chainId uint64) (bool, error) + GetPack(ctx context.Context, contractAddress string, packId string, chainId uint64) (*Pack, error) + GetPackIds(ctx context.Context, contractAddress string, chainId uint64) ([]string, error) + DeletePack(ctx context.Context, contractAddress string, packId string, chainId uint64) (bool, error) UpdatePackContent(ctx context.Context, pack *Pack) (string, error) + GetRevealTxData(ctx context.Context, contractAddress string, packId string, chainId uint64, userAddress string) (string, error) CheckoutOptionsPrimary(ctx context.Context, chainId uint64, wallet string, contractAddress string, collectionAddress string, params []*CheckoutOptionsPrimaryParams) (*CheckoutOptions, error) CheckoutOptionsSecondary(ctx context.Context, chainId uint64, wallet string, params []*CheckoutOptionsSecondaryParams) (*CheckoutOptions, error) CheckoutOptionsGetTransakContractID(ctx context.Context, chainId uint64, contractAddress string) (string, error) + FortePayCreateIntent(ctx context.Context, intent *FortePayCreateIntent) (*FortePayIntent, error) + FortePayGetPaymentStatuses(ctx context.Context, paymentIntentIds []string) ([]*FortePaymentStatus, error) + // + // CCTP + // + GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransfer, error) + QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, metaTxHash *string, sourceChainId uint64, destinationChainId uint64) (*CCTPTransfer, error) } // @@ -1902,6 +2095,7 @@ type APIClient interface { IsValidMessageSignature(ctx context.Context, chainId string, walletAddress string, message string, signature string) (bool, error) IsValidTypedDataSignature(ctx context.Context, chainId string, walletAddress string, typedData interface{}, signature string) (bool, error) IsValidETHAuthProof(ctx context.Context, chainId string, walletAddress string, ethAuthProofString string) (bool, error) + GetOnRampURL(ctx context.Context, chainId string) (string, error) SardineGetClientToken(ctx context.Context) (string, error) SardineGetNFTCheckoutToken(ctx context.Context, params *SardineNFTCheckoutParams) (*SardineNFTCheckout, error) SardineGetNFTCheckoutOrderStatus(ctx context.Context, orderId string) (*SardineOrder, error) @@ -1966,12 +2160,11 @@ type APIClient interface { // WaaS child wallet adoption // ListAdoptedWallets(ctx context.Context, page *Page) (*Page, []*AdoptedChildWallet, error) - // - // Currency abstraction - // GetLifiChains(ctx context.Context) ([]uint64, error) GetLifiTokens(ctx context.Context, chainIds []uint64) ([]*Token, error) - GetLifiSwapRoutes(ctx context.Context, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) + // All parameters except `params` are deprecated. + // Use only the `params` object to pass values. + GetLifiSwapRoutes(ctx context.Context, params *GetLifiSwapRouteParams, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuoteParams) (*LifiSwapQuote, error) // // Inventory, payments and management @@ -1988,12 +2181,21 @@ type APIClient interface { // Packs // SavePack(ctx context.Context, pack *Pack) (string, error) - GetPack(ctx context.Context, contractAddress string, chainId uint64) (*Pack, error) - DeletePack(ctx context.Context, contractAddress string, chainId uint64) (bool, error) + GetPack(ctx context.Context, contractAddress string, packId string, chainId uint64) (*Pack, error) + GetPackIds(ctx context.Context, contractAddress string, chainId uint64) ([]string, error) + DeletePack(ctx context.Context, contractAddress string, packId string, chainId uint64) (bool, error) UpdatePackContent(ctx context.Context, pack *Pack) (string, error) + GetRevealTxData(ctx context.Context, contractAddress string, packId string, chainId uint64, userAddress string) (string, error) CheckoutOptionsPrimary(ctx context.Context, chainId uint64, wallet string, contractAddress string, collectionAddress string, params []*CheckoutOptionsPrimaryParams) (*CheckoutOptions, error) CheckoutOptionsSecondary(ctx context.Context, chainId uint64, wallet string, params []*CheckoutOptionsSecondaryParams) (*CheckoutOptions, error) CheckoutOptionsGetTransakContractID(ctx context.Context, chainId uint64, contractAddress string) (string, error) + FortePayCreateIntent(ctx context.Context, intent *FortePayCreateIntent) (*FortePayIntent, error) + FortePayGetPaymentStatuses(ctx context.Context, paymentIntentIds []string) ([]*FortePaymentStatus, error) + // + // CCTP + // + GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransfer, error) + QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, metaTxHash *string, sourceChainId uint64, destinationChainId uint64) (*CCTPTransfer, error) } // @@ -2004,12 +2206,12 @@ const APIPathPrefix = "/rpc/API/" type aPIClient struct { client HTTPClient - urls [82]string + urls [89]string } func NewAPIClient(addr string, client HTTPClient) APIClient { prefix := urlBase(addr) + APIPathPrefix - urls := [82]string{ + urls := [89]string{ prefix + "Ping", prefix + "Version", prefix + "RuntimeStatus", @@ -2039,6 +2241,7 @@ func NewAPIClient(addr string, client HTTPClient) APIClient { prefix + "IsValidMessageSignature", prefix + "IsValidTypedDataSignature", prefix + "IsValidETHAuthProof", + prefix + "GetOnRampURL", prefix + "SardineGetClientToken", prefix + "SardineGetNFTCheckoutToken", prefix + "SardineGetNFTCheckoutOrderStatus", @@ -2087,11 +2290,17 @@ func NewAPIClient(addr string, client HTTPClient) APIClient { prefix + "ListOffchainPayments", prefix + "SavePack", prefix + "GetPack", + prefix + "GetPackIds", prefix + "DeletePack", prefix + "UpdatePackContent", + prefix + "GetRevealTxData", prefix + "CheckoutOptionsPrimary", prefix + "CheckoutOptionsSecondary", prefix + "CheckoutOptionsGetTransakContractID", + prefix + "FortePayCreateIntent", + prefix + "FortePayGetPaymentStatuses", + prefix + "GetCCTPTransfer", + prefix + "QueueCCTPTransfer", } return &aPIClient{ client: client, @@ -2670,12 +2879,31 @@ func (c *aPIClient) IsValidETHAuthProof(ctx context.Context, chainId string, wal return out.Ret0, err } +func (c *aPIClient) GetOnRampURL(ctx context.Context, chainId string) (string, error) { + in := struct { + Arg0 string `json:"chainId"` + }{chainId} + out := struct { + Ret0 string `json:"url"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[29], 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) SardineGetClientToken(ctx context.Context) (string, error) { out := struct { Ret0 string `json:"token"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[29], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[30], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2694,7 +2922,7 @@ func (c *aPIClient) SardineGetNFTCheckoutToken(ctx context.Context, params *Sard Ret0 *SardineNFTCheckout `json:"resp"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[30], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[31], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2713,7 +2941,7 @@ func (c *aPIClient) SardineGetNFTCheckoutOrderStatus(ctx context.Context, orderI Ret0 *SardineOrder `json:"resp"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[31], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[32], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2729,7 +2957,7 @@ func (c *aPIClient) SardineGetSupportedRegions(ctx context.Context) ([]*SardineR Ret0 []*SardineRegion `json:"regions"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[32], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[33], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2745,7 +2973,7 @@ func (c *aPIClient) SardineGetSupportedFiatCurrencies(ctx context.Context) ([]*S Ret0 []*SardineFiatCurrency `json:"tokens"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[33], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[34], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2761,7 +2989,7 @@ func (c *aPIClient) SardineGetSupportedTokens(ctx context.Context) ([]*SardineSu Ret0 []*SardineSupportedToken `json:"tokens"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[34], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[35], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2781,7 +3009,7 @@ func (c *aPIClient) SardineGetSupportedTokenForSwap(ctx context.Context, network Ret0 *SardineSupportedTokenForSwap `json:"token"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[35], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[36], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2797,7 +3025,7 @@ func (c *aPIClient) SardineGetEnabledTokens(ctx context.Context) ([]*SardineEnab Ret0 []*SardineEnabledToken `json:"tokens"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[36], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[37], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2816,7 +3044,7 @@ func (c *aPIClient) SardineGetQuote(ctx context.Context, params *SardineGetQuote Ret0 *SardineQuote `json:"quote"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[37], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[38], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2832,7 +3060,7 @@ func (c *aPIClient) GetSardineClientToken(ctx context.Context) (string, error) { Ret0 string `json:"token"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[38], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[39], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2851,7 +3079,7 @@ func (c *aPIClient) GetSardineNFTCheckoutToken(ctx context.Context, params *Sard Ret0 *SardineNFTCheckout `json:"resp"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[39], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[40], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2870,7 +3098,7 @@ func (c *aPIClient) GetSardineNFTCheckoutOrderStatus(ctx context.Context, orderI Ret0 *SardineOrder `json:"resp"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[40], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[41], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2886,7 +3114,7 @@ func (c *aPIClient) TransakGetCountries(ctx context.Context) ([]*TransakCountry, Ret0 []*TransakCountry `json:"regions"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[41], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[42], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2902,7 +3130,7 @@ func (c *aPIClient) TransakGetCryptoCurrencies(ctx context.Context) ([]*TransakC Ret0 []*TransakCryptoCurrency `json:"currencies"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[42], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[43], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2918,7 +3146,7 @@ func (c *aPIClient) TransakGetFiatCurrencies(ctx context.Context) ([]*TransakFia Ret0 []*TransakFiatCurrency `json:"currencies"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[43], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[44], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2937,7 +3165,7 @@ func (c *aPIClient) TransakGetPrice(ctx context.Context, params *TransakGetPrice Ret0 *TransakPrice `json:"price"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[44], 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 { @@ -2953,7 +3181,7 @@ func (c *aPIClient) TransakGetSupportedNFTCheckoutChains(ctx context.Context) ([ Ret0 []*TransakChain `json:"chains"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[45], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[46], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -2972,7 +3200,7 @@ func (c *aPIClient) GetCoinPrices(ctx context.Context, tokens []*Token) ([]*Toke Ret0 []*TokenPrice `json:"tokenPrices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[46], 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 { @@ -2991,7 +3219,7 @@ func (c *aPIClient) GetCollectiblePrices(ctx context.Context, tokens []*Token) ( Ret0 []*TokenPrice `json:"tokenPrices"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[47], 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 { @@ -3010,7 +3238,7 @@ func (c *aPIClient) GetExchangeRate(ctx context.Context, toCurrency string) (*Ex Ret0 *ExchangeRate `json:"exchangeRate"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[48], 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 { @@ -3030,7 +3258,7 @@ func (c *aPIClient) MemoryStore(ctx context.Context, key string, value string) ( Ret0 bool `json:"ok"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[49], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[50], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3049,7 +3277,7 @@ func (c *aPIClient) MemoryLoad(ctx context.Context, key string) (string, error) Ret0 string `json:"value"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[50], 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 { @@ -3065,7 +3293,7 @@ func (c *aPIClient) GetInviteInfo(ctx context.Context) (*InviteInfo, error) { Ret0 *InviteInfo `json:"inviteInfo"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[51], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[52], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3084,7 +3312,7 @@ func (c *aPIClient) IsValidAccessCode(ctx context.Context, accessCode string) (b Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[52], 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 { @@ -3104,7 +3332,7 @@ func (c *aPIClient) InternalClaimAccessCode(ctx context.Context, address string, Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[53], 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 { @@ -3124,7 +3352,7 @@ func (c *aPIClient) BlockNumberAtTime(ctx context.Context, chainId uint64, times Ret0 []uint64 `json:"blocks"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[54], 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 { @@ -3146,7 +3374,7 @@ func (c *aPIClient) PaperSessionSecret(ctx context.Context, chainName string, co Ret0 string `json:"secret"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[55], 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 { @@ -3168,7 +3396,7 @@ func (c *aPIClient) PaperSessionSecret2(ctx context.Context, chainName string, c Ret0 string `json:"secret"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[56], 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 { @@ -3194,7 +3422,7 @@ func (c *aPIClient) LinkWallet(ctx context.Context, parentWalletAddress string, Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[57], 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 { @@ -3216,7 +3444,7 @@ func (c *aPIClient) GetLinkedWallets(ctx context.Context, parentWalletAddress st Ret0 []*LinkedWallet `json:"linkedWallets"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[58], 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 { @@ -3239,7 +3467,7 @@ func (c *aPIClient) RemoveLinkedWallet(ctx context.Context, parentWalletAddress Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[59], 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 { @@ -3259,7 +3487,7 @@ func (c *aPIClient) GenerateWaaSVerificationURL(ctx context.Context, walletAddre Ret1 string `json:"verificationURL"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[60], 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 { @@ -3281,7 +3509,7 @@ func (c *aPIClient) ValidateWaaSVerificationNonce(ctx context.Context, nonce str Ret0 string `json:"walletAddress"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[61], 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 { @@ -3301,7 +3529,7 @@ func (c *aPIClient) ListAdoptedWallets(ctx context.Context, page *Page) (*Page, Ret1 []*AdoptedChildWallet `json:"wallets"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[62], 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 { @@ -3317,7 +3545,7 @@ func (c *aPIClient) GetLifiChains(ctx context.Context) ([]uint64, error) { Ret0 []uint64 `json:"chains"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[63], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[64], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3336,7 +3564,7 @@ func (c *aPIClient) GetLifiTokens(ctx context.Context, chainIds []uint64) ([]*To Ret0 []*Token `json:"tokens"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[64], 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 { @@ -3347,18 +3575,19 @@ func (c *aPIClient) GetLifiTokens(ctx context.Context, chainIds []uint64) ([]*To return out.Ret0, err } -func (c *aPIClient) GetLifiSwapRoutes(ctx context.Context, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) { +func (c *aPIClient) GetLifiSwapRoutes(ctx context.Context, params *GetLifiSwapRouteParams, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) { in := struct { - Arg0 uint64 `json:"chainId"` - Arg1 string `json:"toTokenAddress"` - Arg2 string `json:"toTokenAmount"` - Arg3 string `json:"walletAddress"` - }{chainId, toTokenAddress, toTokenAmount, walletAddress} + Arg0 *GetLifiSwapRouteParams `json:"params"` + Arg1 uint64 `json:"chainId"` + Arg2 string `json:"toTokenAddress"` + Arg3 string `json:"toTokenAmount"` + Arg4 string `json:"walletAddress"` + }{params, chainId, toTokenAddress, toTokenAmount, walletAddress} out := struct { Ret0 []*LifiSwapRoute `json:"routes"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[65], 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 { @@ -3377,7 +3606,7 @@ func (c *aPIClient) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuo Ret0 *LifiSwapQuote `json:"quote"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[66], 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 { @@ -3393,7 +3622,7 @@ func (c *aPIClient) ListCurrencyGroups(ctx context.Context) ([]*CurrencyGroup, e Ret0 []*CurrencyGroup `json:"currencyGroups"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[67], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[68], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3412,7 +3641,7 @@ func (c *aPIClient) AddOffchainInventory(ctx context.Context, inventory *Offchai Ret0 uint64 `json:"inventoryId"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[68], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[69], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3431,7 +3660,7 @@ func (c *aPIClient) GetOffchainInventory(ctx context.Context, inventoryId uint64 Ret0 *OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[69], 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 { @@ -3450,7 +3679,7 @@ func (c *aPIClient) ListOffchainInventories(ctx context.Context, projectId uint6 Ret0 []*OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[70], 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 { @@ -3466,7 +3695,7 @@ func (c *aPIClient) UpdateOffchainInventory(ctx context.Context, inventory *Offc Arg0 *OffchainInventory `json:"inventory"` }{inventory} - resp, err := doHTTPRequest(ctx, c.client, c.urls[71], in, nil) + resp, err := doHTTPRequest(ctx, c.client, c.urls[72], in, nil) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3485,7 +3714,7 @@ func (c *aPIClient) DeleteOffchainInventory(ctx context.Context, inventoryId uin Ret0 bool `json:"ok"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[72], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[73], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3507,7 +3736,7 @@ func (c *aPIClient) RequestOffchainPayment(ctx context.Context, inventoryId uint Ret0 *PaymentResponse `json:"payment"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[73], 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 { @@ -3528,7 +3757,7 @@ func (c *aPIClient) ListOffchainPayments(ctx context.Context, inventoryId uint64 Ret1 []*OffchainPayment `json:"payments"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[74], 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 { @@ -3547,7 +3776,7 @@ func (c *aPIClient) SavePack(ctx context.Context, pack *Pack) (string, error) { Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[75], 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 { @@ -3558,16 +3787,17 @@ func (c *aPIClient) SavePack(ctx context.Context, pack *Pack) (string, error) { return out.Ret0, err } -func (c *aPIClient) GetPack(ctx context.Context, contractAddress string, chainId uint64) (*Pack, error) { +func (c *aPIClient) GetPack(ctx context.Context, contractAddress string, packId string, chainId uint64) (*Pack, error) { in := struct { Arg0 string `json:"contractAddress"` - Arg1 uint64 `json:"chainId"` - }{contractAddress, chainId} + Arg1 string `json:"packId"` + Arg2 uint64 `json:"chainId"` + }{contractAddress, packId, chainId} out := struct { Ret0 *Pack `json:"pack"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[76], 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 { @@ -3578,16 +3808,37 @@ func (c *aPIClient) GetPack(ctx context.Context, contractAddress string, chainId return out.Ret0, err } -func (c *aPIClient) DeletePack(ctx context.Context, contractAddress string, chainId uint64) (bool, error) { +func (c *aPIClient) GetPackIds(ctx context.Context, contractAddress string, chainId uint64) ([]string, error) { in := struct { Arg0 string `json:"contractAddress"` Arg1 uint64 `json:"chainId"` }{contractAddress, chainId} + out := struct { + Ret0 []string `json:"packIds"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[78], 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) DeletePack(ctx context.Context, contractAddress string, packId string, chainId uint64) (bool, error) { + in := struct { + Arg0 string `json:"contractAddress"` + Arg1 string `json:"packId"` + Arg2 uint64 `json:"chainId"` + }{contractAddress, packId, chainId} out := struct { Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[77], 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 { @@ -3606,7 +3857,29 @@ func (c *aPIClient) UpdatePackContent(ctx context.Context, pack *Pack) (string, Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[78], 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 { + err = ErrWebrpcRequestFailed.WithCausef("failed to close response body: %w", cerr) + } + } + + return out.Ret0, err +} + +func (c *aPIClient) GetRevealTxData(ctx context.Context, contractAddress string, packId string, chainId uint64, userAddress string) (string, error) { + in := struct { + Arg0 string `json:"contractAddress"` + Arg1 string `json:"packId"` + Arg2 uint64 `json:"chainId"` + Arg3 string `json:"userAddress"` + }{contractAddress, packId, chainId, userAddress} + out := struct { + Ret0 string `json:"txData"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[81], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3629,7 +3902,7 @@ func (c *aPIClient) CheckoutOptionsPrimary(ctx context.Context, chainId uint64, Ret0 *CheckoutOptions `json:"options"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[79], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[82], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3650,7 +3923,7 @@ func (c *aPIClient) CheckoutOptionsSecondary(ctx context.Context, chainId uint64 Ret0 *CheckoutOptions `json:"options"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[80], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[83], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3670,7 +3943,86 @@ func (c *aPIClient) CheckoutOptionsGetTransakContractID(ctx context.Context, cha Ret0 string `json:"contractId"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[81], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[84], 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) FortePayCreateIntent(ctx context.Context, intent *FortePayCreateIntent) (*FortePayIntent, error) { + in := struct { + Arg0 *FortePayCreateIntent `json:"intent"` + }{intent} + out := struct { + Ret0 *FortePayIntent `json:"resp"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[85], 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) FortePayGetPaymentStatuses(ctx context.Context, paymentIntentIds []string) ([]*FortePaymentStatus, error) { + in := struct { + Arg0 []string `json:"paymentIntentIds"` + }{paymentIntentIds} + out := struct { + Ret0 []*FortePaymentStatus `json:"statuses"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[86], 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) GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransfer, error) { + in := struct { + Arg0 string `json:"id"` + }{id} + out := struct { + Ret0 *CCTPTransfer `json:"transfer"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[87], 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) QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, metaTxHash *string, sourceChainId uint64, destinationChainId uint64) (*CCTPTransfer, error) { + in := struct { + Arg0 *string `json:"sourceTxHash"` + Arg1 *string `json:"metaTxHash"` + Arg2 uint64 `json:"sourceChainId"` + Arg3 uint64 `json:"destinationChainId"` + }{sourceTxHash, metaTxHash, sourceChainId, destinationChainId} + out := struct { + Ret0 *CCTPTransfer `json:"transfer"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[88], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { From 0ec80846bfcb731f784ed5cb8cd2141aada4096b Mon Sep 17 00:00:00 2001 From: taylanpince <12650+taylanpince@users.noreply.github.com> Date: Mon, 18 Aug 2025 07:21:57 +0000 Subject: [PATCH 2/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 326 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 284 insertions(+), 42 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 7f52554e..998729f1 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 3129ee0cac1b417bbac1774ce408cd8753c6ce78 +// sequence-api v0.4.0 01e4e5d5ce5e7b85514f2db2fb5b346229db727c // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "3129ee0cac1b417bbac1774ce408cd8753c6ce78" + return "01e4e5d5ce5e7b85514f2db2fb5b346229db727c" } type WebrpcGenVersions struct { @@ -364,6 +364,34 @@ func (x *TransakBuySell) Is(values ...TransakBuySell) bool { return false } +type TradeType string + +const ( + TradeType_EXACT_INPUT TradeType = "EXACT_INPUT" + TradeType_EXACT_OUTPUT TradeType = "EXACT_OUTPUT" +) + +func (x TradeType) MarshalText() ([]byte, error) { + return []byte(x), nil +} + +func (x *TradeType) UnmarshalText(b []byte) error { + *x = TradeType(string(b)) + return nil +} + +func (x *TradeType) Is(values ...TradeType) bool { + if x == nil { + return false + } + for _, v := range values { + if *x == v { + return true + } + } + return false +} + type CheckoutOptionCrypto uint32 const ( @@ -626,6 +654,49 @@ type Friend struct { CreatedAt *time.Time `json:"createdAt,omitempty" db:"created_at,omitempty"` } +// From: `0xsequence/relayer`: https://github.com/0xsequence/relayer/blob/2c695b820970c68c57bfe71810f469412cdec675/proto/relayer.ridl#L502 +// TODO: rename this to MetaTxnRaw (eventually), we can leave it for now to not break compat +// or name it, MetaTxnArgs ..? +type MetaTxn struct { + ID string `json:"id"` + ChainId prototyp.BigInt `json:"chainId"` + WalletAddress string `json:"walletAddress" db:"wallet_address"` + // TODO (later): rename this to `to: string` + Contract string `json:"contract" db:"to_address"` + // TODO: rename to 'execdata' + Input string `json:"input" db:"tx_data"` +} + +type Call struct { + To prototyp.Hash `json:"to"` + Value prototyp.BigInt `json:"value"` + Data prototyp.Hash `json:"data"` + GasLimit prototyp.BigInt `json:"gasLimit"` + DelegateCall *bool `json:"delegateCall"` + OnlyFallback *bool `json:"onlyFallback"` + BehaviorOnError *uint8 `json:"behaviorOnError"` +} + +type IntentCallsPayload struct { + ChainId prototyp.BigInt `json:"chainId"` + Space prototyp.BigInt `json:"space"` + Nonce prototyp.BigInt `json:"nonce"` + Calls []*Call `json:"calls"` +} + +// IntentConfig +type IntentConfig struct { + ID uint64 `json:"id" db:"id,omitempty"` + ConfigHash prototyp.Hash `json:"configHash" db:"config_hash"` + OriginIntentAddress prototyp.Hash `json:"originIntentAddress" db:"origin_intent_address"` + DestinationIntentAddress prototyp.Hash `json:"destinationIntentAddress" db:"destination_intent_address"` + MainSigner prototyp.Hash `json:"mainSigner" db:"main_signer"` + Calls prototyp.JSONString `json:"calls" db:"calls"` + Preconditions prototyp.JSONString `json:"preconditions" db:"preconditions"` + UpdatedAt *time.Time `json:"updatedAt,omitempty" db:"updated_at,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty" db:"created_at,omitempty"` +} + // InviteCode type InviteCode struct { Code string `json:"-" db:"code"` @@ -664,29 +735,28 @@ type TupleComponent struct { Value interface{} `json:"value"` } -type IntentPrecondition struct { - Type string `json:"type"` - ChainID prototyp.BigInt `json:"chainId"` - Data interface{} `json:"data"` +type AddressOverrides struct { + TrailsLiFiSapientSignerAddress *string `json:"trailsLiFiSapientSignerAddress"` + TrailsRelaySapientSignerAddress *string `json:"trailsRelaySapientSignerAddress"` + TrailsCCTPV2SapientSignerAddress *string `json:"trailsCCTPV2SapientSignerAddress"` } -type IntentSolution struct { - Transactions []*Transactions `json:"transactions"` +type TakerFee struct { + Address prototyp.Hash `json:"address"` + Bps uint64 `json:"bps"` } -type Transactions struct { - ChainID prototyp.BigInt `json:"chainId"` - Transactions []*Transaction `json:"transactions"` - Preconditions []*IntentPrecondition `json:"preconditions,omitempty"` +type OriginCall struct { + ChainId prototyp.BigInt `json:"chainId"` + To string `json:"to"` + TransactionData string `json:"transactionData"` + TransactionValue prototyp.BigInt `json:"transactionValue"` } -type Transaction struct { - DelegateCall bool `json:"delegateCall"` - RevertOnError bool `json:"revertOnError"` - GasLimit prototyp.BigInt `json:"gasLimit"` - Target prototyp.Hash `json:"target"` - Value prototyp.BigInt `json:"value"` - Data prototyp.Hash `json:"data"` +type IntentPrecondition struct { + Type string `json:"type"` + ChainId prototyp.BigInt `json:"chainId"` + Data interface{} `json:"data"` } type UserStorage struct { @@ -1329,6 +1399,62 @@ type FortePaymentStatus struct { Status string `json:"status"` } +type CrossChainFee struct { + ProviderFee prototyp.BigInt `json:"providerFee"` + TrailsSwapFee prototyp.BigInt `json:"trailsSwapFee"` + ProviderFeeUSD float64 `json:"providerFeeUSD"` + TrailsSwapFeeUSD float64 `json:"trailsSwapFeeUSD"` + TotalFeeAmount prototyp.BigInt `json:"totalFeeAmount"` + TotalFeeUSD float64 `json:"totalFeeUSD"` +} + +type MetaTxnFeeDetail struct { + MetaTxnID string `json:"metaTxnID"` + EstimatedGasLimit prototyp.BigInt `json:"estimatedGasLimit"` + FeeNative prototyp.BigInt `json:"feeNative"` +} + +type ChainExecuteQuote struct { + ChainId prototyp.BigInt `json:"chainId"` + TotalGasLimit prototyp.BigInt `json:"totalGasLimit"` + GasPrice prototyp.BigInt `json:"gasPrice"` + TotalFeeAmount prototyp.BigInt `json:"totalFeeAmount"` + NativeTokenSymbol string `json:"nativeTokenSymbol"` + NativeTokenPrice float64 `json:"nativeTokenPrice"` + MetaTxnFeeDetails []*MetaTxnFeeDetail `json:"metaTxnFeeDetails"` + TotalFeeUSD float64 `json:"totalFeeUSD"` +} + +type ExecuteQuote struct { + ChainQuotes []*ChainExecuteQuote `json:"chainQuotes"` +} + +type TrailsFee struct { + ExecuteQuote *ExecuteQuote `json:"executeQuote"` + CrossChainFee *CrossChainFee `json:"crossChainFee"` + TakerFeeAmount prototyp.BigInt `json:"takerFeeAmount"` + TakerFeeUSD *float64 `json:"takerFeeUSD"` + TrailsFixedFeeUSD float64 `json:"trailsFixedFeeUSD"` + FeeToken prototyp.Hash `json:"feeToken"` + OriginTokenTotalAmount prototyp.BigInt `json:"originTokenTotalAmount"` + TotalFeeAmount prototyp.BigInt `json:"totalFeeAmount"` + TotalFeeUSD float64 `json:"totalFeeUSD"` + QuoteProvider *string `json:"quoteProvider"` +} + +type IntentQuote struct { + FromAmount prototyp.BigInt `json:"fromAmount"` + FromAmountMin prototyp.BigInt `json:"fromAmountMin"` + ToAmount prototyp.BigInt `json:"toAmount"` + ToAmountMin prototyp.BigInt `json:"toAmountMin"` + PriceImpact float64 `json:"priceImpact"` + PriceImpactUsd string `json:"priceImpactUsd"` + MaxSlippage float64 `json:"maxSlippage"` + QuoteProvider string `json:"quoteProvider"` + QuoteProviderRequestId string `json:"quoteProviderRequestId"` + QuoteProviderFeeUsd string `json:"quoteProviderFeeUsd"` +} + var methods = map[string]method{ "/rpc/API/Ping": { Name: "Ping", @@ -1670,6 +1796,21 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{"public": ""}, }, + "/rpc/API/GetIntentCallsPayloads": { + Name: "GetIntentCallsPayloads", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/CommitIntentConfig": { + Name: "CommitIntentConfig", + Service: "API", + Annotations: map[string]string{}, + }, + "/rpc/API/GetIntentConfig": { + Name: "GetIntentConfig", + Service: "API", + Annotations: map[string]string{}, + }, "/rpc/API/ListCurrencyGroups": { Name: "ListCurrencyGroups", Service: "API", @@ -1856,6 +1997,9 @@ var WebRPCServices = map[string][]string{ "GetLifiTokens", "GetLifiSwapRoutes", "GetLifiSwapQuote", + "GetIntentCallsPayloads", + "CommitIntentConfig", + "GetIntentConfig", "ListCurrencyGroups", "AddOffchainInventory", "GetOffchainInventory", @@ -2008,6 +2152,12 @@ type API interface { GetLifiSwapRoutes(ctx context.Context, params *GetLifiSwapRouteParams, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuoteParams) (*LifiSwapQuote, error) // + // Chain abstraction + // + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) + CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) + GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) + // // Inventory, payments and management // ListCurrencyGroups(ctx context.Context) ([]*CurrencyGroup, error) @@ -2167,6 +2317,12 @@ type APIClient interface { GetLifiSwapRoutes(ctx context.Context, params *GetLifiSwapRouteParams, chainId uint64, toTokenAddress string, toTokenAmount string, walletAddress string) ([]*LifiSwapRoute, error) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuoteParams) (*LifiSwapQuote, error) // + // Chain abstraction + // + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) + CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) + GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) + // // Inventory, payments and management // ListCurrencyGroups(ctx context.Context) ([]*CurrencyGroup, error) @@ -2206,12 +2362,12 @@ const APIPathPrefix = "/rpc/API/" type aPIClient struct { client HTTPClient - urls [89]string + urls [92]string } func NewAPIClient(addr string, client HTTPClient) APIClient { prefix := urlBase(addr) + APIPathPrefix - urls := [89]string{ + urls := [92]string{ prefix + "Ping", prefix + "Version", prefix + "RuntimeStatus", @@ -2280,6 +2436,9 @@ func NewAPIClient(addr string, client HTTPClient) APIClient { prefix + "GetLifiTokens", prefix + "GetLifiSwapRoutes", prefix + "GetLifiSwapQuote", + prefix + "GetIntentCallsPayloads", + prefix + "CommitIntentConfig", + prefix + "GetIntentConfig", prefix + "ListCurrencyGroups", prefix + "AddOffchainInventory", prefix + "GetOffchainInventory", @@ -3617,12 +3776,95 @@ func (c *aPIClient) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuo return out.Ret0, err } +func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) { + in := struct { + Arg0 string `json:"userAddress"` + Arg1 uint64 `json:"destinationChainId"` + Arg2 string `json:"destinationTokenAddress"` + Arg3 string `json:"destinationTokenAmount"` + Arg4 string `json:"destinationToAddress"` + Arg5 uint64 `json:"originChainId"` + Arg6 string `json:"originTokenAddress"` + Arg7 string `json:"originTokenAmount"` + Arg8 *string `json:"destinationCallData"` + Arg9 *string `json:"destinationCallValue"` + Arg10 *string `json:"provider"` + Arg11 *AddressOverrides `json:"addressOverrides"` + Arg12 *string `json:"destinationSalt"` + Arg13 *TakerFee `json:"takerFee"` + Arg14 *float64 `json:"slippageTolerance"` + Arg15 *TradeType `json:"tradeType"` + }{userAddress, destinationChainId, destinationTokenAddress, destinationTokenAmount, destinationToAddress, originChainId, originTokenAddress, originTokenAmount, destinationCallData, destinationCallValue, provider, addressOverrides, destinationSalt, takerFee, slippageTolerance, tradeType} + out := struct { + Ret0 []*IntentCallsPayload `json:"calls"` + Ret1 []*IntentPrecondition `json:"preconditions"` + Ret2 []*MetaTxn `json:"metaTxns"` + Ret3 *TrailsFee `json:"trailsFee"` + Ret4 *IntentQuote `json:"quote"` + Ret5 string `json:"originIntentAddress"` + Ret6 string `json:"destinationIntentAddress"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[68], 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, out.Ret1, out.Ret2, out.Ret3, out.Ret4, out.Ret5, out.Ret6, err +} + +func (c *aPIClient) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) { + in := struct { + Arg0 string `json:"originIntentAddress"` + Arg1 string `json:"destinationIntentAddress"` + Arg2 string `json:"mainSigner"` + Arg3 []*IntentCallsPayload `json:"calls"` + Arg4 []*IntentPrecondition `json:"preconditions"` + Arg5 *AddressOverrides `json:"addressOverrides"` + }{originIntentAddress, destinationIntentAddress, mainSigner, calls, preconditions, addressOverrides} + out := struct { + Ret0 *IntentConfig `json:"config"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[69], 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) GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) { + in := struct { + Arg0 string `json:"intentAddress"` + }{intentAddress} + out := struct { + Ret0 *IntentConfig `json:"config"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[70], 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) ListCurrencyGroups(ctx context.Context) ([]*CurrencyGroup, error) { out := struct { Ret0 []*CurrencyGroup `json:"currencyGroups"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[68], nil, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[71], nil, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3641,7 +3883,7 @@ func (c *aPIClient) AddOffchainInventory(ctx context.Context, inventory *Offchai Ret0 uint64 `json:"inventoryId"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[69], 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 { @@ -3660,7 +3902,7 @@ func (c *aPIClient) GetOffchainInventory(ctx context.Context, inventoryId uint64 Ret0 *OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[70], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[73], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3679,7 +3921,7 @@ func (c *aPIClient) ListOffchainInventories(ctx context.Context, projectId uint6 Ret0 []*OffchainInventory `json:"inventory"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[71], 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 { @@ -3695,7 +3937,7 @@ func (c *aPIClient) UpdateOffchainInventory(ctx context.Context, inventory *Offc Arg0 *OffchainInventory `json:"inventory"` }{inventory} - resp, err := doHTTPRequest(ctx, c.client, c.urls[72], in, nil) + resp, err := doHTTPRequest(ctx, c.client, c.urls[75], in, nil) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3714,7 +3956,7 @@ func (c *aPIClient) DeleteOffchainInventory(ctx context.Context, inventoryId uin Ret0 bool `json:"ok"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[73], 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 { @@ -3736,7 +3978,7 @@ func (c *aPIClient) RequestOffchainPayment(ctx context.Context, inventoryId uint Ret0 *PaymentResponse `json:"payment"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[74], 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 { @@ -3757,7 +3999,7 @@ func (c *aPIClient) ListOffchainPayments(ctx context.Context, inventoryId uint64 Ret1 []*OffchainPayment `json:"payments"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[75], 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 { @@ -3776,7 +4018,7 @@ func (c *aPIClient) SavePack(ctx context.Context, pack *Pack) (string, error) { Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[76], 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 { @@ -3797,7 +4039,7 @@ func (c *aPIClient) GetPack(ctx context.Context, contractAddress string, packId Ret0 *Pack `json:"pack"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[77], 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 { @@ -3817,7 +4059,7 @@ func (c *aPIClient) GetPackIds(ctx context.Context, contractAddress string, chai Ret0 []string `json:"packIds"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[78], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[81], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3838,7 +4080,7 @@ func (c *aPIClient) DeletePack(ctx context.Context, contractAddress string, pack Ret0 bool `json:"status"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[79], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[82], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3857,7 +4099,7 @@ func (c *aPIClient) UpdatePackContent(ctx context.Context, pack *Pack) (string, Ret0 string `json:"merkleRoot"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[80], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[83], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3879,7 +4121,7 @@ func (c *aPIClient) GetRevealTxData(ctx context.Context, contractAddress string, Ret0 string `json:"txData"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[81], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[84], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3902,7 +4144,7 @@ func (c *aPIClient) CheckoutOptionsPrimary(ctx context.Context, chainId uint64, Ret0 *CheckoutOptions `json:"options"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[82], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[85], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3923,7 +4165,7 @@ func (c *aPIClient) CheckoutOptionsSecondary(ctx context.Context, chainId uint64 Ret0 *CheckoutOptions `json:"options"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[83], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[86], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3943,7 +4185,7 @@ func (c *aPIClient) CheckoutOptionsGetTransakContractID(ctx context.Context, cha Ret0 string `json:"contractId"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[84], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[87], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3962,7 +4204,7 @@ func (c *aPIClient) FortePayCreateIntent(ctx context.Context, intent *FortePayCr Ret0 *FortePayIntent `json:"resp"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[85], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[88], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -3981,7 +4223,7 @@ func (c *aPIClient) FortePayGetPaymentStatuses(ctx context.Context, paymentInten Ret0 []*FortePaymentStatus `json:"statuses"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[86], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[89], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -4000,7 +4242,7 @@ func (c *aPIClient) GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransf Ret0 *CCTPTransfer `json:"transfer"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[87], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[90], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { @@ -4022,7 +4264,7 @@ func (c *aPIClient) QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, Ret0 *CCTPTransfer `json:"transfer"` }{} - resp, err := doHTTPRequest(ctx, c.client, c.urls[88], in, &out) + resp, err := doHTTPRequest(ctx, c.client, c.urls[91], in, &out) if resp != nil { cerr := resp.Body.Close() if err == nil && cerr != nil { From 06c8e939750d0cd2cef7acea2e568fb30b5968d0 Mon Sep 17 00:00:00 2001 From: VojtechVitek <139342+VojtechVitek@users.noreply.github.com> Date: Thu, 28 Aug 2025 09:40:19 +0000 Subject: [PATCH 3/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 139 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 135 insertions(+), 4 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 998729f1..a93d58e6 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 01e4e5d5ce5e7b85514f2db2fb5b346229db727c +// sequence-api v0.4.0 6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "01e4e5d5ce5e7b85514f2db2fb5b346229db727c" + return "6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd" } type WebrpcGenVersions struct { @@ -693,10 +693,21 @@ type IntentConfig struct { MainSigner prototyp.Hash `json:"mainSigner" db:"main_signer"` Calls prototyp.JSONString `json:"calls" db:"calls"` Preconditions prototyp.JSONString `json:"preconditions" db:"preconditions"` + ExecutionStatus *string `json:"executionStatus" db:"execution_status,omitempty"` + MetaTxnID *string `json:"metaTxnId" db:"meta_txn_id,omitempty"` + TxnHash *string `json:"txnHash" db:"txn_hash,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty" db:"updated_at,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty" db:"created_at,omitempty"` } +// MetaTxnReceipt +type MetaTxnReceipt struct { + MetaTxID string `json:"metaTxID" db:"meta_tx_id"` + Status string `json:"status" db:"status"` + TxnReceipt *string `json:"txnReceipt" db:"txn_receipt"` + RevertReason *string `json:"revertReason" db:"revert_reason"` +} + // InviteCode type InviteCode struct { Code string `json:"-" db:"code"` @@ -1916,6 +1927,26 @@ var methods = map[string]method{ Service: "API", Annotations: map[string]string{"public": ""}, }, + "/rpc/API/QueueIntentConfigExecution": { + Name: "QueueIntentConfigExecution", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, + "/rpc/API/GetIntentConfigExecutionStatus": { + Name: "GetIntentConfigExecutionStatus", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, + "/rpc/API/ListIntentConfigs": { + Name: "ListIntentConfigs", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, + "/rpc/API/QueueMetaTxnReceipt": { + Name: "QueueMetaTxnReceipt", + Service: "API", + Annotations: map[string]string{"public": ""}, + }, } func WebrpcMethods() map[string]method { @@ -2021,6 +2052,10 @@ var WebRPCServices = map[string][]string{ "FortePayGetPaymentStatuses", "GetCCTPTransfer", "QueueCCTPTransfer", + "QueueIntentConfigExecution", + "GetIntentConfigExecutionStatus", + "ListIntentConfigs", + "QueueMetaTxnReceipt", }, } @@ -2187,6 +2222,13 @@ type API interface { // GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransfer, error) QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, metaTxHash *string, sourceChainId uint64, destinationChainId uint64) (*CCTPTransfer, error) + // + // Intent Machine Worker + // + QueueIntentConfigExecution(ctx context.Context, intentConfigId uint64) (bool, error) + GetIntentConfigExecutionStatus(ctx context.Context, intentConfigId uint64) (string, error) + ListIntentConfigs(ctx context.Context, page *Page, executionStatus *string) (*Page, []*IntentConfig, error) + QueueMetaTxnReceipt(ctx context.Context, metaTxID string) (bool, error) } // @@ -2352,6 +2394,13 @@ type APIClient interface { // GetCCTPTransfer(ctx context.Context, id string) (*CCTPTransfer, error) QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, metaTxHash *string, sourceChainId uint64, destinationChainId uint64) (*CCTPTransfer, error) + // + // Intent Machine Worker + // + QueueIntentConfigExecution(ctx context.Context, intentConfigId uint64) (bool, error) + GetIntentConfigExecutionStatus(ctx context.Context, intentConfigId uint64) (string, error) + ListIntentConfigs(ctx context.Context, page *Page, executionStatus *string) (*Page, []*IntentConfig, error) + QueueMetaTxnReceipt(ctx context.Context, metaTxID string) (bool, error) } // @@ -2362,12 +2411,12 @@ const APIPathPrefix = "/rpc/API/" type aPIClient struct { client HTTPClient - urls [92]string + urls [96]string } func NewAPIClient(addr string, client HTTPClient) APIClient { prefix := urlBase(addr) + APIPathPrefix - urls := [92]string{ + urls := [96]string{ prefix + "Ping", prefix + "Version", prefix + "RuntimeStatus", @@ -2460,6 +2509,10 @@ func NewAPIClient(addr string, client HTTPClient) APIClient { prefix + "FortePayGetPaymentStatuses", prefix + "GetCCTPTransfer", prefix + "QueueCCTPTransfer", + prefix + "QueueIntentConfigExecution", + prefix + "GetIntentConfigExecutionStatus", + prefix + "ListIntentConfigs", + prefix + "QueueMetaTxnReceipt", } return &aPIClient{ client: client, @@ -4275,6 +4328,84 @@ func (c *aPIClient) QueueCCTPTransfer(ctx context.Context, sourceTxHash *string, return out.Ret0, err } +func (c *aPIClient) QueueIntentConfigExecution(ctx context.Context, intentConfigId uint64) (bool, error) { + in := struct { + Arg0 uint64 `json:"intentConfigId"` + }{intentConfigId} + out := struct { + Ret0 bool `json:"status"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[92], 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) GetIntentConfigExecutionStatus(ctx context.Context, intentConfigId uint64) (string, error) { + in := struct { + Arg0 uint64 `json:"intentConfigId"` + }{intentConfigId} + out := struct { + Ret0 string `json:"executionStatus"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[93], 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) ListIntentConfigs(ctx context.Context, page *Page, executionStatus *string) (*Page, []*IntentConfig, error) { + in := struct { + Arg0 *Page `json:"page"` + Arg1 *string `json:"executionStatus"` + }{page, executionStatus} + out := struct { + Ret0 *Page `json:"page"` + Ret1 []*IntentConfig `json:"intentConfigs"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[94], 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, out.Ret1, err +} + +func (c *aPIClient) QueueMetaTxnReceipt(ctx context.Context, metaTxID string) (bool, error) { + in := struct { + Arg0 string `json:"metaTxID"` + }{metaTxID} + out := struct { + Ret0 bool `json:"status"` + }{} + + resp, err := doHTTPRequest(ctx, c.client, c.urls[95], 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 +} + // HTTPClient is the interface used by generated clients to send HTTP requests. // It is fulfilled by *(net/http).Client, which is sufficient for most users. // Users can provide their own implementation for special retry policies. From b9ad18af3eba1e073d00865599d21049f40d0889 Mon Sep 17 00:00:00 2001 From: taylanpince <12650+taylanpince@users.noreply.github.com> Date: Mon, 8 Sep 2025 16:46:19 +0000 Subject: [PATCH 4/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index a93d58e6..be5b8b40 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd +// sequence-api v0.4.0 2ed8501905f2d04f0096e9a3ed6cc963d3a4d8dc // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd" + return "2ed8501905f2d04f0096e9a3ed6cc963d3a4d8dc" } type WebrpcGenVersions struct { @@ -791,6 +791,7 @@ type TokenPrice struct { Token *Token `json:"token"` Price *Price `json:"price"` Price24hChange *Price `json:"price24hChange"` + Price24hVol *Price `json:"price24hVol"` FloorPrice *Price `json:"floorPrice,omitempty"` BuyPrice *Price `json:"buyPrice,omitempty"` SellPrice *Price `json:"sellPrice,omitempty"` From 87b25d98867c772960416ee7d27712dfc0c0f556 Mon Sep 17 00:00:00 2001 From: shunkakinoki <39187513+shunkakinoki@users.noreply.github.com> Date: Tue, 9 Sep 2025 06:26:02 +0000 Subject: [PATCH 5/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index be5b8b40..0e713ef5 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 2ed8501905f2d04f0096e9a3ed6cc963d3a4d8dc +// sequence-api v0.4.0 834d45a136c161d8a1dc6d16010a1aa47f2228a2 // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "2ed8501905f2d04f0096e9a3ed6cc963d3a4d8dc" + return "834d45a136c161d8a1dc6d16010a1aa47f2228a2" } type WebrpcGenVersions struct { @@ -1465,6 +1465,7 @@ type IntentQuote struct { QuoteProvider string `json:"quoteProvider"` QuoteProviderRequestId string `json:"quoteProviderRequestId"` QuoteProviderFeeUsd string `json:"quoteProviderFeeUsd"` + ApiAttestation *string `json:"apiAttestation"` } var methods = map[string]method{ @@ -2190,7 +2191,7 @@ type API interface { // // Chain abstraction // - GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) // @@ -2362,7 +2363,7 @@ type APIClient interface { // // Chain abstraction // - GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) // @@ -3830,7 +3831,7 @@ func (c *aPIClient) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuo return out.Ret0, err } -func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, string, string, error) { +func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) { in := struct { Arg0 string `json:"userAddress"` Arg1 uint64 `json:"destinationChainId"` @@ -3855,8 +3856,9 @@ func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress stri Ret2 []*MetaTxn `json:"metaTxns"` Ret3 *TrailsFee `json:"trailsFee"` Ret4 *IntentQuote `json:"quote"` - Ret5 string `json:"originIntentAddress"` - Ret6 string `json:"destinationIntentAddress"` + Ret5 *string `json:"feeQuote"` + Ret6 string `json:"originIntentAddress"` + Ret7 string `json:"destinationIntentAddress"` }{} resp, err := doHTTPRequest(ctx, c.client, c.urls[68], in, &out) @@ -3867,7 +3869,7 @@ func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress stri } } - return out.Ret0, out.Ret1, out.Ret2, out.Ret3, out.Ret4, out.Ret5, out.Ret6, err + return out.Ret0, out.Ret1, out.Ret2, out.Ret3, out.Ret4, out.Ret5, out.Ret6, out.Ret7, err } func (c *aPIClient) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) { From ce4d3b82399ff363ab97f96f818f00ddb274dd55 Mon Sep 17 00:00:00 2001 From: shunkakinoki <39187513+shunkakinoki@users.noreply.github.com> Date: Thu, 11 Sep 2025 06:47:10 +0000 Subject: [PATCH 6/6] [AUTOMATED] Update: api/proto/clients/api.gen.go --- api/api.gen.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 0e713ef5..0e5a3c68 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -1,4 +1,4 @@ -// sequence-api v0.4.0 834d45a136c161d8a1dc6d16010a1aa47f2228a2 +// sequence-api v0.4.0 d43a5aac616814072c69e63f2f81fe65ea10a7e0 // -- // Code generated by webrpc-gen@v0.25.3 with golang generator. DO NOT EDIT. // @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "834d45a136c161d8a1dc6d16010a1aa47f2228a2" + return "d43a5aac616814072c69e63f2f81fe65ea10a7e0" } type WebrpcGenVersions struct { @@ -1455,17 +1455,17 @@ type TrailsFee struct { } type IntentQuote struct { - FromAmount prototyp.BigInt `json:"fromAmount"` - FromAmountMin prototyp.BigInt `json:"fromAmountMin"` - ToAmount prototyp.BigInt `json:"toAmount"` - ToAmountMin prototyp.BigInt `json:"toAmountMin"` - PriceImpact float64 `json:"priceImpact"` - PriceImpactUsd string `json:"priceImpactUsd"` - MaxSlippage float64 `json:"maxSlippage"` - QuoteProvider string `json:"quoteProvider"` - QuoteProviderRequestId string `json:"quoteProviderRequestId"` - QuoteProviderFeeUsd string `json:"quoteProviderFeeUsd"` - ApiAttestation *string `json:"apiAttestation"` + FromAmount prototyp.BigInt `json:"fromAmount"` + FromAmountMin prototyp.BigInt `json:"fromAmountMin"` + ToAmount prototyp.BigInt `json:"toAmount"` + ToAmountMin prototyp.BigInt `json:"toAmountMin"` + PriceImpact float64 `json:"priceImpact"` + PriceImpactUsd string `json:"priceImpactUsd"` + MaxSlippage float64 `json:"maxSlippage"` + QuoteProvider string `json:"quoteProvider"` + QuoteProviderRequestId string `json:"quoteProviderRequestId"` + QuoteProviderFeeUsd string `json:"quoteProviderFeeUsd"` + FeeQuotes map[string]string `json:"feeQuotes"` } var methods = map[string]method{ @@ -2191,7 +2191,7 @@ type API interface { // // Chain abstraction // - GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, map[string]string, string, string, error) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) // @@ -2363,7 +2363,7 @@ type APIClient interface { // // Chain abstraction // - GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) + GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, map[string]string, string, string, error) CommitIntentConfig(ctx context.Context, originIntentAddress string, destinationIntentAddress string, mainSigner string, calls []*IntentCallsPayload, preconditions []*IntentPrecondition, addressOverrides *AddressOverrides) (*IntentConfig, error) GetIntentConfig(ctx context.Context, intentAddress string) (*IntentConfig, error) // @@ -3831,7 +3831,7 @@ func (c *aPIClient) GetLifiSwapQuote(ctx context.Context, params *GetLifiSwapQuo return out.Ret0, err } -func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, *string, string, string, error) { +func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress string, destinationChainId uint64, destinationTokenAddress string, destinationTokenAmount string, destinationToAddress string, originChainId uint64, originTokenAddress string, originTokenAmount string, destinationCallData *string, destinationCallValue *string, provider *string, addressOverrides *AddressOverrides, destinationSalt *string, takerFee *TakerFee, slippageTolerance *float64, tradeType *TradeType) ([]*IntentCallsPayload, []*IntentPrecondition, []*MetaTxn, *TrailsFee, *IntentQuote, map[string]string, string, string, error) { in := struct { Arg0 string `json:"userAddress"` Arg1 uint64 `json:"destinationChainId"` @@ -3856,7 +3856,7 @@ func (c *aPIClient) GetIntentCallsPayloads(ctx context.Context, userAddress stri Ret2 []*MetaTxn `json:"metaTxns"` Ret3 *TrailsFee `json:"trailsFee"` Ret4 *IntentQuote `json:"quote"` - Ret5 *string `json:"feeQuote"` + Ret5 map[string]string `json:"feeQuotes"` Ret6 string `json:"originIntentAddress"` Ret7 string `json:"destinationIntentAddress"` }{}