feat: add CoinGecko price logic with DOT-based fallback

- HEZ price: CoinGecko direct > DOT/3 > DEX pool
- PEZ price: CoinGecko direct > DOT/10 > DEX pool
- Added AuthorizeCall signed extension for blockchain connection
- Updated @pezkuwi packages to 16.5.22 and 14.0.13
This commit is contained in:
2026-01-31 18:56:28 +03:00
parent d37eacf4e0
commit 94f91cf765
6 changed files with 631 additions and 770 deletions
+10 -1
View File
@@ -69,7 +69,16 @@ export const PezkuwiProvider: React.FC<PezkuwiProviderProps> = ({
}
const provider = new WsProvider(currentEndpoint);
const apiInstance = await ApiPromise.create({ provider });
// PezkuwiChain custom signed extensions
const apiInstance = await ApiPromise.create({
provider,
signedExtensions: {
AuthorizeCall: {
extrinsic: {},
payload: {},
},
},
});
await apiInstance.isReady;