Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.33 KB

File metadata and controls

54 lines (40 loc) · 1.33 KB

v0.60.0

  • Adds support for Sequence Wallet v3 contracts
  • Keeps backward compatibility with Sequence Wallet v1/v2 contracts

API Breaking changes in go-sequence

sequence.Relayer interface

 package sequence

 import (
     "github.com/0xsequence/ethkit/go-ethereum/common"
 )
 
 type Relayer interface {
-	EstimateGasLimits(ctx context.Context, walletConfig core.WalletConfig, walletContext WalletContext, txns Transactions) (Transactions, error)
 
-	Simulate(ctx context.Context, txs *SignedTransactions) ([]*RelayerSimulateResult, error)
+	Simulate(ctx context.Context, wallet common.Address, transactions Transactions) ([]*SimulateResult, error)
 
	// ...
 }

sequence.RelayerSimulateResult type has been replaced by sequence.SimulateResult:

-type RelayerSimulateResult struct {
- 	Executed  bool
- 	Succeeded bool
- 	Result    *string
- 	Reason    *string
- 	GasUsed   uint
- 	GasLimit  uint
- }
 
+ type SimulateResult struct {
+ 	simulator.Result
+ 	GasLimit uint64
+ }

relayer.RelayerClient interface

 type RelayerClient interface {
- 	SendMetaTxn(ctx context.Context, call *MetaTxn, quote *string, projectID *uint64) (bool, string, error)
+	SendMetaTxn(ctx context.Context, call *MetaTxn, quote *string, projectID *uint64, preconditions []*IntentPrecondition) (bool, string, error)
 
	// ...
 }