chainlinnk 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/bvh7av34.cjs +1 -0
- 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 +50 -0
- 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,336 @@
|
|
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 PublicResolverInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
supportsInterface: TypedFunctionDescription<{
|
16
|
+
encode([interfaceID]: [Arrayish]): string;
|
17
|
+
}>;
|
18
|
+
|
19
|
+
setText: TypedFunctionDescription<{
|
20
|
+
encode([node, key, value]: [Arrayish, string, string]): string;
|
21
|
+
}>;
|
22
|
+
|
23
|
+
ABI: TypedFunctionDescription<{
|
24
|
+
encode([node, contentTypes]: [Arrayish, BigNumberish]): string;
|
25
|
+
}>;
|
26
|
+
|
27
|
+
setPubkey: TypedFunctionDescription<{
|
28
|
+
encode([node, x, y]: [Arrayish, Arrayish, Arrayish]): string;
|
29
|
+
}>;
|
30
|
+
|
31
|
+
content: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
32
|
+
|
33
|
+
addr: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
34
|
+
|
35
|
+
text: TypedFunctionDescription<{
|
36
|
+
encode([node, key]: [Arrayish, string]): string;
|
37
|
+
}>;
|
38
|
+
|
39
|
+
setABI: TypedFunctionDescription<{
|
40
|
+
encode([node, contentType, data]: [
|
41
|
+
Arrayish,
|
42
|
+
BigNumberish,
|
43
|
+
Arrayish
|
44
|
+
]): string;
|
45
|
+
}>;
|
46
|
+
|
47
|
+
name: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
48
|
+
|
49
|
+
setName: TypedFunctionDescription<{
|
50
|
+
encode([node, name]: [Arrayish, string]): string;
|
51
|
+
}>;
|
52
|
+
|
53
|
+
setMultihash: TypedFunctionDescription<{
|
54
|
+
encode([node, hash]: [Arrayish, Arrayish]): string;
|
55
|
+
}>;
|
56
|
+
|
57
|
+
setContent: TypedFunctionDescription<{
|
58
|
+
encode([node, hash]: [Arrayish, Arrayish]): string;
|
59
|
+
}>;
|
60
|
+
|
61
|
+
pubkey: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
62
|
+
|
63
|
+
setAddr: TypedFunctionDescription<{
|
64
|
+
encode([node, addr]: [Arrayish, string]): string;
|
65
|
+
}>;
|
66
|
+
|
67
|
+
multihash: TypedFunctionDescription<{ encode([node]: [Arrayish]): string }>;
|
68
|
+
};
|
69
|
+
|
70
|
+
events: {
|
71
|
+
AddrChanged: TypedEventDescription<{
|
72
|
+
encodeTopics([node, a]: [Arrayish | null, null]): string[];
|
73
|
+
}>;
|
74
|
+
|
75
|
+
ContentChanged: TypedEventDescription<{
|
76
|
+
encodeTopics([node, hash]: [Arrayish | null, null]): string[];
|
77
|
+
}>;
|
78
|
+
|
79
|
+
NameChanged: TypedEventDescription<{
|
80
|
+
encodeTopics([node, name]: [Arrayish | null, null]): string[];
|
81
|
+
}>;
|
82
|
+
|
83
|
+
ABIChanged: TypedEventDescription<{
|
84
|
+
encodeTopics([node, contentType]: [
|
85
|
+
Arrayish | null,
|
86
|
+
BigNumberish | null
|
87
|
+
]): string[];
|
88
|
+
}>;
|
89
|
+
|
90
|
+
PubkeyChanged: TypedEventDescription<{
|
91
|
+
encodeTopics([node, x, y]: [Arrayish | null, null, null]): string[];
|
92
|
+
}>;
|
93
|
+
|
94
|
+
TextChanged: TypedEventDescription<{
|
95
|
+
encodeTopics([node, indexedKey, key]: [
|
96
|
+
Arrayish | null,
|
97
|
+
null,
|
98
|
+
null
|
99
|
+
]): string[];
|
100
|
+
}>;
|
101
|
+
|
102
|
+
MultihashChanged: TypedEventDescription<{
|
103
|
+
encodeTopics([node, hash]: [Arrayish | null, null]): string[];
|
104
|
+
}>;
|
105
|
+
};
|
106
|
+
}
|
107
|
+
|
108
|
+
export class PublicResolver extends Contract {
|
109
|
+
connect(signerOrProvider: Signer | Provider | string): PublicResolver;
|
110
|
+
attach(addressOrName: string): PublicResolver;
|
111
|
+
deployed(): Promise<PublicResolver>;
|
112
|
+
|
113
|
+
on(event: EventFilter | string, listener: Listener): PublicResolver;
|
114
|
+
once(event: EventFilter | string, listener: Listener): PublicResolver;
|
115
|
+
addListener(
|
116
|
+
eventName: EventFilter | string,
|
117
|
+
listener: Listener
|
118
|
+
): PublicResolver;
|
119
|
+
removeAllListeners(eventName: EventFilter | string): PublicResolver;
|
120
|
+
removeListener(eventName: any, listener: Listener): PublicResolver;
|
121
|
+
|
122
|
+
interface: PublicResolverInterface;
|
123
|
+
|
124
|
+
functions: {
|
125
|
+
supportsInterface(interfaceID: Arrayish): Promise<boolean>;
|
126
|
+
|
127
|
+
setText(
|
128
|
+
node: Arrayish,
|
129
|
+
key: string,
|
130
|
+
value: string,
|
131
|
+
overrides?: TransactionOverrides
|
132
|
+
): Promise<ContractTransaction>;
|
133
|
+
|
134
|
+
ABI(
|
135
|
+
node: Arrayish,
|
136
|
+
contentTypes: BigNumberish
|
137
|
+
): Promise<{
|
138
|
+
contentType: BigNumber;
|
139
|
+
data: string;
|
140
|
+
0: BigNumber;
|
141
|
+
1: string;
|
142
|
+
}>;
|
143
|
+
|
144
|
+
setPubkey(
|
145
|
+
node: Arrayish,
|
146
|
+
x: Arrayish,
|
147
|
+
y: Arrayish,
|
148
|
+
overrides?: TransactionOverrides
|
149
|
+
): Promise<ContractTransaction>;
|
150
|
+
|
151
|
+
content(node: Arrayish): Promise<string>;
|
152
|
+
|
153
|
+
addr(node: Arrayish): Promise<string>;
|
154
|
+
|
155
|
+
text(node: Arrayish, key: string): Promise<string>;
|
156
|
+
|
157
|
+
setABI(
|
158
|
+
node: Arrayish,
|
159
|
+
contentType: BigNumberish,
|
160
|
+
data: Arrayish,
|
161
|
+
overrides?: TransactionOverrides
|
162
|
+
): Promise<ContractTransaction>;
|
163
|
+
|
164
|
+
name(node: Arrayish): Promise<string>;
|
165
|
+
|
166
|
+
setName(
|
167
|
+
node: Arrayish,
|
168
|
+
name: string,
|
169
|
+
overrides?: TransactionOverrides
|
170
|
+
): Promise<ContractTransaction>;
|
171
|
+
|
172
|
+
setMultihash(
|
173
|
+
node: Arrayish,
|
174
|
+
hash: Arrayish,
|
175
|
+
overrides?: TransactionOverrides
|
176
|
+
): Promise<ContractTransaction>;
|
177
|
+
|
178
|
+
setContent(
|
179
|
+
node: Arrayish,
|
180
|
+
hash: Arrayish,
|
181
|
+
overrides?: TransactionOverrides
|
182
|
+
): Promise<ContractTransaction>;
|
183
|
+
|
184
|
+
pubkey(
|
185
|
+
node: Arrayish
|
186
|
+
): Promise<{
|
187
|
+
x: string;
|
188
|
+
y: string;
|
189
|
+
0: string;
|
190
|
+
1: string;
|
191
|
+
}>;
|
192
|
+
|
193
|
+
setAddr(
|
194
|
+
node: Arrayish,
|
195
|
+
addr: string,
|
196
|
+
overrides?: TransactionOverrides
|
197
|
+
): Promise<ContractTransaction>;
|
198
|
+
|
199
|
+
multihash(node: Arrayish): Promise<string>;
|
200
|
+
};
|
201
|
+
|
202
|
+
supportsInterface(interfaceID: Arrayish): Promise<boolean>;
|
203
|
+
|
204
|
+
setText(
|
205
|
+
node: Arrayish,
|
206
|
+
key: string,
|
207
|
+
value: string,
|
208
|
+
overrides?: TransactionOverrides
|
209
|
+
): Promise<ContractTransaction>;
|
210
|
+
|
211
|
+
ABI(
|
212
|
+
node: Arrayish,
|
213
|
+
contentTypes: BigNumberish
|
214
|
+
): Promise<{
|
215
|
+
contentType: BigNumber;
|
216
|
+
data: string;
|
217
|
+
0: BigNumber;
|
218
|
+
1: string;
|
219
|
+
}>;
|
220
|
+
|
221
|
+
setPubkey(
|
222
|
+
node: Arrayish,
|
223
|
+
x: Arrayish,
|
224
|
+
y: Arrayish,
|
225
|
+
overrides?: TransactionOverrides
|
226
|
+
): Promise<ContractTransaction>;
|
227
|
+
|
228
|
+
content(node: Arrayish): Promise<string>;
|
229
|
+
|
230
|
+
addr(node: Arrayish): Promise<string>;
|
231
|
+
|
232
|
+
text(node: Arrayish, key: string): Promise<string>;
|
233
|
+
|
234
|
+
setABI(
|
235
|
+
node: Arrayish,
|
236
|
+
contentType: BigNumberish,
|
237
|
+
data: Arrayish,
|
238
|
+
overrides?: TransactionOverrides
|
239
|
+
): Promise<ContractTransaction>;
|
240
|
+
|
241
|
+
name(node: Arrayish): Promise<string>;
|
242
|
+
|
243
|
+
setName(
|
244
|
+
node: Arrayish,
|
245
|
+
name: string,
|
246
|
+
overrides?: TransactionOverrides
|
247
|
+
): Promise<ContractTransaction>;
|
248
|
+
|
249
|
+
setMultihash(
|
250
|
+
node: Arrayish,
|
251
|
+
hash: Arrayish,
|
252
|
+
overrides?: TransactionOverrides
|
253
|
+
): Promise<ContractTransaction>;
|
254
|
+
|
255
|
+
setContent(
|
256
|
+
node: Arrayish,
|
257
|
+
hash: Arrayish,
|
258
|
+
overrides?: TransactionOverrides
|
259
|
+
): Promise<ContractTransaction>;
|
260
|
+
|
261
|
+
pubkey(
|
262
|
+
node: Arrayish
|
263
|
+
): Promise<{
|
264
|
+
x: string;
|
265
|
+
y: string;
|
266
|
+
0: string;
|
267
|
+
1: string;
|
268
|
+
}>;
|
269
|
+
|
270
|
+
setAddr(
|
271
|
+
node: Arrayish,
|
272
|
+
addr: string,
|
273
|
+
overrides?: TransactionOverrides
|
274
|
+
): Promise<ContractTransaction>;
|
275
|
+
|
276
|
+
multihash(node: Arrayish): Promise<string>;
|
277
|
+
|
278
|
+
filters: {
|
279
|
+
AddrChanged(node: Arrayish | null, a: null): EventFilter;
|
280
|
+
|
281
|
+
ContentChanged(node: Arrayish | null, hash: null): EventFilter;
|
282
|
+
|
283
|
+
NameChanged(node: Arrayish | null, name: null): EventFilter;
|
284
|
+
|
285
|
+
ABIChanged(
|
286
|
+
node: Arrayish | null,
|
287
|
+
contentType: BigNumberish | null
|
288
|
+
): EventFilter;
|
289
|
+
|
290
|
+
PubkeyChanged(node: Arrayish | null, x: null, y: null): EventFilter;
|
291
|
+
|
292
|
+
TextChanged(
|
293
|
+
node: Arrayish | null,
|
294
|
+
indexedKey: null,
|
295
|
+
key: null
|
296
|
+
): EventFilter;
|
297
|
+
|
298
|
+
MultihashChanged(node: Arrayish | null, hash: null): EventFilter;
|
299
|
+
};
|
300
|
+
|
301
|
+
estimate: {
|
302
|
+
supportsInterface(interfaceID: Arrayish): Promise<BigNumber>;
|
303
|
+
|
304
|
+
setText(node: Arrayish, key: string, value: string): Promise<BigNumber>;
|
305
|
+
|
306
|
+
ABI(node: Arrayish, contentTypes: BigNumberish): Promise<BigNumber>;
|
307
|
+
|
308
|
+
setPubkey(node: Arrayish, x: Arrayish, y: Arrayish): Promise<BigNumber>;
|
309
|
+
|
310
|
+
content(node: Arrayish): Promise<BigNumber>;
|
311
|
+
|
312
|
+
addr(node: Arrayish): Promise<BigNumber>;
|
313
|
+
|
314
|
+
text(node: Arrayish, key: string): Promise<BigNumber>;
|
315
|
+
|
316
|
+
setABI(
|
317
|
+
node: Arrayish,
|
318
|
+
contentType: BigNumberish,
|
319
|
+
data: Arrayish
|
320
|
+
): Promise<BigNumber>;
|
321
|
+
|
322
|
+
name(node: Arrayish): Promise<BigNumber>;
|
323
|
+
|
324
|
+
setName(node: Arrayish, name: string): Promise<BigNumber>;
|
325
|
+
|
326
|
+
setMultihash(node: Arrayish, hash: Arrayish): Promise<BigNumber>;
|
327
|
+
|
328
|
+
setContent(node: Arrayish, hash: Arrayish): Promise<BigNumber>;
|
329
|
+
|
330
|
+
pubkey(node: Arrayish): Promise<BigNumber>;
|
331
|
+
|
332
|
+
setAddr(node: Arrayish, addr: string): Promise<BigNumber>;
|
333
|
+
|
334
|
+
multihash(node: Arrayish): Promise<BigNumber>;
|
335
|
+
};
|
336
|
+
}
|
@@ -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 { PublicResolver } from "./PublicResolver";
|
5
|
+
export declare class PublicResolverFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(ensAddr: string): Promise<PublicResolver>;
|
8
|
+
getDeployTransaction(ensAddr: string): UnsignedTransaction;
|
9
|
+
attach(address: string): PublicResolver;
|
10
|
+
connect(signer: Signer): PublicResolverFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): PublicResolver;
|
12
|
+
}
|