Migrate to v2
This guide references the major changes between v1 and v2 to help those migrating an existing app.
GelatoRelayPack
- The
GelatoRelayPackconstructor now includes a mandatoryprotocolKitparameter. It's required for any new pack extending theRelayKitBasePack.
_10constructor({ apiKey, protocolKit }: GelatoOptions)
-
We removed the
protocolKitparameter from thecreateTransactionWithHandlePayment(),createTransactionWithTransfer(), andexecuteRelayTransaction()methods in theGelatoRelayPackas now it's included in the constructor. -
Removed the
export interface RelayPacktype as we now use an abstract class.