@nevermined-io/core-kit 0.1.7 → 0.1.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentUtils.d.ts","sourceRoot":"","sources":["../../../src/nevermined/utils/AgentUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"AgentUtils.d.ts","sourceRoot":"","sources":["../../../src/nevermined/utils/AgentUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGpD,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,WAAW,EAAE,EAC7B,kBAAkB,GAAE,MAAM,EAAO,GAChC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAkDhE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAOvE"}
|
|
@@ -32,15 +32,15 @@ export declare function getTransactionReceipt({ txHash, iteration, publicClient,
|
|
|
32
32
|
*/
|
|
33
33
|
export declare function getContractInstance(contractAddress: string, abi: Abi, client: Web3Clients): Promise<{
|
|
34
34
|
read: {
|
|
35
|
-
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<Abi, string, readonly unknown[]>, "address" | "abi" | "
|
|
35
|
+
[x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<Abi, string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<Abi, string, readonly unknown[]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
|
|
36
36
|
};
|
|
37
37
|
estimateGas: {
|
|
38
|
-
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "
|
|
38
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
39
39
|
} & {
|
|
40
|
-
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "
|
|
40
|
+
[x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined>, "address" | "abi" | "args" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
|
|
41
41
|
};
|
|
42
42
|
simulate: {
|
|
43
|
-
[x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends Account | Address | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "
|
|
43
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends Account | Address | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
|
|
44
44
|
};
|
|
45
45
|
createEventFilter: {
|
|
46
46
|
[x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
|
|
@@ -66,8 +66,8 @@ export declare function getContractInstance(contractAddress: string, abi: Abi, c
|
|
|
66
66
|
};
|
|
67
67
|
getEvents: {
|
|
68
68
|
[x: string]: (...parameters: [options?: {
|
|
69
|
-
strict?: boolean | undefined;
|
|
70
69
|
blockHash?: `0x${string}` | undefined;
|
|
70
|
+
strict?: boolean | undefined;
|
|
71
71
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
72
72
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
73
73
|
} | undefined] | [args?: readonly unknown[] | {
|
|
@@ -84,8 +84,8 @@ export declare function getContractInstance(contractAddress: string, abi: Abi, c
|
|
|
84
84
|
batch?: undefined;
|
|
85
85
|
pollingInterval?: undefined;
|
|
86
86
|
} | undefined, options?: {
|
|
87
|
-
strict?: boolean | undefined;
|
|
88
87
|
blockHash?: `0x${string}` | undefined;
|
|
88
|
+
strict?: boolean | undefined;
|
|
89
89
|
fromBlock?: bigint | import("viem").BlockTag | undefined;
|
|
90
90
|
toBlock?: bigint | import("viem").BlockTag | undefined;
|
|
91
91
|
} | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
|
|
@@ -123,7 +123,7 @@ export declare function getContractInstance(contractAddress: string, abi: Abi, c
|
|
|
123
123
|
} | undefined]) => import("viem").WatchContractEventReturnType;
|
|
124
124
|
};
|
|
125
125
|
write: {
|
|
126
|
-
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined, Account | undefined, chainOverride>, "address" | "abi" | "
|
|
126
|
+
[x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<Abi, string, readonly unknown[], import("viem").Chain | undefined, Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K]; } : never, Rest extends unknown[] = [options: options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<import("viem").WriteContractReturnType>;
|
|
127
127
|
};
|
|
128
128
|
address: `0x${string}`;
|
|
129
129
|
abi: Abi;
|