From c7bcae8f24f7b2a173cbdbfc1d5c2a2bdd1952ee Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Wed, 16 Oct 2024 14:43:57 +0200 Subject: [PATCH 1/2] Add `snap_getCurrencyRate` to `SnapMethods` --- packages/snaps-sdk/src/types/methods/methods.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/snaps-sdk/src/types/methods/methods.ts b/packages/snaps-sdk/src/types/methods/methods.ts index 4d9e1f33c6..2983e07109 100644 --- a/packages/snaps-sdk/src/types/methods/methods.ts +++ b/packages/snaps-sdk/src/types/methods/methods.ts @@ -20,6 +20,10 @@ import type { GetClientStatusParams, GetClientStatusResult, } from './get-client-status'; +import type { + GetCurrencyRateParams, + GetCurrencyRateResult, +} from './get-currency-rate'; import type { GetEntropyParams, GetEntropyResult } from './get-entropy'; import type { GetFileParams, GetFileResult } from './get-file'; import type { @@ -65,6 +69,7 @@ export type SnapMethods = { snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult]; snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult]; snap_getEntropy: [GetEntropyParams, GetEntropyResult]; + snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult]; snap_getFile: [GetFileParams, GetFileResult]; snap_getLocale: [GetLocaleParams, GetLocaleResult]; snap_getPreferences: [GetPreferencesParams, GetPreferencesResult]; From ca5ee46b6c6c75b8ecc72e672e920f4b1c13cbcc Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Wed, 16 Oct 2024 14:47:16 +0200 Subject: [PATCH 2/2] re-order --- packages/snaps-sdk/src/types/methods/methods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/snaps-sdk/src/types/methods/methods.ts b/packages/snaps-sdk/src/types/methods/methods.ts index 2983e07109..b4547caceb 100644 --- a/packages/snaps-sdk/src/types/methods/methods.ts +++ b/packages/snaps-sdk/src/types/methods/methods.ts @@ -68,8 +68,8 @@ export type SnapMethods = { snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult]; snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult]; snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult]; - snap_getEntropy: [GetEntropyParams, GetEntropyResult]; snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult]; + snap_getEntropy: [GetEntropyParams, GetEntropyResult]; snap_getFile: [GetFileParams, GetFileResult]; snap_getLocale: [GetLocaleParams, GetLocaleResult]; snap_getPreferences: [GetPreferencesParams, GetPreferencesResult];