pshenmic-dpp 1.1.0-dev.6 → 1.1.0-dev.7
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/wasm/pshenmic_dpp.d.ts +43 -43
- package/dist/wasm/pshenmic_dpp.js +122 -60
- package/dist/wasm/pshenmic_dpp_bg.js +1 -1
- package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +39 -39
- package/dist/wasm/pshenmic_dpp_zipped.js +1 -1
- package/package.json +1 -1
- package/tests/IdentityCreditTransferTransition.spec.cjs +16 -16
- package/tests/IdentityCreditWithdrawalTransition.spec.cjs +17 -17
|
@@ -8,7 +8,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
8
8
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
9
9
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
10
10
|
|
|
11
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
11
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
12
12
|
|
|
13
13
|
assert.notEqual(identifier.__wbg_ptr, 0)
|
|
14
14
|
assert.notEqual(script.__wbg_ptr, 0)
|
|
@@ -21,7 +21,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
21
21
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
22
22
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
23
23
|
|
|
24
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
24
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
25
25
|
|
|
26
26
|
assert.deepEqual(transition.outputScript.toString(), 'dqkUAQEBAQEBAQEBAQEBAQEBAQEBAQGIrA==')
|
|
27
27
|
})
|
|
@@ -30,7 +30,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
30
30
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
31
31
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
32
32
|
|
|
33
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
33
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
34
34
|
|
|
35
35
|
assert.deepEqual(transition.pooling, 'Never')
|
|
36
36
|
})
|
|
@@ -39,7 +39,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
39
39
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
40
40
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
41
41
|
|
|
42
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
42
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
43
43
|
|
|
44
44
|
assert.deepEqual(transition.identityId.base58(), identifier.base58())
|
|
45
45
|
})
|
|
@@ -48,7 +48,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
48
48
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
49
49
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
50
50
|
|
|
51
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
51
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
52
52
|
|
|
53
53
|
assert.deepEqual(transition.userFeeIncrease, 1)
|
|
54
54
|
})
|
|
@@ -57,7 +57,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
57
57
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
58
58
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
59
59
|
|
|
60
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
60
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
61
61
|
|
|
62
62
|
assert.deepEqual(transition.nonce, BigInt(1))
|
|
63
63
|
})
|
|
@@ -66,7 +66,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
66
66
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
67
67
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
68
68
|
|
|
69
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
69
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
70
70
|
|
|
71
71
|
assert.deepEqual(transition.amount, BigInt(111))
|
|
72
72
|
})
|
|
@@ -75,7 +75,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
75
75
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
76
76
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
77
77
|
|
|
78
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
78
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
79
79
|
|
|
80
80
|
assert.deepEqual(transition.signature, Uint8Array.from([]))
|
|
81
81
|
})
|
|
@@ -84,7 +84,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
84
84
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
85
85
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
86
86
|
|
|
87
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
87
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
88
88
|
|
|
89
89
|
assert.deepEqual(transition.signaturePublicKeyId, 0)
|
|
90
90
|
})
|
|
@@ -95,7 +95,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
95
95
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
96
96
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
97
97
|
|
|
98
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
98
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
99
99
|
|
|
100
100
|
const script2 = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
101
101
|
|
|
@@ -108,7 +108,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
108
108
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
109
109
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
110
110
|
|
|
111
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
111
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
112
112
|
|
|
113
113
|
transition.pooling = 'Standard'
|
|
114
114
|
|
|
@@ -119,7 +119,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
119
119
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
120
120
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
121
121
|
|
|
122
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
122
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
123
123
|
|
|
124
124
|
const identifier2 = new wasm.IdentifierWASM('11SAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
125
125
|
|
|
@@ -132,7 +132,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
132
132
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
133
133
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
134
134
|
|
|
135
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
135
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
136
136
|
|
|
137
137
|
transition.userFeeIncrease = 999
|
|
138
138
|
|
|
@@ -143,7 +143,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
143
143
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
144
144
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
145
145
|
|
|
146
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
146
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
147
147
|
|
|
148
148
|
transition.nonce = BigInt(1111)
|
|
149
149
|
|
|
@@ -154,7 +154,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
154
154
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
155
155
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
156
156
|
|
|
157
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
157
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
158
158
|
|
|
159
159
|
transition.amount = BigInt(2222)
|
|
160
160
|
|
|
@@ -165,7 +165,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
165
165
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
166
166
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
167
167
|
|
|
168
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
168
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
169
169
|
|
|
170
170
|
transition.signature = Uint8Array.from([1, 2, 3])
|
|
171
171
|
|
|
@@ -176,7 +176,7 @@ describe('IdentityCreditWithdrawalTransition', function () {
|
|
|
176
176
|
const identifier = new wasm.IdentifierWASM('GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec')
|
|
177
177
|
const script = wasm.CoreScriptWASM.newP2PKH([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
|
178
178
|
|
|
179
|
-
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never',
|
|
179
|
+
const transition = new wasm.IdentityCreditWithdrawalTransitionWASM(identifier, BigInt(111), 1, 'never', BigInt(1), script, 1)
|
|
180
180
|
|
|
181
181
|
transition.signaturePublicKeyId = 11
|
|
182
182
|
|