@eosrio/node-abieos 4.0.0-2039717 → 4.0.2-2039717
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/_tsup-dts-rollup.d.cts +105 -105
- package/dist/_tsup-dts-rollup.d.ts +105 -105
- package/dist/abieos.cjs +261 -256
- package/dist/abieos.js +230 -225
- package/dist/abieos.ts +6 -1
- package/package.json +55 -55
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Abieos class provides a singleton instance for interacting with the native abieos module.
|
|
3
|
-
* This pattern is used to ensure a single global context for the underlying C++ abieos library,
|
|
4
|
-
* which manages internal state and resources.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Abieos {
|
|
7
|
-
static logTag: string;
|
|
8
|
-
private static instance;
|
|
9
|
-
static native: typeof abieos;
|
|
10
|
-
private static loadedContracts;
|
|
11
|
-
static debug: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Private constructor to enforce the Singleton pattern.
|
|
14
|
-
* Throws an error if an attempt is made to create a second instance.
|
|
15
|
-
*/
|
|
16
|
-
private constructor();
|
|
17
|
-
/**
|
|
18
|
-
* Returns the singleton instance of the Abieos class.
|
|
19
|
-
* If an instance does not already exist, it creates one.
|
|
20
|
-
* @returns {Abieos} The singleton instance of Abieos.
|
|
21
|
-
*/
|
|
22
|
-
static getInstance(): Abieos;
|
|
23
|
-
getLoadedAbis(): string[];
|
|
24
|
-
/**
|
|
25
|
-
* Cleans up all loaded contracts by deleting them from the native context.
|
|
26
|
-
* This is useful for freeing up resources and ensuring a clean state.
|
|
27
|
-
*/
|
|
28
|
-
cleanup(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Converts a string name to its corresponding 64-bit unsigned integer representation (BigInt).
|
|
31
|
-
* @param {string} nameString The string name to convert.
|
|
32
|
-
* @returns {BigInt} The BigInt representation of the name.
|
|
33
|
-
*/
|
|
34
|
-
stringToName(nameString: string): BigInt;
|
|
35
|
-
/**
|
|
36
|
-
* Converts a JSON string or object to its hexadecimal binary representation.
|
|
37
|
-
* @param {string} contractName The name of the contract.
|
|
38
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
39
|
-
* @param {string | object} json The JSON data as a string or object.
|
|
40
|
-
* @returns {string} The hexadecimal string representation of the binary data.
|
|
41
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
42
|
-
*/
|
|
43
|
-
jsonToHex(contractName: string, type: string, json: string | object): string;
|
|
44
|
-
/**
|
|
45
|
-
* Converts a hexadecimal binary string to its JSON representation.
|
|
46
|
-
* @param {string} contractName The name of the contract.
|
|
47
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
48
|
-
* @param {string} hex The hexadecimal string to convert.
|
|
49
|
-
* @returns {any} The parsed JSON object.
|
|
50
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
51
|
-
*/
|
|
52
|
-
hexToJson(contractName: string, type: string, hex: string): any;
|
|
53
|
-
/**
|
|
54
|
-
* Converts a binary buffer to its JSON representation.
|
|
55
|
-
* @param {string} contractName The name of the contract.
|
|
56
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
57
|
-
* @param {Buffer} buffer The binary data as a Buffer.
|
|
58
|
-
* @returns {any} The parsed JSON object.
|
|
59
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
60
|
-
*/
|
|
61
|
-
binToJson(contractName: string, type: string, buffer: Buffer): any;
|
|
62
|
-
/**
|
|
63
|
-
* Loads an ABI for a given contract.
|
|
64
|
-
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
65
|
-
* @param {string | object} abi The ABI as a JSON string or object.
|
|
66
|
-
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
67
|
-
* @throws {Error} If the ABI format is invalid or loading fails.
|
|
68
|
-
*/
|
|
69
|
-
loadAbi(contractName: string, abi: string | object): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Loads an ABI for a given contract from its hexadecimal representation.
|
|
72
|
-
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
73
|
-
* @param {string} abihex The ABI as a hexadecimal string.
|
|
74
|
-
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
75
|
-
* @throws {Error} If loading fails.
|
|
76
|
-
*/
|
|
77
|
-
loadAbiHex(contractName: string, abihex: string): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves the type name for a specific action within a contract's ABI.
|
|
80
|
-
* @param {string} contractName The name of the contract.
|
|
81
|
-
* @param {string} actionName The name of the action.
|
|
82
|
-
* @returns {string} The type name associated with the action.
|
|
83
|
-
* @throws {Error} If the contract or action is not found or another error occurs.
|
|
84
|
-
*/
|
|
85
|
-
getTypeForAction(contractName: string, actionName: string): string;
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves the type name for a specific table within a contract's ABI.
|
|
88
|
-
* @param {string} contractName The name of the contract.
|
|
89
|
-
* @param {string} table_name The name of the table.
|
|
90
|
-
* @returns {string} The type name associated with the table.
|
|
91
|
-
* @throws {Error} If the contract or table is not found or another error occurs.
|
|
92
|
-
*/
|
|
93
|
-
getTypeForTable(contractName: string, table_name: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* Deletes a contract's ABI from the abieos context.
|
|
96
|
-
* @param {string} contractName The name of the contract to delete.
|
|
97
|
-
* @returns {boolean} True if the contract was successfully deleted, false otherwise.
|
|
98
|
-
* @throws {Error} If deletion fails.
|
|
99
|
-
*/
|
|
100
|
-
deleteContract(contractName: string): boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare const abieos: any;
|
|
104
|
-
|
|
105
|
-
export { }
|
|
1
|
+
/**
|
|
2
|
+
* Abieos class provides a singleton instance for interacting with the native abieos module.
|
|
3
|
+
* This pattern is used to ensure a single global context for the underlying C++ abieos library,
|
|
4
|
+
* which manages internal state and resources.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Abieos {
|
|
7
|
+
static logTag: string;
|
|
8
|
+
private static instance;
|
|
9
|
+
static native: typeof abieos;
|
|
10
|
+
private static loadedContracts;
|
|
11
|
+
static debug: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Private constructor to enforce the Singleton pattern.
|
|
14
|
+
* Throws an error if an attempt is made to create a second instance.
|
|
15
|
+
*/
|
|
16
|
+
private constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Returns the singleton instance of the Abieos class.
|
|
19
|
+
* If an instance does not already exist, it creates one.
|
|
20
|
+
* @returns {Abieos} The singleton instance of Abieos.
|
|
21
|
+
*/
|
|
22
|
+
static getInstance(): Abieos;
|
|
23
|
+
getLoadedAbis(): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Cleans up all loaded contracts by deleting them from the native context.
|
|
26
|
+
* This is useful for freeing up resources and ensuring a clean state.
|
|
27
|
+
*/
|
|
28
|
+
cleanup(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Converts a string name to its corresponding 64-bit unsigned integer representation (BigInt).
|
|
31
|
+
* @param {string} nameString The string name to convert.
|
|
32
|
+
* @returns {BigInt} The BigInt representation of the name.
|
|
33
|
+
*/
|
|
34
|
+
stringToName(nameString: string): BigInt;
|
|
35
|
+
/**
|
|
36
|
+
* Converts a JSON string or object to its hexadecimal binary representation.
|
|
37
|
+
* @param {string} contractName The name of the contract.
|
|
38
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
39
|
+
* @param {string | object} json The JSON data as a string or object.
|
|
40
|
+
* @returns {string} The hexadecimal string representation of the binary data.
|
|
41
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
42
|
+
*/
|
|
43
|
+
jsonToHex(contractName: string, type: string, json: string | object): string;
|
|
44
|
+
/**
|
|
45
|
+
* Converts a hexadecimal binary string to its JSON representation.
|
|
46
|
+
* @param {string} contractName The name of the contract.
|
|
47
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
48
|
+
* @param {string} hex The hexadecimal string to convert.
|
|
49
|
+
* @returns {any} The parsed JSON object.
|
|
50
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
51
|
+
*/
|
|
52
|
+
hexToJson(contractName: string, type: string, hex: string): any;
|
|
53
|
+
/**
|
|
54
|
+
* Converts a binary buffer to its JSON representation.
|
|
55
|
+
* @param {string} contractName The name of the contract.
|
|
56
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
57
|
+
* @param {Buffer} buffer The binary data as a Buffer.
|
|
58
|
+
* @returns {any} The parsed JSON object.
|
|
59
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
60
|
+
*/
|
|
61
|
+
binToJson(contractName: string, type: string, buffer: Buffer): any;
|
|
62
|
+
/**
|
|
63
|
+
* Loads an ABI for a given contract.
|
|
64
|
+
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
65
|
+
* @param {string | object} abi The ABI as a JSON string or object.
|
|
66
|
+
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
67
|
+
* @throws {Error} If the ABI format is invalid or loading fails.
|
|
68
|
+
*/
|
|
69
|
+
loadAbi(contractName: string, abi: string | object): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Loads an ABI for a given contract from its hexadecimal representation.
|
|
72
|
+
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
73
|
+
* @param {string} abihex The ABI as a hexadecimal string.
|
|
74
|
+
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
75
|
+
* @throws {Error} If loading fails.
|
|
76
|
+
*/
|
|
77
|
+
loadAbiHex(contractName: string, abihex: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves the type name for a specific action within a contract's ABI.
|
|
80
|
+
* @param {string} contractName The name of the contract.
|
|
81
|
+
* @param {string} actionName The name of the action.
|
|
82
|
+
* @returns {string} The type name associated with the action.
|
|
83
|
+
* @throws {Error} If the contract or action is not found or another error occurs.
|
|
84
|
+
*/
|
|
85
|
+
getTypeForAction(contractName: string, actionName: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the type name for a specific table within a contract's ABI.
|
|
88
|
+
* @param {string} contractName The name of the contract.
|
|
89
|
+
* @param {string} table_name The name of the table.
|
|
90
|
+
* @returns {string} The type name associated with the table.
|
|
91
|
+
* @throws {Error} If the contract or table is not found or another error occurs.
|
|
92
|
+
*/
|
|
93
|
+
getTypeForTable(contractName: string, table_name: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Deletes a contract's ABI from the abieos context.
|
|
96
|
+
* @param {string} contractName The name of the contract to delete.
|
|
97
|
+
* @returns {boolean} True if the contract was successfully deleted, false otherwise.
|
|
98
|
+
* @throws {Error} If deletion fails.
|
|
99
|
+
*/
|
|
100
|
+
deleteContract(contractName: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare const abieos: any;
|
|
104
|
+
|
|
105
|
+
export { }
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Abieos class provides a singleton instance for interacting with the native abieos module.
|
|
3
|
-
* This pattern is used to ensure a single global context for the underlying C++ abieos library,
|
|
4
|
-
* which manages internal state and resources.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Abieos {
|
|
7
|
-
static logTag: string;
|
|
8
|
-
private static instance;
|
|
9
|
-
static native: typeof abieos;
|
|
10
|
-
private static loadedContracts;
|
|
11
|
-
static debug: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Private constructor to enforce the Singleton pattern.
|
|
14
|
-
* Throws an error if an attempt is made to create a second instance.
|
|
15
|
-
*/
|
|
16
|
-
private constructor();
|
|
17
|
-
/**
|
|
18
|
-
* Returns the singleton instance of the Abieos class.
|
|
19
|
-
* If an instance does not already exist, it creates one.
|
|
20
|
-
* @returns {Abieos} The singleton instance of Abieos.
|
|
21
|
-
*/
|
|
22
|
-
static getInstance(): Abieos;
|
|
23
|
-
getLoadedAbis(): string[];
|
|
24
|
-
/**
|
|
25
|
-
* Cleans up all loaded contracts by deleting them from the native context.
|
|
26
|
-
* This is useful for freeing up resources and ensuring a clean state.
|
|
27
|
-
*/
|
|
28
|
-
cleanup(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Converts a string name to its corresponding 64-bit unsigned integer representation (BigInt).
|
|
31
|
-
* @param {string} nameString The string name to convert.
|
|
32
|
-
* @returns {BigInt} The BigInt representation of the name.
|
|
33
|
-
*/
|
|
34
|
-
stringToName(nameString: string): BigInt;
|
|
35
|
-
/**
|
|
36
|
-
* Converts a JSON string or object to its hexadecimal binary representation.
|
|
37
|
-
* @param {string} contractName The name of the contract.
|
|
38
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
39
|
-
* @param {string | object} json The JSON data as a string or object.
|
|
40
|
-
* @returns {string} The hexadecimal string representation of the binary data.
|
|
41
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
42
|
-
*/
|
|
43
|
-
jsonToHex(contractName: string, type: string, json: string | object): string;
|
|
44
|
-
/**
|
|
45
|
-
* Converts a hexadecimal binary string to its JSON representation.
|
|
46
|
-
* @param {string} contractName The name of the contract.
|
|
47
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
48
|
-
* @param {string} hex The hexadecimal string to convert.
|
|
49
|
-
* @returns {any} The parsed JSON object.
|
|
50
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
51
|
-
*/
|
|
52
|
-
hexToJson(contractName: string, type: string, hex: string): any;
|
|
53
|
-
/**
|
|
54
|
-
* Converts a binary buffer to its JSON representation.
|
|
55
|
-
* @param {string} contractName The name of the contract.
|
|
56
|
-
* @param {string} type The type within the ABI to use for conversion.
|
|
57
|
-
* @param {Buffer} buffer The binary data as a Buffer.
|
|
58
|
-
* @returns {any} The parsed JSON object.
|
|
59
|
-
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
60
|
-
*/
|
|
61
|
-
binToJson(contractName: string, type: string, buffer: Buffer): any;
|
|
62
|
-
/**
|
|
63
|
-
* Loads an ABI for a given contract.
|
|
64
|
-
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
65
|
-
* @param {string | object} abi The ABI as a JSON string or object.
|
|
66
|
-
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
67
|
-
* @throws {Error} If the ABI format is invalid or loading fails.
|
|
68
|
-
*/
|
|
69
|
-
loadAbi(contractName: string, abi: string | object): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Loads an ABI for a given contract from its hexadecimal representation.
|
|
72
|
-
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
73
|
-
* @param {string} abihex The ABI as a hexadecimal string.
|
|
74
|
-
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
75
|
-
* @throws {Error} If loading fails.
|
|
76
|
-
*/
|
|
77
|
-
loadAbiHex(contractName: string, abihex: string): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves the type name for a specific action within a contract's ABI.
|
|
80
|
-
* @param {string} contractName The name of the contract.
|
|
81
|
-
* @param {string} actionName The name of the action.
|
|
82
|
-
* @returns {string} The type name associated with the action.
|
|
83
|
-
* @throws {Error} If the contract or action is not found or another error occurs.
|
|
84
|
-
*/
|
|
85
|
-
getTypeForAction(contractName: string, actionName: string): string;
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves the type name for a specific table within a contract's ABI.
|
|
88
|
-
* @param {string} contractName The name of the contract.
|
|
89
|
-
* @param {string} table_name The name of the table.
|
|
90
|
-
* @returns {string} The type name associated with the table.
|
|
91
|
-
* @throws {Error} If the contract or table is not found or another error occurs.
|
|
92
|
-
*/
|
|
93
|
-
getTypeForTable(contractName: string, table_name: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* Deletes a contract's ABI from the abieos context.
|
|
96
|
-
* @param {string} contractName The name of the contract to delete.
|
|
97
|
-
* @returns {boolean} True if the contract was successfully deleted, false otherwise.
|
|
98
|
-
* @throws {Error} If deletion fails.
|
|
99
|
-
*/
|
|
100
|
-
deleteContract(contractName: string): boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare const abieos: any;
|
|
104
|
-
|
|
105
|
-
export { }
|
|
1
|
+
/**
|
|
2
|
+
* Abieos class provides a singleton instance for interacting with the native abieos module.
|
|
3
|
+
* This pattern is used to ensure a single global context for the underlying C++ abieos library,
|
|
4
|
+
* which manages internal state and resources.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Abieos {
|
|
7
|
+
static logTag: string;
|
|
8
|
+
private static instance;
|
|
9
|
+
static native: typeof abieos;
|
|
10
|
+
private static loadedContracts;
|
|
11
|
+
static debug: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Private constructor to enforce the Singleton pattern.
|
|
14
|
+
* Throws an error if an attempt is made to create a second instance.
|
|
15
|
+
*/
|
|
16
|
+
private constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Returns the singleton instance of the Abieos class.
|
|
19
|
+
* If an instance does not already exist, it creates one.
|
|
20
|
+
* @returns {Abieos} The singleton instance of Abieos.
|
|
21
|
+
*/
|
|
22
|
+
static getInstance(): Abieos;
|
|
23
|
+
getLoadedAbis(): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Cleans up all loaded contracts by deleting them from the native context.
|
|
26
|
+
* This is useful for freeing up resources and ensuring a clean state.
|
|
27
|
+
*/
|
|
28
|
+
cleanup(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Converts a string name to its corresponding 64-bit unsigned integer representation (BigInt).
|
|
31
|
+
* @param {string} nameString The string name to convert.
|
|
32
|
+
* @returns {BigInt} The BigInt representation of the name.
|
|
33
|
+
*/
|
|
34
|
+
stringToName(nameString: string): BigInt;
|
|
35
|
+
/**
|
|
36
|
+
* Converts a JSON string or object to its hexadecimal binary representation.
|
|
37
|
+
* @param {string} contractName The name of the contract.
|
|
38
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
39
|
+
* @param {string | object} json The JSON data as a string or object.
|
|
40
|
+
* @returns {string} The hexadecimal string representation of the binary data.
|
|
41
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
42
|
+
*/
|
|
43
|
+
jsonToHex(contractName: string, type: string, json: string | object): string;
|
|
44
|
+
/**
|
|
45
|
+
* Converts a hexadecimal binary string to its JSON representation.
|
|
46
|
+
* @param {string} contractName The name of the contract.
|
|
47
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
48
|
+
* @param {string} hex The hexadecimal string to convert.
|
|
49
|
+
* @returns {any} The parsed JSON object.
|
|
50
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
51
|
+
*/
|
|
52
|
+
hexToJson(contractName: string, type: string, hex: string): any;
|
|
53
|
+
/**
|
|
54
|
+
* Converts a binary buffer to its JSON representation.
|
|
55
|
+
* @param {string} contractName The name of the contract.
|
|
56
|
+
* @param {string} type The type within the ABI to use for conversion.
|
|
57
|
+
* @param {Buffer} buffer The binary data as a Buffer.
|
|
58
|
+
* @returns {any} The parsed JSON object.
|
|
59
|
+
* @throws {Error} If parsing fails or an error occurs in the native module.
|
|
60
|
+
*/
|
|
61
|
+
binToJson(contractName: string, type: string, buffer: Buffer): any;
|
|
62
|
+
/**
|
|
63
|
+
* Loads an ABI for a given contract.
|
|
64
|
+
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
65
|
+
* @param {string | object} abi The ABI as a JSON string or object.
|
|
66
|
+
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
67
|
+
* @throws {Error} If the ABI format is invalid or loading fails.
|
|
68
|
+
*/
|
|
69
|
+
loadAbi(contractName: string, abi: string | object): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Loads an ABI for a given contract from its hexadecimal representation.
|
|
72
|
+
* @param {string} contractName The name of the contract for which to load the ABI.
|
|
73
|
+
* @param {string} abihex The ABI as a hexadecimal string.
|
|
74
|
+
* @returns {boolean} True if the ABI was loaded successfully, false otherwise.
|
|
75
|
+
* @throws {Error} If loading fails.
|
|
76
|
+
*/
|
|
77
|
+
loadAbiHex(contractName: string, abihex: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves the type name for a specific action within a contract's ABI.
|
|
80
|
+
* @param {string} contractName The name of the contract.
|
|
81
|
+
* @param {string} actionName The name of the action.
|
|
82
|
+
* @returns {string} The type name associated with the action.
|
|
83
|
+
* @throws {Error} If the contract or action is not found or another error occurs.
|
|
84
|
+
*/
|
|
85
|
+
getTypeForAction(contractName: string, actionName: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the type name for a specific table within a contract's ABI.
|
|
88
|
+
* @param {string} contractName The name of the contract.
|
|
89
|
+
* @param {string} table_name The name of the table.
|
|
90
|
+
* @returns {string} The type name associated with the table.
|
|
91
|
+
* @throws {Error} If the contract or table is not found or another error occurs.
|
|
92
|
+
*/
|
|
93
|
+
getTypeForTable(contractName: string, table_name: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Deletes a contract's ABI from the abieos context.
|
|
96
|
+
* @param {string} contractName The name of the contract to delete.
|
|
97
|
+
* @returns {boolean} True if the contract was successfully deleted, false otherwise.
|
|
98
|
+
* @throws {Error} If deletion fails.
|
|
99
|
+
*/
|
|
100
|
+
deleteContract(contractName: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare const abieos: any;
|
|
104
|
+
|
|
105
|
+
export { }
|