mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-21 19:16:17 +00:00
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:
1 parent
d37eacf4e0
commit
94f91cf765
6 files changed
+631
-770
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user