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,228 @@
|
|
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 EmptyOracleInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
oracleRequest: TypedFunctionDescription<{
|
16
|
+
encode([, , , , , , ,]: [
|
17
|
+
string,
|
18
|
+
BigNumberish,
|
19
|
+
Arrayish,
|
20
|
+
string,
|
21
|
+
Arrayish,
|
22
|
+
BigNumberish,
|
23
|
+
BigNumberish,
|
24
|
+
Arrayish
|
25
|
+
]): string;
|
26
|
+
}>;
|
27
|
+
|
28
|
+
fulfillOracleRequest: TypedFunctionDescription<{
|
29
|
+
encode([, , , , ,]: [
|
30
|
+
Arrayish,
|
31
|
+
BigNumberish,
|
32
|
+
string,
|
33
|
+
Arrayish,
|
34
|
+
BigNumberish,
|
35
|
+
Arrayish
|
36
|
+
]): string;
|
37
|
+
}>;
|
38
|
+
|
39
|
+
withdrawable: TypedFunctionDescription<{ encode([]: []): string }>;
|
40
|
+
|
41
|
+
cancelOracleRequest: TypedFunctionDescription<{
|
42
|
+
encode([, , ,]: [Arrayish, BigNumberish, Arrayish, BigNumberish]): string;
|
43
|
+
}>;
|
44
|
+
|
45
|
+
setFulfillmentPermission: TypedFunctionDescription<{
|
46
|
+
encode([,]: [string, boolean]): string;
|
47
|
+
}>;
|
48
|
+
|
49
|
+
onTokenTransfer: TypedFunctionDescription<{
|
50
|
+
encode([, ,]: [string, BigNumberish, Arrayish]): string;
|
51
|
+
}>;
|
52
|
+
|
53
|
+
getAuthorizationStatus: TypedFunctionDescription<{
|
54
|
+
encode([]: [string]): string;
|
55
|
+
}>;
|
56
|
+
|
57
|
+
withdraw: TypedFunctionDescription<{
|
58
|
+
encode([,]: [string, BigNumberish]): string;
|
59
|
+
}>;
|
60
|
+
};
|
61
|
+
|
62
|
+
events: {};
|
63
|
+
}
|
64
|
+
|
65
|
+
export class EmptyOracle extends Contract {
|
66
|
+
connect(signerOrProvider: Signer | Provider | string): EmptyOracle;
|
67
|
+
attach(addressOrName: string): EmptyOracle;
|
68
|
+
deployed(): Promise<EmptyOracle>;
|
69
|
+
|
70
|
+
on(event: EventFilter | string, listener: Listener): EmptyOracle;
|
71
|
+
once(event: EventFilter | string, listener: Listener): EmptyOracle;
|
72
|
+
addListener(eventName: EventFilter | string, listener: Listener): EmptyOracle;
|
73
|
+
removeAllListeners(eventName: EventFilter | string): EmptyOracle;
|
74
|
+
removeListener(eventName: any, listener: Listener): EmptyOracle;
|
75
|
+
|
76
|
+
interface: EmptyOracleInterface;
|
77
|
+
|
78
|
+
functions: {
|
79
|
+
oracleRequest(
|
80
|
+
arg0: string,
|
81
|
+
arg1: BigNumberish,
|
82
|
+
arg2: Arrayish,
|
83
|
+
arg3: string,
|
84
|
+
arg4: Arrayish,
|
85
|
+
arg5: BigNumberish,
|
86
|
+
arg6: BigNumberish,
|
87
|
+
arg7: Arrayish,
|
88
|
+
overrides?: TransactionOverrides
|
89
|
+
): Promise<ContractTransaction>;
|
90
|
+
|
91
|
+
fulfillOracleRequest(
|
92
|
+
arg0: Arrayish,
|
93
|
+
arg1: BigNumberish,
|
94
|
+
arg2: string,
|
95
|
+
arg3: Arrayish,
|
96
|
+
arg4: BigNumberish,
|
97
|
+
arg5: Arrayish,
|
98
|
+
overrides?: TransactionOverrides
|
99
|
+
): Promise<ContractTransaction>;
|
100
|
+
|
101
|
+
withdrawable(): Promise<BigNumber>;
|
102
|
+
|
103
|
+
cancelOracleRequest(
|
104
|
+
arg0: Arrayish,
|
105
|
+
arg1: BigNumberish,
|
106
|
+
arg2: Arrayish,
|
107
|
+
arg3: BigNumberish,
|
108
|
+
overrides?: TransactionOverrides
|
109
|
+
): Promise<ContractTransaction>;
|
110
|
+
|
111
|
+
setFulfillmentPermission(
|
112
|
+
arg0: string,
|
113
|
+
arg1: boolean,
|
114
|
+
overrides?: TransactionOverrides
|
115
|
+
): Promise<ContractTransaction>;
|
116
|
+
|
117
|
+
onTokenTransfer(
|
118
|
+
arg0: string,
|
119
|
+
arg1: BigNumberish,
|
120
|
+
arg2: Arrayish
|
121
|
+
): Promise<void>;
|
122
|
+
|
123
|
+
getAuthorizationStatus(arg0: string): Promise<boolean>;
|
124
|
+
|
125
|
+
withdraw(
|
126
|
+
arg0: string,
|
127
|
+
arg1: BigNumberish,
|
128
|
+
overrides?: TransactionOverrides
|
129
|
+
): Promise<ContractTransaction>;
|
130
|
+
};
|
131
|
+
|
132
|
+
oracleRequest(
|
133
|
+
arg0: string,
|
134
|
+
arg1: BigNumberish,
|
135
|
+
arg2: Arrayish,
|
136
|
+
arg3: string,
|
137
|
+
arg4: Arrayish,
|
138
|
+
arg5: BigNumberish,
|
139
|
+
arg6: BigNumberish,
|
140
|
+
arg7: Arrayish,
|
141
|
+
overrides?: TransactionOverrides
|
142
|
+
): Promise<ContractTransaction>;
|
143
|
+
|
144
|
+
fulfillOracleRequest(
|
145
|
+
arg0: Arrayish,
|
146
|
+
arg1: BigNumberish,
|
147
|
+
arg2: string,
|
148
|
+
arg3: Arrayish,
|
149
|
+
arg4: BigNumberish,
|
150
|
+
arg5: Arrayish,
|
151
|
+
overrides?: TransactionOverrides
|
152
|
+
): Promise<ContractTransaction>;
|
153
|
+
|
154
|
+
withdrawable(): Promise<BigNumber>;
|
155
|
+
|
156
|
+
cancelOracleRequest(
|
157
|
+
arg0: Arrayish,
|
158
|
+
arg1: BigNumberish,
|
159
|
+
arg2: Arrayish,
|
160
|
+
arg3: BigNumberish,
|
161
|
+
overrides?: TransactionOverrides
|
162
|
+
): Promise<ContractTransaction>;
|
163
|
+
|
164
|
+
setFulfillmentPermission(
|
165
|
+
arg0: string,
|
166
|
+
arg1: boolean,
|
167
|
+
overrides?: TransactionOverrides
|
168
|
+
): Promise<ContractTransaction>;
|
169
|
+
|
170
|
+
onTokenTransfer(
|
171
|
+
arg0: string,
|
172
|
+
arg1: BigNumberish,
|
173
|
+
arg2: Arrayish
|
174
|
+
): Promise<void>;
|
175
|
+
|
176
|
+
getAuthorizationStatus(arg0: string): Promise<boolean>;
|
177
|
+
|
178
|
+
withdraw(
|
179
|
+
arg0: string,
|
180
|
+
arg1: BigNumberish,
|
181
|
+
overrides?: TransactionOverrides
|
182
|
+
): Promise<ContractTransaction>;
|
183
|
+
|
184
|
+
filters: {};
|
185
|
+
|
186
|
+
estimate: {
|
187
|
+
oracleRequest(
|
188
|
+
arg0: string,
|
189
|
+
arg1: BigNumberish,
|
190
|
+
arg2: Arrayish,
|
191
|
+
arg3: string,
|
192
|
+
arg4: Arrayish,
|
193
|
+
arg5: BigNumberish,
|
194
|
+
arg6: BigNumberish,
|
195
|
+
arg7: Arrayish
|
196
|
+
): Promise<BigNumber>;
|
197
|
+
|
198
|
+
fulfillOracleRequest(
|
199
|
+
arg0: Arrayish,
|
200
|
+
arg1: BigNumberish,
|
201
|
+
arg2: string,
|
202
|
+
arg3: Arrayish,
|
203
|
+
arg4: BigNumberish,
|
204
|
+
arg5: Arrayish
|
205
|
+
): Promise<BigNumber>;
|
206
|
+
|
207
|
+
withdrawable(): Promise<BigNumber>;
|
208
|
+
|
209
|
+
cancelOracleRequest(
|
210
|
+
arg0: Arrayish,
|
211
|
+
arg1: BigNumberish,
|
212
|
+
arg2: Arrayish,
|
213
|
+
arg3: BigNumberish
|
214
|
+
): Promise<BigNumber>;
|
215
|
+
|
216
|
+
setFulfillmentPermission(arg0: string, arg1: boolean): Promise<BigNumber>;
|
217
|
+
|
218
|
+
onTokenTransfer(
|
219
|
+
arg0: string,
|
220
|
+
arg1: BigNumberish,
|
221
|
+
arg2: Arrayish
|
222
|
+
): Promise<BigNumber>;
|
223
|
+
|
224
|
+
getAuthorizationStatus(arg0: string): Promise<BigNumber>;
|
225
|
+
|
226
|
+
withdraw(arg0: string, arg1: BigNumberish): Promise<BigNumber>;
|
227
|
+
};
|
228
|
+
}
|
@@ -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 { EmptyOracle } from "./EmptyOracle";
|
5
|
+
export declare class EmptyOracleFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(): Promise<EmptyOracle>;
|
8
|
+
getDeployTransaction(): UnsignedTransaction;
|
9
|
+
attach(address: string): EmptyOracle;
|
10
|
+
connect(signer: Signer): EmptyOracleFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): EmptyOracle;
|
12
|
+
}
|
@@ -0,0 +1,228 @@
|
|
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 EmptyOracleFactory 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.EmptyOracleFactory = EmptyOracleFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
constant: false,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
name: "",
|
33
|
+
type: "address"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: "",
|
37
|
+
type: "uint256"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: "",
|
41
|
+
type: "bytes32"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
name: "",
|
45
|
+
type: "address"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: "",
|
49
|
+
type: "bytes4"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
name: "",
|
53
|
+
type: "uint256"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "",
|
57
|
+
type: "uint256"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
name: "",
|
61
|
+
type: "bytes"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
name: "oracleRequest",
|
65
|
+
outputs: [],
|
66
|
+
payable: false,
|
67
|
+
stateMutability: "nonpayable",
|
68
|
+
type: "function"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
constant: false,
|
72
|
+
inputs: [
|
73
|
+
{
|
74
|
+
name: "",
|
75
|
+
type: "bytes32"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
name: "",
|
79
|
+
type: "uint256"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
name: "",
|
83
|
+
type: "address"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
name: "",
|
87
|
+
type: "bytes4"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
name: "",
|
91
|
+
type: "uint256"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
name: "",
|
95
|
+
type: "bytes32"
|
96
|
+
}
|
97
|
+
],
|
98
|
+
name: "fulfillOracleRequest",
|
99
|
+
outputs: [
|
100
|
+
{
|
101
|
+
name: "",
|
102
|
+
type: "bool"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
payable: false,
|
106
|
+
stateMutability: "nonpayable",
|
107
|
+
type: "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
constant: true,
|
111
|
+
inputs: [],
|
112
|
+
name: "withdrawable",
|
113
|
+
outputs: [
|
114
|
+
{
|
115
|
+
name: "",
|
116
|
+
type: "uint256"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
payable: false,
|
120
|
+
stateMutability: "view",
|
121
|
+
type: "function"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
constant: false,
|
125
|
+
inputs: [
|
126
|
+
{
|
127
|
+
name: "",
|
128
|
+
type: "bytes32"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
name: "",
|
132
|
+
type: "uint256"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: "",
|
136
|
+
type: "bytes4"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
name: "",
|
140
|
+
type: "uint256"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
name: "cancelOracleRequest",
|
144
|
+
outputs: [],
|
145
|
+
payable: false,
|
146
|
+
stateMutability: "nonpayable",
|
147
|
+
type: "function"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
constant: false,
|
151
|
+
inputs: [
|
152
|
+
{
|
153
|
+
name: "",
|
154
|
+
type: "address"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: "",
|
158
|
+
type: "bool"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
name: "setFulfillmentPermission",
|
162
|
+
outputs: [],
|
163
|
+
payable: false,
|
164
|
+
stateMutability: "nonpayable",
|
165
|
+
type: "function"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
constant: true,
|
169
|
+
inputs: [
|
170
|
+
{
|
171
|
+
name: "",
|
172
|
+
type: "address"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
name: "",
|
176
|
+
type: "uint256"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
name: "",
|
180
|
+
type: "bytes"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
name: "onTokenTransfer",
|
184
|
+
outputs: [],
|
185
|
+
payable: false,
|
186
|
+
stateMutability: "pure",
|
187
|
+
type: "function"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
constant: true,
|
191
|
+
inputs: [
|
192
|
+
{
|
193
|
+
name: "",
|
194
|
+
type: "address"
|
195
|
+
}
|
196
|
+
],
|
197
|
+
name: "getAuthorizationStatus",
|
198
|
+
outputs: [
|
199
|
+
{
|
200
|
+
name: "",
|
201
|
+
type: "bool"
|
202
|
+
}
|
203
|
+
],
|
204
|
+
payable: false,
|
205
|
+
stateMutability: "view",
|
206
|
+
type: "function"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
constant: false,
|
210
|
+
inputs: [
|
211
|
+
{
|
212
|
+
name: "",
|
213
|
+
type: "address"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
name: "",
|
217
|
+
type: "uint256"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
name: "withdraw",
|
221
|
+
outputs: [],
|
222
|
+
payable: false,
|
223
|
+
stateMutability: "nonpayable",
|
224
|
+
type: "function"
|
225
|
+
}
|
226
|
+
];
|
227
|
+
const _bytecode = "0x608060405234801561001057600080fd5b50610472806100206000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806340429946146100935780634ab0d1901461016357806350188301146102175780636ee4d553146102425780637fcd56db146102b0578063a4c0ed36146102ff578063d3e9c31414610364578063f3fef3a3146103bf575b600080fd5b34801561009f57600080fd5b50610161600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803590602001909291908035906020019092919080359060200190820180359060200191909192939192939050505061040c565b005b34801561016f57600080fd5b506101fd600480360381019080803560001916906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803590602001909291908035600019169060200190929190505050610417565b604051808215151515815260200191505060405180910390f35b34801561022357600080fd5b5061022c610423565b6040518082815260200191505060405180910390f35b34801561024e57600080fd5b506102ae60048036038101908080356000191690602001909291908035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919080359060200190929190505050610428565b005b3480156102bc57600080fd5b506102fd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919050505061042e565b005b34801561030b57600080fd5b50610362600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610432565b005b34801561037057600080fd5b506103a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610438565b604051808215151515815260200191505060405180910390f35b3480156103cb57600080fd5b5061040a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610442565b005b505050505050505050565b60009695505050505050565b600090565b50505050565b5050565b50505050565b6000809050919050565b50505600a165627a7a72305820fffa245a50d4f1bd37175a6c1899272209a1c01f8d255cd2a44a7918dbe15ed30029";
|
228
|
+
//# sourceMappingURL=EmptyOracleFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmptyOracleFactory.js","sourceRoot":"","sources":["../../../src/generated/EmptyOracleFactory.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,207 @@
|
|
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 GetterSetterInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
requestId: TypedFunctionDescription<{ encode([]: []): string }>;
|
16
|
+
|
17
|
+
getBytes: TypedFunctionDescription<{ encode([]: []): string }>;
|
18
|
+
|
19
|
+
getBytes32: TypedFunctionDescription<{ encode([]: []): string }>;
|
20
|
+
|
21
|
+
requestedUint256: TypedFunctionDescription<{
|
22
|
+
encode([_requestId, _value]: [Arrayish, BigNumberish]): string;
|
23
|
+
}>;
|
24
|
+
|
25
|
+
requestedBytes: TypedFunctionDescription<{
|
26
|
+
encode([_requestId, _value]: [Arrayish, Arrayish]): string;
|
27
|
+
}>;
|
28
|
+
|
29
|
+
getUint256: TypedFunctionDescription<{ encode([]: []): string }>;
|
30
|
+
|
31
|
+
setBytes32: TypedFunctionDescription<{
|
32
|
+
encode([_value]: [Arrayish]): string;
|
33
|
+
}>;
|
34
|
+
|
35
|
+
setUint256: TypedFunctionDescription<{
|
36
|
+
encode([_value]: [BigNumberish]): string;
|
37
|
+
}>;
|
38
|
+
|
39
|
+
setBytes: TypedFunctionDescription<{
|
40
|
+
encode([_value]: [Arrayish]): string;
|
41
|
+
}>;
|
42
|
+
|
43
|
+
requestedBytes32: TypedFunctionDescription<{
|
44
|
+
encode([_requestId, _value]: [Arrayish, Arrayish]): string;
|
45
|
+
}>;
|
46
|
+
};
|
47
|
+
|
48
|
+
events: {
|
49
|
+
SetBytes32: TypedEventDescription<{
|
50
|
+
encodeTopics([from, value]: [string | null, Arrayish | null]): string[];
|
51
|
+
}>;
|
52
|
+
|
53
|
+
SetUint256: TypedEventDescription<{
|
54
|
+
encodeTopics([from, value]: [
|
55
|
+
string | null,
|
56
|
+
BigNumberish | null
|
57
|
+
]): string[];
|
58
|
+
}>;
|
59
|
+
|
60
|
+
SetBytes: TypedEventDescription<{
|
61
|
+
encodeTopics([from, value]: [string | null, null]): string[];
|
62
|
+
}>;
|
63
|
+
|
64
|
+
Output: TypedEventDescription<{
|
65
|
+
encodeTopics([b32, u256, b322]: [null, null, null]): string[];
|
66
|
+
}>;
|
67
|
+
};
|
68
|
+
}
|
69
|
+
|
70
|
+
export class GetterSetter extends Contract {
|
71
|
+
connect(signerOrProvider: Signer | Provider | string): GetterSetter;
|
72
|
+
attach(addressOrName: string): GetterSetter;
|
73
|
+
deployed(): Promise<GetterSetter>;
|
74
|
+
|
75
|
+
on(event: EventFilter | string, listener: Listener): GetterSetter;
|
76
|
+
once(event: EventFilter | string, listener: Listener): GetterSetter;
|
77
|
+
addListener(
|
78
|
+
eventName: EventFilter | string,
|
79
|
+
listener: Listener
|
80
|
+
): GetterSetter;
|
81
|
+
removeAllListeners(eventName: EventFilter | string): GetterSetter;
|
82
|
+
removeListener(eventName: any, listener: Listener): GetterSetter;
|
83
|
+
|
84
|
+
interface: GetterSetterInterface;
|
85
|
+
|
86
|
+
functions: {
|
87
|
+
requestId(): Promise<string>;
|
88
|
+
|
89
|
+
getBytes(): Promise<string>;
|
90
|
+
|
91
|
+
getBytes32(): Promise<string>;
|
92
|
+
|
93
|
+
requestedUint256(
|
94
|
+
_requestId: Arrayish,
|
95
|
+
_value: BigNumberish,
|
96
|
+
overrides?: TransactionOverrides
|
97
|
+
): Promise<ContractTransaction>;
|
98
|
+
|
99
|
+
requestedBytes(
|
100
|
+
_requestId: Arrayish,
|
101
|
+
_value: Arrayish,
|
102
|
+
overrides?: TransactionOverrides
|
103
|
+
): Promise<ContractTransaction>;
|
104
|
+
|
105
|
+
getUint256(): Promise<BigNumber>;
|
106
|
+
|
107
|
+
setBytes32(
|
108
|
+
_value: Arrayish,
|
109
|
+
overrides?: TransactionOverrides
|
110
|
+
): Promise<ContractTransaction>;
|
111
|
+
|
112
|
+
setUint256(
|
113
|
+
_value: BigNumberish,
|
114
|
+
overrides?: TransactionOverrides
|
115
|
+
): Promise<ContractTransaction>;
|
116
|
+
|
117
|
+
setBytes(
|
118
|
+
_value: Arrayish,
|
119
|
+
overrides?: TransactionOverrides
|
120
|
+
): Promise<ContractTransaction>;
|
121
|
+
|
122
|
+
requestedBytes32(
|
123
|
+
_requestId: Arrayish,
|
124
|
+
_value: Arrayish,
|
125
|
+
overrides?: TransactionOverrides
|
126
|
+
): Promise<ContractTransaction>;
|
127
|
+
};
|
128
|
+
|
129
|
+
requestId(): Promise<string>;
|
130
|
+
|
131
|
+
getBytes(): Promise<string>;
|
132
|
+
|
133
|
+
getBytes32(): Promise<string>;
|
134
|
+
|
135
|
+
requestedUint256(
|
136
|
+
_requestId: Arrayish,
|
137
|
+
_value: BigNumberish,
|
138
|
+
overrides?: TransactionOverrides
|
139
|
+
): Promise<ContractTransaction>;
|
140
|
+
|
141
|
+
requestedBytes(
|
142
|
+
_requestId: Arrayish,
|
143
|
+
_value: Arrayish,
|
144
|
+
overrides?: TransactionOverrides
|
145
|
+
): Promise<ContractTransaction>;
|
146
|
+
|
147
|
+
getUint256(): Promise<BigNumber>;
|
148
|
+
|
149
|
+
setBytes32(
|
150
|
+
_value: Arrayish,
|
151
|
+
overrides?: TransactionOverrides
|
152
|
+
): Promise<ContractTransaction>;
|
153
|
+
|
154
|
+
setUint256(
|
155
|
+
_value: BigNumberish,
|
156
|
+
overrides?: TransactionOverrides
|
157
|
+
): Promise<ContractTransaction>;
|
158
|
+
|
159
|
+
setBytes(
|
160
|
+
_value: Arrayish,
|
161
|
+
overrides?: TransactionOverrides
|
162
|
+
): Promise<ContractTransaction>;
|
163
|
+
|
164
|
+
requestedBytes32(
|
165
|
+
_requestId: Arrayish,
|
166
|
+
_value: Arrayish,
|
167
|
+
overrides?: TransactionOverrides
|
168
|
+
): Promise<ContractTransaction>;
|
169
|
+
|
170
|
+
filters: {
|
171
|
+
SetBytes32(from: string | null, value: Arrayish | null): EventFilter;
|
172
|
+
|
173
|
+
SetUint256(from: string | null, value: BigNumberish | null): EventFilter;
|
174
|
+
|
175
|
+
SetBytes(from: string | null, value: null): EventFilter;
|
176
|
+
|
177
|
+
Output(b32: null, u256: null, b322: null): EventFilter;
|
178
|
+
};
|
179
|
+
|
180
|
+
estimate: {
|
181
|
+
requestId(): Promise<BigNumber>;
|
182
|
+
|
183
|
+
getBytes(): Promise<BigNumber>;
|
184
|
+
|
185
|
+
getBytes32(): Promise<BigNumber>;
|
186
|
+
|
187
|
+
requestedUint256(
|
188
|
+
_requestId: Arrayish,
|
189
|
+
_value: BigNumberish
|
190
|
+
): Promise<BigNumber>;
|
191
|
+
|
192
|
+
requestedBytes(_requestId: Arrayish, _value: Arrayish): Promise<BigNumber>;
|
193
|
+
|
194
|
+
getUint256(): Promise<BigNumber>;
|
195
|
+
|
196
|
+
setBytes32(_value: Arrayish): Promise<BigNumber>;
|
197
|
+
|
198
|
+
setUint256(_value: BigNumberish): Promise<BigNumber>;
|
199
|
+
|
200
|
+
setBytes(_value: Arrayish): Promise<BigNumber>;
|
201
|
+
|
202
|
+
requestedBytes32(
|
203
|
+
_requestId: Arrayish,
|
204
|
+
_value: Arrayish
|
205
|
+
): Promise<BigNumber>;
|
206
|
+
};
|
207
|
+
}
|
@@ -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 { GetterSetter } from "./GetterSetter";
|
5
|
+
export declare class GetterSetterFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(): Promise<GetterSetter>;
|
8
|
+
getDeployTransaction(): UnsignedTransaction;
|
9
|
+
attach(address: string): GetterSetter;
|
10
|
+
connect(signer: Signer): GetterSetterFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): GetterSetter;
|
12
|
+
}
|