cashscript 0.7.3 → 0.7.5
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/main/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import SignatureTemplate from './SignatureTemplate.js';
|
|
2
|
+
export { SignatureTemplate };
|
|
3
|
+
export { Contract, ContractFunction } from './Contract.js';
|
|
2
4
|
export { Transaction } from './Transaction.js';
|
|
3
5
|
export { Argument } from './Argument.js';
|
|
4
|
-
export { default as SignatureTemplate } from './SignatureTemplate.js';
|
|
5
6
|
export { Artifact, AbiFunction, AbiInput } from '@cashscript/utils';
|
|
6
7
|
export * as utils from '@cashscript/utils';
|
|
7
8
|
export { Utxo, Recipient, SignatureAlgorithm, HashType, Network, } from './interfaces.js';
|
package/dist/main/index.js
CHANGED
|
@@ -29,13 +29,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.FullStackNetworkProvider = exports.ElectrumNetworkProvider = exports.BitcoinRpcNetworkProvider = exports.BitboxNetworkProvider = exports.Network = exports.HashType = exports.SignatureAlgorithm = exports.utils = exports.
|
|
32
|
+
exports.FullStackNetworkProvider = exports.ElectrumNetworkProvider = exports.BitcoinRpcNetworkProvider = exports.BitboxNetworkProvider = exports.Network = exports.HashType = exports.SignatureAlgorithm = exports.utils = exports.Transaction = exports.Contract = exports.SignatureTemplate = void 0;
|
|
33
|
+
const SignatureTemplate_js_1 = __importDefault(require("./SignatureTemplate.js"));
|
|
34
|
+
exports.SignatureTemplate = SignatureTemplate_js_1.default;
|
|
33
35
|
var Contract_js_1 = require("./Contract.js");
|
|
34
36
|
Object.defineProperty(exports, "Contract", { enumerable: true, get: function () { return Contract_js_1.Contract; } });
|
|
35
37
|
var Transaction_js_1 = require("./Transaction.js");
|
|
36
38
|
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_js_1.Transaction; } });
|
|
37
|
-
var SignatureTemplate_js_1 = require("./SignatureTemplate.js");
|
|
38
|
-
Object.defineProperty(exports, "SignatureTemplate", { enumerable: true, get: function () { return __importDefault(SignatureTemplate_js_1).default; } });
|
|
39
39
|
exports.utils = __importStar(require("@cashscript/utils"));
|
|
40
40
|
var interfaces_js_1 = require("./interfaces.js");
|
|
41
41
|
Object.defineProperty(exports, "SignatureAlgorithm", { enumerable: true, get: function () { return interfaces_js_1.SignatureAlgorithm; } });
|
|
@@ -49,7 +49,7 @@ class ElectrumNetworkProvider {
|
|
|
49
49
|
}
|
|
50
50
|
else if (network === interfaces_js_1.Network.CHIPNET) {
|
|
51
51
|
this.electrum = new electrum_cash_1.ElectrumCluster('CashScript Application', '1.4.1', 1, 1, electrum_cash_1.ClusterOrder.PRIORITY);
|
|
52
|
-
this.electrum.addServer('chipnet.imaginary.cash
|
|
52
|
+
this.electrum.addServer('chipnet.imaginary.cash', 50004, electrum_cash_1.ElectrumTransport.WSS.Scheme, false);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
throw new Error(`Tried to instantiate an ElectrumNetworkProvider for unsupported network ${network}`);
|
package/dist/module/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import SignatureTemplate from './SignatureTemplate.js';
|
|
2
|
+
export { SignatureTemplate };
|
|
3
|
+
export { Contract, ContractFunction } from './Contract.js';
|
|
2
4
|
export { Transaction } from './Transaction.js';
|
|
3
5
|
export { Argument } from './Argument.js';
|
|
4
|
-
export { default as SignatureTemplate } from './SignatureTemplate.js';
|
|
5
6
|
export { Artifact, AbiFunction, AbiInput } from '@cashscript/utils';
|
|
6
7
|
export * as utils from '@cashscript/utils';
|
|
7
8
|
export { Utxo, Recipient, SignatureAlgorithm, HashType, Network, } from './interfaces.js';
|
package/dist/module/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import SignatureTemplate from './SignatureTemplate.js';
|
|
2
|
+
export { SignatureTemplate };
|
|
1
3
|
export { Contract } from './Contract.js';
|
|
2
4
|
export { Transaction } from './Transaction.js';
|
|
3
|
-
export { default as SignatureTemplate } from './SignatureTemplate.js';
|
|
4
5
|
import * as utils_1 from '@cashscript/utils';
|
|
5
6
|
export { utils_1 as utils };
|
|
6
7
|
export { SignatureAlgorithm, HashType, Network, } from './interfaces.js';
|
|
@@ -47,7 +47,7 @@ export default class ElectrumNetworkProvider {
|
|
|
47
47
|
}
|
|
48
48
|
else if (network === Network.CHIPNET) {
|
|
49
49
|
this.electrum = new ElectrumCluster('CashScript Application', '1.4.1', 1, 1, ClusterOrder.PRIORITY);
|
|
50
|
-
this.electrum.addServer('chipnet.imaginary.cash
|
|
50
|
+
this.electrum.addServer('chipnet.imaginary.cash', 50004, ElectrumTransport.WSS.Scheme, false);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
53
|
throw new Error(`Tried to instantiate an ElectrumNetworkProvider for unsupported network ${network}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cashscript",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "Easily write and interact with Bitcoin Cash contracts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bitcoin cash",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@bitauth/libauth": "^1.18.1",
|
|
45
|
-
"@cashscript/utils": "^0.7.
|
|
45
|
+
"@cashscript/utils": "^0.7.5",
|
|
46
46
|
"bip68": "^1.0.4",
|
|
47
47
|
"bitcoin-rpc-promise-retry": "^1.3.0",
|
|
48
48
|
"delay": "^5.0.0",
|
|
@@ -55,5 +55,6 @@
|
|
|
55
55
|
"jest": "^26.6.3",
|
|
56
56
|
"ts-jest": "^26.5.1",
|
|
57
57
|
"typescript": "^4.1.5"
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "3534478a15acc1cf3c744085ff5a972d69666447"
|
|
59
60
|
}
|