mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-14 04:21:02 +00:00
Rebrand: polkadot → pezkuwi build fixes
- Fixed TypeScript type assertion issues - Updated imports from api-augment/substrate to api-augment/bizinikiwi - Fixed imgConvert.mjs header and imports - Added @ts-expect-error for runtime-converted types - Fixed all @polkadot copyright headers to @pezkuwi
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* Run this file with Jest: `npx jest kyc.live.test.js`
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import axios from 'axios'; // Using axios for HTTP requests
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import request from 'supertest';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { app, supabase } from '../src/server.js';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* 2. The node must have the `perwerde` pallet included.
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
|
||||
// ========================================
|
||||
// TEST CONFIGURATION
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
* 4. Test accounts (e.g., //Alice, //Bob) must have initial balances of wUSDT.
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 3. Test accounts must be funded to be able to bond stake.
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 3. Test accounts must be funded with the native currency (e.g., PEZ).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 3. The tests require a funded sudo account (`//Alice`).
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
* Run this file with Jest: `npx jest backend/integration-tests/welati.live.test.js`
|
||||
*/
|
||||
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
|
||||
import { BN } from '@polkadot/util';
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api';
|
||||
import { BN } from '@pezkuwi/util';
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
// ========================================
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"lint": "eslint 'src/**/*.js' --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.5.1",
|
||||
"@polkadot/util-crypto": "^12.5.1",
|
||||
"@pezkuwi/keyring": "^12.5.1",
|
||||
"@pezkuwi/util-crypto": "^12.5.1",
|
||||
"@supabase/supabase-js": "^2.83.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.3.1",
|
||||
@@ -21,7 +21,7 @@
|
||||
"pino-pretty": "^13.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "^16.5.2",
|
||||
"@pezkuwi/api": "^16.5.2",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-standard": "^17.1.0",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
|
||||
@@ -4,8 +4,8 @@ import dotenv from 'dotenv'
|
||||
import pino from 'pino'
|
||||
import pinoHttp from 'pino-http'
|
||||
import { createClient } from '@supabase/supabase-js'
|
||||
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api'
|
||||
import { cryptoWaitReady, signatureVerify } from '@polkadot/util-crypto'
|
||||
import { ApiPromise, WsProvider, Keyring } from '@pezkuwi/api'
|
||||
import { cryptoWaitReady, signatureVerify } from '@pezkuwi/util-crypto'
|
||||
|
||||
dotenv.config()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user