@cardano-sdk/core 0.41.3 → 0.41.4
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/cjs/Cardano/Address/DRepID.d.ts +6 -0
- package/dist/cjs/Cardano/Address/DRepID.d.ts.map +1 -1
- package/dist/cjs/Cardano/Address/DRepID.js +87 -2
- package/dist/cjs/Cardano/Address/DRepID.js.map +1 -1
- package/dist/cjs/Provider/DRepProvider/index.d.ts +2 -0
- package/dist/cjs/Provider/DRepProvider/index.d.ts.map +1 -0
- package/dist/cjs/Provider/DRepProvider/index.js +18 -0
- package/dist/cjs/Provider/DRepProvider/index.js.map +1 -0
- package/dist/cjs/Provider/DRepProvider/types.d.ts +19 -0
- package/dist/cjs/Provider/DRepProvider/types.d.ts.map +1 -0
- package/dist/cjs/Provider/DRepProvider/types.js +3 -0
- package/dist/cjs/Provider/DRepProvider/types.js.map +1 -0
- package/dist/cjs/Provider/index.d.ts +1 -0
- package/dist/cjs/Provider/index.d.ts.map +1 -1
- package/dist/cjs/Provider/index.js +1 -0
- package/dist/cjs/Provider/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/Cardano/Address/DRepID.d.ts +6 -0
- package/dist/esm/Cardano/Address/DRepID.d.ts.map +1 -1
- package/dist/esm/Cardano/Address/DRepID.js +66 -4
- package/dist/esm/Cardano/Address/DRepID.js.map +1 -1
- package/dist/esm/Provider/DRepProvider/index.d.ts +2 -0
- package/dist/esm/Provider/DRepProvider/index.d.ts.map +1 -0
- package/dist/esm/Provider/DRepProvider/index.js +2 -0
- package/dist/esm/Provider/DRepProvider/index.js.map +1 -0
- package/dist/esm/Provider/DRepProvider/types.d.ts +19 -0
- package/dist/esm/Provider/DRepProvider/types.d.ts.map +1 -0
- package/dist/esm/Provider/DRepProvider/types.js +2 -0
- package/dist/esm/Provider/DRepProvider/types.js.map +1 -0
- package/dist/esm/Provider/index.d.ts +1 -0
- package/dist/esm/Provider/index.d.ts.map +1 -1
- package/dist/esm/Provider/index.js +1 -0
- package/dist/esm/Provider/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { Credential } from './Address';
|
|
1
2
|
import { OpaqueString } from '@cardano-sdk/util';
|
|
2
3
|
export declare type DRepID = OpaqueString<'DRepID'>;
|
|
3
4
|
export declare const DRepID: {
|
|
4
5
|
(value: string): DRepID;
|
|
5
6
|
isValid(value: string): boolean;
|
|
6
7
|
canSign(value: string): boolean;
|
|
8
|
+
cip105FromCredential(credential: Credential): DRepID;
|
|
9
|
+
cip129FromCredential(credential: Credential): DRepID;
|
|
10
|
+
toCredential(drepId: DRepID): Credential;
|
|
11
|
+
toCip105DRepID(drepId: DRepID): DRepID;
|
|
12
|
+
toCip129DRepID(drepId: DRepID): DRepID;
|
|
7
13
|
};
|
|
8
14
|
//# sourceMappingURL=DRepID.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DRepID.d.ts","sourceRoot":"","sources":["../../../../src/Cardano/Address/DRepID.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"DRepID.d.ts","sourceRoot":"","sources":["../../../../src/Cardano/Address/DRepID.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,UAAU,EAAkB,MAAM,WAAW,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAO9D,oBAAY,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAI5C,eAAO,MAAM,MAAM;YAAW,MAAM,GAAG,MAAM;mBAQpB,MAAM,GAAG,OAAO;mBAShB,MAAM,GAAG,OAAO;qCAQE,UAAU,GAAG,MAAM;qCAWnB,UAAU,GAAG,MAAM;yBAe/B,MAAM,GAAG,UAAU;2BAkCjB,MAAM,GAAG,MAAM;2BAKf,MAAM,GAAG,MAAM;CApF/C,CAAC"}
|
|
@@ -1,13 +1,48 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.DRepID = void 0;
|
|
27
|
+
const BaseEncoding = __importStar(require("@scure/base"));
|
|
4
28
|
const Address_1 = require("./Address");
|
|
29
|
+
const crypto_1 = require("@cardano-sdk/crypto");
|
|
5
30
|
const util_1 = require("@cardano-sdk/util");
|
|
6
|
-
const
|
|
31
|
+
const MAX_BECH32_LENGTH_LIMIT = 1023;
|
|
32
|
+
const CIP_105_DREP_ID_LENGTH = 28;
|
|
33
|
+
const CIP_129_DREP_ID_LENGTH = 29;
|
|
34
|
+
const DRepID = (value) => {
|
|
35
|
+
try {
|
|
36
|
+
return (0, util_1.typedBech32)(value, ['drep'], 47);
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return (0, util_1.typedBech32)(value, ['drep', 'drep_script'], 45);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
7
42
|
exports.DRepID = DRepID;
|
|
8
43
|
exports.DRepID.isValid = (value) => {
|
|
9
44
|
try {
|
|
10
|
-
(0,
|
|
45
|
+
(0, exports.DRepID)(value);
|
|
11
46
|
return true;
|
|
12
47
|
}
|
|
13
48
|
catch {
|
|
@@ -22,4 +57,54 @@ exports.DRepID.canSign = (value) => {
|
|
|
22
57
|
return false;
|
|
23
58
|
}
|
|
24
59
|
};
|
|
60
|
+
exports.DRepID.cip105FromCredential = (credential) => {
|
|
61
|
+
let prefix = 'drep';
|
|
62
|
+
if (credential.type === Address_1.CredentialType.ScriptHash) {
|
|
63
|
+
prefix = 'drep_script';
|
|
64
|
+
}
|
|
65
|
+
const words = BaseEncoding.bech32.toWords(Buffer.from(credential.hash, 'hex'));
|
|
66
|
+
return BaseEncoding.bech32.encode(prefix, words, MAX_BECH32_LENGTH_LIMIT);
|
|
67
|
+
};
|
|
68
|
+
exports.DRepID.cip129FromCredential = (credential) => {
|
|
69
|
+
let header = '22';
|
|
70
|
+
if (credential.type === Address_1.CredentialType.ScriptHash) {
|
|
71
|
+
header = '23';
|
|
72
|
+
}
|
|
73
|
+
const cip129payload = `${header}${credential.hash}`;
|
|
74
|
+
const words = BaseEncoding.bech32.toWords(Buffer.from(cip129payload, 'hex'));
|
|
75
|
+
return BaseEncoding.bech32.encode('drep', words, MAX_BECH32_LENGTH_LIMIT);
|
|
76
|
+
};
|
|
77
|
+
exports.DRepID.toCredential = (drepId) => {
|
|
78
|
+
const { words } = BaseEncoding.bech32.decode(drepId, MAX_BECH32_LENGTH_LIMIT);
|
|
79
|
+
const payload = BaseEncoding.bech32.fromWords(words);
|
|
80
|
+
if (payload.length !== CIP_105_DREP_ID_LENGTH && payload.length !== CIP_129_DREP_ID_LENGTH) {
|
|
81
|
+
throw new Error('Invalid DRepID payload');
|
|
82
|
+
}
|
|
83
|
+
if (payload.length === CIP_105_DREP_ID_LENGTH) {
|
|
84
|
+
const isScriptHash = drepId.includes('drep_script');
|
|
85
|
+
return {
|
|
86
|
+
hash: (0, crypto_1.Hash28ByteBase16)(Buffer.from(payload).toString('hex')),
|
|
87
|
+
type: isScriptHash ? Address_1.CredentialType.ScriptHash : Address_1.CredentialType.KeyHash
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const header = payload[0];
|
|
91
|
+
const hash = payload.slice(1);
|
|
92
|
+
const isDrepGovCred = (header & 0x20) === 0x20;
|
|
93
|
+
const isScriptHash = (header & 0x03) === 0x03;
|
|
94
|
+
if (!isDrepGovCred) {
|
|
95
|
+
throw new Error('Invalid governance credential type');
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
hash: (0, crypto_1.Hash28ByteBase16)(Buffer.from(hash).toString('hex')),
|
|
99
|
+
type: isScriptHash ? Address_1.CredentialType.ScriptHash : Address_1.CredentialType.KeyHash
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
exports.DRepID.toCip105DRepID = (drepId) => {
|
|
103
|
+
const credential = exports.DRepID.toCredential(drepId);
|
|
104
|
+
return exports.DRepID.cip105FromCredential(credential);
|
|
105
|
+
};
|
|
106
|
+
exports.DRepID.toCip129DRepID = (drepId) => {
|
|
107
|
+
const credential = exports.DRepID.toCredential(drepId);
|
|
108
|
+
return exports.DRepID.cip129FromCredential(credential);
|
|
109
|
+
};
|
|
25
110
|
//# sourceMappingURL=DRepID.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DRepID.js","sourceRoot":"","sources":["../../../../src/Cardano/Address/DRepID.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DRepID.js","sourceRoot":"","sources":["../../../../src/Cardano/Address/DRepID.ts"],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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Provider/DRepProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Provider/DRepProvider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Cardano, Provider } from '../..';
|
|
2
|
+
export interface GetDRepInfoArgs {
|
|
3
|
+
id: Cardano.DRepID;
|
|
4
|
+
}
|
|
5
|
+
export interface GetDRepsInfoArgs {
|
|
6
|
+
ids: Cardano.DRepID[];
|
|
7
|
+
}
|
|
8
|
+
export interface DRepInfo {
|
|
9
|
+
id: Cardano.DRepID;
|
|
10
|
+
amount: Cardano.Lovelace;
|
|
11
|
+
active: boolean;
|
|
12
|
+
activeEpoch?: Cardano.EpochNo;
|
|
13
|
+
hasScript: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface DRepProvider extends Provider {
|
|
16
|
+
getDRepInfo: (args: GetDRepInfoArgs) => Promise<DRepInfo>;
|
|
17
|
+
getDRepsInfo: (args: GetDRepsInfoArgs) => Promise<DRepInfo[]>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Provider/DRepProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,WAAW,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1D,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/Provider/DRepProvider/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
@@ -39,4 +39,5 @@ __exportStar(require("./ChainHistoryProvider"), exports);
|
|
|
39
39
|
__exportStar(require("./providerFactory"), exports);
|
|
40
40
|
__exportStar(require("./types"), exports);
|
|
41
41
|
__exportStar(require("./HandleProvider"), exports);
|
|
42
|
+
__exportStar(require("./DRepProvider"), exports);
|
|
42
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Provider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,+DAA+C;AAC/C,iDAA+B;AAC/B,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB;AACxB,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Provider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,sDAAoC;AACpC,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,+DAA+C;AAC/C,iDAA+B;AAC/B,yDAAuC;AACvC,oDAAkC;AAClC,0CAAwB;AACxB,mDAAiC;AACjC,iDAA+B"}
|