@merkl/contracts 1.4.39 → 1.4.41
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/src/idls/index.d.ts +8 -0
- package/dist/src/idls/index.js +19 -0
- package/dist/src/idls/index.js.map +1 -0
- package/dist/src/idls/types/meteoraDLMM.d.ts +8122 -0
- package/dist/src/idls/types/meteoraDLMM.js +2 -0
- package/dist/src/idls/types/meteoraDLMM.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LbClmm } from "./types/meteoraDLMM";
|
|
2
|
+
export declare enum IdlName {
|
|
3
|
+
MeteoraDLMM = "meteoraDLMM"
|
|
4
|
+
}
|
|
5
|
+
export type IdlTypeMap = {
|
|
6
|
+
[IdlName.MeteoraDLMM]: LbClmm;
|
|
7
|
+
};
|
|
8
|
+
export declare function getIdl<T extends IdlName>(name: T): Promise<IdlTypeMap[T]>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
export { IdlName };
|
|
10
|
+
// Idl identifiers
|
|
11
|
+
var IdlName;
|
|
12
|
+
(function (IdlName) {
|
|
13
|
+
IdlName["MeteoraDLMM"] = "meteoraDLMM";
|
|
14
|
+
})(IdlName || (IdlName = {}));
|
|
15
|
+
export async function getIdl(name) {
|
|
16
|
+
const idl = await import(__rewriteRelativeImportExtension(`./idls/${name}.json`));
|
|
17
|
+
return idl.default ?? idl;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/idls/index.ts"],"names":[],"mappings":";;;;;;;;SAIY,OAAO;AADnB,kBAAkB;AAClB,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sCAA2B,CAAA;AAAC,CAC9B,EAFY,OAAO,KAAP,OAAO,QAElB;AAOD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAoB,IAAO,EAA0B;IAC/E,MAAM,GAAG,GAAG,MAAM,MAAM,kCAAC,UAAU,IAAI,OAAO,EAAC,CAAC;IAChD,OAAO,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC;AAAA,CAC3B"}
|