dequanto 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/chains/arbitrum/TokensServiceArbitrum.d.ts +1 -1
- package/lib/cjs/clients/EvmWeb3Client.d.ts +3 -0
- package/lib/cjs/clients/EvmWeb3Client.js +23 -4
- package/lib/cjs/clients/EvmWeb3Client.js.map +1 -1
- package/lib/cjs/clients/Web3Client.d.ts +2 -2
- package/lib/cjs/clients/Web3ClientFactory.js +1 -1
- package/lib/cjs/clients/Web3ClientFactory.js.map +1 -1
- package/lib/cjs/config/ConfigDefaults.js +14 -0
- package/lib/cjs/config/ConfigDefaults.js.map +1 -1
- package/lib/cjs/erc4337/models/UserOperation.d.ts +1 -1
- package/lib/cjs/gen/GeneratorFromAbi.d.ts +3 -1
- package/lib/cjs/gen/GeneratorFromAbi.js +87 -68
- package/lib/cjs/gen/GeneratorFromAbi.js.map +1 -1
- package/lib/cjs/gen/GeneratorStorageReader.d.ts +1 -0
- package/lib/cjs/gen/GeneratorStorageReader.js +13 -1
- package/lib/cjs/gen/GeneratorStorageReader.js.map +1 -1
- package/lib/cjs/hardhat/HardhatProvider.d.ts +24 -1
- package/lib/cjs/hardhat/HardhatProvider.js +27 -13
- package/lib/cjs/hardhat/HardhatProvider.js.map +1 -1
- package/lib/cjs/ns/providers/EnsProvider.d.ts +2 -2
- package/lib/cjs/safe/GnosisSafeFactory.js.map +1 -1
- package/lib/cjs/safe/GnosisSafeService.js.map +1 -1
- package/lib/cjs/safe/SafeTx.js.map +1 -1
- package/lib/cjs/safe/transport/FileServiceTransport.js.map +1 -1
- package/lib/cjs/safe/transport/InMemoryServiceTransport.js.map +1 -1
- package/lib/cjs/services/TimelockService/TimelockService.d.ts +1 -1
- package/lib/cjs/tokens/TokenExchanges/AmmV2ExchangeBase.d.ts +4 -4
- package/lib/cjs/tokens/TokenExchanges/AmmV2ExchangeBase.js.map +1 -1
- package/lib/cjs/tokens/TokenExchanges/OneInchExchange.js.map +1 -1
- package/lib/cjs/tokens/TokenOracles/amm/AmmV1Oracle.js.map +1 -1
- package/lib/cjs/tokens/TokenService.js.map +1 -1
- package/lib/cjs/tokens/TokensService.d.ts +1 -1
- package/lib/cjs/tokens/TokensService.js.map +1 -1
- package/lib/cjs/tokens/TokensServiceBsc.d.ts +1 -1
- package/lib/cjs/tokens/TokensServicePolygon.d.ts +1 -1
- package/lib/cjs/tokens/TokensServiceXDai.d.ts +1 -1
- package/lib/cjs/utils/$logger.js +4 -0
- package/lib/cjs/utils/$logger.js.map +1 -1
- package/lib/cjs/utils/$path.js +4 -2
- package/lib/cjs/utils/$path.js.map +1 -1
- package/lib/cjs/wallets/Wallet.js.map +1 -1
- package/lib/esm/chains/arbitrum/TokensServiceArbitrum.d.ts +1 -1
- package/lib/esm/clients/EvmWeb3Client.d.ts +3 -0
- package/lib/esm/clients/EvmWeb3Client.js.map +1 -1
- package/lib/esm/clients/EvmWeb3Client.mjs +21 -3
- package/lib/esm/clients/Web3Client.d.ts +2 -2
- package/lib/esm/clients/Web3ClientFactory.js.map +1 -1
- package/lib/esm/clients/Web3ClientFactory.mjs +1 -1
- package/lib/esm/config/ConfigDefaults.js.map +1 -1
- package/lib/esm/config/ConfigDefaults.mjs +14 -0
- package/lib/esm/erc4337/models/UserOperation.d.ts +1 -1
- package/lib/esm/gen/GeneratorFromAbi.d.ts +3 -1
- package/lib/esm/gen/GeneratorFromAbi.js.map +1 -1
- package/lib/esm/gen/GeneratorFromAbi.mjs +87 -68
- package/lib/esm/gen/GeneratorStorageReader.d.ts +1 -0
- package/lib/esm/gen/GeneratorStorageReader.js.map +1 -1
- package/lib/esm/gen/GeneratorStorageReader.mjs +13 -1
- package/lib/esm/hardhat/HardhatProvider.d.ts +24 -1
- package/lib/esm/hardhat/HardhatProvider.js.map +1 -1
- package/lib/esm/hardhat/HardhatProvider.mjs +27 -13
- package/lib/esm/ns/providers/EnsProvider.d.ts +2 -2
- package/lib/esm/safe/GnosisSafeFactory.js.map +1 -1
- package/lib/esm/safe/GnosisSafeService.js.map +1 -1
- package/lib/esm/safe/SafeTx.js.map +1 -1
- package/lib/esm/safe/transport/FileServiceTransport.js.map +1 -1
- package/lib/esm/safe/transport/InMemoryServiceTransport.js.map +1 -1
- package/lib/esm/services/TimelockService/TimelockService.d.ts +1 -1
- package/lib/esm/tokens/TokenExchanges/AmmV2ExchangeBase.d.ts +4 -4
- package/lib/esm/tokens/TokenExchanges/AmmV2ExchangeBase.js.map +1 -1
- package/lib/esm/tokens/TokenExchanges/OneInchExchange.js.map +1 -1
- package/lib/esm/tokens/TokenOracles/amm/AmmV1Oracle.js.map +1 -1
- package/lib/esm/tokens/TokenService.js.map +1 -1
- package/lib/esm/tokens/TokensService.d.ts +1 -1
- package/lib/esm/tokens/TokensService.js.map +1 -1
- package/lib/esm/tokens/TokensServiceBsc.d.ts +1 -1
- package/lib/esm/tokens/TokensServicePolygon.d.ts +1 -1
- package/lib/esm/tokens/TokensServiceXDai.d.ts +1 -1
- package/lib/esm/utils/$logger.js.map +1 -1
- package/lib/esm/utils/$logger.mjs +4 -0
- package/lib/esm/utils/$path.js.map +1 -1
- package/lib/esm/utils/$path.mjs +4 -2
- package/lib/esm/wallets/Wallet.js.map +1 -1
- package/package.json +4 -3
- package/src/chains/arbitrum/TokensServiceArbitrum.ts +1 -1
- package/src/clients/EvmWeb3Client.ts +23 -2
- package/src/clients/Web3Client.ts +2 -2
- package/src/clients/Web3ClientFactory.ts +1 -1
- package/src/config/ConfigDefaults.ts +14 -0
- package/src/erc4337/models/UserOperation.ts +1 -1
- package/src/gen/GeneratorFromAbi.ts +94 -68
- package/src/gen/GeneratorStorageReader.ts +16 -2
- package/src/gen/templates/ContractStorageReaderTemplate.d.ts.tmpl +7 -0
- package/src/gen/{ContractTemplate.d.ts.template → templates/ContractTemplate.d.ts.tmpl} +29 -30
- package/src/hardhat/HardhatProvider.ts +33 -22
- package/src/ns/providers/EnsProvider.ts +2 -2
- package/src/safe/GnosisSafeFactory.ts +2 -2
- package/src/safe/GnosisSafeService.ts +1 -1
- package/src/safe/SafeTx.ts +1 -1
- package/src/safe/transport/FileServiceTransport.ts +1 -1
- package/src/safe/transport/InMemoryServiceTransport.ts +1 -1
- package/src/services/TimelockService/TimelockService.ts +1 -1
- package/src/services/TimelockService/TimelockServiceFallbackSafe.ts +1 -1
- package/src/tokens/TokenExchanges/AmmV2ExchangeBase.ts +4 -4
- package/src/tokens/TokenExchanges/OneInchExchange.ts +1 -1
- package/src/tokens/TokenOracles/amm/AmmV1Oracle.ts +1 -1
- package/src/tokens/TokenService.ts +1 -1
- package/src/tokens/TokensService.ts +1 -1
- package/src/tokens/TokensServiceBsc.ts +1 -1
- package/src/tokens/TokensServicePolygon.ts +1 -1
- package/src/tokens/TokensServiceXDai.ts +1 -1
- package/src/utils/$logger.ts +4 -0
- package/src/utils/$path.ts +4 -2
- package/src/wallets/Wallet.ts +1 -1
- package/tsconfig.json +1 -0
- package/lib/cjs/gen/ContractStorageReaderTemplate.js +0 -13
- package/lib/cjs/gen/ContractStorageReaderTemplate.js.map +0 -1
- package/lib/cjs/gen/ContractTemplate.js +0 -56
- package/lib/cjs/gen/ContractTemplate.js.map +0 -1
- package/lib/esm/gen/ContractStorageReaderTemplate.js.map +0 -1
- package/lib/esm/gen/ContractStorageReaderTemplate.mjs +0 -13
- package/lib/esm/gen/ContractTemplate.js.map +0 -1
- package/lib/esm/gen/ContractTemplate.mjs +0 -49
- package/src/gen/ContractStorageReaderTemplate.d.ts.template +0 -14
- /package/src/gen/{ContractStorageReaderTemplate.js → templates/ContractStorageReaderTemplate.js.tmpl} +0 -0
- /package/src/gen/{ContractStorageReaderTemplate.ts → templates/ContractStorageReaderTemplate.ts.tmpl} +0 -0
- /package/src/gen/{ContractTemplate.js → templates/ContractTemplate.js.tmpl} +0 -0
- /package/src/gen/{ContractTemplate.ts → templates/ContractTemplate.ts.tmpl} +0 -0
|
@@ -12,10 +12,10 @@ import { TokensServiceBsc } from '../TokensServiceBsc';
|
|
|
12
12
|
import { $address } from '@dequanto/utils/$address';
|
|
13
13
|
import { $require } from '@dequanto/utils/$require';
|
|
14
14
|
import { $cache } from '@dequanto/utils/$cache';
|
|
15
|
-
import { AmmFactoryV2Contract } from '@dequanto
|
|
16
|
-
import { AmmMasterChefV2Contract } from '@dequanto
|
|
17
|
-
import { AmmVaultV2Contract } from '@dequanto
|
|
18
|
-
import { AmmPairV2Contract } from '@dequanto
|
|
15
|
+
import { AmmFactoryV2Contract } from '@dequanto/prebuilt/amm/AmmFactoryV2Contract/AmmFactoryV2Contract';
|
|
16
|
+
import { AmmMasterChefV2Contract } from '@dequanto/prebuilt/amm/AmmMasterChefV2Contract/AmmMasterChefV2Contract';
|
|
17
|
+
import { AmmVaultV2Contract } from '@dequanto/prebuilt/amm/AmmVaultV2Contract/AmmVaultV2Contract';
|
|
18
|
+
import { AmmPairV2Contract } from '@dequanto/prebuilt/amm/AmmPairV2Contract/AmmPairV2Contract';
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
interface ILPPair extends IToken {
|
|
@@ -11,7 +11,7 @@ import { TxWriter } from '@dequanto/txs/TxWriter';
|
|
|
11
11
|
import { TxDataBuilder } from '@dequanto/txs/TxDataBuilder';
|
|
12
12
|
import { Web3Client } from '@dequanto/clients/Web3Client';
|
|
13
13
|
import { IBlockChainExplorer } from '@dequanto/explorer/IBlockChainExplorer';
|
|
14
|
-
import { ERC20 } from '@dequanto
|
|
14
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
15
15
|
import { $http } from '@dequanto/utils/$http';
|
|
16
16
|
|
|
17
17
|
const PLATFORMS = {
|
|
@@ -17,7 +17,7 @@ import { TAddress } from '@dequanto/models/TAddress';
|
|
|
17
17
|
import { IBlockChainExplorer } from '@dequanto/explorer/IBlockChainExplorer';
|
|
18
18
|
import { ContractReader } from '@dequanto/contracts/ContractReader';
|
|
19
19
|
import { $config } from '@dequanto/utils/$config';
|
|
20
|
-
import { ERC20 } from '@dequanto
|
|
20
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
21
21
|
import { TokensService } from '@dequanto/tokens/TokensService';
|
|
22
22
|
import { $bigint } from '@dequanto/utils/$bigint';
|
|
23
23
|
import { $block } from '@dequanto/utils/$block';
|
|
@@ -8,7 +8,7 @@ import { $bigint } from '@dequanto/utils/$bigint';
|
|
|
8
8
|
import { TokensServiceFactory } from './TokensServiceFactory';
|
|
9
9
|
import { $require } from '@dequanto/utils/$require';
|
|
10
10
|
import { TokensService } from './TokensService';
|
|
11
|
-
import { WETH } from '@dequanto
|
|
11
|
+
import { WETH } from '@dequanto/prebuilt/weth/WETH/WETH';
|
|
12
12
|
import { BlockDateResolver } from '@dequanto/blocks/BlockDateResolver';
|
|
13
13
|
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ import { ITokenProvider } from './TokenProviders/ITokenProvider';
|
|
|
8
8
|
import { Web3ClientFactory } from '@dequanto/clients/Web3ClientFactory';
|
|
9
9
|
import { BlockChainExplorerProvider } from '@dequanto/explorer/BlockChainExplorerProvider';
|
|
10
10
|
import { TokenDataProvider } from './TokenDataProvider';
|
|
11
|
-
import { ERC20 } from '@dequanto
|
|
11
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
export class TokensService {
|
|
@@ -2,7 +2,7 @@ import di from 'a-di';
|
|
|
2
2
|
import { TokensService } from './TokensService';
|
|
3
3
|
import { Bscscan } from '@dequanto/explorer/Bscscan';
|
|
4
4
|
import { TAddress } from '@dequanto/models/TAddress';
|
|
5
|
-
import { ERC20 } from '@dequanto
|
|
5
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
6
6
|
|
|
7
7
|
export class TokensServiceBsc extends TokensService {
|
|
8
8
|
constructor () {
|
|
@@ -2,7 +2,7 @@ import di from 'a-di';
|
|
|
2
2
|
import { TokensService } from './TokensService';
|
|
3
3
|
import { TAddress } from '@dequanto/models/TAddress';
|
|
4
4
|
import { Polyscan } from '@dequanto/explorer/Polyscan';
|
|
5
|
-
import { ERC20 } from '@dequanto
|
|
5
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
6
6
|
|
|
7
7
|
export class TokensServicePolygon extends TokensService {
|
|
8
8
|
constructor () {
|
|
@@ -4,7 +4,7 @@ import { TAddress } from '@dequanto/models/TAddress';
|
|
|
4
4
|
import { XDaiscan } from '@dequanto/chains/xdai/XDaiscan';
|
|
5
5
|
import { IToken } from '@dequanto/models/IToken';
|
|
6
6
|
import { ITokenProvider } from './TokenProviders/ITokenProvider';
|
|
7
|
-
import { ERC20 } from '@dequanto
|
|
7
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
8
8
|
|
|
9
9
|
export class TokensServiceXDai extends TokensService {
|
|
10
10
|
constructor () {
|
package/src/utils/$logger.ts
CHANGED
package/src/utils/$path.ts
CHANGED
|
@@ -57,9 +57,11 @@ export namespace $path {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function getRelativePath (path: string, base: string) {
|
|
60
|
-
let
|
|
60
|
+
let path_ = normalize(path).replace('file://', '');
|
|
61
|
+
let base_ = normalize(base).replace('file://', '');
|
|
62
|
+
let i = path_.toLowerCase().indexOf(base_.toLowerCase());
|
|
61
63
|
if (i > -1) {
|
|
62
|
-
return
|
|
64
|
+
return path_.substring(i + base_.length);
|
|
63
65
|
}
|
|
64
66
|
return path;
|
|
65
67
|
}
|
package/src/wallets/Wallet.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Web3Client } from '@dequanto/clients/Web3Client';
|
|
|
4
4
|
import { TAddress } from '@dequanto/models/TAddress';
|
|
5
5
|
import { TokensService } from '@dequanto/tokens/TokensService';
|
|
6
6
|
import { TPlatform } from '@dequanto/models/TPlatform';
|
|
7
|
-
import { ERC20 } from '@dequanto
|
|
7
|
+
import { ERC20 } from '@dequanto/prebuilt/openzeppelin/ERC20';
|
|
8
8
|
|
|
9
9
|
export class Wallet {
|
|
10
10
|
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
class $NAME$ extends ContractStorageReaderBase {
|
|
2
|
-
constructor(address, client, explorer) {
|
|
3
|
-
super(address, client, explorer);
|
|
4
|
-
this.address = address;
|
|
5
|
-
this.client = client;
|
|
6
|
-
this.explorer = explorer;
|
|
7
|
-
/* METHODS */
|
|
8
|
-
this.$slots = $SLOTS$;
|
|
9
|
-
this.$createHandler(this.$slots);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ContractStorageReaderTemplate.js.map
|
|
13
|
-
//# sourceMappingURL=ContractStorageReaderTemplate.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContractStorageReaderTemplate.js","sourceRoot":"","sources":["../../../src/gen/ContractStorageReaderTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,MAAO,SAAQ,yBAAyB;IAC1C,YACW,OAAiB,EACjB,MAAkB,EAClB,QAA6B;QAEpC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAJ1B,YAAO,GAAP,OAAO,CAAU;QACjB,WAAM,GAAN,MAAM,CAAY;QAClB,aAAQ,GAAR,QAAQ,CAAqB;QAO5C,aAAa;QAET,WAAM,GAAG,OAAO,CAAA;QALZ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CAMJ"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.$NAME$ = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* AUTO-Generated Class: $DATE$
|
|
9
|
-
* Implementation: $EXPLORER_URL$
|
|
10
|
-
*/
|
|
11
|
-
const a_di_1 = __importDefault(require("a-di"));
|
|
12
|
-
const ContractBase_1 = require("../contracts/ContractBase.js");
|
|
13
|
-
/* IMPORTS */
|
|
14
|
-
/* ERRORS */
|
|
15
|
-
class $NAME$ extends ContractBase_1.ContractBase {
|
|
16
|
-
constructor(address = $ADDRESS$, client = a_di_1.default.resolve($EthWeb3Client$, $Web3ClientOptions$), explorer = a_di_1.default.resolve($Etherscan$, $EvmScanOptions$)) {
|
|
17
|
-
super(address, client, explorer);
|
|
18
|
-
this.address = address;
|
|
19
|
-
this.client = client;
|
|
20
|
-
this.explorer = explorer;
|
|
21
|
-
/* EVENTS */
|
|
22
|
-
/* EVENTS_EXTRACTORS */
|
|
23
|
-
/* EVENTS_FETCHERS */
|
|
24
|
-
this.abi = $ABI$;
|
|
25
|
-
/* STORAGE_READER_INITIALIZER */
|
|
26
|
-
}
|
|
27
|
-
/* META_PROPERTY */
|
|
28
|
-
/* METHODS */
|
|
29
|
-
$call() {
|
|
30
|
-
return super.$call();
|
|
31
|
-
}
|
|
32
|
-
$signed() {
|
|
33
|
-
return super.$signed();
|
|
34
|
-
}
|
|
35
|
-
$data() {
|
|
36
|
-
return super.$data();
|
|
37
|
-
}
|
|
38
|
-
$gas() {
|
|
39
|
-
return super.$gas();
|
|
40
|
-
}
|
|
41
|
-
onTransaction(method, options) {
|
|
42
|
-
options ??= {};
|
|
43
|
-
options.filter ??= {};
|
|
44
|
-
options.filter.method = method;
|
|
45
|
-
return this.$onTransaction(options);
|
|
46
|
-
}
|
|
47
|
-
onLog(event, cb) {
|
|
48
|
-
return this.$onLog(event, cb);
|
|
49
|
-
}
|
|
50
|
-
async getPastLogs(mix, options) {
|
|
51
|
-
return await super.getPastLogs(mix, options);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.$NAME$ = $NAME$;
|
|
55
|
-
//# sourceMappingURL=ContractTemplate.js.map
|
|
56
|
-
//# sourceMappingURL=ContractTemplate.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContractTemplate.js","sourceRoot":"","sources":["../../../src/gen/ContractTemplate.ts"],"names":[],"mappings":";;;;;;AAAA;;;GAGG;AACH,gDAAsB;AAKtB,mEAAgE;AAgBhE,aAAa;AAEb,YAAY;AAEZ,MAAa,MAAO,SAAQ,2BAAY;IACpC,YACW,UAAwB,SAAS,EACjC,SAAqB,cAAE,CAAC,OAAO,CAAC,eAAe,EAAE,mBAAmB,CAAC,EACrE,WAAgC,cAAE,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC;QAEhF,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;QAJzB,YAAO,GAAP,OAAO,CAA0B;QACjC,WAAM,GAAN,MAAM,CAA+D;QACrE,aAAQ,GAAR,QAAQ,CAAiE;QAwDxF,YAAY;QAEZ,uBAAuB;QAEvB,qBAAqB;QAEjB,QAAG,GAAe,KAAK,CAAA;QA1DnB,gCAAgC;IACpC,CAAC;IAIL,mBAAmB;IAEnB,aAAa;IAET,KAAK;QACD,OAAO,KAAK,CAAC,KAAK,EAAqB,CAAC;IAC5C,CAAC;IACD,OAAO;QACH,OAAO,KAAK,CAAC,OAAO,EAAS,CAAC;IAClC,CAAC;IACD,KAAK;QACD,OAAO,KAAK,CAAC,KAAK,EAAmB,CAAC;IAC1C,CAAC;IACD,IAAI;QACA,OAAO,KAAK,CAAC,IAAI,EAAS,CAAC;IAC/B,CAAC;IAED,aAAa,CAAkD,MAAe,EAAE,OAAsD;QAQlI,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,KAAK,EAAE,CAAC;QACtB,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QAC/B,OAAa,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAE,KAAoB,EAAE,EAA6C;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IAUD,KAAK,CAAC,WAAW,CAAE,GAAQ,EAAE,OAAQ;QACjC,OAAO,MAAM,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAQ,CAAC;IACxD,CAAC;CAWJ;AArED,wBAqEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContractStorageReaderTemplate.js","sourceRoot":"","sources":["../../../src/gen/ContractStorageReaderTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,MAAO,SAAQ,yBAAyB;IAC1C,YACW,OAAiB,EACjB,MAAkB,EAClB,QAA6B;QAEpC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAJ1B,YAAO,GAAP,OAAO,CAAU;QACjB,WAAM,GAAN,MAAM,CAAY;QAClB,aAAQ,GAAR,QAAQ,CAAqB;QAO5C,aAAa;QAET,WAAM,GAAG,OAAO,CAAA;QALZ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CAMJ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
class $NAME$ extends ContractStorageReaderBase {
|
|
2
|
-
constructor(address, client, explorer) {
|
|
3
|
-
super(address, client, explorer);
|
|
4
|
-
this.address = address;
|
|
5
|
-
this.client = client;
|
|
6
|
-
this.explorer = explorer;
|
|
7
|
-
/* METHODS */
|
|
8
|
-
this.$slots = $SLOTS$;
|
|
9
|
-
this.$createHandler(this.$slots);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ContractStorageReaderTemplate.js.map
|
|
13
|
-
//# sourceMappingURL=ContractStorageReaderTemplate.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContractTemplate.js","sourceRoot":"","sources":["../../../src/gen/ContractTemplate.ts"],"names":[],"mappings":";;;;;;AAAA;;;GAGG;AACH,gDAAsB;AAKtB,mEAAgE;AAgBhE,aAAa;AAEb,YAAY;AAEZ,MAAa,MAAO,SAAQ,2BAAY;IACpC,YACW,UAAwB,SAAS,EACjC,SAAqB,cAAE,CAAC,OAAO,CAAC,eAAe,EAAE,mBAAmB,CAAC,EACrE,WAAgC,cAAE,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC;QAEhF,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;QAJzB,YAAO,GAAP,OAAO,CAA0B;QACjC,WAAM,GAAN,MAAM,CAA+D;QACrE,aAAQ,GAAR,QAAQ,CAAiE;QAwDxF,YAAY;QAEZ,uBAAuB;QAEvB,qBAAqB;QAEjB,QAAG,GAAe,KAAK,CAAA;QA1DnB,gCAAgC;IACpC,CAAC;IAIL,mBAAmB;IAEnB,aAAa;IAET,KAAK;QACD,OAAO,KAAK,CAAC,KAAK,EAAqB,CAAC;IAC5C,CAAC;IACD,OAAO;QACH,OAAO,KAAK,CAAC,OAAO,EAAS,CAAC;IAClC,CAAC;IACD,KAAK;QACD,OAAO,KAAK,CAAC,KAAK,EAAmB,CAAC;IAC1C,CAAC;IACD,IAAI;QACA,OAAO,KAAK,CAAC,IAAI,EAAS,CAAC;IAC/B,CAAC;IAED,aAAa,CAAkD,MAAe,EAAE,OAAsD;QAQlI,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,KAAK,EAAE,CAAC;QACtB,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QAC/B,OAAa,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAE,KAAoB,EAAE,EAA6C;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IAUD,KAAK,CAAC,WAAW,CAAE,GAAQ,EAAE,OAAQ;QACjC,OAAO,MAAM,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAQ,CAAC;IACxD,CAAC;CAWJ;AArED,wBAqEC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-Generated Class: $DATE$
|
|
3
|
-
* Implementation: $EXPLORER_URL$
|
|
4
|
-
*/
|
|
5
|
-
import di from 'a-di';
|
|
6
|
-
import { ContractBase } from '../contracts/ContractBase.mjs';
|
|
7
|
-
/* IMPORTS */
|
|
8
|
-
/* ERRORS */
|
|
9
|
-
export class $NAME$ extends ContractBase {
|
|
10
|
-
constructor(address = $ADDRESS$, client = di.resolve($EthWeb3Client$, $Web3ClientOptions$), explorer = di.resolve($Etherscan$, $EvmScanOptions$)) {
|
|
11
|
-
super(address, client, explorer);
|
|
12
|
-
this.address = address;
|
|
13
|
-
this.client = client;
|
|
14
|
-
this.explorer = explorer;
|
|
15
|
-
/* EVENTS */
|
|
16
|
-
/* EVENTS_EXTRACTORS */
|
|
17
|
-
/* EVENTS_FETCHERS */
|
|
18
|
-
this.abi = $ABI$;
|
|
19
|
-
/* STORAGE_READER_INITIALIZER */
|
|
20
|
-
}
|
|
21
|
-
/* META_PROPERTY */
|
|
22
|
-
/* METHODS */
|
|
23
|
-
$call() {
|
|
24
|
-
return super.$call();
|
|
25
|
-
}
|
|
26
|
-
$signed() {
|
|
27
|
-
return super.$signed();
|
|
28
|
-
}
|
|
29
|
-
$data() {
|
|
30
|
-
return super.$data();
|
|
31
|
-
}
|
|
32
|
-
$gas() {
|
|
33
|
-
return super.$gas();
|
|
34
|
-
}
|
|
35
|
-
onTransaction(method, options) {
|
|
36
|
-
options ??= {};
|
|
37
|
-
options.filter ??= {};
|
|
38
|
-
options.filter.method = method;
|
|
39
|
-
return this.$onTransaction(options);
|
|
40
|
-
}
|
|
41
|
-
onLog(event, cb) {
|
|
42
|
-
return this.$onLog(event, cb);
|
|
43
|
-
}
|
|
44
|
-
async getPastLogs(mix, options) {
|
|
45
|
-
return await super.getPastLogs(mix, options);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=ContractTemplate.js.map
|
|
49
|
-
//# sourceMappingURL=ContractTemplate.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|