@safe-global/protocol-kit 3.0.0 → 3.1.0-alpha.0

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.
Files changed (157) hide show
  1. package/dist/src/Safe.d.ts +6 -0
  2. package/dist/src/Safe.js +17 -0
  3. package/dist/src/Safe.js.map +1 -1
  4. package/dist/src/contracts/utils.d.ts +2 -1
  5. package/dist/src/contracts/utils.js +37 -4
  6. package/dist/src/contracts/utils.js.map +1 -1
  7. package/dist/src/index.d.ts +2 -2
  8. package/dist/src/index.js +3 -2
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/utils/eip-3770/config.js +11 -0
  11. package/dist/src/utils/eip-3770/config.js.map +1 -1
  12. package/dist/tsconfig.build.tsbuildinfo +1 -1
  13. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.d.ts +2 -0
  14. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.js +3 -0
  15. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.js.map +1 -0
  16. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.d.ts +211 -0
  17. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js +3 -0
  18. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js.map +1 -0
  19. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  20. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js +3 -0
  21. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
  22. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.d.ts +2 -0
  23. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.js +3 -0
  24. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.js.map +1 -0
  25. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.d.ts +2 -0
  26. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.js +3 -0
  27. package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.js.map +1 -0
  28. package/dist/typechain/tests/ethers-v6/v1.2.0/common.d.ts +50 -0
  29. package/dist/typechain/tests/ethers-v6/v1.2.0/common.js +3 -0
  30. package/dist/typechain/tests/ethers-v6/v1.2.0/common.js.map +1 -0
  31. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.d.ts +2 -0
  32. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.js +3 -0
  33. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.js.map +1 -0
  34. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.d.ts +2 -0
  35. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.js +3 -0
  36. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.js.map +1 -0
  37. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.d.ts +137 -0
  38. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js +3 -0
  39. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js.map +1 -0
  40. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
  41. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.js +3 -0
  42. package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.js.map +1 -0
  43. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.d.ts +1 -0
  44. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.js +31 -0
  45. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.js.map +1 -0
  46. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.d.ts +290 -0
  47. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.js +384 -0
  48. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.js.map +1 -0
  49. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  50. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.js +9 -0
  51. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
  52. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.d.ts +1 -0
  53. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.js +31 -0
  54. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.js.map +1 -0
  55. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.d.ts +1 -0
  56. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.js +31 -0
  57. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.js.map +1 -0
  58. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.d.ts +1 -0
  59. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.js +31 -0
  60. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.js.map +1 -0
  61. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.d.ts +1 -0
  62. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.js +31 -0
  63. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.js.map +1 -0
  64. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.d.ts +240 -0
  65. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.js +319 -0
  66. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.js.map +1 -0
  67. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
  68. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.js +9 -0
  69. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.js.map +1 -0
  70. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.d.ts +2 -0
  71. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.js +32 -0
  72. package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.js.map +1 -0
  73. package/dist/typechain/tests/ethers-v6/v1.2.0/index.d.ts +9 -0
  74. package/dist/typechain/tests/ethers-v6/v1.2.0/index.js +32 -0
  75. package/dist/typechain/tests/ethers-v6/v1.2.0/index.js.map +1 -0
  76. package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.d.ts +154 -0
  77. package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.js +3 -0
  78. package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.js.map +1 -0
  79. package/dist/typechain/tests/ethers-v6/v1.3.0/common.d.ts +50 -0
  80. package/dist/typechain/tests/ethers-v6/v1.3.0/common.js +3 -0
  81. package/dist/typechain/tests/ethers-v6/v1.3.0/common.js.map +1 -0
  82. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.d.ts +178 -0
  83. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.js +236 -0
  84. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.js.map +1 -0
  85. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.d.ts +1 -0
  86. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.js +9 -0
  87. package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.js.map +1 -0
  88. package/dist/typechain/tests/ethers-v6/v1.3.0/index.d.ts +3 -0
  89. package/dist/typechain/tests/ethers-v6/v1.3.0/index.js +30 -0
  90. package/dist/typechain/tests/ethers-v6/v1.3.0/index.js.map +1 -0
  91. package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.d.ts +168 -0
  92. package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.js +3 -0
  93. package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.js.map +1 -0
  94. package/dist/typechain/tests/ethers-v6/v1.4.1/common.d.ts +50 -0
  95. package/dist/typechain/tests/ethers-v6/v1.4.1/common.js +3 -0
  96. package/dist/typechain/tests/ethers-v6/v1.4.1/common.js.map +1 -0
  97. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.d.ts +202 -0
  98. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.js +267 -0
  99. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.js.map +1 -0
  100. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.d.ts +1 -0
  101. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.js +9 -0
  102. package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.js.map +1 -0
  103. package/dist/typechain/tests/ethers-v6/v1.4.1/index.d.ts +3 -0
  104. package/dist/typechain/tests/ethers-v6/v1.4.1/index.js +30 -0
  105. package/dist/typechain/tests/ethers-v6/v1.4.1/index.js.map +1 -0
  106. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.d.ts +2 -0
  107. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.js +3 -0
  108. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.js.map +1 -0
  109. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.d.ts +72 -0
  110. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js +6 -0
  111. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js.map +1 -0
  112. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  113. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js +3 -0
  114. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
  115. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.d.ts +2 -0
  116. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.js +3 -0
  117. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.js.map +1 -0
  118. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.d.ts +2 -0
  119. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.js +3 -0
  120. package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.js.map +1 -0
  121. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.d.ts +2 -0
  122. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.js +3 -0
  123. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.js.map +1 -0
  124. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.d.ts +2 -0
  125. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.js +3 -0
  126. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.js.map +1 -0
  127. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.d.ts +42 -0
  128. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js +6 -0
  129. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js.map +1 -0
  130. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
  131. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.js +3 -0
  132. package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.js.map +1 -0
  133. package/dist/typechain/tests/web3-v1/v1.2.0/index.d.ts +4 -0
  134. package/dist/typechain/tests/web3-v1/v1.2.0/index.js +3 -0
  135. package/dist/typechain/tests/web3-v1/v1.2.0/index.js.map +1 -0
  136. package/dist/typechain/tests/web3-v1/v1.2.0/types.d.ts +54 -0
  137. package/dist/typechain/tests/web3-v1/v1.2.0/types.js +3 -0
  138. package/dist/typechain/tests/web3-v1/v1.2.0/types.js.map +1 -0
  139. package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.d.ts +61 -0
  140. package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.js +6 -0
  141. package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.js.map +1 -0
  142. package/dist/typechain/tests/web3-v1/v1.3.0/index.d.ts +1 -0
  143. package/dist/typechain/tests/web3-v1/v1.3.0/index.js +3 -0
  144. package/dist/typechain/tests/web3-v1/v1.3.0/index.js.map +1 -0
  145. package/dist/typechain/tests/web3-v1/v1.3.0/types.d.ts +54 -0
  146. package/dist/typechain/tests/web3-v1/v1.3.0/types.js +3 -0
  147. package/dist/typechain/tests/web3-v1/v1.3.0/types.js.map +1 -0
  148. package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.d.ts +66 -0
  149. package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.js +6 -0
  150. package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.js.map +1 -0
  151. package/dist/typechain/tests/web3-v1/v1.4.1/index.d.ts +1 -0
  152. package/dist/typechain/tests/web3-v1/v1.4.1/index.js +3 -0
  153. package/dist/typechain/tests/web3-v1/v1.4.1/index.js.map +1 -0
  154. package/dist/typechain/tests/web3-v1/v1.4.1/types.d.ts +54 -0
  155. package/dist/typechain/tests/web3-v1/v1.4.1/types.js +3 -0
  156. package/dist/typechain/tests/web3-v1/v1.4.1/types.js.map +1 -0
  157. package/package.json +3 -3
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type * as contracts from "./contracts";
2
+ export type { contracts };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type * as safeV120 from "./safe_V1_2_0";
2
+ export type { safeV120 };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain/tests/web3-v1/v1.2.0/contracts/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type * as modules from "./modules";
2
+ export type { modules };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { ContractOptions } from "web3-eth-contract";
4
+ import type { EventLog } from "web3-core";
5
+ import type { EventEmitter } from "events";
6
+ import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "../../../types";
7
+ export interface EventOptions {
8
+ filter?: object;
9
+ fromBlock?: BlockType;
10
+ topics?: string[];
11
+ }
12
+ export type ChangedMasterCopy = ContractEventLog<{
13
+ masterCopy: string;
14
+ 0: string;
15
+ }>;
16
+ export interface SocialRecoveryModule extends BaseContract {
17
+ constructor(jsonInterface: any[], address?: string, options?: ContractOptions): SocialRecoveryModule;
18
+ clone(): SocialRecoveryModule;
19
+ methods: {
20
+ NAME(): NonPayableTransactionObject<string>;
21
+ VERSION(): NonPayableTransactionObject<string>;
22
+ changeMasterCopy(_masterCopy: string): NonPayableTransactionObject<void>;
23
+ confirmTransaction(dataHash: string | number[]): NonPayableTransactionObject<void>;
24
+ friends(arg0: number | string | BN): NonPayableTransactionObject<string>;
25
+ getDataHash(data: string | number[]): NonPayableTransactionObject<string>;
26
+ isConfirmed(arg0: string | number[], arg1: string): NonPayableTransactionObject<boolean>;
27
+ isConfirmedByRequiredFriends(dataHash: string | number[]): NonPayableTransactionObject<boolean>;
28
+ isExecuted(arg0: string | number[]): NonPayableTransactionObject<boolean>;
29
+ isFriend(arg0: string): NonPayableTransactionObject<boolean>;
30
+ manager(): NonPayableTransactionObject<string>;
31
+ recoverAccess(prevOwner: string, oldOwner: string, newOwner: string): NonPayableTransactionObject<void>;
32
+ setup(_friends: string[], _threshold: number | string | BN): NonPayableTransactionObject<void>;
33
+ threshold(): NonPayableTransactionObject<string>;
34
+ };
35
+ events: {
36
+ ChangedMasterCopy(cb?: Callback<ChangedMasterCopy>): EventEmitter;
37
+ ChangedMasterCopy(options?: EventOptions, cb?: Callback<ChangedMasterCopy>): EventEmitter;
38
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
39
+ };
40
+ once(event: "ChangedMasterCopy", cb: Callback<ChangedMasterCopy>): void;
41
+ once(event: "ChangedMasterCopy", options: EventOptions, cb: Callback<ChangedMasterCopy>): void;
42
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=SocialRecoveryModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SocialRecoveryModule.js","sourceRoot":"","sources":["../../../../../../../../typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB"}
@@ -0,0 +1 @@
1
+ export type { SocialRecoveryModule } from "./SocialRecoveryModule";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type * as openzeppelin from "./@openzeppelin";
2
+ export type { openzeppelin };
3
+ import type * as contracts from "./contracts";
4
+ export type { contracts };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.2.0/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { EventEmitter } from "events";
4
+ import type { EventLog, PromiEvent, TransactionReceipt } from "web3-core/types";
5
+ import type { Contract } from "web3-eth-contract";
6
+ export interface EstimateGasOptions {
7
+ from?: string;
8
+ gas?: number;
9
+ value?: number | string | BN;
10
+ }
11
+ export interface EventOptions {
12
+ filter?: object;
13
+ fromBlock?: BlockType;
14
+ topics?: string[];
15
+ }
16
+ export type Callback<T> = (error: Error, result: T) => void;
17
+ export interface ContractEventLog<T> extends EventLog {
18
+ returnValues: T;
19
+ }
20
+ export interface ContractEventEmitter<T> extends EventEmitter {
21
+ on(event: "connected", listener: (subscriptionId: string) => void): this;
22
+ on(event: "data" | "changed", listener: (event: ContractEventLog<T>) => void): this;
23
+ on(event: "error", listener: (error: Error) => void): this;
24
+ }
25
+ export interface NonPayableTx {
26
+ nonce?: string | number | BN;
27
+ chainId?: string | number | BN;
28
+ from?: string;
29
+ to?: string;
30
+ data?: string;
31
+ gas?: string | number | BN;
32
+ maxPriorityFeePerGas?: string | number | BN;
33
+ maxFeePerGas?: string | number | BN;
34
+ gasPrice?: string | number | BN;
35
+ }
36
+ export interface PayableTx extends NonPayableTx {
37
+ value?: string | number | BN;
38
+ }
39
+ export interface NonPayableTransactionObject<T> {
40
+ arguments: any[];
41
+ call(tx?: NonPayableTx, block?: BlockType): Promise<T>;
42
+ send(tx?: NonPayableTx): PromiEvent<TransactionReceipt>;
43
+ estimateGas(tx?: NonPayableTx): Promise<number>;
44
+ encodeABI(): string;
45
+ }
46
+ export interface PayableTransactionObject<T> {
47
+ arguments: any[];
48
+ call(tx?: PayableTx, block?: BlockType): Promise<T>;
49
+ send(tx?: PayableTx): PromiEvent<TransactionReceipt>;
50
+ estimateGas(tx?: PayableTx): Promise<number>;
51
+ encodeABI(): string;
52
+ }
53
+ export type BlockType = "latest" | "pending" | "genesis" | "earliest" | number | BN;
54
+ export type BaseContract = Omit<Contract, "clone" | "once">;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.2.0/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { ContractOptions } from "web3-eth-contract";
4
+ import type { EventLog } from "web3-core";
5
+ import type { EventEmitter } from "events";
6
+ import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
7
+ export interface EventOptions {
8
+ filter?: object;
9
+ fromBlock?: BlockType;
10
+ topics?: string[];
11
+ }
12
+ export type GasUsage = ContractEventLog<{
13
+ safe: string;
14
+ txHash: string;
15
+ nonce: string;
16
+ success: boolean;
17
+ 0: string;
18
+ 1: string;
19
+ 2: string;
20
+ 3: boolean;
21
+ }>;
22
+ export type TransactionDetails = ContractEventLog<{
23
+ safe: string;
24
+ txHash: string;
25
+ to: string;
26
+ value: string;
27
+ data: string;
28
+ operation: string;
29
+ safeTxGas: string;
30
+ usesRefund: boolean;
31
+ nonce: string;
32
+ 0: string;
33
+ 1: string;
34
+ 2: string;
35
+ 3: string;
36
+ 4: string;
37
+ 5: string;
38
+ 6: string;
39
+ 7: boolean;
40
+ 8: string;
41
+ }>;
42
+ export interface DebugTransactionGuard extends BaseContract {
43
+ constructor(jsonInterface: any[], address?: string, options?: ContractOptions): DebugTransactionGuard;
44
+ clone(): DebugTransactionGuard;
45
+ methods: {
46
+ checkAfterExecution(txHash: string | number[], success: boolean): NonPayableTransactionObject<void>;
47
+ checkTransaction(to: string, value: number | string | BN, data: string | number[], operation: number | string | BN, safeTxGas: number | string | BN, baseGas: number | string | BN, gasPrice: number | string | BN, gasToken: string, refundReceiver: string, arg9: string | number[], arg10: string): NonPayableTransactionObject<void>;
48
+ txNonces(arg0: string | number[]): NonPayableTransactionObject<string>;
49
+ };
50
+ events: {
51
+ GasUsage(cb?: Callback<GasUsage>): EventEmitter;
52
+ GasUsage(options?: EventOptions, cb?: Callback<GasUsage>): EventEmitter;
53
+ TransactionDetails(cb?: Callback<TransactionDetails>): EventEmitter;
54
+ TransactionDetails(options?: EventOptions, cb?: Callback<TransactionDetails>): EventEmitter;
55
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
56
+ };
57
+ once(event: "GasUsage", cb: Callback<GasUsage>): void;
58
+ once(event: "GasUsage", options: EventOptions, cb: Callback<GasUsage>): void;
59
+ once(event: "TransactionDetails", cb: Callback<TransactionDetails>): void;
60
+ once(event: "TransactionDetails", options: EventOptions, cb: Callback<TransactionDetails>): void;
61
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=DebugTransactionGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugTransactionGuard.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB"}
@@ -0,0 +1 @@
1
+ export type { DebugTransactionGuard } from "./DebugTransactionGuard";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.3.0/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { EventEmitter } from "events";
4
+ import type { EventLog, PromiEvent, TransactionReceipt } from "web3-core/types";
5
+ import type { Contract } from "web3-eth-contract";
6
+ export interface EstimateGasOptions {
7
+ from?: string;
8
+ gas?: number;
9
+ value?: number | string | BN;
10
+ }
11
+ export interface EventOptions {
12
+ filter?: object;
13
+ fromBlock?: BlockType;
14
+ topics?: string[];
15
+ }
16
+ export type Callback<T> = (error: Error, result: T) => void;
17
+ export interface ContractEventLog<T> extends EventLog {
18
+ returnValues: T;
19
+ }
20
+ export interface ContractEventEmitter<T> extends EventEmitter {
21
+ on(event: "connected", listener: (subscriptionId: string) => void): this;
22
+ on(event: "data" | "changed", listener: (event: ContractEventLog<T>) => void): this;
23
+ on(event: "error", listener: (error: Error) => void): this;
24
+ }
25
+ export interface NonPayableTx {
26
+ nonce?: string | number | BN;
27
+ chainId?: string | number | BN;
28
+ from?: string;
29
+ to?: string;
30
+ data?: string;
31
+ gas?: string | number | BN;
32
+ maxPriorityFeePerGas?: string | number | BN;
33
+ maxFeePerGas?: string | number | BN;
34
+ gasPrice?: string | number | BN;
35
+ }
36
+ export interface PayableTx extends NonPayableTx {
37
+ value?: string | number | BN;
38
+ }
39
+ export interface NonPayableTransactionObject<T> {
40
+ arguments: any[];
41
+ call(tx?: NonPayableTx, block?: BlockType): Promise<T>;
42
+ send(tx?: NonPayableTx): PromiEvent<TransactionReceipt>;
43
+ estimateGas(tx?: NonPayableTx): Promise<number>;
44
+ encodeABI(): string;
45
+ }
46
+ export interface PayableTransactionObject<T> {
47
+ arguments: any[];
48
+ call(tx?: PayableTx, block?: BlockType): Promise<T>;
49
+ send(tx?: PayableTx): PromiEvent<TransactionReceipt>;
50
+ estimateGas(tx?: PayableTx): Promise<number>;
51
+ encodeABI(): string;
52
+ }
53
+ export type BlockType = "latest" | "pending" | "genesis" | "earliest" | number | BN;
54
+ export type BaseContract = Omit<Contract, "clone" | "once">;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.3.0/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,66 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { ContractOptions } from "web3-eth-contract";
4
+ import type { EventLog } from "web3-core";
5
+ import type { EventEmitter } from "events";
6
+ import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
7
+ export interface EventOptions {
8
+ filter?: object;
9
+ fromBlock?: BlockType;
10
+ topics?: string[];
11
+ }
12
+ export type GasUsage = ContractEventLog<{
13
+ safe: string;
14
+ txHash: string;
15
+ nonce: string;
16
+ success: boolean;
17
+ 0: string;
18
+ 1: string;
19
+ 2: string;
20
+ 3: boolean;
21
+ }>;
22
+ export type TransactionDetails = ContractEventLog<{
23
+ safe: string;
24
+ txHash: string;
25
+ to: string;
26
+ value: string;
27
+ data: string;
28
+ operation: string;
29
+ safeTxGas: string;
30
+ usesRefund: boolean;
31
+ nonce: string;
32
+ signatures: string;
33
+ executor: string;
34
+ 0: string;
35
+ 1: string;
36
+ 2: string;
37
+ 3: string;
38
+ 4: string;
39
+ 5: string;
40
+ 6: string;
41
+ 7: boolean;
42
+ 8: string;
43
+ 9: string;
44
+ 10: string;
45
+ }>;
46
+ export interface DebugTransactionGuard extends BaseContract {
47
+ constructor(jsonInterface: any[], address?: string, options?: ContractOptions): DebugTransactionGuard;
48
+ clone(): DebugTransactionGuard;
49
+ methods: {
50
+ checkAfterExecution(txHash: string | number[], success: boolean): NonPayableTransactionObject<void>;
51
+ checkTransaction(to: string, value: number | string | BN, data: string | number[], operation: number | string | BN, safeTxGas: number | string | BN, baseGas: number | string | BN, gasPrice: number | string | BN, gasToken: string, refundReceiver: string, signatures: string | number[], executor: string): NonPayableTransactionObject<void>;
52
+ supportsInterface(interfaceId: string | number[]): NonPayableTransactionObject<boolean>;
53
+ txNonces(arg0: string | number[]): NonPayableTransactionObject<string>;
54
+ };
55
+ events: {
56
+ GasUsage(cb?: Callback<GasUsage>): EventEmitter;
57
+ GasUsage(options?: EventOptions, cb?: Callback<GasUsage>): EventEmitter;
58
+ TransactionDetails(cb?: Callback<TransactionDetails>): EventEmitter;
59
+ TransactionDetails(options?: EventOptions, cb?: Callback<TransactionDetails>): EventEmitter;
60
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
61
+ };
62
+ once(event: "GasUsage", cb: Callback<GasUsage>): void;
63
+ once(event: "GasUsage", options: EventOptions, cb: Callback<GasUsage>): void;
64
+ once(event: "TransactionDetails", cb: Callback<TransactionDetails>): void;
65
+ once(event: "TransactionDetails", options: EventOptions, cb: Callback<TransactionDetails>): void;
66
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=DebugTransactionGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugTransactionGuard.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB"}
@@ -0,0 +1 @@
1
+ export type { DebugTransactionGuard } from "./DebugTransactionGuard";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.4.1/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ /// <reference types="node" />
2
+ import type BN from "bn.js";
3
+ import type { EventEmitter } from "events";
4
+ import type { EventLog, PromiEvent, TransactionReceipt } from "web3-core/types";
5
+ import type { Contract } from "web3-eth-contract";
6
+ export interface EstimateGasOptions {
7
+ from?: string;
8
+ gas?: number;
9
+ value?: number | string | BN;
10
+ }
11
+ export interface EventOptions {
12
+ filter?: object;
13
+ fromBlock?: BlockType;
14
+ topics?: string[];
15
+ }
16
+ export type Callback<T> = (error: Error, result: T) => void;
17
+ export interface ContractEventLog<T> extends EventLog {
18
+ returnValues: T;
19
+ }
20
+ export interface ContractEventEmitter<T> extends EventEmitter {
21
+ on(event: "connected", listener: (subscriptionId: string) => void): this;
22
+ on(event: "data" | "changed", listener: (event: ContractEventLog<T>) => void): this;
23
+ on(event: "error", listener: (error: Error) => void): this;
24
+ }
25
+ export interface NonPayableTx {
26
+ nonce?: string | number | BN;
27
+ chainId?: string | number | BN;
28
+ from?: string;
29
+ to?: string;
30
+ data?: string;
31
+ gas?: string | number | BN;
32
+ maxPriorityFeePerGas?: string | number | BN;
33
+ maxFeePerGas?: string | number | BN;
34
+ gasPrice?: string | number | BN;
35
+ }
36
+ export interface PayableTx extends NonPayableTx {
37
+ value?: string | number | BN;
38
+ }
39
+ export interface NonPayableTransactionObject<T> {
40
+ arguments: any[];
41
+ call(tx?: NonPayableTx, block?: BlockType): Promise<T>;
42
+ send(tx?: NonPayableTx): PromiEvent<TransactionReceipt>;
43
+ estimateGas(tx?: NonPayableTx): Promise<number>;
44
+ encodeABI(): string;
45
+ }
46
+ export interface PayableTransactionObject<T> {
47
+ arguments: any[];
48
+ call(tx?: PayableTx, block?: BlockType): Promise<T>;
49
+ send(tx?: PayableTx): PromiEvent<TransactionReceipt>;
50
+ estimateGas(tx?: PayableTx): Promise<number>;
51
+ encodeABI(): string;
52
+ }
53
+ export type BlockType = "latest" | "pending" | "genesis" | "earliest" | number | BN;
54
+ export type BaseContract = Omit<Contract, "clone" | "once">;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../typechain/tests/web3-v1/v1.4.1/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-global/protocol-kit",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-alpha.0",
4
4
  "description": "SDK to interact with Safe smart contracts",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "@nomiclabs/hardhat-web3": "^2.0.0",
59
59
  "@openzeppelin/contracts": "^2.5.1",
60
60
  "@safe-global/safe-contracts-v1.4.1": "npm:@safe-global/safe-contracts@1.4.1",
61
- "@safe-global/safe-core-sdk-types": "^4.0.0",
61
+ "@safe-global/safe-core-sdk-types": "^4.0.1",
62
62
  "@typechain/ethers-v6": "^0.5.0",
63
63
  "@typechain/web3-v1": "^6.0.7",
64
64
  "@types/chai": "^4.3.11",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@noble/hashes": "^1.3.3",
84
- "@safe-global/safe-deployments": "^1.32.0",
84
+ "@safe-global/safe-deployments": "^1.33.0",
85
85
  "ethereumjs-util": "^7.1.5",
86
86
  "ethers": "^6.7.1",
87
87
  "semver": "^7.5.4",