@smartledger/bsv 7.4.0 → 7.5.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/CHANGELOG.md +56 -0
- package/README.md +38 -38
- package/bsv-gdaf.min.js +6 -6
- package/bsv-ltp.min.js +6 -6
- package/bsv-smartcontract.min.js +1 -1
- package/bsv.bundle.js +6 -6
- package/bsv.d.ts +18 -5
- package/bsv.min.js +6 -6
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/lib/script/interpreter.js +47 -6
- package/package.json +1 -1
- package/test/ordinals/inscription.js +94 -0
- package/test/ordinals/ordlock.js +10 -20
- package/test/script/genesis_limits.js +44 -8
- package/test/smart_contract/covenants.js +2 -4
- package/test/smart_contract/dsl_debugger.js +2 -4
- package/test/smart_contract/ordinal_transfer.js +2 -4
- package/test/smart_contract/sighash_marketplace.js +2 -4
- package/test/smart_contract/token_generalized.js +2 -4
- package/version.js +1 -1
|
@@ -29,13 +29,11 @@ describe('Ordinal-safe transfer (1-sat, SIGHASH_ALL)', function () {
|
|
|
29
29
|
var bob = PrivateKey.fromRandom()
|
|
30
30
|
|
|
31
31
|
before(function () {
|
|
32
|
-
saved =
|
|
32
|
+
saved = I.getLimits()
|
|
33
33
|
SC.enableGenesis()
|
|
34
34
|
})
|
|
35
35
|
after(function () {
|
|
36
|
-
I.
|
|
37
|
-
I.MAXIMUM_ELEMENT_SIZE = saved.num
|
|
38
|
-
I.MAX_OPS_PER_SCRIPT = saved.ops
|
|
36
|
+
I.setLimits(saved)
|
|
39
37
|
})
|
|
40
38
|
|
|
41
39
|
it('transferOrdinal recreates the 1-sat token among funding outputs and verifies', function () {
|
|
@@ -32,13 +32,11 @@ describe('Configurable SIGHASH — SINGLE|ANYONECANPAY marketplace covenant', fu
|
|
|
32
32
|
var flag = P.SIGHASH_SINGLE_ANYONECANPAY_FORKID // 0xc3
|
|
33
33
|
|
|
34
34
|
before(function () {
|
|
35
|
-
saved =
|
|
35
|
+
saved = I.getLimits()
|
|
36
36
|
SC.enableGenesis()
|
|
37
37
|
})
|
|
38
38
|
after(function () {
|
|
39
|
-
I.
|
|
40
|
-
I.MAXIMUM_ELEMENT_SIZE = saved.num
|
|
41
|
-
I.MAX_OPS_PER_SCRIPT = saved.ops
|
|
39
|
+
I.setLimits(saved)
|
|
42
40
|
})
|
|
43
41
|
|
|
44
42
|
// Lock: authenticate the pushed preimage under `flag`, assert the flag, succeed.
|
|
@@ -24,13 +24,11 @@ describe('SmartContract generalized token (pluggable auth + multi-output)', func
|
|
|
24
24
|
var saved
|
|
25
25
|
|
|
26
26
|
before(function () {
|
|
27
|
-
saved =
|
|
27
|
+
saved = I.getLimits()
|
|
28
28
|
SC.enableGenesis()
|
|
29
29
|
})
|
|
30
30
|
after(function () {
|
|
31
|
-
I.
|
|
32
|
-
I.MAXIMUM_ELEMENT_SIZE = saved.num
|
|
33
|
-
I.MAX_OPS_PER_SCRIPT = saved.ops
|
|
31
|
+
I.setLimits(saved)
|
|
34
32
|
})
|
|
35
33
|
|
|
36
34
|
function spendOf (lock, sats, outputs) {
|
package/version.js
CHANGED