-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.ts
75 lines (73 loc) · 1.68 KB
/
codegen.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import codegen from '@cosmwasm/ts-codegen'
codegen({
contracts: [
{
name: 'StardexToken',
dir: '../../protocols/astroport-core/schemas/astroport-token',
},
{
name: 'StardexCoinRegistry',
dir: '../../protocols/astroport-core/schemas/astroport-native-coin-registry',
},
{
name: 'StardexFactory',
dir: '../../protocols/astroport-core/schemas/astroport-factory/',
},
{
name: 'StardexPair',
dir: '../../protocols/astroport-core/schemas/astroport-pair/',
},
{
name: 'StardexPairStable',
dir: '../../protocols/astroport-core/schemas/astroport-pair-stable/',
},
{
name: 'StardexPairConcentrated',
dir: '../../protocols/astroport-core/schemas/astroport-pair-concentrated/',
},
{
name: 'StardexRouter',
dir: '../../protocols/astroport-core/schemas/astroport-router/',
},
{
name: 'StardexStakeNative',
dir: '../../protocols/stardex-contracts/schema/stardex-stake-native',
},
{
name: 'StardexStakeRewards',
dir: '../../protocols/stardex-contracts/schema/stardex-stake-rewards',
},
],
outPath: './src/types',
options: {
bundle: {
bundleFile: 'index.ts',
scope: 'contracts',
},
types: {
enabled: true,
},
client: {
enabled: true,
},
reactQuery: {
enabled: true,
optionalClient: true,
version: 'v4',
mutations: true,
queryKeys: true,
queryFactory: true,
},
recoil: {
enabled: false,
},
messageComposer: {
enabled: false,
},
messageBuilder: {
enabled: false,
},
},
}).then(() => {
console.log('✨ all done!')
})