@cryptonergy/smart-contracts-sdk 1.0.0-dev.8 → 1.0.0-dev.9

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 (90) hide show
  1. package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
  2. package/dist/types/typechain-types/@chainlink/contracts/index.js +1 -0
  3. package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
  4. package/dist/types/typechain-types/@chainlink/contracts/src/index.js +1 -0
  5. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
  6. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.js +1 -0
  7. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
  8. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.js +1 -0
  9. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.d.ts +103 -0
  10. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.js +1 -0
  11. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  12. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +1 -0
  13. package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
  14. package/dist/types/typechain-types/@chainlink/index.js +1 -0
  15. package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
  16. package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.js +1 -0
  17. package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +1 -0
  18. package/dist/types/typechain-types/@openzeppelin/contracts/access/index.js +1 -0
  19. package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
  20. package/dist/types/typechain-types/contracts/index.d.ts +2 -0
  21. package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.d.ts +113 -0
  22. package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.js +1 -0
  23. package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.d.ts +75 -0
  24. package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.js +1 -0
  25. package/dist/types/typechain-types/contracts/mocks/index.d.ts +2 -0
  26. package/dist/types/typechain-types/contracts/oracle/IPriceProvider.d.ts +65 -0
  27. package/dist/types/typechain-types/contracts/oracle/IPriceProvider.js +1 -0
  28. package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.d.ts +246 -0
  29. package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.js +1 -0
  30. package/dist/types/typechain-types/contracts/oracle/OracleRouter.d.ts +395 -0
  31. package/dist/types/typechain-types/contracts/oracle/OracleRouter.js +1 -0
  32. package/dist/types/typechain-types/contracts/oracle/index.d.ts +5 -0
  33. package/dist/types/typechain-types/contracts/oracle/index.js +1 -0
  34. package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.d.ts +116 -0
  35. package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.js +1 -0
  36. package/dist/types/typechain-types/contracts/oracle/providers/index.d.ts +1 -0
  37. package/dist/types/typechain-types/contracts/oracle/providers/index.js +1 -0
  38. package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
  39. package/dist/types/typechain-types/factories/@chainlink/contracts/index.js +4 -0
  40. package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
  41. package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.js +4 -0
  42. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
  43. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.js +4 -0
  44. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +1 -0
  45. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.js +4 -0
  46. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.d.ts +93 -0
  47. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.js +126 -0
  48. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  49. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +4 -0
  50. package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
  51. package/dist/types/typechain-types/factories/@chainlink/index.js +4 -0
  52. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
  53. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +89 -0
  54. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +1 -0
  55. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.js +4 -0
  56. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
  57. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.js +1 -0
  58. package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.d.ts +1 -1
  59. package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.js +1 -1
  60. package/dist/types/typechain-types/factories/contracts/VaultV1__factory.d.ts +1 -1
  61. package/dist/types/typechain-types/factories/contracts/VaultV1__factory.js +1 -1
  62. package/dist/types/typechain-types/factories/contracts/index.d.ts +1 -0
  63. package/dist/types/typechain-types/factories/contracts/index.js +1 -0
  64. package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.d.ts +218 -0
  65. package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.js +291 -0
  66. package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.d.ts +110 -0
  67. package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.js +149 -0
  68. package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +2 -0
  69. package/dist/types/typechain-types/factories/contracts/mocks/index.js +2 -0
  70. package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.d.ts +67 -0
  71. package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.js +94 -0
  72. package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.d.ts +377 -0
  73. package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.js +498 -0
  74. package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.d.ts +623 -0
  75. package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.js +822 -0
  76. package/dist/types/typechain-types/factories/contracts/oracle/index.d.ts +4 -0
  77. package/dist/types/typechain-types/factories/contracts/oracle/index.js +7 -0
  78. package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.d.ts +179 -0
  79. package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.js +241 -0
  80. package/dist/types/typechain-types/factories/contracts/oracle/providers/index.d.ts +1 -0
  81. package/dist/types/typechain-types/factories/contracts/oracle/providers/index.js +4 -0
  82. package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.d.ts +1 -1
  83. package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.js +1 -1
  84. package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.d.ts +1 -1
  85. package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.js +1 -1
  86. package/dist/types/typechain-types/factories/index.d.ts +1 -0
  87. package/dist/types/typechain-types/factories/index.js +1 -0
  88. package/dist/types/typechain-types/index.d.ts +18 -0
  89. package/dist/types/typechain-types/index.js +8 -0
  90. package/package.json +1 -1
@@ -0,0 +1,218 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, BytesLike, BigNumberish, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../common";
4
+ import type { MockPriceProvider, MockPriceProviderInterface } from "../../../contracts/mocks/MockPriceProvider";
5
+ type MockPriceProviderConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class MockPriceProvider__factory extends ContractFactory {
7
+ constructor(...args: MockPriceProviderConstructorParams);
8
+ getDeployTransaction(id_: BytesLike, ver_: BigNumberish, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(id_: BytesLike, ver_: BigNumberish, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<MockPriceProvider & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): MockPriceProvider__factory;
17
+ static readonly bytecode = "0x60806040526001805462ffffff60201b191665010100000000179055348015602657600080fd5b506040516104d33803806104d38339810160408190526043916079565b6000919091556001805463ffffffff90921663ffffffff199092169190911790556004805460ff191660121790554260035560b0565b60008060408385031215608b57600080fd5b82519150602083015163ffffffff8116811460a557600080fd5b809150509250929050565b610414806100bf6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806391b7f5ed11610097578063b80777ea11610066578063b80777ea146102a6578063c9ae24d6146102af578063d3072d82146102c4578063d909b403146102db57600080fd5b806391b7f5ed14610247578063a035b1fe1461025a578063a0a2b57314610263578063b4b820c01461027657600080fd5b806354fd4d50116100d357806354fd4d50146101c75780637a1395aa146101df5780638490a8df146102035780638fb5f1711461021557600080fd5b8063313ce5671461010557806341976e09146101295780634a91ef8d146101675780634f129c5314610197575b600080fd5b6004546101129060ff1681565b60405160ff90911681526020015b60405180910390f35b61013c610137366004610350565b6102f1565b6040516101209493929190938452602084019290925260ff1660408301521515606082015260800190565b610195610175366004610380565b600180549115156401000000000264ff0000000019909216919091179055565b005b6101b76101a5366004610350565b50600154640100000000900460ff1690565b6040519015158152602001610120565b60015460405163ffffffff9091168152602001610120565b6101956101ed3660046103a2565b6004805460ff191660ff92909216919091179055565b6000545b604051908152602001610120565b610195610223366004610380565b6001805491151566010000000000000266ff00000000000019909216919091179055565b6101956102553660046103c5565b600255565b61020760025481565b6101956102713660046103c5565b600355565b610195610284366004610380565b60018054911515650100000000000265ff000000000019909216919091179055565b61020760035481565b6001546101b790640100000000900460ff1681565b6001546101b7906601000000000000900460ff1681565b6001546101b79065010000000000900460ff1681565b600080600080600160069054906101000a900460ff16156103255760405163872cfd4160e01b815260040160405180910390fd5b505060025460035460045460015492945090925060ff90811691650100000000009004169193509193565b60006020828403121561036257600080fd5b81356001600160a01b038116811461037957600080fd5b9392505050565b60006020828403121561039257600080fd5b8135801515811461037957600080fd5b6000602082840312156103b457600080fd5b813560ff8116811461037957600080fd5b6000602082840312156103d757600080fd5b503591905056fea2646970667358221220bad0a15e7ca61191654bbfea6a3f53bf641c8cb5464013fc1a84feeba0ed2d0864736f6c634300081c0033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "bytes32";
21
+ readonly name: "id_";
22
+ readonly type: "bytes32";
23
+ }, {
24
+ readonly internalType: "uint32";
25
+ readonly name: "ver_";
26
+ readonly type: "uint32";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ readonly type: "constructor";
30
+ }, {
31
+ readonly inputs: readonly [];
32
+ readonly name: "MockRevert";
33
+ readonly type: "error";
34
+ }, {
35
+ readonly inputs: readonly [];
36
+ readonly name: "decimals";
37
+ readonly outputs: readonly [{
38
+ readonly internalType: "uint8";
39
+ readonly name: "";
40
+ readonly type: "uint8";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ readonly type: "function";
44
+ }, {
45
+ readonly inputs: readonly [{
46
+ readonly internalType: "address";
47
+ readonly name: "asset";
48
+ readonly type: "address";
49
+ }];
50
+ readonly name: "getPrice";
51
+ readonly outputs: readonly [{
52
+ readonly internalType: "uint256";
53
+ readonly name: "p";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly internalType: "uint256";
57
+ readonly name: "ts";
58
+ readonly type: "uint256";
59
+ }, {
60
+ readonly internalType: "uint8";
61
+ readonly name: "dec";
62
+ readonly type: "uint8";
63
+ }, {
64
+ readonly internalType: "bool";
65
+ readonly name: "isOk";
66
+ readonly type: "bool";
67
+ }];
68
+ readonly stateMutability: "view";
69
+ readonly type: "function";
70
+ }, {
71
+ readonly inputs: readonly [{
72
+ readonly internalType: "address";
73
+ readonly name: "asset";
74
+ readonly type: "address";
75
+ }];
76
+ readonly name: "isSupported";
77
+ readonly outputs: readonly [{
78
+ readonly internalType: "bool";
79
+ readonly name: "";
80
+ readonly type: "bool";
81
+ }];
82
+ readonly stateMutability: "view";
83
+ readonly type: "function";
84
+ }, {
85
+ readonly inputs: readonly [];
86
+ readonly name: "ok";
87
+ readonly outputs: readonly [{
88
+ readonly internalType: "bool";
89
+ readonly name: "";
90
+ readonly type: "bool";
91
+ }];
92
+ readonly stateMutability: "view";
93
+ readonly type: "function";
94
+ }, {
95
+ readonly inputs: readonly [];
96
+ readonly name: "price";
97
+ readonly outputs: readonly [{
98
+ readonly internalType: "uint256";
99
+ readonly name: "";
100
+ readonly type: "uint256";
101
+ }];
102
+ readonly stateMutability: "view";
103
+ readonly type: "function";
104
+ }, {
105
+ readonly inputs: readonly [];
106
+ readonly name: "providerId";
107
+ readonly outputs: readonly [{
108
+ readonly internalType: "bytes32";
109
+ readonly name: "";
110
+ readonly type: "bytes32";
111
+ }];
112
+ readonly stateMutability: "view";
113
+ readonly type: "function";
114
+ }, {
115
+ readonly inputs: readonly [{
116
+ readonly internalType: "uint8";
117
+ readonly name: "d";
118
+ readonly type: "uint8";
119
+ }];
120
+ readonly name: "setDecimals";
121
+ readonly outputs: readonly [];
122
+ readonly stateMutability: "nonpayable";
123
+ readonly type: "function";
124
+ }, {
125
+ readonly inputs: readonly [{
126
+ readonly internalType: "bool";
127
+ readonly name: "v";
128
+ readonly type: "bool";
129
+ }];
130
+ readonly name: "setOk";
131
+ readonly outputs: readonly [];
132
+ readonly stateMutability: "nonpayable";
133
+ readonly type: "function";
134
+ }, {
135
+ readonly inputs: readonly [{
136
+ readonly internalType: "uint256";
137
+ readonly name: "p";
138
+ readonly type: "uint256";
139
+ }];
140
+ readonly name: "setPrice";
141
+ readonly outputs: readonly [];
142
+ readonly stateMutability: "nonpayable";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly inputs: readonly [{
146
+ readonly internalType: "bool";
147
+ readonly name: "v";
148
+ readonly type: "bool";
149
+ }];
150
+ readonly name: "setRevert";
151
+ readonly outputs: readonly [];
152
+ readonly stateMutability: "nonpayable";
153
+ readonly type: "function";
154
+ }, {
155
+ readonly inputs: readonly [{
156
+ readonly internalType: "bool";
157
+ readonly name: "v";
158
+ readonly type: "bool";
159
+ }];
160
+ readonly name: "setSupported";
161
+ readonly outputs: readonly [];
162
+ readonly stateMutability: "nonpayable";
163
+ readonly type: "function";
164
+ }, {
165
+ readonly inputs: readonly [{
166
+ readonly internalType: "uint256";
167
+ readonly name: "ts";
168
+ readonly type: "uint256";
169
+ }];
170
+ readonly name: "setTimestamp";
171
+ readonly outputs: readonly [];
172
+ readonly stateMutability: "nonpayable";
173
+ readonly type: "function";
174
+ }, {
175
+ readonly inputs: readonly [];
176
+ readonly name: "shouldRevert";
177
+ readonly outputs: readonly [{
178
+ readonly internalType: "bool";
179
+ readonly name: "";
180
+ readonly type: "bool";
181
+ }];
182
+ readonly stateMutability: "view";
183
+ readonly type: "function";
184
+ }, {
185
+ readonly inputs: readonly [];
186
+ readonly name: "supported";
187
+ readonly outputs: readonly [{
188
+ readonly internalType: "bool";
189
+ readonly name: "";
190
+ readonly type: "bool";
191
+ }];
192
+ readonly stateMutability: "view";
193
+ readonly type: "function";
194
+ }, {
195
+ readonly inputs: readonly [];
196
+ readonly name: "timestamp";
197
+ readonly outputs: readonly [{
198
+ readonly internalType: "uint256";
199
+ readonly name: "";
200
+ readonly type: "uint256";
201
+ }];
202
+ readonly stateMutability: "view";
203
+ readonly type: "function";
204
+ }, {
205
+ readonly inputs: readonly [];
206
+ readonly name: "version";
207
+ readonly outputs: readonly [{
208
+ readonly internalType: "uint32";
209
+ readonly name: "";
210
+ readonly type: "uint32";
211
+ }];
212
+ readonly stateMutability: "view";
213
+ readonly type: "function";
214
+ }];
215
+ static createInterface(): MockPriceProviderInterface;
216
+ static connect(address: string, runner?: ContractRunner | null): MockPriceProvider;
217
+ }
218
+ export {};
@@ -0,0 +1,291 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, ContractFactory, Interface, } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "bytes32",
10
+ name: "id_",
11
+ type: "bytes32",
12
+ },
13
+ {
14
+ internalType: "uint32",
15
+ name: "ver_",
16
+ type: "uint32",
17
+ },
18
+ ],
19
+ stateMutability: "nonpayable",
20
+ type: "constructor",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "MockRevert",
25
+ type: "error",
26
+ },
27
+ {
28
+ inputs: [],
29
+ name: "decimals",
30
+ outputs: [
31
+ {
32
+ internalType: "uint8",
33
+ name: "",
34
+ type: "uint8",
35
+ },
36
+ ],
37
+ stateMutability: "view",
38
+ type: "function",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "asset",
45
+ type: "address",
46
+ },
47
+ ],
48
+ name: "getPrice",
49
+ outputs: [
50
+ {
51
+ internalType: "uint256",
52
+ name: "p",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ internalType: "uint256",
57
+ name: "ts",
58
+ type: "uint256",
59
+ },
60
+ {
61
+ internalType: "uint8",
62
+ name: "dec",
63
+ type: "uint8",
64
+ },
65
+ {
66
+ internalType: "bool",
67
+ name: "isOk",
68
+ type: "bool",
69
+ },
70
+ ],
71
+ stateMutability: "view",
72
+ type: "function",
73
+ },
74
+ {
75
+ inputs: [
76
+ {
77
+ internalType: "address",
78
+ name: "asset",
79
+ type: "address",
80
+ },
81
+ ],
82
+ name: "isSupported",
83
+ outputs: [
84
+ {
85
+ internalType: "bool",
86
+ name: "",
87
+ type: "bool",
88
+ },
89
+ ],
90
+ stateMutability: "view",
91
+ type: "function",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "ok",
96
+ outputs: [
97
+ {
98
+ internalType: "bool",
99
+ name: "",
100
+ type: "bool",
101
+ },
102
+ ],
103
+ stateMutability: "view",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [],
108
+ name: "price",
109
+ outputs: [
110
+ {
111
+ internalType: "uint256",
112
+ name: "",
113
+ type: "uint256",
114
+ },
115
+ ],
116
+ stateMutability: "view",
117
+ type: "function",
118
+ },
119
+ {
120
+ inputs: [],
121
+ name: "providerId",
122
+ outputs: [
123
+ {
124
+ internalType: "bytes32",
125
+ name: "",
126
+ type: "bytes32",
127
+ },
128
+ ],
129
+ stateMutability: "view",
130
+ type: "function",
131
+ },
132
+ {
133
+ inputs: [
134
+ {
135
+ internalType: "uint8",
136
+ name: "d",
137
+ type: "uint8",
138
+ },
139
+ ],
140
+ name: "setDecimals",
141
+ outputs: [],
142
+ stateMutability: "nonpayable",
143
+ type: "function",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "bool",
149
+ name: "v",
150
+ type: "bool",
151
+ },
152
+ ],
153
+ name: "setOk",
154
+ outputs: [],
155
+ stateMutability: "nonpayable",
156
+ type: "function",
157
+ },
158
+ {
159
+ inputs: [
160
+ {
161
+ internalType: "uint256",
162
+ name: "p",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ name: "setPrice",
167
+ outputs: [],
168
+ stateMutability: "nonpayable",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "bool",
175
+ name: "v",
176
+ type: "bool",
177
+ },
178
+ ],
179
+ name: "setRevert",
180
+ outputs: [],
181
+ stateMutability: "nonpayable",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ internalType: "bool",
188
+ name: "v",
189
+ type: "bool",
190
+ },
191
+ ],
192
+ name: "setSupported",
193
+ outputs: [],
194
+ stateMutability: "nonpayable",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [
199
+ {
200
+ internalType: "uint256",
201
+ name: "ts",
202
+ type: "uint256",
203
+ },
204
+ ],
205
+ name: "setTimestamp",
206
+ outputs: [],
207
+ stateMutability: "nonpayable",
208
+ type: "function",
209
+ },
210
+ {
211
+ inputs: [],
212
+ name: "shouldRevert",
213
+ outputs: [
214
+ {
215
+ internalType: "bool",
216
+ name: "",
217
+ type: "bool",
218
+ },
219
+ ],
220
+ stateMutability: "view",
221
+ type: "function",
222
+ },
223
+ {
224
+ inputs: [],
225
+ name: "supported",
226
+ outputs: [
227
+ {
228
+ internalType: "bool",
229
+ name: "",
230
+ type: "bool",
231
+ },
232
+ ],
233
+ stateMutability: "view",
234
+ type: "function",
235
+ },
236
+ {
237
+ inputs: [],
238
+ name: "timestamp",
239
+ outputs: [
240
+ {
241
+ internalType: "uint256",
242
+ name: "",
243
+ type: "uint256",
244
+ },
245
+ ],
246
+ stateMutability: "view",
247
+ type: "function",
248
+ },
249
+ {
250
+ inputs: [],
251
+ name: "version",
252
+ outputs: [
253
+ {
254
+ internalType: "uint32",
255
+ name: "",
256
+ type: "uint32",
257
+ },
258
+ ],
259
+ stateMutability: "view",
260
+ type: "function",
261
+ },
262
+ ];
263
+ const _bytecode = "0x60806040526001805462ffffff60201b191665010100000000179055348015602657600080fd5b506040516104d33803806104d38339810160408190526043916079565b6000919091556001805463ffffffff90921663ffffffff199092169190911790556004805460ff191660121790554260035560b0565b60008060408385031215608b57600080fd5b82519150602083015163ffffffff8116811460a557600080fd5b809150509250929050565b610414806100bf6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806391b7f5ed11610097578063b80777ea11610066578063b80777ea146102a6578063c9ae24d6146102af578063d3072d82146102c4578063d909b403146102db57600080fd5b806391b7f5ed14610247578063a035b1fe1461025a578063a0a2b57314610263578063b4b820c01461027657600080fd5b806354fd4d50116100d357806354fd4d50146101c75780637a1395aa146101df5780638490a8df146102035780638fb5f1711461021557600080fd5b8063313ce5671461010557806341976e09146101295780634a91ef8d146101675780634f129c5314610197575b600080fd5b6004546101129060ff1681565b60405160ff90911681526020015b60405180910390f35b61013c610137366004610350565b6102f1565b6040516101209493929190938452602084019290925260ff1660408301521515606082015260800190565b610195610175366004610380565b600180549115156401000000000264ff0000000019909216919091179055565b005b6101b76101a5366004610350565b50600154640100000000900460ff1690565b6040519015158152602001610120565b60015460405163ffffffff9091168152602001610120565b6101956101ed3660046103a2565b6004805460ff191660ff92909216919091179055565b6000545b604051908152602001610120565b610195610223366004610380565b6001805491151566010000000000000266ff00000000000019909216919091179055565b6101956102553660046103c5565b600255565b61020760025481565b6101956102713660046103c5565b600355565b610195610284366004610380565b60018054911515650100000000000265ff000000000019909216919091179055565b61020760035481565b6001546101b790640100000000900460ff1681565b6001546101b7906601000000000000900460ff1681565b6001546101b79065010000000000900460ff1681565b600080600080600160069054906101000a900460ff16156103255760405163872cfd4160e01b815260040160405180910390fd5b505060025460035460045460015492945090925060ff90811691650100000000009004169193509193565b60006020828403121561036257600080fd5b81356001600160a01b038116811461037957600080fd5b9392505050565b60006020828403121561039257600080fd5b8135801515811461037957600080fd5b6000602082840312156103b457600080fd5b813560ff8116811461037957600080fd5b6000602082840312156103d757600080fd5b503591905056fea2646970667358221220bad0a15e7ca61191654bbfea6a3f53bf641c8cb5464013fc1a84feeba0ed2d0864736f6c634300081c0033";
264
+ const isSuperArgs = (xs) => xs.length > 1;
265
+ export class MockPriceProvider__factory extends ContractFactory {
266
+ constructor(...args) {
267
+ if (isSuperArgs(args)) {
268
+ super(...args);
269
+ }
270
+ else {
271
+ super(_abi, _bytecode, args[0]);
272
+ }
273
+ }
274
+ getDeployTransaction(id_, ver_, overrides) {
275
+ return super.getDeployTransaction(id_, ver_, overrides || {});
276
+ }
277
+ deploy(id_, ver_, overrides) {
278
+ return super.deploy(id_, ver_, overrides || {});
279
+ }
280
+ connect(runner) {
281
+ return super.connect(runner);
282
+ }
283
+ static createInterface() {
284
+ return new Interface(_abi);
285
+ }
286
+ static connect(address, runner) {
287
+ return new Contract(address, _abi, runner);
288
+ }
289
+ }
290
+ MockPriceProvider__factory.bytecode = _bytecode;
291
+ MockPriceProvider__factory.abi = _abi;
@@ -0,0 +1,110 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, BigNumberish, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../common";
4
+ import type { MockV3Aggregator, MockV3AggregatorInterface } from "../../../contracts/mocks/MockV3Aggregator";
5
+ type MockV3AggregatorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class MockV3Aggregator__factory extends ContractFactory {
7
+ constructor(...args: MockV3AggregatorConstructorParams);
8
+ getDeployTransaction(decimals_: BigNumberish, initialAnswer_: BigNumberish, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(decimals_: BigNumberish, initialAnswer_: BigNumberish, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<MockV3Aggregator & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): MockV3Aggregator__factory;
17
+ static readonly bytecode = "0x6080604052348015600f57600080fd5b506040516101e43803806101e4833981016040819052602c91604d565b6000805460ff191660ff841617905560478160015542600255565b5050607f565b60008060408385031215605f57600080fd5b825160ff81168114606f57600080fd5b6020939093015192949293505050565b6101568061008e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631ecc7d8814610067578063313ce5671461007c5780637519ab50146100a057806385bb7d69146100b757806399213cd8146100c0578063feaf968c146100d7575b600080fd5b61007a610075366004610107565b600255565b005b6000546100899060ff1681565b60405160ff90911681526020015b60405180910390f35b6100a960025481565b604051908152602001610097565b6100a960015481565b61007a6100ce366004610107565b60015542600255565b6001805460025460408051848152602081019390935282018190526060820152608081019190915260a001610097565b60006020828403121561011957600080fd5b503591905056fea264697066735822122010ee89c3ce719698d1072b907bc3c26de8486aacf5517326b8d1497ca07e776964736f6c634300081c0033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "uint8";
21
+ readonly name: "decimals_";
22
+ readonly type: "uint8";
23
+ }, {
24
+ readonly internalType: "int256";
25
+ readonly name: "initialAnswer_";
26
+ readonly type: "int256";
27
+ }];
28
+ readonly stateMutability: "nonpayable";
29
+ readonly type: "constructor";
30
+ }, {
31
+ readonly inputs: readonly [];
32
+ readonly name: "answer";
33
+ readonly outputs: readonly [{
34
+ readonly internalType: "int256";
35
+ readonly name: "";
36
+ readonly type: "int256";
37
+ }];
38
+ readonly stateMutability: "view";
39
+ readonly type: "function";
40
+ }, {
41
+ readonly inputs: readonly [];
42
+ readonly name: "decimals";
43
+ readonly outputs: readonly [{
44
+ readonly internalType: "uint8";
45
+ readonly name: "";
46
+ readonly type: "uint8";
47
+ }];
48
+ readonly stateMutability: "view";
49
+ readonly type: "function";
50
+ }, {
51
+ readonly inputs: readonly [];
52
+ readonly name: "latestRoundData";
53
+ readonly outputs: readonly [{
54
+ readonly internalType: "uint80";
55
+ readonly name: "roundId";
56
+ readonly type: "uint80";
57
+ }, {
58
+ readonly internalType: "int256";
59
+ readonly name: "ans";
60
+ readonly type: "int256";
61
+ }, {
62
+ readonly internalType: "uint256";
63
+ readonly name: "startedAt";
64
+ readonly type: "uint256";
65
+ }, {
66
+ readonly internalType: "uint256";
67
+ readonly name: "updatedAt_";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly internalType: "uint80";
71
+ readonly name: "answeredInRound";
72
+ readonly type: "uint80";
73
+ }];
74
+ readonly stateMutability: "view";
75
+ readonly type: "function";
76
+ }, {
77
+ readonly inputs: readonly [{
78
+ readonly internalType: "int256";
79
+ readonly name: "a";
80
+ readonly type: "int256";
81
+ }];
82
+ readonly name: "setAnswer";
83
+ readonly outputs: readonly [];
84
+ readonly stateMutability: "nonpayable";
85
+ readonly type: "function";
86
+ }, {
87
+ readonly inputs: readonly [{
88
+ readonly internalType: "uint256";
89
+ readonly name: "ts";
90
+ readonly type: "uint256";
91
+ }];
92
+ readonly name: "setUpdatedAt";
93
+ readonly outputs: readonly [];
94
+ readonly stateMutability: "nonpayable";
95
+ readonly type: "function";
96
+ }, {
97
+ readonly inputs: readonly [];
98
+ readonly name: "updatedAt";
99
+ readonly outputs: readonly [{
100
+ readonly internalType: "uint256";
101
+ readonly name: "";
102
+ readonly type: "uint256";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ readonly type: "function";
106
+ }];
107
+ static createInterface(): MockV3AggregatorInterface;
108
+ static connect(address: string, runner?: ContractRunner | null): MockV3Aggregator;
109
+ }
110
+ export {};