diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-11 02:01:38 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-11 02:01:38 +0800 |
commit | b88ff0a19ff7695086107cbcffe980dc4ad84e10 (patch) | |
tree | f47cd93205d0e6c695edf1d984ed53f38df6525c /contracts/examples/src | |
parent | a365ab11d24ff8365b7d69a948b1b5211b772f5e (diff) | |
download | dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar.gz dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar.bz2 dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar.lz dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar.xz dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.tar.zst dexon-sol-tools-b88ff0a19ff7695086107cbcffe980dc4ad84e10.zip |
Refactor out examples
Diffstat (limited to 'contracts/examples/src')
-rw-r--r-- | contracts/examples/src/artifacts/index.ts | 13 | ||||
-rw-r--r-- | contracts/examples/src/index.ts | 2 | ||||
-rw-r--r-- | contracts/examples/src/wrappers/index.ts | 4 |
3 files changed, 19 insertions, 0 deletions
diff --git a/contracts/examples/src/artifacts/index.ts b/contracts/examples/src/artifacts/index.ts new file mode 100644 index 000000000..c921fbf89 --- /dev/null +++ b/contracts/examples/src/artifacts/index.ts @@ -0,0 +1,13 @@ +import { ContractArtifact } from 'ethereum-types'; + +import * as ExchangeWrapper from '../../generated-artifacts/ExchangeWrapper.json'; +import * as Validator from '../../generated-artifacts/Validator.json'; +import * as Wallet from '../../generated-artifacts/Wallet.json'; +import * as Whitelist from '../../generated-artifacts/Whitelist.json'; + +export const artifacts = { + ExchangeWrapper: ExchangeWrapper as ContractArtifact, + Validator: Validator as ContractArtifact, + Wallet: Wallet as ContractArtifact, + Whitelist: Whitelist as ContractArtifact, +}; diff --git a/contracts/examples/src/index.ts b/contracts/examples/src/index.ts new file mode 100644 index 000000000..d55f08ea2 --- /dev/null +++ b/contracts/examples/src/index.ts @@ -0,0 +1,2 @@ +export * from './artifacts'; +export * from './wrappers'; diff --git a/contracts/examples/src/wrappers/index.ts b/contracts/examples/src/wrappers/index.ts new file mode 100644 index 000000000..dc67277d7 --- /dev/null +++ b/contracts/examples/src/wrappers/index.ts @@ -0,0 +1,4 @@ +export * from '../../generated-wrappers/exchange_wrapper'; +export * from '../../generated-wrappers/validator'; +export * from '../../generated-wrappers/wallet'; +export * from '../../generated-wrappers/whitelist'; |