Skip to content

Commit 38cef51

Browse files
committed
u1
1 parent 96dc9bd commit 38cef51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1701
-1716
lines changed

api/geth_backend.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222

2323
"github.com/imdario/mergo"
2424

25-
"github.com/ethereum/go-ethereum/common"
2625
"github.com/ethereum/go-ethereum/common/hexutil"
2726
ethcrypto "github.com/ethereum/go-ethereum/crypto"
2827
signercore "github.com/ethereum/go-ethereum/signer/core/apitypes"
@@ -2016,7 +2015,7 @@ func (b *GethStatusBackend) SendTransactionWithSignature(sendArgs wallettypes.Se
20162015
return hash, err
20172016
}
20182017

2019-
return b.transactor.SendTransactionWithSignature(common.Address(sendArgs.From), sendArgs.Symbol, sendArgs.MultiTransactionID, txWithSignature)
2018+
return b.transactor.SendTransactionWithSignature(&sendArgs, txWithSignature)
20202019
}
20212020

20222021
// HashTransaction validate the transaction and returns new sendArgs and the transaction hash.

protocol/communities/manager.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"github.com/pkg/errors"
2323
"go.uber.org/zap"
2424

25+
"github.com/status-im/go-wallet-sdk/pkg/tokenlists"
26+
2527
gethcommon "github.com/ethereum/go-ethereum/common"
2628
"github.com/ethereum/go-ethereum/common/hexutil"
2729

@@ -48,7 +50,6 @@ import (
4850
walletcommon "github.com/status-im/status-go/services/wallet/common"
4951
"github.com/status-im/status-go/services/wallet/thirdparty"
5052
"github.com/status-im/status-go/services/wallet/token"
51-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
5253
"github.com/status-im/status-go/signal"
5354
)
5455

@@ -259,7 +260,7 @@ type managerOptions struct {
259260
type TokenManager interface {
260261
GetBalancesByChain(ctx context.Context, accounts, tokens []gethcommon.Address, chainIDs []uint64) (BalancesByChain, error)
261262
GetCachedBalancesByChain(ctx context.Context, accounts, tokenAddresses []gethcommon.Address, chainIDs []uint64) (BalancesByChain, error)
262-
FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenTypes.Token
263+
FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenlists.Token
263264
GetAllChainIDs() ([]uint64, error)
264265
}
265266

@@ -340,7 +341,7 @@ func (m *DefaultTokenManager) GetCachedBalancesByChain(ctx context.Context, acco
340341
return resp, nil
341342
}
342343

343-
func (m *DefaultTokenManager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenTypes.Token {
344+
func (m *DefaultTokenManager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenlists.Token {
344345
return m.tokenManager.FindOrCreateTokenByAddress(ctx, chainID, address)
345346
}
346347

protocol/communities/manager_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
gethcommon "github.com/ethereum/go-ethereum/common"
1616
"github.com/ethereum/go-ethereum/common/hexutil"
1717

18+
"github.com/status-im/go-wallet-sdk/pkg/tokenlists"
19+
1820
"github.com/status-im/status-go/appdatabase"
1921
"github.com/status-im/status-go/crypto"
2022
userimages "github.com/status-im/status-go/images"
@@ -31,7 +33,6 @@ import (
3133
"github.com/status-im/status-go/services/wallet/bigint"
3234
walletCommon "github.com/status-im/status-go/services/wallet/common"
3335
"github.com/status-im/status-go/services/wallet/thirdparty"
34-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
3536
"github.com/status-im/status-go/t/helpers"
3637

3738
"github.com/golang/protobuf/proto"
@@ -200,7 +201,7 @@ func (m *testTokenManager) GetCachedBalancesByChain(ctx context.Context, account
200201
return m.response, nil
201202
}
202203

203-
func (m *testTokenManager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenTypes.Token {
204+
func (m *testTokenManager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenlists.Token {
204205
return nil
205206
}
206207

protocol/communities_messenger_helpers_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212

1313
"github.com/stretchr/testify/suite"
1414

15+
"github.com/status-im/go-wallet-sdk/pkg/tokenlists"
16+
1517
gethcommon "github.com/ethereum/go-ethereum/common"
1618
"github.com/ethereum/go-ethereum/common/hexutil"
1719

@@ -30,7 +32,6 @@ import (
3032
"github.com/status-im/status-go/services/wallet/bigint"
3133
walletCommon "github.com/status-im/status-go/services/wallet/common"
3234
"github.com/status-im/status-go/services/wallet/thirdparty"
33-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
3435

3536
mock_protocol_accounts_manager "github.com/status-im/status-go/protocol/mock"
3637

@@ -89,7 +90,7 @@ func (m *TokenManagerMock) GetCachedBalancesByChain(ctx context.Context, account
8990
return m.getBalanceBasedOnParams(accounts, tokenAddresses, chainIDs), nil
9091
}
9192

92-
func (m *TokenManagerMock) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenTypes.Token {
93+
func (m *TokenManagerMock) FindOrCreateTokenByAddress(ctx context.Context, chainID uint64, address gethcommon.Address) *tokenlists.Token {
9394
time.Sleep(100 * time.Millisecond) // simulate response time
9495
return nil
9596
}

services/wallet/activity/activity_v2.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import (
1313

1414
"go.uber.org/zap"
1515

16+
"github.com/status-im/go-wallet-sdk/pkg/tokenlists"
17+
1618
"github.com/status-im/status-go/logutils"
1719
ac "github.com/status-im/status-go/services/wallet/activity/common"
1820
wCommon "github.com/status-im/status-go/services/wallet/common"
1921
"github.com/status-im/status-go/services/wallet/requests"
2022
pathProcessorCommon "github.com/status-im/status-go/services/wallet/router/pathprocessor/common"
2123
"github.com/status-im/status-go/services/wallet/router/routes"
22-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
2324
"github.com/status-im/status-go/services/wallet/wallettypes"
2425
"github.com/status-im/status-go/sqlite"
2526
"github.com/status-im/status-go/transactions"
@@ -277,7 +278,7 @@ func getFinalizationPeriod(chainID wCommon.ChainID) int64 {
277278
return ac.L2FinalizationDuration
278279
}
279280

280-
func getTransferType(fromToken *tokenTypes.Token, processorName string) *ac.TransferType {
281+
func getTransferType(fromToken *tokenlists.Token, processorName string) *ac.TransferType {
281282
ret := new(ac.TransferType)
282283

283284
switch processorName {
@@ -298,7 +299,7 @@ func getTransferType(fromToken *tokenTypes.Token, processorName string) *ac.Tran
298299
return ret
299300
}
300301

301-
func getToken(token *tokenTypes.Token, processorName string) *ac.Token {
302+
func getToken(token *tokenlists.Token, processorName string) *ac.Token {
302303
if token == nil {
303304
return nil
304305
}

services/wallet/activity/service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ func (s *Service) getDeps() FilterDependencies {
335335
return FilterDependencies{
336336
db: s.db,
337337
tokenSymbol: func(t ac.Token) string {
338-
info := s.tokenManager.LookupTokenIdentity(uint64(t.ChainID), t.Address, t.TokenType == ac.Native)
339-
if info == nil {
338+
info, ok := s.tokenManager.GetTokenByChainAddress(uint64(t.ChainID), t.Address)
339+
if !ok || info == nil {
340340
return ""
341341
}
342342
return info.Symbol
@@ -347,12 +347,12 @@ func (s *Service) getDeps() FilterDependencies {
347347
cID = new(uint64)
348348
*cID = uint64(*chainID)
349349
}
350-
t, detectedNative := s.tokenManager.LookupToken(cID, symbol)
350+
t := s.tokenManager.FindTokenBySymbolOnChain(*cID, symbol)
351351
if t == nil {
352352
return nil
353353
}
354354
tokenType := ac.Native
355-
if !detectedNative {
355+
if !t.IsNative() {
356356
tokenType = ac.Erc20
357357
}
358358
return &ac.Token{

services/wallet/activity/service_test.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import (
1010
eth "github.com/ethereum/go-ethereum/common"
1111
"github.com/ethereum/go-ethereum/event"
1212

13+
"github.com/status-im/go-wallet-sdk/pkg/tokenlists"
14+
1315
"github.com/status-im/status-go/appdatabase"
1416
"github.com/status-im/status-go/multiaccounts/accounts"
1517
ethclient "github.com/status-im/status-go/rpc/chain/ethclient"
1618
mock_rpcclient "github.com/status-im/status-go/rpc/mock/client"
1719
"github.com/status-im/status-go/services/wallet/common"
1820
"github.com/status-im/status-go/services/wallet/thirdparty"
1921
mock_token "github.com/status-im/status-go/services/wallet/token/mock/token"
20-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
2122
"github.com/status-im/status-go/services/wallet/transfer"
2223
"github.com/status-im/status-go/services/wallet/walletevent"
2324
"github.com/status-im/status-go/t/helpers"
@@ -115,20 +116,20 @@ func setupTransactions(t *testing.T, state testState, txCount int, testTxs []tra
115116

116117
allAddresses = append(append(allAddresses, fromTrs...), toTrs...)
117118

118-
state.tokenMock.EXPECT().LookupTokenIdentity(gomock.Any(), gomock.Any(), gomock.Any()).Return(
119-
&tokenTypes.Token{
119+
state.tokenMock.EXPECT().GetTokenByChainAddress(gomock.Any(), gomock.Any()).Return(
120+
&tokenlists.Token{
120121
ChainID: 5,
121122
Address: eth.Address{},
122123
Symbol: "ETH",
123-
},
124+
}, true,
124125
).AnyTimes()
125126

126-
state.tokenMock.EXPECT().LookupToken(gomock.Any(), gomock.Any()).Return(
127-
&tokenTypes.Token{
127+
state.tokenMock.EXPECT().FindTokenBySymbolOnChain(gomock.Any(), gomock.Any()).Return(
128+
&tokenlists.Token{
128129
ChainID: 5,
129130
Address: eth.Address{},
130131
Symbol: "ETH",
131-
}, true,
132+
},
132133
).AnyTimes()
133134

134135
return allAddresses, pendings, ch, func() {

services/wallet/api.go

Lines changed: 40 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ import (
3636
"github.com/status-im/status-go/services/wallet/router"
3737
"github.com/status-im/status-go/services/wallet/router/fees"
3838
"github.com/status-im/status-go/services/wallet/thirdparty"
39-
"github.com/status-im/status-go/services/wallet/token"
40-
tokenTypes "github.com/status-im/status-go/services/wallet/token/types"
39+
tokentypes "github.com/status-im/status-go/services/wallet/token/types"
4140
"github.com/status-im/status-go/services/wallet/transfer"
4241
"github.com/status-im/status-go/services/wallet/walletconnect"
4342
"github.com/status-im/status-go/services/wallet/wallettypes"
@@ -78,7 +77,18 @@ func (api *API) GetLastWalletTokenUpdate() map[common.Address]int64 {
7877

7978
// GetBalancesByChain return a map with key as chain id and value as map of account address and map of token address and balance
8079
// [chainID][account][token]balance
81-
func (api *API) GetBalancesByChain(ctx context.Context, chainIDs []uint64, addresses, tokens []common.Address) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error) {
80+
func (api *API) GetBalancesByChain(ctx context.Context, addresses []common.Address, tokenKeys []string) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error) {
81+
tokens := make([]*tokentypes.Token, 0)
82+
chainIDs := make([]uint64, 0)
83+
for _, tokenKey := range tokenKeys {
84+
token, err := api.s.tokenManager.GetTokenByKey(tokenKey)
85+
if err != nil {
86+
return nil, err
87+
}
88+
tokens = append(tokens, token)
89+
chainIDs = append(chainIDs, token.ChainID)
90+
}
91+
8292
clients, err := api.s.rpcClient.EthClients(chainIDs)
8393
if err != nil {
8494
return nil, err
@@ -87,7 +97,7 @@ func (api *API) GetBalancesByChain(ctx context.Context, chainIDs []uint64, addre
8797
return api.s.tokenManager.GetBalancesByChain(ctx, clients, addresses, tokens)
8898
}
8999

90-
func (api *API) FetchOrGetCachedWalletBalances(ctx context.Context, addresses []common.Address, forceRefresh bool) (map[common.Address][]tokenTypes.StorageToken, error) {
100+
func (api *API) FetchOrGetCachedWalletBalances(ctx context.Context, addresses []common.Address, forceRefresh bool) (map[common.Address][]tokentypes.StorageToken, error) {
91101
activeNetworks, err := api.s.rpcClient.GetNetworkManager().GetActiveNetworks()
92102
if err != nil {
93103
return nil, err
@@ -117,11 +127,10 @@ func (api *API) FetchDecodedTxData(ctx context.Context, data string) (*thirdpart
117127
}
118128

119129
// GetBalanceHistory retrieves token balance history for token identity on multiple chains
120-
func (api *API) GetBalanceHistory(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, timeInterval history.TimeInterval) ([]*history.ValuePoint, error) {
130+
func (api *API) GetBalanceHistory(ctx context.Context, addresses []common.Address, tokenKeys []string, currencySymbol string, timeInterval history.TimeInterval) ([]*history.ValuePoint, error) {
121131
logutils.ZapLogger().Debug("wallet.api.GetBalanceHistory",
122-
zap.Uint64s("chainIDs", chainIDs),
123132
zap.Stringers("address", addresses),
124-
zap.String("tokenSymbol", tokenSymbol),
133+
zap.Strings("tokenKeys", tokenKeys),
125134
zap.String("currencySymbol", currencySymbol),
126135
zap.Int("timeInterval", int(timeInterval)),
127136
)
@@ -143,57 +152,43 @@ func (api *API) GetBalanceHistory(ctx context.Context, chainIDs []uint64, addres
143152
return nil, fmt.Errorf("unknown time interval: %v", timeInterval)
144153
}
145154

146-
return api.GetBalanceHistoryRange(ctx, chainIDs, addresses, tokenSymbol, currencySymbol, fromTimestamp, now)
155+
return api.GetBalanceHistoryRange(ctx, addresses, tokenKeys, currencySymbol, fromTimestamp, now)
147156
}
148157

149158
// GetBalanceHistoryRange retrieves token balance history for token identity on multiple chains for a time range
150159
// 'toTimestamp' is ignored for now, but will be used in the future to limit the range of the history
151-
func (api *API) GetBalanceHistoryRange(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, fromTimestamp uint64, _ uint64) ([]*history.ValuePoint, error) {
160+
func (api *API) GetBalanceHistoryRange(ctx context.Context, addresses []common.Address, tokenKeys []string, currencySymbol string, fromTimestamp uint64, _ uint64) ([]*history.ValuePoint, error) {
152161
logutils.ZapLogger().Debug("wallet.api.GetBalanceHistoryRange",
153-
zap.Uint64s("chainIDs", chainIDs),
154162
zap.Stringers("address", addresses),
155-
zap.String("tokenSymbol", tokenSymbol),
163+
zap.Strings("tokenKeys", tokenKeys),
156164
zap.String("currencySymbol", currencySymbol),
157165
zap.Uint64("fromTimestamp", fromTimestamp),
158166
)
159-
return api.s.history.GetBalanceHistory(ctx, chainIDs, addresses, tokenSymbol, currencySymbol, fromTimestamp)
167+
return api.s.history.GetBalanceHistory(ctx, addresses, tokenKeys, currencySymbol, fromTimestamp)
160168
}
161169

162-
func (api *API) GetTokenList(ctx context.Context) (*token.ListWrapper, error) {
170+
func (api *API) GetAllTokenLists(ctx context.Context) ([]*tokentypes.TokenList, error) {
163171
logutils.ZapLogger().Debug("call to get token list")
164-
rst := api.s.tokenManager.GetList()
165-
logutils.ZapLogger().Debug("result from token list", zap.Int("len", len(rst.Data)))
166-
return rst, nil
172+
return api.s.tokenManager.GetAllTokenLists()
167173
}
168174

169-
func (api *API) GetTokensAvailableForBridgeOnChain(ctx context.Context, chainID uint64) []*tokenTypes.Token {
170-
logutils.ZapLogger().Debug("call to get tokens available for bridge on chain")
171-
return api.s.router.GetTokensAvailableForBridgeOnChain(chainID)
175+
func (api *API) GetAllTokens(ctx context.Context) ([]*tokentypes.Token, error) {
176+
logutils.ZapLogger().Debug("call to get all tokens")
177+
return api.s.tokenManager.GetAllTokens()
172178
}
173179

174-
// @deprecated
175-
func (api *API) GetTokens(ctx context.Context, chainID uint64) ([]*tokenTypes.Token, error) {
176-
logutils.ZapLogger().Debug("call to get tokens")
177-
rst, err := api.s.tokenManager.GetTokens(chainID)
178-
logutils.ZapLogger().Debug("result from token store", zap.Int("len", len(rst)))
179-
return rst, err
180-
}
181-
182-
// @deprecated
183-
func (api *API) GetCustomTokens(ctx context.Context) ([]*tokenTypes.Token, error) {
184-
logutils.ZapLogger().Debug("call to get custom tokens")
185-
rst, err := api.s.tokenManager.GetCustoms(true)
186-
logutils.ZapLogger().Debug("result from database for custom tokens", zap.Int("len", len(rst)))
187-
return rst, err
180+
func (api *API) GetTokensAvailableForBridgeOnChain(ctx context.Context, chainID uint64) []*tokentypes.Token {
181+
logutils.ZapLogger().Debug("call to get tokens available for bridge on chain")
182+
return api.s.router.GetTokensAvailableForBridgeOnChain(chainID)
188183
}
189184

190-
func (api *API) DiscoverToken(ctx context.Context, chainID uint64, address common.Address) (*tokenTypes.Token, error) {
185+
func (api *API) DiscoverToken(ctx context.Context, chainID uint64, address common.Address) (*tokentypes.Token, error) {
191186
logutils.ZapLogger().Debug("call to get discover token")
192187
token, err := api.s.tokenManager.DiscoverToken(ctx, chainID, address)
193188
return token, err
194189
}
195190

196-
func (api *API) AddCustomToken(ctx context.Context, token tokenTypes.Token) error {
191+
func (api *API) AddCustomToken(ctx context.Context, token tokentypes.Token) error {
197192
logutils.ZapLogger().Debug("call to create or edit custom token")
198193
if token.ChainID == 0 {
199194
token.ChainID = api.s.rpcClient.UpstreamChainID
@@ -377,31 +372,31 @@ func (api *API) GetFlatEthereumChains(ctx context.Context) ([]*params.Network, e
377372
}
378373

379374
// @deprecated
380-
func (api *API) FetchPrices(ctx context.Context, symbols []string, currencies []string) (map[string]map[string]float64, error) {
375+
func (api *API) FetchPrices(ctx context.Context, tokens []*tokentypes.Token, currencies []string) (map[string]map[string]float64, error) {
381376
logutils.ZapLogger().Debug("call to FetchPrices")
382-
return api.s.marketManager.FetchPrices(symbols, currencies)
377+
return api.s.marketManager.FetchPrices(tokens, currencies)
383378
}
384379

385380
// @deprecated
386-
func (api *API) FetchMarketValues(ctx context.Context, symbols []string, currency string) (map[string]thirdparty.TokenMarketValues, error) {
381+
func (api *API) FetchMarketValues(ctx context.Context, tokens []*tokentypes.Token, currency string) (map[string]thirdparty.TokenMarketValues, error) {
387382
logutils.ZapLogger().Debug("call to FetchMarketValues")
388-
return api.s.marketManager.FetchTokenMarketValues(symbols, currency)
383+
return api.s.marketManager.FetchTokenMarketValues(tokens, currency)
389384
}
390385

391-
func (api *API) GetHourlyMarketValues(ctx context.Context, symbol string, currency string, limit int, aggregate int) ([]thirdparty.HistoricalPrice, error) {
386+
func (api *API) GetHourlyMarketValues(ctx context.Context, token *tokentypes.Token, currency string, limit int, aggregate int) ([]thirdparty.HistoricalPrice, error) {
392387
logutils.ZapLogger().Debug("call to GetHourlyMarketValues")
393-
return api.s.marketManager.FetchHistoricalHourlyPrices(symbol, currency, limit, aggregate)
388+
return api.s.marketManager.FetchHistoricalHourlyPrices(token, currency, limit, aggregate)
394389
}
395390

396-
func (api *API) GetDailyMarketValues(ctx context.Context, symbol string, currency string, limit int, allData bool, aggregate int) ([]thirdparty.HistoricalPrice, error) {
391+
func (api *API) GetDailyMarketValues(ctx context.Context, token *tokentypes.Token, currency string, limit int, allData bool, aggregate int) ([]thirdparty.HistoricalPrice, error) {
397392
logutils.ZapLogger().Debug("call to GetDailyMarketValues")
398-
return api.s.marketManager.FetchHistoricalDailyPrices(symbol, currency, limit, allData, aggregate)
393+
return api.s.marketManager.FetchHistoricalDailyPrices(token, currency, limit, allData, aggregate)
399394
}
400395

401396
// @deprecated
402-
func (api *API) FetchTokenDetails(ctx context.Context, symbols []string) (map[string]thirdparty.TokenDetails, error) {
397+
func (api *API) FetchTokenDetails(ctx context.Context, tokens []*tokentypes.Token) (map[string]thirdparty.TokenDetails, error) {
403398
logutils.ZapLogger().Debug("call to FetchTokenDetails")
404-
return api.s.marketManager.FetchTokenDetails(symbols)
399+
return api.s.marketManager.FetchTokenDetails(tokens)
405400
}
406401

407402
// @deprecated we should remove it once clients fully switched to wallet router, `GetSuggestedRoutesAsync` should be used instead
@@ -697,20 +692,6 @@ func (api *API) BuildTransactionsFromRoute(ctx context.Context, uuid string) {
697692
api.s.routeExecutionManager.BuildTransactionsFromRoute(ctx, uuid)
698693
}
699694

700-
// Deprecated: `ProceedWithTransactionsSignatures` is the endpoint used in the old way of sending transactions and should not be used anymore.
701-
//
702-
// The flow that should be used instead:
703-
// - call `BuildTransactionsFromRoute`
704-
// - wait for the `wallet.router.sign-transactions` signal
705-
// - sign received hashes using `SignMessage` call or sign on keycard
706-
// - call `SendRouterTransactionsWithSignatures` with the signatures of signed hashes from the previous step
707-
//
708-
// TODO: remove this struct once mobile switches to the new approach
709-
func (api *API) ProceedWithTransactionsSignatures(ctx context.Context, signatures map[string]requests.SignatureDetails) (*transfer.MultiTransactionCommandResult, error) {
710-
logutils.ZapLogger().Debug("[WalletAPI:: ProceedWithTransactionsSignatures] sign with signatures and send multi transaction")
711-
return api.s.transactionManager.ProceedWithTransactionsSignatures(ctx, signatures)
712-
}
713-
714695
func (api *API) SendRouterTransactionsWithSignatures(ctx context.Context, sendInputParams *requests.RouterSendTransactionsParams) {
715696
logutils.ZapLogger().Debug("[WalletAPI:: SendRouterTransactionsWithSignatures] sign with signatures and send")
716697
api.s.routeExecutionManager.SendRouterTransactionsWithSignatures(ctx, sendInputParams)

0 commit comments

Comments
 (0)