pshenmic-dpp 2.0.0-dev.7 → 2.0.0-dev.9
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/dist/binaries/bindingsTypes.d.ts +21 -15
- package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
- package/dist/binaries/pshenmic_dpp.d.ts +4 -2
- package/dist/binaries/pshenmic_dpp.js +1 -1
- package/dist/binaries/wasm/wasmBytes.js +1 -1
- package/dist/binaries/wasm.d.ts +4 -2
- package/dist/binaries/wasm.js +1 -1
- package/dist/src/dpp/dpp.d.ts +1 -0
- package/dist/src/dpp/dpp.js +1 -0
- package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +1 -1
- package/dist/src/dpp/structs/PlatformAddress/AddressWitness.d.ts +2 -2
- package/dist/src/dpp/structs/PlatformAddress/AddressWitness.js +2 -2
- package/dist/src/dpp/structs/StateTransition.d.ts +1 -0
- package/dist/src/dpp/structs/StateTransition.js +3 -0
- package/dist/src/dpp/types.d.ts +5 -1
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
- package/dist/src/dpp/verify/StateTransition/utils.js +1 -1
- package/package.json +3 -3
|
@@ -882,6 +882,11 @@ export declare class PartialIdentityNAPI {
|
|
|
882
882
|
set revision(revision: BigIntString | undefined | null);
|
|
883
883
|
set notFoundPublicKeys(keys: Array<number> | undefined | null);
|
|
884
884
|
}
|
|
885
|
+
export declare class PlatformAddressInfoNAPI {
|
|
886
|
+
nonce?: number;
|
|
887
|
+
get address(): PlatformAddressNAPI;
|
|
888
|
+
get credits(): BigIntString | null;
|
|
889
|
+
}
|
|
885
890
|
export declare class PlatformAddressNAPI {
|
|
886
891
|
constructor(address: PlatformAddressLikeNAPI);
|
|
887
892
|
bytes(): Uint8Array;
|
|
@@ -979,6 +984,7 @@ export declare class StateTransitionNAPI {
|
|
|
979
984
|
set signature(signature: Uint8Array);
|
|
980
985
|
set signaturePublicKeyId(keyId: number);
|
|
981
986
|
set userFeeIncrease(userFeeIncrease: number);
|
|
987
|
+
getSignableBytes(): Uint8Array;
|
|
982
988
|
setOwnerId(jsOwnerId: IdentifierLikeNAPI): void;
|
|
983
989
|
setIdentityContractNonce(nonce: BigIntString): void;
|
|
984
990
|
setIdentityNonce(nonce: BigIntString): void;
|
|
@@ -1348,17 +1354,6 @@ export declare class TxOutNAPI {
|
|
|
1348
1354
|
set scriptPubKeyBytes(scriptPubkeyBytes: Uint8Array);
|
|
1349
1355
|
getScriptPubKeyASM(): string;
|
|
1350
1356
|
}
|
|
1351
|
-
export declare class VerifiedAddressInfoNAPI {
|
|
1352
|
-
rootHash: Uint8Array;
|
|
1353
|
-
nonce?: number;
|
|
1354
|
-
balance?: BigIntString;
|
|
1355
|
-
get address(): PlatformAddressNAPI | null;
|
|
1356
|
-
}
|
|
1357
|
-
export declare class VerifiedAddressInfosNAPI {
|
|
1358
|
-
nonce?: number;
|
|
1359
|
-
get address(): PlatformAddressNAPI;
|
|
1360
|
-
get credits(): BigIntString | null;
|
|
1361
|
-
}
|
|
1362
1357
|
export declare class VerifiedBalanceTransferNAPI {
|
|
1363
1358
|
get sender(): PartialIdentityNAPI;
|
|
1364
1359
|
get recipient(): PartialIdentityNAPI;
|
|
@@ -1408,7 +1403,7 @@ export declare class VerifiedIdentityContractNonceNAPI {
|
|
|
1408
1403
|
}
|
|
1409
1404
|
export declare class VerifiedIdentityFullWithAddressInfosNAPI {
|
|
1410
1405
|
get identity(): IdentityNAPI;
|
|
1411
|
-
get infos(): Array<
|
|
1406
|
+
get infos(): Array<PlatformAddressInfoNAPI>;
|
|
1412
1407
|
}
|
|
1413
1408
|
export declare class VerifiedIdentityKeysByIdentifierNAPI {
|
|
1414
1409
|
rootHash: Uint8Array;
|
|
@@ -1425,11 +1420,21 @@ export declare class VerifiedIdentityTokenInfoNAPI {
|
|
|
1425
1420
|
}
|
|
1426
1421
|
export declare class VerifiedIdentityWithAddressInfosNAPI {
|
|
1427
1422
|
get identity(): PartialIdentityNAPI;
|
|
1428
|
-
get infos(): Array<
|
|
1423
|
+
get infos(): Array<PlatformAddressInfoNAPI>;
|
|
1424
|
+
}
|
|
1425
|
+
export declare class VerifiedPlatformAddressesInfosNAPI {
|
|
1426
|
+
rootHash: Uint8Array;
|
|
1427
|
+
get infos(): Array<PlatformAddressInfoNAPI>;
|
|
1428
|
+
}
|
|
1429
|
+
export declare class VerifiedPlatformAddressInfoNAPI {
|
|
1430
|
+
rootHash: Uint8Array;
|
|
1431
|
+
nonce?: number;
|
|
1432
|
+
balance?: BigIntString;
|
|
1433
|
+
get address(): PlatformAddressNAPI | null;
|
|
1429
1434
|
}
|
|
1430
1435
|
export declare class VerifiedStateTransitionResultNAPI {
|
|
1431
1436
|
rootHash: Uint8Array;
|
|
1432
|
-
get result(): DataContractNAPI | IdentityNAPI | IdentifierNAPI | VerifiedIdentityBalanceNAPI | VerifiedIdentityTokenInfoNAPI | VerifiedTokenPricingScheduleNAPI | TokenStatusNAPI | Array<VerifiedIdentityBalanceNAPI> | PartialIdentityNAPI | VerifiedBalanceTransferNAPI | Array<VerifiedDocumentNAPI> | DocumentNAPI | VerifiedTokenGroupActionWithDocumentNAPI | VerifiedTokenGroupActionWithTokenBalanceNAPI | VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | VoteNAPI | Array<
|
|
1437
|
+
get result(): DataContractNAPI | IdentityNAPI | IdentifierNAPI | VerifiedIdentityBalanceNAPI | VerifiedIdentityTokenInfoNAPI | VerifiedTokenPricingScheduleNAPI | TokenStatusNAPI | Array<VerifiedIdentityBalanceNAPI> | PartialIdentityNAPI | VerifiedBalanceTransferNAPI | Array<VerifiedDocumentNAPI> | DocumentNAPI | VerifiedTokenGroupActionWithDocumentNAPI | VerifiedTokenGroupActionWithTokenBalanceNAPI | VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | VoteNAPI | Array<PlatformAddressInfoNAPI> | VerifiedIdentityFullWithAddressInfosNAPI | VerifiedIdentityWithAddressInfosNAPI;
|
|
1433
1438
|
}
|
|
1434
1439
|
export declare class VerifiedTokenBalancesForIdentitiesNAPI {
|
|
1435
1440
|
rootHash: Uint8Array;
|
|
@@ -1688,7 +1693,8 @@ export declare const enum TokenEmergencyActionNAPI {
|
|
|
1688
1693
|
Pause = 0,
|
|
1689
1694
|
Resume = 1
|
|
1690
1695
|
}
|
|
1691
|
-
export declare function
|
|
1696
|
+
export declare function verifyAddressesInfos(proof: Uint8Array, jsPlatformAddresses: Array<PlatformAddressLikeNAPI>, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedPlatformAddressesInfosNAPI;
|
|
1697
|
+
export declare function verifyAddressInfo(proof: Uint8Array, jsPlatformAddress: PlatformAddressLikeNAPI, verifySubsetOfProof: boolean, jsPlatformVersion: DynamicValue): VerifiedPlatformAddressInfoNAPI;
|
|
1692
1698
|
export declare function verifyContractProof(proof: Uint8Array, contractKnownKeepsHistory: boolean | undefined | null, isProofSubset: boolean, inMultipleContractProofForm: boolean, jsContractId: IdentifierLikeNAPI, jsPlatformVersion: DynamicValue): VerifiedContractNAPI;
|
|
1693
1699
|
export declare function verifyDocumentsProof(proof: Uint8Array, contract: DataContractNAPI, documentTypeName: string, jsWhereClauses: DynamicValue, jsOrderBy: Array<Array<string>>, limit: number | undefined | null, jsStartAt: IdentifierLikeNAPI | undefined | null, startAtIncluded: boolean, blockTimeMs: BigIntString | undefined | null, jsPlatformVersion: DynamicValue): VerifiedDocumentsNAPI;
|
|
1694
1700
|
export declare function verifyEpochsInfoProof(proof: Uint8Array, currentEpoch: number, startEpoch: number | undefined | null, count: number, ascending: boolean, jsPlatformVersion: DynamicValue): VerifiedEpochsInfoNAPI;
|
|
Binary file
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const verifyAddressesInfos: any;
|
|
1
2
|
export const verifyAddressInfo: any;
|
|
2
3
|
export const verifyContractProof: any;
|
|
3
4
|
export const verifyDocumentsProof: any;
|
|
@@ -78,6 +79,7 @@ export const OutPointNAPI: any;
|
|
|
78
79
|
export const OutputAddressNAPI: any;
|
|
79
80
|
export const OutputAddressNullableCreditsNAPI: any;
|
|
80
81
|
export const PartialIdentityNAPI: any;
|
|
82
|
+
export const PlatformAddressInfoNAPI: any;
|
|
81
83
|
export const PlatformAddressNAPI: any;
|
|
82
84
|
export const PrefundedVotingBalanceNAPI: any;
|
|
83
85
|
export const PrivateEncryptedNoteNAPI: any;
|
|
@@ -120,8 +122,6 @@ export const TotalSingleTokenBalanceNAPI: any;
|
|
|
120
122
|
export const TransactionNAPI: any;
|
|
121
123
|
export const TxInNAPI: any;
|
|
122
124
|
export const TxOutNAPI: any;
|
|
123
|
-
export const VerifiedAddressInfoNAPI: any;
|
|
124
|
-
export const VerifiedAddressInfosNAPI: any;
|
|
125
125
|
export const VerifiedBalanceTransferNAPI: any;
|
|
126
126
|
export const VerifiedContractNAPI: any;
|
|
127
127
|
export const VerifiedDocumentNAPI: any;
|
|
@@ -137,6 +137,8 @@ export const VerifiedIdentityKeysByIdentifierNAPI: any;
|
|
|
137
137
|
export const VerifiedIdentityNonceNAPI: any;
|
|
138
138
|
export const VerifiedIdentityTokenInfoNAPI: any;
|
|
139
139
|
export const VerifiedIdentityWithAddressInfosNAPI: any;
|
|
140
|
+
export const VerifiedPlatformAddressesInfosNAPI: any;
|
|
141
|
+
export const VerifiedPlatformAddressInfoNAPI: any;
|
|
140
142
|
export const VerifiedStateTransitionResultNAPI: any;
|
|
141
143
|
export const VerifiedTokenBalancesForIdentitiesNAPI: any;
|
|
142
144
|
export const VerifiedTokenContractInfoNAPI: any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import { requireNodeAddon } from 'react-native-node-api';
|
|
3
|
-
export const { verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SharedEncryptedNoteNAPI, StateTransitionNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI,
|
|
3
|
+
export const { verifyAddressesInfos, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SharedEncryptedNoteNAPI, StateTransitionNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = requireNodeAddon('./pshenmic-dpp--pshenmic_dpp');
|