pshenmic-dpp 2.0.0-dev.24 → 2.0.0-dev.26
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 +14 -1
- package/dist/binaries/bindingsTypes.js +1 -0
- package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
- package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
- package/dist/binaries/wasm/wasmBytes.cjs +1 -1
- package/dist/src/dpp/structs/Orchard/RecoveredNote.d.ts +1 -0
- package/dist/src/dpp/structs/Orchard/RecoveredNote.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.js +3 -0
- package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.d.ts +2 -1
- package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.js +3 -0
- package/dist/src/dpp/types.d.ts +6 -0
- package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.js +2 -1
- package/package.json +1 -1
- package/tests/unit/ShieldedTransitions.spec.ts +168 -0
|
@@ -617,6 +617,7 @@ export declare class IdentityCreateFromShieldedPoolTransitionNAPI {
|
|
|
617
617
|
set bindingsSignature(jsBindingsSignature: Uint8Array);
|
|
618
618
|
set sendToAddressOnCreationFailure(jsAddress: PlatformAddressLikeNAPI);
|
|
619
619
|
set identityId(jsId: IdentifierLikeNAPI);
|
|
620
|
+
static computeMinimumFee(jsNumActions: number, jsNumKeys: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
620
621
|
toStateTransition(): StateTransitionNAPI;
|
|
621
622
|
static fromStateTransition(st: StateTransitionNAPI): IdentityCreateFromShieldedPoolTransitionNAPI;
|
|
622
623
|
}
|
|
@@ -1254,6 +1255,7 @@ export declare class ShieldedTransferTransitionNAPI {
|
|
|
1254
1255
|
set anchor(jsAnchor: Uint8Array);
|
|
1255
1256
|
set proof(proof: Uint8Array);
|
|
1256
1257
|
set bindingsSignature(jsBindingsSignature: Uint8Array);
|
|
1258
|
+
static computeMinimumFee(jsNumActions: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
1257
1259
|
toStateTransition(): StateTransitionNAPI;
|
|
1258
1260
|
static fromStateTransition(st: StateTransitionNAPI): ShieldedTransferTransitionNAPI;
|
|
1259
1261
|
}
|
|
@@ -1284,6 +1286,7 @@ export declare class ShieldedWithdrawalTransitionNAPI {
|
|
|
1284
1286
|
set coreFeePerByte(coreFeePerByte: number);
|
|
1285
1287
|
set pooling(jsPooling: DynamicValue);
|
|
1286
1288
|
set outputScript(outputScript: CoreScriptNAPI);
|
|
1289
|
+
static computeMinimumFee(jsNumActions: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
1287
1290
|
toStateTransition(): StateTransitionNAPI;
|
|
1288
1291
|
static fromStateTransition(st: StateTransitionNAPI): ShieldedWithdrawalTransitionNAPI;
|
|
1289
1292
|
}
|
|
@@ -1305,6 +1308,7 @@ export declare class ShieldFromAssetLockTransitionNAPI {
|
|
|
1305
1308
|
set bindingsSignature(jsBindingsSignature: Uint8Array);
|
|
1306
1309
|
set surplusOutput(jsSurplusOutput: PlatformAddressLikeNAPI | undefined | null);
|
|
1307
1310
|
set signature(signature: Uint8Array);
|
|
1311
|
+
static computeMinimumFee(jsNumActions: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
1308
1312
|
toStateTransition(): StateTransitionNAPI;
|
|
1309
1313
|
static fromStateTransition(st: StateTransitionNAPI): ShieldFromAssetLockTransitionNAPI;
|
|
1310
1314
|
}
|
|
@@ -1328,6 +1332,7 @@ export declare class ShieldTransitionNAPI {
|
|
|
1328
1332
|
set feeStrategy(feeStrategy: Array<AddressFundsFeeStrategyStepNAPI>);
|
|
1329
1333
|
set userFeeIncrease(userFeeIncrease: number);
|
|
1330
1334
|
set inputWitnesses(jsInputWitnesses: Array<AddressWitnessNAPI>);
|
|
1335
|
+
static computeMinimumFee(jsNumActions: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
1331
1336
|
toStateTransition(): StateTransitionNAPI;
|
|
1332
1337
|
static fromStateTransition(st: StateTransitionNAPI): ShieldTransitionNAPI;
|
|
1333
1338
|
}
|
|
@@ -1755,6 +1760,7 @@ export declare class UnshieldTransitionNAPI {
|
|
|
1755
1760
|
set anchor(jsAnchor: Uint8Array);
|
|
1756
1761
|
set proof(proof: Uint8Array);
|
|
1757
1762
|
set bindingsSignature(jsBindingsSignature: Uint8Array);
|
|
1763
|
+
static computeMinimumFee(jsNumActions: number, jsPlatformVersion?: PlatformVersionNAPI | undefined | null): BigIntString;
|
|
1758
1764
|
toStateTransition(): StateTransitionNAPI;
|
|
1759
1765
|
static fromStateTransition(st: StateTransitionNAPI): UnshieldTransitionNAPI;
|
|
1760
1766
|
}
|
|
@@ -1878,6 +1884,12 @@ export declare class VerifiedShieldedPoolStateNAPI {
|
|
|
1878
1884
|
export declare class VerifiedStateTransitionResultNAPI {
|
|
1879
1885
|
rootHash: Uint8Array;
|
|
1880
1886
|
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 | StoredAssetLockInfoNAPI | Array<[Uint8Array, boolean]> | [Array<[Uint8Array, boolean]>, Array<PlatformAddressInfoNAPI>] | [Array<[Uint8Array, boolean]>, Array<VerifiedDocumentNAPI>] | [StoredAssetLockInfoNAPI, Array<PlatformAddressInfoNAPI>] | [IdentityNAPI, Array<[Uint8Array, boolean]>];
|
|
1887
|
+
/**
|
|
1888
|
+
* Whether the proof binds the execution of this specific state transition.
|
|
1889
|
+
* When false the result is a height-pinned snapshot of the affected state,
|
|
1890
|
+
* not evidence that the transition executed.
|
|
1891
|
+
*/
|
|
1892
|
+
get isExecutionProved(): boolean;
|
|
1881
1893
|
}
|
|
1882
1894
|
export declare class VerifiedTokenBalancesForIdentitiesNAPI {
|
|
1883
1895
|
rootHash: Uint8Array;
|
|
@@ -2108,7 +2120,8 @@ export declare enum PlatformVersionNAPI {
|
|
|
2108
2120
|
PLATFORM_V9 = 9,
|
|
2109
2121
|
PLATFORM_V10 = 10,
|
|
2110
2122
|
PLATFORM_V11 = 11,
|
|
2111
|
-
PLATFORM_V12 = 12
|
|
2123
|
+
PLATFORM_V12 = 12,
|
|
2124
|
+
PLATFORM_V13 = 13
|
|
2112
2125
|
}
|
|
2113
2126
|
export declare enum PoolingNAPI {
|
|
2114
2127
|
Never = 0,
|
|
@@ -58,6 +58,7 @@ export var PlatformVersionNAPI;
|
|
|
58
58
|
PlatformVersionNAPI[PlatformVersionNAPI["PLATFORM_V10"] = 10] = "PLATFORM_V10";
|
|
59
59
|
PlatformVersionNAPI[PlatformVersionNAPI["PLATFORM_V11"] = 11] = "PLATFORM_V11";
|
|
60
60
|
PlatformVersionNAPI[PlatformVersionNAPI["PLATFORM_V12"] = 12] = "PLATFORM_V12";
|
|
61
|
+
PlatformVersionNAPI[PlatformVersionNAPI["PLATFORM_V13"] = 13] = "PLATFORM_V13";
|
|
61
62
|
})(PlatformVersionNAPI || (PlatformVersionNAPI = {}));
|
|
62
63
|
export var PoolingNAPI;
|
|
63
64
|
(function (PoolingNAPI) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|