@subwallet/extension-base 1.1.16-0 → 1.1.17-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/koni/api/nft/config.js +5 -1
- package/cjs/koni/api/nft/index.js +6 -0
- package/cjs/koni/api/nft/statemint_nft/index.js +143 -0
- package/cjs/koni/api/nft/transfer.js +12 -1
- package/cjs/koni/api/nft/vara_nft/index.js +107 -0
- package/cjs/koni/background/handlers/Extension.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/chain-service/constants.js +5 -3
- package/cjs/services/chain-service/index.js +2 -0
- package/cjs/services/keyring-service/index.js +32 -0
- package/cjs/services/migration-service/scripts/EnableChain.js +18 -0
- package/cjs/services/migration-service/scripts/EnableVaraChain.js +15 -0
- package/cjs/services/migration-service/scripts/MigrateEthProvider.js +5 -20
- package/cjs/services/migration-service/scripts/MigratePioneerProvider.js +17 -0
- package/cjs/services/migration-service/scripts/MigrateProvider.js +29 -0
- package/cjs/services/migration-service/scripts/index.js +5 -1
- package/cjs/services/transaction-service/index.js +6 -1
- package/koni/api/nft/config.d.ts +1 -0
- package/koni/api/nft/config.js +4 -0
- package/koni/api/nft/index.js +6 -0
- package/koni/api/nft/statemint_nft/index.d.ts +18 -0
- package/koni/api/nft/statemint_nft/index.js +135 -0
- package/koni/api/nft/transfer.d.ts +1 -0
- package/koni/api/nft/transfer.js +11 -1
- package/koni/api/nft/vara_nft/index.d.ts +9 -0
- package/koni/api/nft/vara_nft/index.js +99 -0
- package/koni/background/handlers/Extension.js +1 -1
- package/package.json +36 -6
- package/packageInfo.js +1 -1
- package/services/chain-service/constants.d.ts +2 -0
- package/services/chain-service/constants.js +5 -3
- package/services/chain-service/index.js +2 -0
- package/services/chain-service/types.d.ts +3 -1
- package/services/keyring-service/index.js +32 -0
- package/services/migration-service/scripts/EnableChain.d.ts +5 -0
- package/services/migration-service/scripts/EnableChain.js +10 -0
- package/services/migration-service/scripts/EnableVaraChain.d.ts +4 -0
- package/services/migration-service/scripts/EnableVaraChain.js +7 -0
- package/services/migration-service/scripts/MigrateEthProvider.d.ts +5 -3
- package/services/migration-service/scripts/MigrateEthProvider.js +5 -20
- package/services/migration-service/scripts/MigratePioneerProvider.d.ts +6 -0
- package/services/migration-service/scripts/MigratePioneerProvider.js +9 -0
- package/services/migration-service/scripts/MigrateProvider.d.ts +7 -0
- package/services/migration-service/scripts/MigrateProvider.js +21 -0
- package/services/migration-service/scripts/index.js +5 -1
- package/services/transaction-service/index.js +6 -1
|
@@ -68,6 +68,7 @@ export default class TransactionService {
|
|
|
68
68
|
address,
|
|
69
69
|
chain,
|
|
70
70
|
edAsWarning,
|
|
71
|
+
extrinsicType,
|
|
71
72
|
isTransferAll,
|
|
72
73
|
transaction
|
|
73
74
|
} = validation;
|
|
@@ -77,7 +78,11 @@ export default class TransactionService {
|
|
|
77
78
|
|
|
78
79
|
// Return unsupported error if not found transaction
|
|
79
80
|
if (!transaction) {
|
|
80
|
-
|
|
81
|
+
if (extrinsicType === ExtrinsicType.SEND_NFT) {
|
|
82
|
+
validation.errors.push(new TransactionError(BasicTxErrorType.UNSUPPORTED, t('This feature is not yet available for this NFT')));
|
|
83
|
+
} else {
|
|
84
|
+
validation.errors.push(new TransactionError(BasicTxErrorType.UNSUPPORTED));
|
|
85
|
+
}
|
|
81
86
|
}
|
|
82
87
|
const validationResponse = {
|
|
83
88
|
status: undefined,
|