@varla/sdk 1.0.1 → 1.1.1
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/README.md +112 -1
- package/dist/batch.d.ts +26 -0
- package/dist/batch.d.ts.map +1 -0
- package/dist/batch.js +34 -0
- package/dist/contracts.d.ts +37676 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +139 -0
- package/dist/events/decode.d.ts +14 -0
- package/dist/events/decode.d.ts.map +1 -0
- package/dist/events/decode.js +26 -0
- package/dist/events/defs.d.ts +24 -0
- package/dist/events/defs.d.ts.map +1 -0
- package/dist/events/defs.js +61 -0
- package/dist/events/index.d.ts +6 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +6 -0
- package/dist/events/logs.d.ts +17 -0
- package/dist/events/logs.d.ts.map +1 -0
- package/dist/events/logs.js +25 -0
- package/dist/events/oracleRegistrySync.d.ts +33 -0
- package/dist/events/oracleRegistrySync.d.ts.map +1 -0
- package/dist/events/oracleRegistrySync.js +157 -0
- package/dist/events/recent.d.ts +19 -0
- package/dist/events/recent.d.ts.map +1 -0
- package/dist/events/recent.js +24 -0
- package/dist/generated.d.ts +8499 -0
- package/dist/generated.d.ts.map +1 -0
- package/dist/generated.js +22 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/views/accessManager.d.ts +51 -0
- package/dist/views/accessManager.d.ts.map +1 -0
- package/dist/views/accessManager.js +44 -0
- package/dist/views/adapters.d.ts +19 -0
- package/dist/views/adapters.d.ts.map +1 -0
- package/dist/views/adapters.js +11 -0
- package/dist/views/admin.d.ts +13606 -0
- package/dist/views/admin.d.ts.map +1 -0
- package/dist/views/admin.js +25 -0
- package/dist/views/core.d.ts +33 -0
- package/dist/views/core.d.ts.map +1 -0
- package/dist/views/core.js +50 -0
- package/dist/views/index.d.ts +8 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/index.js +8 -0
- package/dist/views/liquidators.d.ts +40 -0
- package/dist/views/liquidators.d.ts.map +1 -0
- package/dist/views/liquidators.js +20 -0
- package/dist/views/oracle.d.ts +26 -0
- package/dist/views/oracle.d.ts.map +1 -0
- package/dist/views/oracle.js +41 -0
- package/dist/views/pool.d.ts +16 -0
- package/dist/views/pool.d.ts.map +1 -0
- package/dist/views/pool.js +32 -0
- package/package.json +14 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaP,CAAC;AAEX,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Auto-generated by varla-protocol/scripts/export-sdk-generated.ts
|
|
2
|
+
// Do not edit manually.
|
|
3
|
+
import * as abi_ from "./abi/index.js";
|
|
4
|
+
import * as addresses_ from "./addresses/index.js";
|
|
5
|
+
export const abis = {
|
|
6
|
+
VARLAACCESSMANAGER_ABI: abi_.VARLAACCESSMANAGER_ABI,
|
|
7
|
+
VARLAORACLE_ABI: abi_.VARLAORACLE_ABI,
|
|
8
|
+
VARLACORE_ABI: abi_.VARLACORE_ABI,
|
|
9
|
+
VARLAPOOL_ABI: abi_.VARLAPOOL_ABI,
|
|
10
|
+
VARLAINTERESTRATESTRATEGY_ABI: abi_.VARLAINTERESTRATESTRATEGY_ABI,
|
|
11
|
+
VARLAPROXYADMIN_ABI: abi_.VARLAPROXYADMIN_ABI,
|
|
12
|
+
VARLALIQUIDATOR_ABI: abi_.VARLALIQUIDATOR_ABI,
|
|
13
|
+
VARLAMERGELIQUIDATOR_ABI: abi_.VARLAMERGELIQUIDATOR_ABI,
|
|
14
|
+
VARLACONVERTLIQUIDATOR_ABI: abi_.VARLACONVERTLIQUIDATOR_ABI,
|
|
15
|
+
POLYMARKETCTFADAPTER_ABI: abi_.POLYMARKETCTFADAPTER_ABI,
|
|
16
|
+
OPINIONCTFEXECUTIONENGINEADAPTER_ABI: abi_.OPINIONCTFEXECUTIONENGINEADAPTER_ABI,
|
|
17
|
+
VARLAORACLE_ABI_REGISTRY: abi_.VARLAORACLE_ABI_REGISTRY,
|
|
18
|
+
};
|
|
19
|
+
export const addresses = {
|
|
20
|
+
polygon: addresses_.polygon,
|
|
21
|
+
bsc: addresses_.bsc,
|
|
22
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,kBAAkB,CAAC;AAGjC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
2
|
export * from "./types.js";
|
|
3
|
+
// Read-only viem contract bindings + helpers.
|
|
4
|
+
export * from "./contracts.js";
|
|
5
|
+
// Higher-level read helpers (views/facades).
|
|
6
|
+
export * from "./views/index.js";
|
|
7
|
+
// Indexer/event helpers.
|
|
8
|
+
export * from "./events/index.js";
|
|
9
|
+
// Low-level batching utilities (multicall chunking).
|
|
10
|
+
export * from "./batch.js";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Address, Hex } from "viem";
|
|
2
|
+
export type ReadAccessManagerBasics = {
|
|
3
|
+
adminRole: bigint;
|
|
4
|
+
publicRole: bigint;
|
|
5
|
+
};
|
|
6
|
+
type AccessManagerLike = {
|
|
7
|
+
read: {
|
|
8
|
+
ADMIN_ROLE: () => Promise<number | bigint>;
|
|
9
|
+
PUBLIC_ROLE: () => Promise<number | bigint>;
|
|
10
|
+
hasRole: (args: readonly [bigint, Address]) => Promise<readonly [boolean, number]>;
|
|
11
|
+
getRoleAdmin: (args: readonly [bigint]) => Promise<number | bigint>;
|
|
12
|
+
getRoleGrantDelay: (args: readonly [bigint]) => Promise<number | bigint>;
|
|
13
|
+
getRoleGuardian: (args: readonly [bigint]) => Promise<number | bigint>;
|
|
14
|
+
getTargetFunctionRole: (args: readonly [Address, Hex]) => Promise<number | bigint>;
|
|
15
|
+
getTargetAdminDelay: (args: readonly [Address]) => Promise<number | bigint>;
|
|
16
|
+
isTargetClosed: (args: readonly [Address]) => Promise<boolean>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare function readAccessManagerBasics(params: {
|
|
20
|
+
accessManager: AccessManagerLike;
|
|
21
|
+
}): Promise<ReadAccessManagerBasics>;
|
|
22
|
+
export declare function readRoleSummary(params: {
|
|
23
|
+
accessManager: AccessManagerLike;
|
|
24
|
+
role: bigint;
|
|
25
|
+
}): Promise<{
|
|
26
|
+
role: bigint;
|
|
27
|
+
admin: bigint;
|
|
28
|
+
guardian: bigint;
|
|
29
|
+
grantDelay: bigint;
|
|
30
|
+
}>;
|
|
31
|
+
export declare function readTargetConfig(params: {
|
|
32
|
+
accessManager: AccessManagerLike;
|
|
33
|
+
target: Address;
|
|
34
|
+
selector: Hex;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
target: Address;
|
|
37
|
+
selector: Hex;
|
|
38
|
+
role: bigint;
|
|
39
|
+
adminDelay: bigint;
|
|
40
|
+
isClosed: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
export declare function readHasRole(params: {
|
|
43
|
+
accessManager: AccessManagerLike;
|
|
44
|
+
role: bigint;
|
|
45
|
+
account: Address;
|
|
46
|
+
}): Promise<{
|
|
47
|
+
isMember: boolean;
|
|
48
|
+
executionDelay: bigint;
|
|
49
|
+
}>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=accessManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessManager.d.ts","sourceRoot":"","sources":["../../src/views/accessManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE;QAEJ,UAAU,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QAC3C,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QAG5C,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;QACnF,YAAY,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QACpE,iBAAiB,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QACzE,eAAe,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM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EAAE,OAAO,CAAC;CAClB,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,CAKzD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
|
+
function toBigInt(v) {
|
|
3
|
+
return typeof v === "bigint" ? v : BigInt(v);
|
|
4
|
+
}
|
|
5
|
+
export async function readAccessManagerBasics(params) {
|
|
6
|
+
const [adminRole, publicRole] = await Promise.all([
|
|
7
|
+
params.accessManager.read.ADMIN_ROLE(),
|
|
8
|
+
params.accessManager.read.PUBLIC_ROLE(),
|
|
9
|
+
]);
|
|
10
|
+
return { adminRole: toBigInt(adminRole), publicRole: toBigInt(publicRole) };
|
|
11
|
+
}
|
|
12
|
+
export async function readRoleSummary(params) {
|
|
13
|
+
const [admin, guardian, grantDelay] = await Promise.all([
|
|
14
|
+
params.accessManager.read.getRoleAdmin([params.role]),
|
|
15
|
+
params.accessManager.read.getRoleGuardian([params.role]),
|
|
16
|
+
params.accessManager.read.getRoleGrantDelay([params.role]),
|
|
17
|
+
]);
|
|
18
|
+
return {
|
|
19
|
+
role: params.role,
|
|
20
|
+
admin: toBigInt(admin),
|
|
21
|
+
guardian: toBigInt(guardian),
|
|
22
|
+
grantDelay: toBigInt(grantDelay),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export async function readTargetConfig(params) {
|
|
26
|
+
const [role, adminDelay, isClosed] = await Promise.all([
|
|
27
|
+
params.accessManager.read.getTargetFunctionRole([params.target, params.selector]),
|
|
28
|
+
params.accessManager.read.getTargetAdminDelay([params.target]),
|
|
29
|
+
params.accessManager.read.isTargetClosed([params.target]),
|
|
30
|
+
]);
|
|
31
|
+
return {
|
|
32
|
+
target: params.target,
|
|
33
|
+
selector: params.selector,
|
|
34
|
+
role: toBigInt(role),
|
|
35
|
+
adminDelay: toBigInt(adminDelay),
|
|
36
|
+
isClosed,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export async function readHasRole(params) {
|
|
40
|
+
const r = await params.accessManager.read.hasRole([params.role, params.account]);
|
|
41
|
+
const isMember = r.isMember ?? r[0];
|
|
42
|
+
const executionDelay = r.executionDelay ?? r[1];
|
|
43
|
+
return { isMember, executionDelay: BigInt(executionDelay) };
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
export type ReadAdapterInfo = {
|
|
3
|
+
collateral: Address;
|
|
4
|
+
positions: Address;
|
|
5
|
+
};
|
|
6
|
+
type AdapterLike = {
|
|
7
|
+
read: {
|
|
8
|
+
collateral: () => Promise<Address>;
|
|
9
|
+
positions: () => Promise<Address>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Common read surface shared by PolymarketCtfAdapter and OpinionCtfExecutionEngineAdapter.
|
|
14
|
+
*/
|
|
15
|
+
export declare function readAdapterInfo(params: {
|
|
16
|
+
adapter: AdapterLike;
|
|
17
|
+
}): Promise<ReadAdapterInfo>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/views/adapters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;QACnC,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;KACnC,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAMhG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
|
+
/**
|
|
3
|
+
* Common read surface shared by PolymarketCtfAdapter and OpinionCtfExecutionEngineAdapter.
|
|
4
|
+
*/
|
|
5
|
+
export async function readAdapterInfo(params) {
|
|
6
|
+
const [collateral, positions] = await Promise.all([
|
|
7
|
+
params.adapter.read.collateral(),
|
|
8
|
+
params.adapter.read.positions(),
|
|
9
|
+
]);
|
|
10
|
+
return { collateral, positions };
|
|
11
|
+
}
|