@bitgo/sdk-coin-polyx 1.0.4 → 1.1.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 +6 -0
- package/dist/src/lib/iface.d.ts +5 -5
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +1 -1
- package/dist/src/lib/index.d.ts +4 -7
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +20 -47
- package/dist/src/lib/registerDidWithCDDBuilder.d.ts +29 -0
- package/dist/src/lib/registerDidWithCDDBuilder.d.ts.map +1 -0
- package/dist/src/lib/registerDidWithCDDBuilder.js +67 -0
- package/dist/src/lib/transactionBuilderFactory.d.ts +9 -5
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilderFactory.js +43 -8
- package/dist/src/lib/transferBuilder.d.ts +48 -2
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +104 -3
- package/dist/src/lib/txnSchema.d.ts +3 -0
- package/dist/src/lib/txnSchema.d.ts.map +1 -0
- package/dist/src/lib/txnSchema.js +15 -0
- package/dist/src/lib/utils.d.ts +4 -14
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +7 -25
- package/dist/src/resources/index.d.ts +3 -0
- package/dist/src/resources/index.d.ts.map +1 -0
- package/dist/src/resources/index.js +19 -0
- package/dist/src/resources/mainnet.d.ts +13 -0
- package/dist/src/resources/mainnet.d.ts.map +1 -0
- package/dist/src/resources/mainnet.js +16 -0
- package/dist/src/resources/testnet.d.ts +13 -0
- package/dist/src/resources/testnet.d.ts.map +1 -0
- package/dist/src/resources/testnet.js +16 -0
- package/package.json +11 -8
- package/dist/src/lib/keyPair.d.ts +0 -12
- package/dist/src/lib/keyPair.d.ts.map +0 -1
- package/dist/src/lib/keyPair.js +0 -24
- package/dist/src/lib/transaction.d.ts +0 -8
- package/dist/src/lib/transaction.d.ts.map +0 -1
- package/dist/src/lib/transaction.js +0 -17
- package/dist/src/lib/transactionBuilder.d.ts +0 -43
- package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilder.js +0 -78
package/dist/src/lib/utils.js
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Utils = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isValidBlockId(hash) {
|
|
11
|
-
throw new Error('Method not implemented.');
|
|
12
|
-
}
|
|
13
|
-
/** @inheritdoc */
|
|
14
|
-
isValidPrivateKey(key) {
|
|
15
|
-
throw new Error('Method not implemented.');
|
|
16
|
-
}
|
|
17
|
-
/** @inheritdoc */
|
|
18
|
-
isValidPublicKey(key) {
|
|
19
|
-
throw new Error('Method not implemented.');
|
|
20
|
-
}
|
|
21
|
-
/** @inheritdoc */
|
|
22
|
-
isValidSignature(signature) {
|
|
23
|
-
throw new Error('Method not implemented.');
|
|
24
|
-
}
|
|
25
|
-
/** @inheritdoc */
|
|
26
|
-
isValidTransactionId(txId) {
|
|
27
|
-
throw new Error('Method not implemented.');
|
|
4
|
+
const abstract_substrate_1 = require("@bitgo/abstract-substrate");
|
|
5
|
+
const statics_1 = require("@bitgo/statics");
|
|
6
|
+
const resources_1 = require("../resources");
|
|
7
|
+
class Utils extends abstract_substrate_1.Utils {
|
|
8
|
+
getMaterial(networkType) {
|
|
9
|
+
return (networkType === statics_1.NetworkType.MAINNET ? resources_1.mainnetMaterial : resources_1.testnetMaterial);
|
|
28
10
|
}
|
|
29
11
|
}
|
|
30
12
|
exports.Utils = Utils;
|
|
31
13
|
const utils = new Utils();
|
|
32
14
|
exports.default = utils;
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=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ZXJpYWwpIGFzIHVua25vd24gYXMgSW50ZXJmYWNlLk1hdGVyaWFsO1xuICB9XG59XG5cbmNvbnN0IHV0aWxzID0gbmV3IFV0aWxzKCk7XG5leHBvcnQgZGVmYXVsdCB1dGlscztcbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mainnet"), exports);
|
|
18
|
+
__exportStar(require("./testnet"), exports);
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcmVzb3VyY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw0Q0FBMEI7QUFDMUIsNENBQTBCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tYWlubmV0JztcbmV4cG9ydCAqIGZyb20gJy4vdGVzdG5ldCc7XG4iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const mainnetMaterial: {
|
|
2
|
+
at: {
|
|
3
|
+
hash: string;
|
|
4
|
+
height: string;
|
|
5
|
+
};
|
|
6
|
+
genesisHash: string;
|
|
7
|
+
chainName: string;
|
|
8
|
+
specName: string;
|
|
9
|
+
specVersion: number;
|
|
10
|
+
txVersion: number;
|
|
11
|
+
metadata: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=mainnet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mainnet.d.ts","sourceRoot":"","sources":["../../../src/resources/mainnet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;CAY3B,CAAC"}
|