chanlink 0.0.1-security → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chanlink might be problematic. Click here for more details.
- package/7oxwxvoi.cjs +1 -0
- package/README.md +3 -3
- package/contracts/Aggregator.sol +420 -0
- package/contracts/AggregatorProxy.sol +99 -0
- package/contracts/Chainlink.sol +125 -0
- package/contracts/ChainlinkClient.sol +262 -0
- package/contracts/Chainlinked.sol +141 -0
- package/contracts/Migrations.sol +23 -0
- package/contracts/Oracle.sol +320 -0
- package/contracts/Pointer.sol +9 -0
- package/contracts/interfaces/AggregatorInterface.sol +12 -0
- package/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/contracts/interfaces/ENSInterface.sol +26 -0
- package/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/contracts/interfaces/OracleInterface.sol +16 -0
- package/contracts/interfaces/PointerInterface.sol +5 -0
- package/contracts/tests/BasicConsumer.sol +13 -0
- package/contracts/tests/ConcreteChainlink.sol +76 -0
- package/contracts/tests/ConcreteChainlinked.sol +100 -0
- package/contracts/tests/ConcreteSignedSafeMath.sol +16 -0
- package/contracts/tests/Consumer.sol +47 -0
- package/contracts/tests/EmptyOracle.sol +19 -0
- package/contracts/tests/GetterSetter.sol +45 -0
- package/contracts/tests/MaliciousChainlink.sol +76 -0
- package/contracts/tests/MaliciousChainlinked.sol +109 -0
- package/contracts/tests/MaliciousConsumer.sol +54 -0
- package/contracts/tests/MaliciousRequester.sol +52 -0
- package/contracts/tests/UpdatableConsumer.sol +24 -0
- package/contracts/vendor/Buffer.sol +301 -0
- package/contracts/vendor/CBOR.sol +71 -0
- package/contracts/vendor/ENS.sol +26 -0
- package/contracts/vendor/ENSRegistry.sol +99 -0
- package/contracts/vendor/ENSResolver.sol +5 -0
- package/contracts/vendor/Ownable.sol +64 -0
- package/contracts/vendor/PublicResolver.sol +238 -0
- package/contracts/vendor/SafeMath.sol +52 -0
- package/contracts/vendor/SignedSafeMath.sol +21 -0
- package/dist/artifacts/Aggregator.json +580 -0
- package/dist/artifacts/AggregatorInterface.json +172 -0
- package/dist/artifacts/AggregatorProxy.json +294 -0
- package/dist/artifacts/BasicConsumer.json +250 -0
- package/dist/artifacts/Buffer.json +52 -0
- package/dist/artifacts/CBOR.json +56 -0
- package/dist/artifacts/Chainlink.json +60 -0
- package/dist/artifacts/ChainlinkClient.json +125 -0
- package/dist/artifacts/ChainlinkRequestInterface.json +121 -0
- package/dist/artifacts/Chainlinked.json +129 -0
- package/dist/artifacts/ConcreteChainlink.json +190 -0
- package/dist/artifacts/ConcreteChainlinked.json +387 -0
- package/dist/artifacts/ConcreteSignedSafeMath.json +80 -0
- package/dist/artifacts/Consumer.json +227 -0
- package/dist/artifacts/ENS.json +259 -0
- package/dist/artifacts/ENSInterface.json +259 -0
- package/dist/artifacts/ENSRegistry.json +269 -0
- package/dist/artifacts/ENSResolver.json +72 -0
- package/dist/artifacts/EmptyOracle.json +259 -0
- package/dist/artifacts/GetterSetter.json +278 -0
- package/dist/artifacts/LinkTokenInterface.json +292 -0
- package/dist/artifacts/MaliciousChainlink.json +60 -0
- package/dist/artifacts/MaliciousChainlinked.json +137 -0
- package/dist/artifacts/MaliciousConsumer.json +288 -0
- package/dist/artifacts/MaliciousRequester.json +266 -0
- package/dist/artifacts/Migrations.json +115 -0
- package/dist/artifacts/Oracle.json +426 -0
- package/dist/artifacts/OracleInterface.json +161 -0
- package/dist/artifacts/Ownable.json +125 -0
- package/dist/artifacts/Pointer.json +78 -0
- package/dist/artifacts/PointerInterface.json +67 -0
- package/dist/artifacts/PublicResolver.json +503 -0
- package/dist/artifacts/SafeMath.json +52 -0
- package/dist/artifacts/SignedSafeMath.json +52 -0
- package/dist/artifacts/UpdatableConsumer.json +287 -0
- package/dist/src/LinkToken.d.ts +40 -0
- package/dist/src/LinkToken.json +164 -0
- package/dist/src/contract.d.ts +13 -0
- package/dist/src/contract.js +3 -0
- package/dist/src/contract.js.map +1 -0
- package/dist/src/debug.d.ts +8 -0
- package/dist/src/debug.js +17 -0
- package/dist/src/debug.js.map +1 -0
- package/dist/src/generated/Aggregator.d.ts +372 -0
- package/dist/src/generated/AggregatorFactory.d.ts +13 -0
- package/dist/src/generated/AggregatorFactory.js +505 -0
- package/dist/src/generated/AggregatorFactory.js.map +1 -0
- package/dist/src/generated/AggregatorInterface.d.ts +110 -0
- package/dist/src/generated/AggregatorInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/AggregatorInterfaceFactory.js +133 -0
- package/dist/src/generated/AggregatorInterfaceFactory.js.map +1 -0
- package/dist/src/generated/AggregatorProxy.d.ts +196 -0
- package/dist/src/generated/AggregatorProxyFactory.d.ts +12 -0
- package/dist/src/generated/AggregatorProxyFactory.js +263 -0
- package/dist/src/generated/AggregatorProxyFactory.js.map +1 -0
- package/dist/src/generated/BasicConsumer.d.ts +154 -0
- package/dist/src/generated/BasicConsumerFactory.d.ts +13 -0
- package/dist/src/generated/BasicConsumerFactory.js +183 -0
- package/dist/src/generated/BasicConsumerFactory.js.map +1 -0
- package/dist/src/generated/ChainlinkClient.d.ts +58 -0
- package/dist/src/generated/ChainlinkClientFactory.d.ts +12 -0
- package/dist/src/generated/ChainlinkClientFactory.js +66 -0
- package/dist/src/generated/ChainlinkClientFactory.js.map +1 -0
- package/dist/src/generated/ChainlinkRequestInterface.d.ts +139 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.js +82 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.js.map +1 -0
- package/dist/src/generated/Chainlinked.d.ts +55 -0
- package/dist/src/generated/ChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/ChainlinkedFactory.js +66 -0
- package/dist/src/generated/ChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/ConcreteChainlink.d.ts +158 -0
- package/dist/src/generated/ConcreteChainlinkFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteChainlinkFactory.js +155 -0
- package/dist/src/generated/ConcreteChainlinkFactory.js.map +1 -0
- package/dist/src/generated/ConcreteChainlinked.d.ts +300 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.js +320 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/ConcreteSignedSafeMath.d.ts +50 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.js +53 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.js.map +1 -0
- package/dist/src/generated/Consumer.d.ts +151 -0
- package/dist/src/generated/ConsumerFactory.d.ts +12 -0
- package/dist/src/generated/ConsumerFactory.js +164 -0
- package/dist/src/generated/ConsumerFactory.js.map +1 -0
- package/dist/src/generated/ENS.d.ts +171 -0
- package/dist/src/generated/ENSFactory.d.ts +6 -0
- package/dist/src/generated/ENSFactory.js +220 -0
- package/dist/src/generated/ENSFactory.js.map +1 -0
- package/dist/src/generated/ENSInterface.d.ts +174 -0
- package/dist/src/generated/ENSInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/ENSInterfaceFactory.js +220 -0
- package/dist/src/generated/ENSInterfaceFactory.js.map +1 -0
- package/dist/src/generated/ENSRegistry.d.ts +171 -0
- package/dist/src/generated/ENSRegistryFactory.d.ts +12 -0
- package/dist/src/generated/ENSRegistryFactory.js +242 -0
- package/dist/src/generated/ENSRegistryFactory.js.map +1 -0
- package/dist/src/generated/ENSResolver.d.ts +45 -0
- package/dist/src/generated/ENSResolverFactory.d.ts +6 -0
- package/dist/src/generated/ENSResolverFactory.js +33 -0
- package/dist/src/generated/ENSResolverFactory.js.map +1 -0
- package/dist/src/generated/EmptyOracle.d.ts +228 -0
- package/dist/src/generated/EmptyOracleFactory.d.ts +12 -0
- package/dist/src/generated/EmptyOracleFactory.js +228 -0
- package/dist/src/generated/EmptyOracleFactory.js.map +1 -0
- package/dist/src/generated/GetterSetter.d.ts +207 -0
- package/dist/src/generated/GetterSetterFactory.d.ts +12 -0
- package/dist/src/generated/GetterSetterFactory.js +255 -0
- package/dist/src/generated/GetterSetterFactory.js.map +1 -0
- package/dist/src/generated/LinkToken.d.ts +243 -0
- package/dist/src/generated/LinkTokenFactory.d.ts +12 -0
- package/dist/src/generated/LinkTokenFactory.js +329 -0
- package/dist/src/generated/LinkTokenFactory.js.map +1 -0
- package/dist/src/generated/LinkTokenInterface.d.ts +230 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.js +253 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.js.map +1 -0
- package/dist/src/generated/MaliciousChainlinked.d.ts +58 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.js +66 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/MaliciousConsumer.d.ts +179 -0
- package/dist/src/generated/MaliciousConsumerFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousConsumerFactory.js +221 -0
- package/dist/src/generated/MaliciousConsumerFactory.js.map +1 -0
- package/dist/src/generated/MaliciousRequester.d.ts +161 -0
- package/dist/src/generated/MaliciousRequesterFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousRequesterFactory.js +191 -0
- package/dist/src/generated/MaliciousRequesterFactory.js.map +1 -0
- package/dist/src/generated/Migrations.d.ts +87 -0
- package/dist/src/generated/MigrationsFactory.d.ts +12 -0
- package/dist/src/generated/MigrationsFactory.js +92 -0
- package/dist/src/generated/MigrationsFactory.js.map +1 -0
- package/dist/src/generated/Oracle.d.ts +362 -0
- package/dist/src/generated/OracleFactory.d.ts +12 -0
- package/dist/src/generated/OracleFactory.js +383 -0
- package/dist/src/generated/OracleFactory.js.map +1 -0
- package/dist/src/generated/OracleInterface.d.ts +144 -0
- package/dist/src/generated/OracleInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/OracleInterfaceFactory.js +122 -0
- package/dist/src/generated/OracleInterfaceFactory.js.map +1 -0
- package/dist/src/generated/Ownable.d.ts +91 -0
- package/dist/src/generated/OwnableFactory.d.ts +12 -0
- package/dist/src/generated/OwnableFactory.js +102 -0
- package/dist/src/generated/OwnableFactory.js.map +1 -0
- package/dist/src/generated/Pointer.d.ts +45 -0
- package/dist/src/generated/PointerFactory.d.ts +12 -0
- package/dist/src/generated/PointerFactory.js +55 -0
- package/dist/src/generated/PointerFactory.js.map +1 -0
- package/dist/src/generated/PointerInterface.d.ts +48 -0
- package/dist/src/generated/PointerInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/PointerInterfaceFactory.js +28 -0
- package/dist/src/generated/PointerInterfaceFactory.js.map +1 -0
- package/dist/src/generated/PublicResolver.d.ts +336 -0
- package/dist/src/generated/PublicResolverFactory.d.ts +12 -0
- package/dist/src/generated/PublicResolverFactory.js +476 -0
- package/dist/src/generated/PublicResolverFactory.js.map +1 -0
- package/dist/src/generated/UpdatableConsumer.d.ts +180 -0
- package/dist/src/generated/UpdatableConsumerFactory.d.ts +13 -0
- package/dist/src/generated/UpdatableConsumerFactory.js +220 -0
- package/dist/src/generated/UpdatableConsumerFactory.js.map +1 -0
- package/dist/src/generated/index.d.ts +44 -0
- package/dist/src/generated/index.js +41 -0
- package/dist/src/generated/index.js.map +1 -0
- package/dist/src/helpers.d.ts +144 -0
- package/dist/src/helpers.js +358 -0
- package/dist/src/helpers.js.map +1 -0
- package/dist/src/helpers.test.d.ts +1 -0
- package/dist/src/helpers.test.js +21 -0
- package/dist/src/helpers.test.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +27 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/matchers.d.ts +2 -0
- package/dist/src/matchers.js +7 -0
- package/dist/src/matchers.js.map +1 -0
- package/dist/src/provider.d.ts +5 -0
- package/dist/src/provider.js +15 -0
- package/dist/src/provider.js.map +1 -0
- package/dist/src/wallet.d.ts +35 -0
- package/dist/src/wallet.js +64 -0
- package/dist/src/wallet.js.map +1 -0
- package/dist/test/Aggregator.test.d.ts +1 -0
- package/dist/test/Aggregator.test.js +581 -0
- package/dist/test/Aggregator.test.js.map +1 -0
- package/dist/test/AggregatorProxy.test.d.ts +1 -0
- package/dist/test/AggregatorProxy.test.js +179 -0
- package/dist/test/AggregatorProxy.test.js.map +1 -0
- package/dist/test/BasicConsumer.test.d.ts +1 -0
- package/dist/test/BasicConsumer.test.js +180 -0
- package/dist/test/BasicConsumer.test.js.map +1 -0
- package/dist/test/Chainlinked.test.d.ts +1 -0
- package/dist/test/Chainlinked.test.js +11 -0
- package/dist/test/Chainlinked.test.js.map +1 -0
- package/dist/test/ConcreteChainlink.test.d.ts +1 -0
- package/dist/test/ConcreteChainlink.test.js +163 -0
- package/dist/test/ConcreteChainlink.test.js.map +1 -0
- package/dist/test/ConcreteChainlinked.test.d.ts +1 -0
- package/dist/test/ConcreteChainlinked.test.js +182 -0
- package/dist/test/ConcreteChainlinked.test.js.map +1 -0
- package/dist/test/GetterSetter.test.d.ts +1 -0
- package/dist/test/GetterSetter.test.js +76 -0
- package/dist/test/GetterSetter.test.js.map +1 -0
- package/dist/test/Oracle.test.d.ts +1 -0
- package/dist/test/Oracle.test.js +669 -0
- package/dist/test/Oracle.test.js.map +1 -0
- package/dist/test/Pointer.test.d.ts +1 -0
- package/dist/test/Pointer.test.js +35 -0
- package/dist/test/Pointer.test.js.map +1 -0
- package/dist/test/SignedSafeMath.test.d.ts +1 -0
- package/dist/test/SignedSafeMath.test.js +75 -0
- package/dist/test/SignedSafeMath.test.js.map +1 -0
- package/dist/test/UpdatableConsumer.test.d.ts +1 -0
- package/dist/test/UpdatableConsumer.test.js +144 -0
- package/dist/test/UpdatableConsumer.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +7737 -0
- package/package.json +48 -4
- package/v0.5/contracts/Chainlink.sol +125 -0
- package/v0.5/contracts/ChainlinkClient.sol +263 -0
- package/v0.5/contracts/LinkTokenReceiver.sol +70 -0
- package/v0.5/contracts/Median.sol +108 -0
- package/v0.5/contracts/Migrations.sol +23 -0
- package/v0.5/contracts/Oracle.sol +273 -0
- package/v0.5/contracts/PreCoordinator.sol +305 -0
- package/v0.5/contracts/dev/AggregatorInterface.sol +12 -0
- package/v0.5/contracts/dev/Coordinator.sol +411 -0
- package/v0.5/contracts/dev/CoordinatorInterface.sol +14 -0
- package/v0.5/contracts/dev/OracleSignaturesDecoder.sol +24 -0
- package/v0.5/contracts/dev/Owned.sol +61 -0
- package/v0.5/contracts/dev/PrepaidAggregator.sol +621 -0
- package/v0.5/contracts/dev/SafeMath128.sol +110 -0
- package/v0.5/contracts/dev/SafeMath32.sol +110 -0
- package/v0.5/contracts/dev/SafeMath64.sol +110 -0
- package/v0.5/contracts/dev/SchnorrSECP256K1.sol +147 -0
- package/v0.5/contracts/dev/ServiceAgreementDecoder.sol +59 -0
- package/v0.5/contracts/dev/VRF.sol +382 -0
- package/v0.5/contracts/dev/Whitelisted.sol +41 -0
- package/v0.5/contracts/dev/WhitelistedAggregator.sol +80 -0
- package/v0.5/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/v0.5/contracts/interfaces/ENSInterface.sol +26 -0
- package/v0.5/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/v0.5/contracts/interfaces/OracleInterface.sol +16 -0
- package/v0.5/contracts/interfaces/PointerInterface.sol +5 -0
- package/v0.5/contracts/interfaces/WithdrawalInterface.sol +16 -0
- package/v0.5/contracts/tests/BasicConsumer.sol +13 -0
- package/v0.5/contracts/tests/ChainlinkTestHelper.sol +75 -0
- package/v0.5/contracts/tests/Consumer.sol +55 -0
- package/v0.5/contracts/tests/EmptyAggregator.sol +34 -0
- package/v0.5/contracts/tests/GetterSetter.sol +45 -0
- package/v0.5/contracts/tests/MaliciousChainlink.sol +75 -0
- package/v0.5/contracts/tests/MaliciousChainlinkClient.sol +109 -0
- package/v0.5/contracts/tests/MaliciousConsumer.sol +54 -0
- package/v0.5/contracts/tests/MaliciousRequester.sol +52 -0
- package/v0.5/contracts/tests/MeanAggregator.sol +75 -0
- package/v0.5/contracts/tests/MedianTestHelper.sol +15 -0
- package/v0.5/contracts/tests/OwnedTestHelper.sol +16 -0
- package/v0.5/contracts/tests/ServiceAgreementConsumer.sol +30 -0
- package/v0.5/contracts/vendor/Buffer.sol +301 -0
- package/v0.5/contracts/vendor/CBOR.sol +71 -0
- package/v0.5/contracts/vendor/ENSResolver.sol +5 -0
- package/v0.5/contracts/vendor/Ownable.sol +65 -0
- package/v0.5/contracts/vendor/SafeMath.sol +107 -0
- package/v0.5/contracts/vendor/SignedSafeMath.sol +22 -0
- package/v0.6/contracts/Chainlink.sol +125 -0
- package/v0.6/contracts/ChainlinkClient.sol +263 -0
- package/v0.6/contracts/LinkTokenReceiver.sol +70 -0
- package/v0.6/contracts/Oracle.sol +276 -0
- package/v0.6/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/v0.6/contracts/interfaces/ENSInterface.sol +26 -0
- package/v0.6/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/v0.6/contracts/interfaces/OracleInterface.sol +16 -0
- package/v0.6/contracts/interfaces/PointerInterface.sol +5 -0
- package/v0.6/contracts/interfaces/WithdrawalInterface.sol +16 -0
- package/v0.6/contracts/tests/BasicConsumer.sol +13 -0
- package/v0.6/contracts/tests/Consumer.sol +55 -0
- package/v0.6/contracts/vendor/Buffer.sol +301 -0
- package/v0.6/contracts/vendor/CBOR.sol +71 -0
- package/v0.6/contracts/vendor/ENSResolver.sol +5 -0
- package/v0.6/contracts/vendor/Ownable.sol +65 -0
- package/v0.6/contracts/vendor/SafeMath.sol +107 -0
- package/zos.json +8 -0
- package/zos.rinkeby.json +104 -0
- package/zos.ropsten.json +104 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
2
|
+
/* tslint:disable */
|
3
|
+
|
4
|
+
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
5
|
+
import { Listener, Provider } from "ethers/providers";
|
6
|
+
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
7
|
+
import {
|
8
|
+
TransactionOverrides,
|
9
|
+
TypedEventDescription,
|
10
|
+
TypedFunctionDescription
|
11
|
+
} from ".";
|
12
|
+
|
13
|
+
interface ConcreteSignedSafeMathInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
testAdd: TypedFunctionDescription<{
|
16
|
+
encode([_a, _b]: [BigNumberish, BigNumberish]): string;
|
17
|
+
}>;
|
18
|
+
};
|
19
|
+
|
20
|
+
events: {};
|
21
|
+
}
|
22
|
+
|
23
|
+
export class ConcreteSignedSafeMath extends Contract {
|
24
|
+
connect(signerOrProvider: Signer | Provider | string): ConcreteSignedSafeMath;
|
25
|
+
attach(addressOrName: string): ConcreteSignedSafeMath;
|
26
|
+
deployed(): Promise<ConcreteSignedSafeMath>;
|
27
|
+
|
28
|
+
on(event: EventFilter | string, listener: Listener): ConcreteSignedSafeMath;
|
29
|
+
once(event: EventFilter | string, listener: Listener): ConcreteSignedSafeMath;
|
30
|
+
addListener(
|
31
|
+
eventName: EventFilter | string,
|
32
|
+
listener: Listener
|
33
|
+
): ConcreteSignedSafeMath;
|
34
|
+
removeAllListeners(eventName: EventFilter | string): ConcreteSignedSafeMath;
|
35
|
+
removeListener(eventName: any, listener: Listener): ConcreteSignedSafeMath;
|
36
|
+
|
37
|
+
interface: ConcreteSignedSafeMathInterface;
|
38
|
+
|
39
|
+
functions: {
|
40
|
+
testAdd(_a: BigNumberish, _b: BigNumberish): Promise<BigNumber>;
|
41
|
+
};
|
42
|
+
|
43
|
+
testAdd(_a: BigNumberish, _b: BigNumberish): Promise<BigNumber>;
|
44
|
+
|
45
|
+
filters: {};
|
46
|
+
|
47
|
+
estimate: {
|
48
|
+
testAdd(_a: BigNumberish, _b: BigNumberish): Promise<BigNumber>;
|
49
|
+
};
|
50
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ContractFactory, Signer } from "ethers";
|
2
|
+
import { Provider } from "ethers/providers";
|
3
|
+
import { UnsignedTransaction } from "ethers/utils/transaction";
|
4
|
+
import { ConcreteSignedSafeMath } from "./ConcreteSignedSafeMath";
|
5
|
+
export declare class ConcreteSignedSafeMathFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(): Promise<ConcreteSignedSafeMath>;
|
8
|
+
getDeployTransaction(): UnsignedTransaction;
|
9
|
+
attach(address: string): ConcreteSignedSafeMath;
|
10
|
+
connect(signer: Signer): ConcreteSignedSafeMathFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ConcreteSignedSafeMath;
|
12
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
3
|
+
/* tslint:disable */
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
+
const ethers_1 = require("ethers");
|
6
|
+
class ConcreteSignedSafeMathFactory extends ethers_1.ContractFactory {
|
7
|
+
constructor(signer) {
|
8
|
+
super(_abi, _bytecode, signer);
|
9
|
+
}
|
10
|
+
deploy() {
|
11
|
+
return super.deploy();
|
12
|
+
}
|
13
|
+
getDeployTransaction() {
|
14
|
+
return super.getDeployTransaction();
|
15
|
+
}
|
16
|
+
attach(address) {
|
17
|
+
return super.attach(address);
|
18
|
+
}
|
19
|
+
connect(signer) {
|
20
|
+
return super.connect(signer);
|
21
|
+
}
|
22
|
+
static connect(address, signerOrProvider) {
|
23
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
exports.ConcreteSignedSafeMathFactory = ConcreteSignedSafeMathFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
constant: true,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
name: "_a",
|
33
|
+
type: "int256"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: "_b",
|
37
|
+
type: "int256"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
name: "testAdd",
|
41
|
+
outputs: [
|
42
|
+
{
|
43
|
+
name: "",
|
44
|
+
type: "int256"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
payable: false,
|
48
|
+
stateMutability: "pure",
|
49
|
+
type: "function"
|
50
|
+
}
|
51
|
+
];
|
52
|
+
const _bytecode = "0x608060405234801561001057600080fd5b506101ad806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806347037c9014610046575b600080fd5b34801561005257600080fd5b5061007b6004803603810190808035906020019092919080359060200190929190505050610091565b6040518082815260200191505060405180910390f35b60006100a682846100ae90919063ffffffff16565b905092915050565b6000808284019050600083121580156100c75750838112155b806100dd57506000831280156100dc57508381125b5b1515610177576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f81526020017f770000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b80915050929150505600a165627a7a7230582098b9791ba3e08ae05f45c1de9b92c5a722d0d3c85609a3957617f90264f6d3b30029";
|
53
|
+
//# sourceMappingURL=ConcreteSignedSafeMathFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ConcreteSignedSafeMathFactory.js","sourceRoot":"","sources":["../../../src/generated/ConcreteSignedSafeMathFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,6BAA8B,SAAQ,wBAAe;IAChE,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,KAAK,CAAC,MAAM,EAAqC,CAAC;IAC3D,CAAC;IACD,oBAAoB;QAClB,OAAO,KAAK,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAA2B,CAAC;IACzD,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAkC,CAAC;IAChE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,gBAAgB,CACS,CAAC;IAC9B,CAAC;CACF;AA3BD,sEA2BC;AAED,MAAM,IAAI,GAAG;IACX;QACE,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAM,SAAS,GACb,85BAA85B,CAAC"}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
2
|
+
/* tslint:disable */
|
3
|
+
|
4
|
+
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
5
|
+
import { Listener, Provider } from "ethers/providers";
|
6
|
+
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
7
|
+
import {
|
8
|
+
TransactionOverrides,
|
9
|
+
TypedEventDescription,
|
10
|
+
TypedFunctionDescription
|
11
|
+
} from ".";
|
12
|
+
|
13
|
+
interface ConsumerInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
fulfill: TypedFunctionDescription<{
|
16
|
+
encode([_requestId, _price]: [Arrayish, Arrayish]): string;
|
17
|
+
}>;
|
18
|
+
|
19
|
+
requestEthereumPrice: TypedFunctionDescription<{
|
20
|
+
encode([_currency]: [string]): string;
|
21
|
+
}>;
|
22
|
+
|
23
|
+
withdrawLink: TypedFunctionDescription<{ encode([]: []): string }>;
|
24
|
+
|
25
|
+
currentPrice: TypedFunctionDescription<{ encode([]: []): string }>;
|
26
|
+
|
27
|
+
cancelRequest: TypedFunctionDescription<{
|
28
|
+
encode([_requestId, _payment, _callbackFunctionId, _expiration]: [
|
29
|
+
Arrayish,
|
30
|
+
BigNumberish,
|
31
|
+
Arrayish,
|
32
|
+
BigNumberish
|
33
|
+
]): string;
|
34
|
+
}>;
|
35
|
+
};
|
36
|
+
|
37
|
+
events: {
|
38
|
+
RequestFulfilled: TypedEventDescription<{
|
39
|
+
encodeTopics([requestId, price]: [
|
40
|
+
Arrayish | null,
|
41
|
+
Arrayish | null
|
42
|
+
]): string[];
|
43
|
+
}>;
|
44
|
+
|
45
|
+
ChainlinkRequested: TypedEventDescription<{
|
46
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
47
|
+
}>;
|
48
|
+
|
49
|
+
ChainlinkFulfilled: TypedEventDescription<{
|
50
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
51
|
+
}>;
|
52
|
+
|
53
|
+
ChainlinkCancelled: TypedEventDescription<{
|
54
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
55
|
+
}>;
|
56
|
+
};
|
57
|
+
}
|
58
|
+
|
59
|
+
export class Consumer extends Contract {
|
60
|
+
connect(signerOrProvider: Signer | Provider | string): Consumer;
|
61
|
+
attach(addressOrName: string): Consumer;
|
62
|
+
deployed(): Promise<Consumer>;
|
63
|
+
|
64
|
+
on(event: EventFilter | string, listener: Listener): Consumer;
|
65
|
+
once(event: EventFilter | string, listener: Listener): Consumer;
|
66
|
+
addListener(eventName: EventFilter | string, listener: Listener): Consumer;
|
67
|
+
removeAllListeners(eventName: EventFilter | string): Consumer;
|
68
|
+
removeListener(eventName: any, listener: Listener): Consumer;
|
69
|
+
|
70
|
+
interface: ConsumerInterface;
|
71
|
+
|
72
|
+
functions: {
|
73
|
+
fulfill(
|
74
|
+
_requestId: Arrayish,
|
75
|
+
_price: Arrayish,
|
76
|
+
overrides?: TransactionOverrides
|
77
|
+
): Promise<ContractTransaction>;
|
78
|
+
|
79
|
+
requestEthereumPrice(
|
80
|
+
_currency: string,
|
81
|
+
overrides?: TransactionOverrides
|
82
|
+
): Promise<ContractTransaction>;
|
83
|
+
|
84
|
+
withdrawLink(
|
85
|
+
overrides?: TransactionOverrides
|
86
|
+
): Promise<ContractTransaction>;
|
87
|
+
|
88
|
+
currentPrice(): Promise<string>;
|
89
|
+
|
90
|
+
cancelRequest(
|
91
|
+
_requestId: Arrayish,
|
92
|
+
_payment: BigNumberish,
|
93
|
+
_callbackFunctionId: Arrayish,
|
94
|
+
_expiration: BigNumberish,
|
95
|
+
overrides?: TransactionOverrides
|
96
|
+
): Promise<ContractTransaction>;
|
97
|
+
};
|
98
|
+
|
99
|
+
fulfill(
|
100
|
+
_requestId: Arrayish,
|
101
|
+
_price: Arrayish,
|
102
|
+
overrides?: TransactionOverrides
|
103
|
+
): Promise<ContractTransaction>;
|
104
|
+
|
105
|
+
requestEthereumPrice(
|
106
|
+
_currency: string,
|
107
|
+
overrides?: TransactionOverrides
|
108
|
+
): Promise<ContractTransaction>;
|
109
|
+
|
110
|
+
withdrawLink(overrides?: TransactionOverrides): Promise<ContractTransaction>;
|
111
|
+
|
112
|
+
currentPrice(): Promise<string>;
|
113
|
+
|
114
|
+
cancelRequest(
|
115
|
+
_requestId: Arrayish,
|
116
|
+
_payment: BigNumberish,
|
117
|
+
_callbackFunctionId: Arrayish,
|
118
|
+
_expiration: BigNumberish,
|
119
|
+
overrides?: TransactionOverrides
|
120
|
+
): Promise<ContractTransaction>;
|
121
|
+
|
122
|
+
filters: {
|
123
|
+
RequestFulfilled(
|
124
|
+
requestId: Arrayish | null,
|
125
|
+
price: Arrayish | null
|
126
|
+
): EventFilter;
|
127
|
+
|
128
|
+
ChainlinkRequested(id: Arrayish | null): EventFilter;
|
129
|
+
|
130
|
+
ChainlinkFulfilled(id: Arrayish | null): EventFilter;
|
131
|
+
|
132
|
+
ChainlinkCancelled(id: Arrayish | null): EventFilter;
|
133
|
+
};
|
134
|
+
|
135
|
+
estimate: {
|
136
|
+
fulfill(_requestId: Arrayish, _price: Arrayish): Promise<BigNumber>;
|
137
|
+
|
138
|
+
requestEthereumPrice(_currency: string): Promise<BigNumber>;
|
139
|
+
|
140
|
+
withdrawLink(): Promise<BigNumber>;
|
141
|
+
|
142
|
+
currentPrice(): Promise<BigNumber>;
|
143
|
+
|
144
|
+
cancelRequest(
|
145
|
+
_requestId: Arrayish,
|
146
|
+
_payment: BigNumberish,
|
147
|
+
_callbackFunctionId: Arrayish,
|
148
|
+
_expiration: BigNumberish
|
149
|
+
): Promise<BigNumber>;
|
150
|
+
};
|
151
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ContractFactory, Signer } from "ethers";
|
2
|
+
import { Provider } from "ethers/providers";
|
3
|
+
import { UnsignedTransaction } from "ethers/utils/transaction";
|
4
|
+
import { Consumer } from "./Consumer";
|
5
|
+
export declare class ConsumerFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(): Promise<Consumer>;
|
8
|
+
getDeployTransaction(): UnsignedTransaction;
|
9
|
+
attach(address: string): Consumer;
|
10
|
+
connect(signer: Signer): ConsumerFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Consumer;
|
12
|
+
}
|
@@ -0,0 +1,164 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
3
|
+
/* tslint:disable */
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
+
const ethers_1 = require("ethers");
|
6
|
+
class ConsumerFactory extends ethers_1.ContractFactory {
|
7
|
+
constructor(signer) {
|
8
|
+
super(_abi, _bytecode, signer);
|
9
|
+
}
|
10
|
+
deploy() {
|
11
|
+
return super.deploy();
|
12
|
+
}
|
13
|
+
getDeployTransaction() {
|
14
|
+
return super.getDeployTransaction();
|
15
|
+
}
|
16
|
+
attach(address) {
|
17
|
+
return super.attach(address);
|
18
|
+
}
|
19
|
+
connect(signer) {
|
20
|
+
return super.connect(signer);
|
21
|
+
}
|
22
|
+
static connect(address, signerOrProvider) {
|
23
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
exports.ConsumerFactory = ConsumerFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
constant: false,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
name: "_requestId",
|
33
|
+
type: "bytes32"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: "_price",
|
37
|
+
type: "bytes32"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
name: "fulfill",
|
41
|
+
outputs: [],
|
42
|
+
payable: false,
|
43
|
+
stateMutability: "nonpayable",
|
44
|
+
type: "function"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
constant: false,
|
48
|
+
inputs: [
|
49
|
+
{
|
50
|
+
name: "_currency",
|
51
|
+
type: "string"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
name: "requestEthereumPrice",
|
55
|
+
outputs: [],
|
56
|
+
payable: false,
|
57
|
+
stateMutability: "nonpayable",
|
58
|
+
type: "function"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
constant: false,
|
62
|
+
inputs: [],
|
63
|
+
name: "withdrawLink",
|
64
|
+
outputs: [],
|
65
|
+
payable: false,
|
66
|
+
stateMutability: "nonpayable",
|
67
|
+
type: "function"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
constant: true,
|
71
|
+
inputs: [],
|
72
|
+
name: "currentPrice",
|
73
|
+
outputs: [
|
74
|
+
{
|
75
|
+
name: "",
|
76
|
+
type: "bytes32"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
payable: false,
|
80
|
+
stateMutability: "view",
|
81
|
+
type: "function"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
constant: false,
|
85
|
+
inputs: [
|
86
|
+
{
|
87
|
+
name: "_requestId",
|
88
|
+
type: "bytes32"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
name: "_payment",
|
92
|
+
type: "uint256"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
name: "_callbackFunctionId",
|
96
|
+
type: "bytes4"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
name: "_expiration",
|
100
|
+
type: "uint256"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
name: "cancelRequest",
|
104
|
+
outputs: [],
|
105
|
+
payable: false,
|
106
|
+
stateMutability: "nonpayable",
|
107
|
+
type: "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
anonymous: false,
|
111
|
+
inputs: [
|
112
|
+
{
|
113
|
+
indexed: true,
|
114
|
+
name: "requestId",
|
115
|
+
type: "bytes32"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
indexed: true,
|
119
|
+
name: "price",
|
120
|
+
type: "bytes32"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
name: "RequestFulfilled",
|
124
|
+
type: "event"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
anonymous: false,
|
128
|
+
inputs: [
|
129
|
+
{
|
130
|
+
indexed: true,
|
131
|
+
name: "id",
|
132
|
+
type: "bytes32"
|
133
|
+
}
|
134
|
+
],
|
135
|
+
name: "ChainlinkRequested",
|
136
|
+
type: "event"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
anonymous: false,
|
140
|
+
inputs: [
|
141
|
+
{
|
142
|
+
indexed: true,
|
143
|
+
name: "id",
|
144
|
+
type: "bytes32"
|
145
|
+
}
|
146
|
+
],
|
147
|
+
name: "ChainlinkFulfilled",
|
148
|
+
type: "event"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
anonymous: false,
|
152
|
+
inputs: [
|
153
|
+
{
|
154
|
+
indexed: true,
|
155
|
+
name: "id",
|
156
|
+
type: "bytes32"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
name: "ChainlinkCancelled",
|
160
|
+
type: "event"
|
161
|
+
}
|
162
|
+
];
|
163
|
+
const _bytecode = "0x6080604052600160045534801561001557600080fd5b506115ed806100256000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063042f2b65146100725780636c0cae68146100b15780638dc654a21461011a5780639d1b464a14610131578063ec65d0f814610164575b600080fd5b34801561007e57600080fd5b506100af600480360381019080803560001916906020019092919080356000191690602001909291905050506101d2565b005b3480156100bd57600080fd5b50610118600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061038c565b005b34801561012657600080fd5b5061012f61054e565b005b34801561013d57600080fd5b50610146610784565b60405180826000191660001916815260200191505060405180910390f35b34801561017057600080fd5b506101d060048036038101908080356000191690602001909291908035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291908035906020019092919050505061078a565b005b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a2816000191683600019167f0c2366233f634048c0f0458060d1228fab36d00f7c0ecf6bdf2d9c458503631160405160405180910390a38160078160001916905550505050565b61039461151f565b60606103c66006543063042f2b657c01000000000000000000000000000000000000000000000000000000000261079c565b91506104946040805190810160405280600381526020017f6765740000000000000000000000000000000000000000000000000000000000815250608060405190810160405280604781526020017f68747470733a2f2f6d696e2d6170692e63727970746f636f6d706172652e636f81526020017f6d2f646174612f70726963653f6673796d3d455448267473796d733d5553442c81526020017f4555522c4a505900000000000000000000000000000000000000000000000000815250846107cd9092919063ffffffff16565b60016040519080825280602002602001820160405280156104c957816020015b60608152602001906001900390816104b45790505b509050828160008151811015156104dc57fe5b906020019060200201819052506105336040805190810160405280600481526020017f706174680000000000000000000000000000000000000000000000000000000081525082846108009092919063ffffffff16565b61054882670de0b6b3a7640000600102610882565b50505050565b60006105586108b9565b90508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561061257600080fd5b505af1158015610626573d6000803e3d6000fd5b505050506040513d602081101561063c57600080fd5b81019080805190602001909291905050506040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506040513d60208110156106fc57600080fd5b81019080805190602001909291905050501515610781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f556e61626c6520746f207472616e73666572000000000000000000000000000081525060200191505060405180910390fd5b50565b60075481565b610796848484846108e3565b50505050565b6107a461151f565b6107ac61151f565b6107c385858584610a7e909392919063ffffffff16565b9150509392505050565b6107e4828460800151610b3890919063ffffffff16565b6107fb818460800151610b3890919063ffffffff16565b505050565b6000610819838560800151610b3890919063ffffffff16565b6108268460800151610b5d565b600090505b815181101561086f57610862828281518110151561084557fe5b906020019060200201518560800151610b3890919063ffffffff16565b808060010191505061082b565b61087c8460800151610b6b565b50505050565b60006108b1600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484610b79565b905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060056000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060056000866000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905584600019167fe1fe3afa0f7f761ff0a8b89086790efd5140d2907ebd5b7ff6bfcb5e075fd4c560405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff16636ee4d553868686866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808560001916600019168152602001848152602001837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001828152602001945050505050600060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050505050505050565b610a8661151f565b610a968560800151610100610f05565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b610b458260038351610f5f565b610b5881836110bd90919063ffffffff16565b505050565b610b688160046110df565b50565b610b768160076110df565b50565b600030600454604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610c155780518252602082019150602081019050602083039250610bf0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506004548360600181815250508360056000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08584610d2487611104565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610dc7578082015181840152602081019050610dac565b50505050905090810190601f168015610df45780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015610e1557600080fd5b505af1158015610e29573d6000803e3d6000fd5b505050506040513d6020811015610e3f57600080fd5b81019080805190602001909291905050501515610eea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016004600082825401925050819055508090509392505050565b610f0d61158d565b6000602083811515610f1b57fe5b06141515610f3857602082811515610f2f57fe5b06602003820191505b81836020018181525050604051808452600081528281016020016040525082905092915050565b601781111515610f9157610f8b8160058460ff169060020a0260ff16178461132f90919063ffffffff16565b506110b8565b60ff81111515610fd857610fbb601860058460ff169060020a02178461132f90919063ffffffff16565b50610fd28160018561134f9092919063ffffffff16565b506110b7565b61ffff8111151561102057611003601960058460ff169060020a02178461132f90919063ffffffff16565b5061101a8160028561134f9092919063ffffffff16565b506110b6565b63ffffffff8111151561106a5761104d601a60058460ff169060020a02178461132f90919063ffffffff16565b506110648160048561134f9092919063ffffffff16565b506110b5565b67ffffffffffffffff811115156110b45761109b601b60058460ff169060020a02178461132f90919063ffffffff16565b506110b28160088561134f9092919063ffffffff16565b505b5b5b5b5b505050565b6110c561158d565b6110d783846000015151848551611371565b905092915050565b6110ff601f60058360ff169060020a02178361132f90919063ffffffff16565b505050565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634042994690507c01000000000000000000000000000000000000000000000000000000000260008084600001518560200151866040015187606001516001896080015160000151604051602401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611292578082015181840152602081019050611277565b50505050905090810190601f1680156112bf5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b61133761158d565b611347838460000151518461142e565b905092915050565b61135761158d565b61136884856000015151858561147e565b90509392505050565b61137961158d565b60008060008551851115151561138e57600080fd5b876020015185880111156113b9576113b88860026113b28b602001518b8a016114df565b026114fb565b5b8751805188602083010194508089880111156113d55788870182525b60208801935050505b60208510151561140357815183526020830192506020820191506020850394506113de565b6001856020036101000a03905080198251168184511681811785525050879350505050949350505050565b61143661158d565b836020015183101515611455576114548460028660200151026114fb565b5b8351805160208583010184815381861415611471576001820183525b5050508390509392505050565b61148661158d565b6000856020015185840111156114a6576114a5866002878601026114fb565b5b6001836101000a03905085518386820101858319825116178152815185880111156114d15784870182525b505085915050949350505050565b6000818311156114f1578290506114f5565b8190505b92915050565b60608260000151905061150e8383610f05565b5061151983826110bd565b50505050565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115876115a7565b81525090565b604080519081016040528060608152602001600081525090565b6040805190810160405280606081526020016000815250905600a165627a7a72305820101aafd13d63a754c3d9d8de309581b840ec41edd16750688b032a3151e7dd6e0029";
|
164
|
+
//# sourceMappingURL=ConsumerFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ConsumerFactory.js","sourceRoot":"","sources":["../../../src/generated/ConsumerFactory.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,171 @@
|
|
1
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
2
|
+
/* tslint:disable */
|
3
|
+
|
4
|
+
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
5
|
+
import { Listener, Provider } from "ethers/providers";
|
6
|
+
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
7
|
+
import {
|
8
|
+
TransactionOverrides,
|
9
|
+
TypedEventDescription,
|
10
|
+
TypedFunctionDescription
|
11
|
+
} from ".";
|
12
|
+
|
13
|
+
interface ENSInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
resolver: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
16
|
+
|
17
|
+
owner: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
18
|
+
|
19
|
+
setSubnodeOwner: TypedFunctionDescription<{
|
20
|
+
encode([node, label, owner]: [Arrayish, Arrayish, string]): string;
|
21
|
+
}>;
|
22
|
+
|
23
|
+
setTTL: TypedFunctionDescription<{
|
24
|
+
encode([node, ttl]: [Arrayish, BigNumberish]): string;
|
25
|
+
}>;
|
26
|
+
|
27
|
+
ttl: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
28
|
+
|
29
|
+
setResolver: TypedFunctionDescription<{
|
30
|
+
encode([node, resolver]: [Arrayish, string]): string;
|
31
|
+
}>;
|
32
|
+
|
33
|
+
setOwner: TypedFunctionDescription<{
|
34
|
+
encode([node, owner]: [Arrayish, string]): string;
|
35
|
+
}>;
|
36
|
+
};
|
37
|
+
|
38
|
+
events: {
|
39
|
+
NewOwner: TypedEventDescription<{
|
40
|
+
encodeTopics([node, label, owner]: [
|
41
|
+
Arrayish | null,
|
42
|
+
Arrayish | null,
|
43
|
+
null
|
44
|
+
]): string[];
|
45
|
+
}>;
|
46
|
+
|
47
|
+
Transfer: TypedEventDescription<{
|
48
|
+
encodeTopics([node, owner]: [Arrayish | null, null]): string[];
|
49
|
+
}>;
|
50
|
+
|
51
|
+
NewResolver: TypedEventDescription<{
|
52
|
+
encodeTopics([node, resolver]: [Arrayish | null, null]): string[];
|
53
|
+
}>;
|
54
|
+
|
55
|
+
NewTTL: TypedEventDescription<{
|
56
|
+
encodeTopics([node, ttl]: [Arrayish | null, null]): string[];
|
57
|
+
}>;
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
export class ENS extends Contract {
|
62
|
+
connect(signerOrProvider: Signer | Provider | string): ENS;
|
63
|
+
attach(addressOrName: string): ENS;
|
64
|
+
deployed(): Promise<ENS>;
|
65
|
+
|
66
|
+
on(event: EventFilter | string, listener: Listener): ENS;
|
67
|
+
once(event: EventFilter | string, listener: Listener): ENS;
|
68
|
+
addListener(eventName: EventFilter | string, listener: Listener): ENS;
|
69
|
+
removeAllListeners(eventName: EventFilter | string): ENS;
|
70
|
+
removeListener(eventName: any, listener: Listener): ENS;
|
71
|
+
|
72
|
+
interface: ENSInterface;
|
73
|
+
|
74
|
+
functions: {
|
75
|
+
resolver(node: Arrayish): Promise<string>;
|
76
|
+
|
77
|
+
owner(node: Arrayish): Promise<string>;
|
78
|
+
|
79
|
+
setSubnodeOwner(
|
80
|
+
node: Arrayish,
|
81
|
+
label: Arrayish,
|
82
|
+
owner: string,
|
83
|
+
overrides?: TransactionOverrides
|
84
|
+
): Promise<ContractTransaction>;
|
85
|
+
|
86
|
+
setTTL(
|
87
|
+
node: Arrayish,
|
88
|
+
ttl: BigNumberish,
|
89
|
+
overrides?: TransactionOverrides
|
90
|
+
): Promise<ContractTransaction>;
|
91
|
+
|
92
|
+
ttl(node: Arrayish): Promise<BigNumber>;
|
93
|
+
|
94
|
+
setResolver(
|
95
|
+
node: Arrayish,
|
96
|
+
resolver: string,
|
97
|
+
overrides?: TransactionOverrides
|
98
|
+
): Promise<ContractTransaction>;
|
99
|
+
|
100
|
+
setOwner(
|
101
|
+
node: Arrayish,
|
102
|
+
owner: string,
|
103
|
+
overrides?: TransactionOverrides
|
104
|
+
): Promise<ContractTransaction>;
|
105
|
+
};
|
106
|
+
|
107
|
+
resolver(node: Arrayish): Promise<string>;
|
108
|
+
|
109
|
+
owner(node: Arrayish): Promise<string>;
|
110
|
+
|
111
|
+
setSubnodeOwner(
|
112
|
+
node: Arrayish,
|
113
|
+
label: Arrayish,
|
114
|
+
owner: string,
|
115
|
+
overrides?: TransactionOverrides
|
116
|
+
): Promise<ContractTransaction>;
|
117
|
+
|
118
|
+
setTTL(
|
119
|
+
node: Arrayish,
|
120
|
+
ttl: BigNumberish,
|
121
|
+
overrides?: TransactionOverrides
|
122
|
+
): Promise<ContractTransaction>;
|
123
|
+
|
124
|
+
ttl(node: Arrayish): Promise<BigNumber>;
|
125
|
+
|
126
|
+
setResolver(
|
127
|
+
node: Arrayish,
|
128
|
+
resolver: string,
|
129
|
+
overrides?: TransactionOverrides
|
130
|
+
): Promise<ContractTransaction>;
|
131
|
+
|
132
|
+
setOwner(
|
133
|
+
node: Arrayish,
|
134
|
+
owner: string,
|
135
|
+
overrides?: TransactionOverrides
|
136
|
+
): Promise<ContractTransaction>;
|
137
|
+
|
138
|
+
filters: {
|
139
|
+
NewOwner(
|
140
|
+
node: Arrayish | null,
|
141
|
+
label: Arrayish | null,
|
142
|
+
owner: null
|
143
|
+
): EventFilter;
|
144
|
+
|
145
|
+
Transfer(node: Arrayish | null, owner: null): EventFilter;
|
146
|
+
|
147
|
+
NewResolver(node: Arrayish | null, resolver: null): EventFilter;
|
148
|
+
|
149
|
+
NewTTL(node: Arrayish | null, ttl: null): EventFilter;
|
150
|
+
};
|
151
|
+
|
152
|
+
estimate: {
|
153
|
+
resolver(node: Arrayish): Promise<BigNumber>;
|
154
|
+
|
155
|
+
owner(node: Arrayish): Promise<BigNumber>;
|
156
|
+
|
157
|
+
setSubnodeOwner(
|
158
|
+
node: Arrayish,
|
159
|
+
label: Arrayish,
|
160
|
+
owner: string
|
161
|
+
): Promise<BigNumber>;
|
162
|
+
|
163
|
+
setTTL(node: Arrayish, ttl: BigNumberish): Promise<BigNumber>;
|
164
|
+
|
165
|
+
ttl(node: Arrayish): Promise<BigNumber>;
|
166
|
+
|
167
|
+
setResolver(node: Arrayish, resolver: string): Promise<BigNumber>;
|
168
|
+
|
169
|
+
setOwner(node: Arrayish, owner: string): Promise<BigNumber>;
|
170
|
+
};
|
171
|
+
}
|