lynx-client 0.0.13 → 0.0.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.
Files changed (157) hide show
  1. package/dist/cjs/index.js +10 -1
  2. package/dist/cjs/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
  3. package/dist/cjs/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
  4. package/dist/cjs/lib/contractsIntegration/EngineChipService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
  6. package/dist/cjs/lib/contractsIntegration/OrderBookService/index.js +5 -0
  7. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
  8. package/dist/cjs/lib/contractsIntegration/TriggersService/index.js +5 -0
  9. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
  10. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
  11. package/dist/cjs/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
  12. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +34 -0
  13. package/dist/cjs/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
  14. package/dist/cjs/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
  15. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
  16. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  17. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  18. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
  19. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  20. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
  23. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
  24. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  25. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  26. package/dist/esm/index.d.ts +10 -0
  27. package/dist/esm/index.d.ts.map +1 -1
  28. package/dist/esm/index.js +10 -1
  29. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
  30. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
  31. package/dist/esm/lib/contractsIntegration/EngineChipService/EngineChipService.js +289 -0
  32. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
  33. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
  34. package/dist/esm/lib/contractsIntegration/EngineChipService/IEngineChipService.js +2 -0
  35. package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
  36. package/dist/esm/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
  37. package/dist/esm/lib/contractsIntegration/EngineChipService/index.js +5 -0
  38. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
  39. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  40. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  41. package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +25 -2
  42. package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
  43. package/dist/esm/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/OrderBookService/index.js +5 -0
  45. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
  46. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  47. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  48. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +6 -0
  49. package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
  50. package/dist/esm/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
  51. package/dist/esm/lib/contractsIntegration/TriggersService/index.js +5 -0
  52. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
  53. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
  54. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.js +2 -0
  55. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
  56. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
  57. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.js +69 -0
  58. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
  59. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
  60. package/dist/esm/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.js +5 -0
  61. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
  62. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  63. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +34 -0
  64. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
  65. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
  66. package/dist/esm/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.js +2 -0
  67. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
  68. package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
  69. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
  70. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  71. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
  72. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  73. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
  74. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
  75. package/dist/esm/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.js +2 -0
  76. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
  77. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
  78. package/dist/esm/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.js +989 -0
  79. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  80. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  81. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  82. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  83. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
  84. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
  85. package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +195 -1
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +27 -1
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1 -1
  94. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
  95. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  96. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +79 -1
  97. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
  98. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
  99. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.js +133 -0
  100. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  101. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  102. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  103. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  104. package/dist/types/index.d.ts +10 -0
  105. package/dist/types/index.d.ts.map +1 -1
  106. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts +27 -0
  107. package/dist/types/lib/contractsIntegration/EngineChipService/EngineChipService.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts +83 -0
  109. package/dist/types/lib/contractsIntegration/EngineChipService/IEngineChipService.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/EngineChipService/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +6 -1
  113. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -1
  114. package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -1
  115. package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts +3 -0
  116. package/dist/types/lib/contractsIntegration/OrderBookService/index.d.ts.map +1 -0
  117. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +2 -0
  118. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -1
  119. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -1
  120. package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts +3 -0
  121. package/dist/types/lib/contractsIntegration/TriggersService/index.d.ts.map +1 -0
  122. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts +40 -0
  123. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/IWrappedNativeEngineChipHelperService.d.ts.map +1 -0
  124. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts +22 -0
  125. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/WrappedNativeEngineChipHelperService.d.ts.map +1 -0
  126. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts +3 -0
  127. package/dist/types/lib/contractsIntegration/WrappedNativeEngineChipHelperService/index.d.ts.map +1 -0
  128. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +10 -0
  129. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  130. package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts +524 -0
  131. package/dist/types/lib/typechain/contracts/Lynx/Chips/EngineChip/EngineChip.d.ts.map +1 -0
  132. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +158 -2
  133. package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -1
  134. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +17 -1
  135. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -1
  136. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +33 -1
  137. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  138. package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts +56 -0
  139. package/dist/types/lib/typechain/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper.d.ts.map +1 -0
  140. package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts +756 -0
  141. package/dist/types/lib/typechain/factories/contracts/Lynx/Chips/EngineChip/EngineChip__factory.d.ts.map +1 -0
  142. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  143. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  144. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +155 -1
  145. package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -1
  146. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  147. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +21 -1
  148. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -1
  149. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1 -1
  150. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  151. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +61 -1
  152. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  153. package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts +96 -0
  154. package/dist/types/lib/typechain/factories/contracts/Peripheral/Chips/WrappedNativeEngineChipHelper__factory.d.ts.map +1 -0
  155. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  156. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  157. package/package.json +1 -1
@@ -0,0 +1,989 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EngineChip__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "contract IRegistryV1",
13
+ name: "_registry",
14
+ type: "address",
15
+ },
16
+ {
17
+ internalType: "string",
18
+ name: "_name",
19
+ type: "string",
20
+ },
21
+ {
22
+ internalType: "string",
23
+ name: "_symbol",
24
+ type: "string",
25
+ },
26
+ {
27
+ internalType: "contract IERC20",
28
+ name: "_underlyingToken",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "address",
33
+ name: "_initialAdmin",
34
+ type: "address",
35
+ },
36
+ ],
37
+ stateMutability: "nonpayable",
38
+ type: "constructor",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "spender",
45
+ type: "address",
46
+ },
47
+ {
48
+ internalType: "uint256",
49
+ name: "allowance",
50
+ type: "uint256",
51
+ },
52
+ {
53
+ internalType: "uint256",
54
+ name: "needed",
55
+ type: "uint256",
56
+ },
57
+ ],
58
+ name: "ERC20InsufficientAllowance",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [
63
+ {
64
+ internalType: "address",
65
+ name: "sender",
66
+ type: "address",
67
+ },
68
+ {
69
+ internalType: "uint256",
70
+ name: "balance",
71
+ type: "uint256",
72
+ },
73
+ {
74
+ internalType: "uint256",
75
+ name: "needed",
76
+ type: "uint256",
77
+ },
78
+ ],
79
+ name: "ERC20InsufficientBalance",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "address",
86
+ name: "approver",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "ERC20InvalidApprover",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "receiver",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "ERC20InvalidReceiver",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "address",
108
+ name: "sender",
109
+ type: "address",
110
+ },
111
+ ],
112
+ name: "ERC20InvalidSender",
113
+ type: "error",
114
+ },
115
+ {
116
+ inputs: [
117
+ {
118
+ internalType: "address",
119
+ name: "spender",
120
+ type: "address",
121
+ },
122
+ ],
123
+ name: "ERC20InvalidSpender",
124
+ type: "error",
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: "ReentrancyGuardReentrantCall",
129
+ type: "error",
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: "address",
135
+ name: "token",
136
+ type: "address",
137
+ },
138
+ ],
139
+ name: "SafeERC20FailedOperation",
140
+ type: "error",
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "address",
148
+ name: "owner",
149
+ type: "address",
150
+ },
151
+ {
152
+ indexed: true,
153
+ internalType: "address",
154
+ name: "spender",
155
+ type: "address",
156
+ },
157
+ {
158
+ indexed: false,
159
+ internalType: "uint256",
160
+ name: "value",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ name: "Approval",
165
+ type: "event",
166
+ },
167
+ {
168
+ anonymous: false,
169
+ inputs: [
170
+ {
171
+ indexed: true,
172
+ internalType: "string",
173
+ name: "role",
174
+ type: "string",
175
+ },
176
+ {
177
+ indexed: true,
178
+ internalType: "address",
179
+ name: "oldSpender",
180
+ type: "address",
181
+ },
182
+ {
183
+ indexed: true,
184
+ internalType: "address",
185
+ name: "newSpender",
186
+ type: "address",
187
+ },
188
+ ],
189
+ name: "AutoApprovedSpenderSet",
190
+ type: "event",
191
+ },
192
+ {
193
+ anonymous: false,
194
+ inputs: [
195
+ {
196
+ indexed: true,
197
+ internalType: "address",
198
+ name: "previousController",
199
+ type: "address",
200
+ },
201
+ {
202
+ indexed: true,
203
+ internalType: "address",
204
+ name: "newController",
205
+ type: "address",
206
+ },
207
+ ],
208
+ name: "BurnControllerSet",
209
+ type: "event",
210
+ },
211
+ {
212
+ anonymous: false,
213
+ inputs: [
214
+ {
215
+ indexed: true,
216
+ internalType: "address",
217
+ name: "previousHandler",
218
+ type: "address",
219
+ },
220
+ {
221
+ indexed: true,
222
+ internalType: "address",
223
+ name: "handler",
224
+ type: "address",
225
+ },
226
+ ],
227
+ name: "BurnHandlerSet",
228
+ type: "event",
229
+ },
230
+ {
231
+ anonymous: false,
232
+ inputs: [
233
+ {
234
+ indexed: true,
235
+ internalType: "address",
236
+ name: "burner",
237
+ type: "address",
238
+ },
239
+ {
240
+ indexed: true,
241
+ internalType: "address",
242
+ name: "receiver",
243
+ type: "address",
244
+ },
245
+ {
246
+ indexed: false,
247
+ internalType: "uint256",
248
+ name: "underlyingAmount",
249
+ type: "uint256",
250
+ },
251
+ {
252
+ indexed: false,
253
+ internalType: "uint256",
254
+ name: "amount",
255
+ type: "uint256",
256
+ },
257
+ ],
258
+ name: "ChipBurned",
259
+ type: "event",
260
+ },
261
+ {
262
+ anonymous: false,
263
+ inputs: [
264
+ {
265
+ indexed: true,
266
+ internalType: "address",
267
+ name: "minter",
268
+ type: "address",
269
+ },
270
+ {
271
+ indexed: true,
272
+ internalType: "address",
273
+ name: "to",
274
+ type: "address",
275
+ },
276
+ {
277
+ indexed: false,
278
+ internalType: "uint256",
279
+ name: "underlyingAmount",
280
+ type: "uint256",
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "uint256",
285
+ name: "amount",
286
+ type: "uint256",
287
+ },
288
+ ],
289
+ name: "ChipMinted",
290
+ type: "event",
291
+ },
292
+ {
293
+ anonymous: false,
294
+ inputs: [
295
+ {
296
+ indexed: true,
297
+ internalType: "bool",
298
+ name: "value",
299
+ type: "bool",
300
+ },
301
+ ],
302
+ name: "IsMintingPausedSet",
303
+ type: "event",
304
+ },
305
+ {
306
+ anonymous: false,
307
+ inputs: [
308
+ {
309
+ indexed: true,
310
+ internalType: "address",
311
+ name: "previousController",
312
+ type: "address",
313
+ },
314
+ {
315
+ indexed: true,
316
+ internalType: "address",
317
+ name: "newController",
318
+ type: "address",
319
+ },
320
+ ],
321
+ name: "MintControllerSet",
322
+ type: "event",
323
+ },
324
+ {
325
+ anonymous: false,
326
+ inputs: [
327
+ {
328
+ indexed: false,
329
+ internalType: "address",
330
+ name: "oldAdmin",
331
+ type: "address",
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: "address",
336
+ name: "newAdmin",
337
+ type: "address",
338
+ },
339
+ ],
340
+ name: "NewAdmin",
341
+ type: "event",
342
+ },
343
+ {
344
+ anonymous: false,
345
+ inputs: [
346
+ {
347
+ indexed: false,
348
+ internalType: "address",
349
+ name: "oldPendingAdmin",
350
+ type: "address",
351
+ },
352
+ {
353
+ indexed: false,
354
+ internalType: "address",
355
+ name: "newPendingAdmin",
356
+ type: "address",
357
+ },
358
+ ],
359
+ name: "NewPendingAdmin",
360
+ type: "event",
361
+ },
362
+ {
363
+ anonymous: false,
364
+ inputs: [
365
+ {
366
+ indexed: true,
367
+ internalType: "address",
368
+ name: "token",
369
+ type: "address",
370
+ },
371
+ {
372
+ indexed: true,
373
+ internalType: "address",
374
+ name: "receiver",
375
+ type: "address",
376
+ },
377
+ {
378
+ indexed: false,
379
+ internalType: "uint256",
380
+ name: "amount",
381
+ type: "uint256",
382
+ },
383
+ ],
384
+ name: "TokensSwept",
385
+ type: "event",
386
+ },
387
+ {
388
+ anonymous: false,
389
+ inputs: [
390
+ {
391
+ indexed: true,
392
+ internalType: "address",
393
+ name: "from",
394
+ type: "address",
395
+ },
396
+ {
397
+ indexed: true,
398
+ internalType: "address",
399
+ name: "to",
400
+ type: "address",
401
+ },
402
+ {
403
+ indexed: false,
404
+ internalType: "uint256",
405
+ name: "value",
406
+ type: "uint256",
407
+ },
408
+ ],
409
+ name: "Transfer",
410
+ type: "event",
411
+ },
412
+ {
413
+ inputs: [],
414
+ name: "SELF_UNIT_SCALE",
415
+ outputs: [
416
+ {
417
+ internalType: "uint256",
418
+ name: "",
419
+ type: "uint256",
420
+ },
421
+ ],
422
+ stateMutability: "view",
423
+ type: "function",
424
+ },
425
+ {
426
+ inputs: [],
427
+ name: "_acceptAdmin",
428
+ outputs: [],
429
+ stateMutability: "nonpayable",
430
+ type: "function",
431
+ },
432
+ {
433
+ inputs: [
434
+ {
435
+ internalType: "address",
436
+ name: "newPendingAdmin",
437
+ type: "address",
438
+ },
439
+ ],
440
+ name: "_setPendingAdmin",
441
+ outputs: [],
442
+ stateMutability: "nonpayable",
443
+ type: "function",
444
+ },
445
+ {
446
+ inputs: [],
447
+ name: "admin",
448
+ outputs: [
449
+ {
450
+ internalType: "address",
451
+ name: "",
452
+ type: "address",
453
+ },
454
+ ],
455
+ stateMutability: "view",
456
+ type: "function",
457
+ },
458
+ {
459
+ inputs: [
460
+ {
461
+ internalType: "address",
462
+ name: "owner",
463
+ type: "address",
464
+ },
465
+ {
466
+ internalType: "address",
467
+ name: "spender",
468
+ type: "address",
469
+ },
470
+ ],
471
+ name: "allowance",
472
+ outputs: [
473
+ {
474
+ internalType: "uint256",
475
+ name: "",
476
+ type: "uint256",
477
+ },
478
+ ],
479
+ stateMutability: "view",
480
+ type: "function",
481
+ },
482
+ {
483
+ inputs: [
484
+ {
485
+ internalType: "address",
486
+ name: "spender",
487
+ type: "address",
488
+ },
489
+ {
490
+ internalType: "uint256",
491
+ name: "value",
492
+ type: "uint256",
493
+ },
494
+ ],
495
+ name: "approve",
496
+ outputs: [
497
+ {
498
+ internalType: "bool",
499
+ name: "",
500
+ type: "bool",
501
+ },
502
+ ],
503
+ stateMutability: "nonpayable",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [
508
+ {
509
+ internalType: "address",
510
+ name: "",
511
+ type: "address",
512
+ },
513
+ ],
514
+ name: "autoApproved",
515
+ outputs: [
516
+ {
517
+ internalType: "bool",
518
+ name: "",
519
+ type: "bool",
520
+ },
521
+ ],
522
+ stateMutability: "view",
523
+ type: "function",
524
+ },
525
+ {
526
+ inputs: [
527
+ {
528
+ internalType: "bytes32",
529
+ name: "",
530
+ type: "bytes32",
531
+ },
532
+ ],
533
+ name: "autoApprovedSpendersByRoles",
534
+ outputs: [
535
+ {
536
+ internalType: "address",
537
+ name: "",
538
+ type: "address",
539
+ },
540
+ ],
541
+ stateMutability: "view",
542
+ type: "function",
543
+ },
544
+ {
545
+ inputs: [
546
+ {
547
+ internalType: "address",
548
+ name: "account",
549
+ type: "address",
550
+ },
551
+ ],
552
+ name: "balanceOf",
553
+ outputs: [
554
+ {
555
+ internalType: "uint256",
556
+ name: "",
557
+ type: "uint256",
558
+ },
559
+ ],
560
+ stateMutability: "view",
561
+ type: "function",
562
+ },
563
+ {
564
+ inputs: [
565
+ {
566
+ internalType: "address",
567
+ name: "_receiver",
568
+ type: "address",
569
+ },
570
+ {
571
+ internalType: "uint256",
572
+ name: "_amount",
573
+ type: "uint256",
574
+ },
575
+ ],
576
+ name: "burnChip",
577
+ outputs: [],
578
+ stateMutability: "nonpayable",
579
+ type: "function",
580
+ },
581
+ {
582
+ inputs: [
583
+ {
584
+ internalType: "uint256",
585
+ name: "_amount",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "bytes",
590
+ name: "_payload",
591
+ type: "bytes",
592
+ },
593
+ ],
594
+ name: "burnChipAndCall",
595
+ outputs: [],
596
+ stateMutability: "payable",
597
+ type: "function",
598
+ },
599
+ {
600
+ inputs: [],
601
+ name: "burnController",
602
+ outputs: [
603
+ {
604
+ internalType: "contract IPoolBurnControllerV1",
605
+ name: "",
606
+ type: "address",
607
+ },
608
+ ],
609
+ stateMutability: "view",
610
+ type: "function",
611
+ },
612
+ {
613
+ inputs: [],
614
+ name: "burnHandler",
615
+ outputs: [
616
+ {
617
+ internalType: "contract IBurnHandlerV1",
618
+ name: "",
619
+ type: "address",
620
+ },
621
+ ],
622
+ stateMutability: "view",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [],
627
+ name: "chipMode",
628
+ outputs: [
629
+ {
630
+ internalType: "enum ChipEnumsV1.ChipMode",
631
+ name: "",
632
+ type: "uint8",
633
+ },
634
+ ],
635
+ stateMutability: "view",
636
+ type: "function",
637
+ },
638
+ {
639
+ inputs: [],
640
+ name: "decimals",
641
+ outputs: [
642
+ {
643
+ internalType: "uint8",
644
+ name: "",
645
+ type: "uint8",
646
+ },
647
+ ],
648
+ stateMutability: "view",
649
+ type: "function",
650
+ },
651
+ {
652
+ inputs: [],
653
+ name: "exchangeRate",
654
+ outputs: [
655
+ {
656
+ internalType: "uint256",
657
+ name: "",
658
+ type: "uint256",
659
+ },
660
+ ],
661
+ stateMutability: "view",
662
+ type: "function",
663
+ },
664
+ {
665
+ inputs: [
666
+ {
667
+ internalType: "string",
668
+ name: "role",
669
+ type: "string",
670
+ },
671
+ ],
672
+ name: "getAutoApprovedSpenderAddressByRole",
673
+ outputs: [
674
+ {
675
+ internalType: "address",
676
+ name: "",
677
+ type: "address",
678
+ },
679
+ ],
680
+ stateMutability: "view",
681
+ type: "function",
682
+ },
683
+ {
684
+ inputs: [],
685
+ name: "isMintingPaused",
686
+ outputs: [
687
+ {
688
+ internalType: "bool",
689
+ name: "",
690
+ type: "bool",
691
+ },
692
+ ],
693
+ stateMutability: "view",
694
+ type: "function",
695
+ },
696
+ {
697
+ inputs: [
698
+ {
699
+ internalType: "address",
700
+ name: "_toAddress",
701
+ type: "address",
702
+ },
703
+ {
704
+ internalType: "uint256",
705
+ name: "_amount",
706
+ type: "uint256",
707
+ },
708
+ ],
709
+ name: "mintChip",
710
+ outputs: [],
711
+ stateMutability: "nonpayable",
712
+ type: "function",
713
+ },
714
+ {
715
+ inputs: [],
716
+ name: "mintController",
717
+ outputs: [
718
+ {
719
+ internalType: "contract IPoolMintControllerV1",
720
+ name: "",
721
+ type: "address",
722
+ },
723
+ ],
724
+ stateMutability: "view",
725
+ type: "function",
726
+ },
727
+ {
728
+ inputs: [],
729
+ name: "name",
730
+ outputs: [
731
+ {
732
+ internalType: "string",
733
+ name: "",
734
+ type: "string",
735
+ },
736
+ ],
737
+ stateMutability: "view",
738
+ type: "function",
739
+ },
740
+ {
741
+ inputs: [],
742
+ name: "pendingAdmin",
743
+ outputs: [
744
+ {
745
+ internalType: "address",
746
+ name: "",
747
+ type: "address",
748
+ },
749
+ ],
750
+ stateMutability: "view",
751
+ type: "function",
752
+ },
753
+ {
754
+ inputs: [],
755
+ name: "registry",
756
+ outputs: [
757
+ {
758
+ internalType: "contract IRegistryV1",
759
+ name: "",
760
+ type: "address",
761
+ },
762
+ ],
763
+ stateMutability: "view",
764
+ type: "function",
765
+ },
766
+ {
767
+ inputs: [
768
+ {
769
+ internalType: "string",
770
+ name: "role",
771
+ type: "string",
772
+ },
773
+ {
774
+ internalType: "address",
775
+ name: "spender",
776
+ type: "address",
777
+ },
778
+ ],
779
+ name: "setAutoApprovedSpenderForRole",
780
+ outputs: [],
781
+ stateMutability: "nonpayable",
782
+ type: "function",
783
+ },
784
+ {
785
+ inputs: [
786
+ {
787
+ internalType: "contract IPoolBurnControllerV1",
788
+ name: "_burnController",
789
+ type: "address",
790
+ },
791
+ ],
792
+ name: "setBurnController",
793
+ outputs: [],
794
+ stateMutability: "nonpayable",
795
+ type: "function",
796
+ },
797
+ {
798
+ inputs: [
799
+ {
800
+ internalType: "contract IBurnHandlerV1",
801
+ name: "_handler",
802
+ type: "address",
803
+ },
804
+ ],
805
+ name: "setBurnHandler",
806
+ outputs: [],
807
+ stateMutability: "nonpayable",
808
+ type: "function",
809
+ },
810
+ {
811
+ inputs: [
812
+ {
813
+ internalType: "bool",
814
+ name: "_value",
815
+ type: "bool",
816
+ },
817
+ ],
818
+ name: "setIsMintingPaused",
819
+ outputs: [],
820
+ stateMutability: "nonpayable",
821
+ type: "function",
822
+ },
823
+ {
824
+ inputs: [
825
+ {
826
+ internalType: "contract IPoolMintControllerV1",
827
+ name: "_mintController",
828
+ type: "address",
829
+ },
830
+ ],
831
+ name: "setMintController",
832
+ outputs: [],
833
+ stateMutability: "nonpayable",
834
+ type: "function",
835
+ },
836
+ {
837
+ inputs: [
838
+ {
839
+ internalType: "uint256",
840
+ name: "_amount",
841
+ type: "uint256",
842
+ },
843
+ ],
844
+ name: "sweepNative",
845
+ outputs: [],
846
+ stateMutability: "nonpayable",
847
+ type: "function",
848
+ },
849
+ {
850
+ inputs: [
851
+ {
852
+ internalType: "contract IERC20",
853
+ name: "_token",
854
+ type: "address",
855
+ },
856
+ {
857
+ internalType: "uint256",
858
+ name: "_amount",
859
+ type: "uint256",
860
+ },
861
+ ],
862
+ name: "sweepTokens",
863
+ outputs: [],
864
+ stateMutability: "nonpayable",
865
+ type: "function",
866
+ },
867
+ {
868
+ inputs: [],
869
+ name: "symbol",
870
+ outputs: [
871
+ {
872
+ internalType: "string",
873
+ name: "",
874
+ type: "string",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: "totalSupply",
883
+ outputs: [
884
+ {
885
+ internalType: "uint256",
886
+ name: "",
887
+ type: "uint256",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "address",
897
+ name: "to",
898
+ type: "address",
899
+ },
900
+ {
901
+ internalType: "uint256",
902
+ name: "value",
903
+ type: "uint256",
904
+ },
905
+ ],
906
+ name: "transfer",
907
+ outputs: [
908
+ {
909
+ internalType: "bool",
910
+ name: "",
911
+ type: "bool",
912
+ },
913
+ ],
914
+ stateMutability: "nonpayable",
915
+ type: "function",
916
+ },
917
+ {
918
+ inputs: [
919
+ {
920
+ internalType: "address",
921
+ name: "from",
922
+ type: "address",
923
+ },
924
+ {
925
+ internalType: "address",
926
+ name: "to",
927
+ type: "address",
928
+ },
929
+ {
930
+ internalType: "uint256",
931
+ name: "value",
932
+ type: "uint256",
933
+ },
934
+ ],
935
+ name: "transferFrom",
936
+ outputs: [
937
+ {
938
+ internalType: "bool",
939
+ name: "",
940
+ type: "bool",
941
+ },
942
+ ],
943
+ stateMutability: "nonpayable",
944
+ type: "function",
945
+ },
946
+ {
947
+ inputs: [],
948
+ name: "underlyingToken",
949
+ outputs: [
950
+ {
951
+ internalType: "contract IERC20",
952
+ name: "",
953
+ type: "address",
954
+ },
955
+ ],
956
+ stateMutability: "view",
957
+ type: "function",
958
+ },
959
+ ];
960
+ const _bytecode = "0x6101006040523480156200001257600080fd5b5060405162002a9e38038062002a9e83398101604081905262000035916200031e565b600080546001600160a01b03191633179055846001858560056200005a83826200045b565b5060066200006982826200045b565b50506001600755506001600160a01b038216620000ba5760405162461bcd60e51b815260206004820152600a602482015269215f726567697374727960b01b60448201526064015b60405180910390fd5b6001600160a01b038216608052806003811115620000dc57620000dc62000527565b60a0816003811115620000f357620000f362000527565b90525050506001600160a01b038216620001445760405162461bcd60e51b815260206004820152601160248201527010afbab73232b9363cb4b733aa37b5b2b760791b6044820152606401620000b1565b816001600160a01b031660c0816001600160a01b0316815250506000826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200019f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c591906200053d565b60ff169050620001d781600a6200067e565b60e052600080546001600160a01b0319166001600160a01b03841690811782556040805192835260208301919091527ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a15050505050506200068c565b6001600160a01b03811681146200025357600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027e57600080fd5b81516001600160401b03808211156200029b576200029b62000256565b604051601f8301601f19908116603f01168101908282118183101715620002c657620002c662000256565b8160405283815260209250866020858801011115620002e457600080fd5b600091505b83821015620003085785820183015181830184015290820190620002e9565b6000602085830101528094505050505092915050565b600080600080600060a086880312156200033757600080fd5b855162000344816200023d565b60208701519095506001600160401b03808211156200036257600080fd5b6200037089838a016200026c565b955060408801519150808211156200038757600080fd5b5062000396888289016200026c565b9350506060860151620003a9816200023d565b6080870151909250620003bc816200023d565b809150509295509295909350565b600181811c90821680620003df57607f821691505b6020821081036200040057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000456576000816000526020600020601f850160051c81016020861015620004315750805b601f850160051c820191505b8181101562000452578281556001016200043d565b5050505b505050565b81516001600160401b0381111562000477576200047762000256565b6200048f81620004888454620003ca565b8462000406565b602080601f831160018114620004c75760008415620004ae5750858301515b600019600386901b1c1916600185901b17855562000452565b600085815260208120601f198616915b82811015620004f857888601518255948401946001909101908401620004d7565b5085821015620005175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b6000602082840312156200055057600080fd5b815160ff811681146200056257600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005c0578160001904821115620005a457620005a462000569565b80851615620005b257918102915b93841c939080029062000584565b509250929050565b600082620005d95750600162000678565b81620005e85750600062000678565b81600181146200060157600281146200060c576200062c565b600191505062000678565b60ff84111562000620576200062062000569565b50506001821b62000678565b5060208310610133831016604e8410600b841016171562000651575081810a62000678565b6200065d83836200057f565b806000190482111562000674576200067462000569565b0290505b92915050565b6000620005628383620005c8565b60805160a05160c05160e05161239962000705600039600081816103b601528181611b280152611da80152600081816102d701528181610d75015281816116bd0152818161199d01528181611a1f0152611a5f0152600061040a0152600081816104dd0152818161120801526117be01526123996000f3fe6080604052600436106102045760003560e01c80637b10399911610118578063dd62ed3e116100a0578063ea0d5a211161006f578063ea0d5a2114610679578063ec1a5abb14610699578063ecd39eb4146106b9578063f851a440146106d9578063f946920b146106f957600080fd5b8063dd62ed3e14610604578063dd6d28c814610624578063dec6603614610644578063e9c714f21461066457600080fd5b8063aad3a7ee116100e7578063aad3a7ee14610564578063b71d1a0c14610584578063c566fa27146105a4578063cfe1f110146105c4578063d9d009e0146105e457600080fd5b80637b103999146104cb57806395d89b41146104ff578063a0052a8e14610514578063a9059cbb1461054457600080fd5b80632e105b421161019b5780635b0cc8c41161016a5780635b0cc8c4146103f85780636424a77e1461043957806370a082311461045957806370ac1fa51461048f57806379c80dc2146104af57600080fd5b80632e105b4214610367578063313ce567146103885780633ba0b9a9146103a45780633cf3a025146103d857600080fd5b806323b872dd116101d757806323b872dd146102a55780632495a599146102c557806326782247146103115780632b5e857f1461033157600080fd5b806306fdde0314610209578063095ea7b3146102345780630eb265e91461026457806318160ddd14610286575b600080fd5b34801561021557600080fd5b5061021e61070c565b60405161022b9190611ead565b60405180910390f35b34801561024057600080fd5b5061025461024f366004611f14565b61079e565b604051901515815260200161022b565b34801561027057600080fd5b5061028461027f366004611f40565b6107b8565b005b34801561029257600080fd5b506004545b60405190815260200161022b565b3480156102b157600080fd5b506102546102c0366004611f64565b61092a565b3480156102d157600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161022b565b34801561031d57600080fd5b506001546102f9906001600160a01b031681565b34801561033d57600080fd5b506102f961034c366004611fa5565b6009602052600090815260409020546001600160a01b031681565b34801561037357600080fd5b50600a5461025490600160a01b900460ff1681565b34801561039457600080fd5b506040516012815260200161022b565b3480156103b057600080fd5b506102977f000000000000000000000000000000000000000000000000000000000000000081565b3480156103e457600080fd5b506102846103f3366004611fa5565b61094e565b34801561040457600080fd5b5061042c7f000000000000000000000000000000000000000000000000000000000000000081565b60405161022b9190611fbe565b34801561044557600080fd5b50600c546102f9906001600160a01b031681565b34801561046557600080fd5b50610297610474366004611f40565b6001600160a01b031660009081526002602052604090205490565b34801561049b57600080fd5b50600b546102f9906001600160a01b031681565b3480156104bb57600080fd5b50610297670de0b6b3a764000081565b3480156104d757600080fd5b506102f97f000000000000000000000000000000000000000000000000000000000000000081565b34801561050b57600080fd5b5061021e6109b5565b34801561052057600080fd5b5061025461052f366004611f40565b60086020526000908152604090205460ff1681565b34801561055057600080fd5b5061025461055f366004611f14565b6109c4565b34801561057057600080fd5b5061028461057f366004611f40565b6109d2565b34801561059057600080fd5b5061028461059f366004611f40565b610b3a565b3480156105b057600080fd5b506102846105bf366004611ff4565b610be2565b3480156105d057600080fd5b50600a546102f9906001600160a01b031681565b3480156105f057600080fd5b506102f96105ff36600461205a565b610c87565b34801561061057600080fd5b5061029761061f36600461209c565b610cd3565b34801561063057600080fd5b5061028461063f366004611f14565b610d29565b34801561065057600080fd5b5061028461065f366004611f14565b610d49565b34801561067057600080fd5b50610284610e57565b34801561068557600080fd5b506102846106943660046120d5565b610f75565b3480156106a557600080fd5b506102846106b4366004611f14565b610faf565b3480156106c557600080fd5b506102846106d4366004611f40565b6111ac565b3480156106e557600080fd5b506000546102f9906001600160a01b031681565b61028461070736600461212c565b611344565b60606005805461071b90612178565b80601f016020809104026020016040519081016040528092919081815260200182805461074790612178565b80156107945780601f1061076957610100808354040283529160200191610794565b820191906000526020600020905b81548152906001019060200180831161077757829003601f168201915b5050505050905090565b6000336107ac81858561142c565b60019150505b92915050565b6000546001600160a01b031633146107eb5760405162461bcd60e51b81526004016107e2906121b2565b60405180910390fd5b6001600160a01b038116158061085e5750806001600160a01b031663cc57faed6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561083a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085e91906121d6565b6108aa5760405162461bcd60e51b815260206004820152601860248201527f4e4f545f504f4f4c5f4255524e5f434f4e54524f4c4c4552000000000000000060448201526064016107e2565b600c546001600160a01b0390811690821681036108d95760405162461bcd60e51b81526004016107e2906121f3565b600c80546001600160a01b0319166001600160a01b0384811691821790925560405190918316907f16b93672d9092cc0acb4ebfd8d65bf24786d793c518ab1cfc140e37e3564902590600090a35050565b600033610938858285611439565b6109438585856114a0565b506001949350505050565b6000546001600160a01b031633146109785760405162461bcd60e51b81526004016107e2906121b2565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156109b1573d6000803e3d6000fd5b5050565b60606006805461071b90612178565b6000336107ac8185856114a0565b6000546001600160a01b031633146109fc5760405162461bcd60e51b81526004016107e2906121b2565b6001600160a01b0381161580610a6f5750806001600160a01b03166357796be56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f91906121d6565b610abb5760405162461bcd60e51b815260206004820152601860248201527f4e4f545f504f4f4c5f4d494e545f434f4e54524f4c4c4552000000000000000060448201526064016107e2565b600b546001600160a01b039081169082168103610aea5760405162461bcd60e51b81526004016107e2906121f3565b600b80546001600160a01b0319166001600160a01b0384811691821790925560405190918316907ec2914c7e37af68952e44d24abe475cfe8283ecf3371fa55d59df1964da4f9c90600090a35050565b6000546001600160a01b03163314610b805760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b60448201526064016107e2565b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991015b60405180910390a15050565b6000546001600160a01b03163314610c0c5760405162461bcd60e51b81526004016107e2906121b2565b801515600a60149054906101000a900460ff16151503610c3e5760405162461bcd60e51b81526004016107e2906121f3565b600a805460ff60a01b1916600160a01b831515908102919091179091556040517f60313cc974fe7ab6a7d548b919c8d3ee7235ae7e711fd00603ea4b16e0d028b690600090a250565b6000808383604051602001610c9d929190612218565b60408051808303601f190181529181528151602092830120600090815260099092529020546001600160a01b0316949350505050565b6001600160a01b03811660009081526008602052604081205460ff1615610cfd57506000196107b2565b506001600160a01b038281166000908152600360209081526040808320938516835292905220546107b2565b610d316114ff565b33610d3d818484611529565b50506109b16001600755565b6000546001600160a01b03163314610d735760405162461bcd60e51b81526004016107e2906121b2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603610df45760405162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f53574545505f554e4445524c59494e475f544f4b454e00000060448201526064016107e2565b600054610e0e906001600160a01b03848116911683611742565b6000546040518281526001600160a01b03918216918416907fd092d7fceb5ea5a962639fcc27a7bb315e7637e699e3b108cd570c38c75843009060200160405180910390a35050565b6001546001600160a01b031633148015610e7b57506001546001600160a01b031615155b610ec75760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865204558495354494e472070656e64696e672061646d696e000060448201526064016107e2565b60008054600180546001600160a01b038082166001600160a01b031980861682179096559490911690915560408051919092168082526020820184905292917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a1600154604080516001600160a01b03808516825290921660208301527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99101610bd6565b6000546001600160a01b03163314610f9f5760405162461bcd60e51b81526004016107e2906121b2565b610faa8383836117a1565b505050565b610fb76114ff565b600a54600160a01b900460ff1615610fff5760405162461bcd60e51b815260206004820152600b60248201526a1352539517d4105554d15160aa1b60448201526064016107e2565b8060000361103d5760405162461bcd60e51b815260206004820152600b60248201526a414d4f554e545f5a45524f60a81b60448201526064016107e2565b336110488183611985565b600061105383611b24565b600b549091506001600160a01b0316801561113f57604051630fab366b60e01b81526001600160a01b0384811660048301528681166024830152604482018690526064820184905260009190831690630fab366b906084016020604051808303816000875af11580156110ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ee91906121d6565b90508061113d5760405162461bcd60e51b815260206004820152601760248201527f4d494e545f434f4e54524f4c4c45525f5245465553414c00000000000000000060448201526064016107e2565b505b6111498583611b63565b846001600160a01b0316836001600160a01b03167fd20c3a57c71c0887a5010822305eece6ba96a1719b0020268ca215fcc07735808685604051611197929190918252602082015260400190565b60405180910390a35050506109b16001600755565b6000546001600160a01b031633146111d65760405162461bcd60e51b81526004016107e2906121b2565b6001600160a01b03811615806112805750604051632814d47360e11b81523060048201526001600160a01b03808316917f000000000000000000000000000000000000000000000000000000000000000090911690635029a8e690602401602060405180830381865afa158015611251573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112759190612228565b6001600160a01b0316145b6112c45760405162461bcd60e51b81526020600482015260156024820152741393d517d49151d254d5149657d054141493d59151605a1b60448201526064016107e2565b600a546001600160a01b0390811690821681036112f35760405162461bcd60e51b81526004016107e2906121f3565b600a80546001600160a01b0319166001600160a01b0384811691821790925560405190918316907f4b51eab659b8214b91d05725a11f90ee31cdcd1b6484b59d84051881e2488a9790600090a35050565b61134c6114ff565b600a546001600160a01b03166113965760405162461bcd60e51b815260206004820152600f60248201526e2727afa12aa9272fa420a7222622a960891b60448201526064016107e2565b600a5433906000906113b39083906001600160a01b031687611529565b600a546040516343aa8ca160e01b81529192506001600160a01b0316906343aa8ca19034906113ee9086908a9087908b908b9060040161226e565b6000604051808303818588803b15801561140757600080fd5b505af115801561141b573d6000803e3d6000fd5b50505050505050610faa6001600755565b610faa8383836001611b99565b60006114458484610cd3565b905060001981101561149a578181101561148b57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107e2565b61149a84848484036000611b99565b50505050565b6001600160a01b0383166114ca57604051634b637e8f60e11b8152600060048201526024016107e2565b6001600160a01b0382166114f45760405163ec442f0560e01b8152600060048201526024016107e2565b610faa838383611c6e565b60026007540361152257604051633ee5aeb560e01b815260040160405180910390fd5b6002600755565b6000816000036115695760405162461bcd60e51b815260206004820152600b60248201526a414d4f554e545f5a45524f60a81b60448201526064016107e2565b61157282611d98565b9050806000036115bd5760405162461bcd60e51b8152602060048201526016602482015275554e4445524c59494e475f414d4f554e545f5a45524f60501b60448201526064016107e2565b600c546001600160a01b031680156116a65760405163e99bfce560e01b81526001600160a01b038681166004830152858116602483015260448201849052606482018590526000919083169063e99bfce5906084016020604051808303816000875af1158015611631573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165591906121d6565b9050806116a45760405162461bcd60e51b815260206004820152601760248201527f4255524e5f434f4e54524f4c4c45525f5245465553414c00000000000000000060448201526064016107e2565b505b6116b08584611dcd565b6116e46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168584611742565b836001600160a01b0316856001600160a01b03167f6e9b7d09f4f2a9b129527e9daa9b710e6efde1980ff021731846c74bb833f8908486604051611732929190918252602082015260400190565b60405180910390a3509392505050565b6040516001600160a01b03838116602483015260448201839052610faa91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611e03565b6001600160a01b03811615806118585750806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634971e2563086866040518463ffffffff1660e01b815260040161180c939291906122a7565b602060405180830381865afa158015611829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184d9190612228565b6001600160a01b0316145b61189c5760405162461bcd60e51b81526020600482015260156024820152741393d517d49151d254d5149657d054141493d59151605a1b60448201526064016107e2565b60006118a88484610c87565b6001600160a01b038082166000908152600860209081526040808320805460ff19908116909155938716835280832080549094166001179093559151929350916118f6918791879101612218565b60408051808303601f1901815282825280516020918201206000818152600990925291902080546001600160a01b0319166001600160a01b0387811691821790925591935090919084169061194e9088908890612218565b604051908190038120907fc94709672e719140368a6108fcd1b4d0d1247187c04a308abf71aab8099b49ab90600090a45050505050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156119ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1091906122d5565b9050611a476001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016843085611e74565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611aae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad291906122d5565b905082611adf8383612304565b1461149a5760405162461bcd60e51b815260206004820152601560248201527411125117d393d517d49150d152559157d1561050d5605a1b60448201526064016107e2565b60007f0000000000000000000000000000000000000000000000000000000000000000611b59670de0b6b3a764000084612317565b6107b2919061232e565b6001600160a01b038216611b8d5760405163ec442f0560e01b8152600060048201526024016107e2565b6109b160008383611c6e565b6001600160a01b038416611bc35760405163e602df0560e01b8152600060048201526024016107e2565b6001600160a01b038316611bed57604051634a1406b160e11b8152600060048201526024016107e2565b6001600160a01b038085166000908152600360209081526040808320938716835292905220829055801561149a57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611c6091815260200190565b60405180910390a350505050565b6001600160a01b038316611c99578060046000828254611c8e9190612350565b90915550611d0b9050565b6001600160a01b03831660009081526002602052604090205481811015611cec5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016107e2565b6001600160a01b03841660009081526002602052604090209082900390555b6001600160a01b038216611d2757600480548290039055611d46565b6001600160a01b03821660009081526002602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611d8b91815260200190565b60405180910390a3505050565b6000670de0b6b3a7640000611b597f000000000000000000000000000000000000000000000000000000000000000084612317565b6001600160a01b038216611df757604051634b637e8f60e11b8152600060048201526024016107e2565b6109b182600083611c6e565b600080602060008451602086016000885af180611e26576040513d6000823e3d81fd5b50506000513d91508115611e3e578060011415611e4b565b6001600160a01b0384163b155b1561149a57604051635274afe760e01b81526001600160a01b03851660048201526024016107e2565b6040516001600160a01b03848116602483015283811660448301526064820183905261149a9186918216906323b872dd9060840161176f565b60006020808352835180602085015260005b81811015611edb57858101830151858201604001528201611ebf565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114611f1157600080fd5b50565b60008060408385031215611f2757600080fd5b8235611f3281611efc565b946020939093013593505050565b600060208284031215611f5257600080fd5b8135611f5d81611efc565b9392505050565b600080600060608486031215611f7957600080fd5b8335611f8481611efc565b92506020840135611f9481611efc565b929592945050506040919091013590565b600060208284031215611fb757600080fd5b5035919050565b6020810160048310611fe057634e487b7160e01b600052602160045260246000fd5b91905290565b8015158114611f1157600080fd5b60006020828403121561200657600080fd5b8135611f5d81611fe6565b60008083601f84011261202357600080fd5b50813567ffffffffffffffff81111561203b57600080fd5b60208301915083602082850101111561205357600080fd5b9250929050565b6000806020838503121561206d57600080fd5b823567ffffffffffffffff81111561208457600080fd5b61209085828601612011565b90969095509350505050565b600080604083850312156120af57600080fd5b82356120ba81611efc565b915060208301356120ca81611efc565b809150509250929050565b6000806000604084860312156120ea57600080fd5b833567ffffffffffffffff81111561210157600080fd5b61210d86828701612011565b909450925050602084013561212181611efc565b809150509250925092565b60008060006040848603121561214157600080fd5b83359250602084013567ffffffffffffffff81111561215f57600080fd5b61216b86828701612011565b9497909650939450505050565b600181811c9082168061218c57607f821691505b6020821081036121ac57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a908201526927a7262cafa0a226a4a760b11b604082015260600190565b6000602082840312156121e857600080fd5b8151611f5d81611fe6565b6020808252600b908201526a1053149150511657d4d15560aa1b604082015260600190565b8183823760009101908152919050565b60006020828403121561223a57600080fd5b8151611f5d81611efc565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038616815284602082015283604082015260806060820152600061229c608083018486612245565b979650505050505050565b6001600160a01b03841681526040602082018190526000906122cc9083018486612245565b95945050505050565b6000602082840312156122e757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156107b2576107b26122ee565b80820281158282048414176107b2576107b26122ee565b60008261234b57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156107b2576107b26122ee56fea264697066735822122033769b66440d1fbf09f213498d0f0ca26741c6485282578b846109ac4d4ccdde64736f6c63430008180033";
961
+ const isSuperArgs = (xs) => xs.length > 1;
962
+ class EngineChip__factory extends ethers_1.ContractFactory {
963
+ constructor(...args) {
964
+ if (isSuperArgs(args)) {
965
+ super(...args);
966
+ }
967
+ else {
968
+ super(_abi, _bytecode, args[0]);
969
+ }
970
+ }
971
+ getDeployTransaction(_registry, _name, _symbol, _underlyingToken, _initialAdmin, overrides) {
972
+ return super.getDeployTransaction(_registry, _name, _symbol, _underlyingToken, _initialAdmin, overrides || {});
973
+ }
974
+ deploy(_registry, _name, _symbol, _underlyingToken, _initialAdmin, overrides) {
975
+ return super.deploy(_registry, _name, _symbol, _underlyingToken, _initialAdmin, overrides || {});
976
+ }
977
+ connect(runner) {
978
+ return super.connect(runner);
979
+ }
980
+ static createInterface() {
981
+ return new ethers_1.Interface(_abi);
982
+ }
983
+ static connect(address, runner) {
984
+ return new ethers_1.Contract(address, _abi, runner);
985
+ }
986
+ }
987
+ exports.EngineChip__factory = EngineChip__factory;
988
+ EngineChip__factory.bytecode = _bytecode;
989
+ EngineChip__factory.abi = _abi;