@towns-protocol/generated 0.0.382 → 0.0.384
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/dev/.contracts-hash +1 -1
- package/dev/abis/Channels.abi.json +10 -10
- package/dev/abis/Channels.abi.ts +10 -10
- package/dev/abis/EntitlementsManager.abi.json +10 -10
- package/dev/abis/EntitlementsManager.abi.ts +10 -10
- package/dev/abis/IAppFactory.abi.json +224 -0
- package/dev/abis/IAppFactory.abi.ts +224 -0
- package/dev/abis/IAppFactoryBase.abi.json +72 -0
- package/dev/abis/IAppFactoryBase.abi.ts +72 -0
- package/dev/abis/IAppRegistry.abi.json +10 -10
- package/dev/abis/IAppRegistry.abi.ts +10 -10
- package/dev/abis/IAppRegistryBase.abi.json +10 -10
- package/dev/abis/IAppRegistryBase.abi.ts +10 -10
- package/dev/abis/ISimpleApp.abi.json +203 -0
- package/dev/abis/ISimpleApp.abi.ts +203 -0
- package/dev/abis/ISimpleAppBase.abi.json +146 -0
- package/dev/abis/ISimpleAppBase.abi.ts +146 -0
- package/dev/abis/ITownsApp.abi.json +194 -0
- package/dev/abis/ITownsApp.abi.ts +194 -0
- package/dev/abis/MembershipFacet.abi.json +10 -10
- package/dev/abis/MembershipFacet.abi.ts +10 -10
- package/dev/abis/PrepayFacet.abi.json +10 -10
- package/dev/abis/PrepayFacet.abi.ts +10 -10
- package/dev/abis/Roles.abi.json +10 -10
- package/dev/abis/Roles.abi.ts +10 -10
- package/dev/typings/IAppFactory.ts +284 -1
- package/dev/typings/ISimpleApp.ts +344 -0
- package/dev/typings/ITownsApp.ts +371 -0
- package/dev/typings/factories/Channels__factory.ts +10 -10
- package/dev/typings/factories/EntitlementsManager__factory.ts +10 -10
- package/dev/typings/factories/IAppFactory__factory.ts +224 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +10 -10
- package/dev/typings/factories/ISimpleApp__factory.ts +224 -0
- package/dev/typings/factories/ITownsApp__factory.ts +215 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +10 -10
- package/dev/typings/factories/PrepayFacet__factory.ts +10 -10
- package/dev/typings/factories/Roles__factory.ts +10 -10
- package/dev/typings/factories/index.ts +2 -1
- package/dev/typings/index.ts +4 -2
- package/package.json +3 -3
- package/scripts/prepare.js +10 -2
- package/dev/abis/SimpleApp.abi.json +0 -563
- package/dev/abis/SimpleApp.abi.ts +0 -563
- package/dev/typings/SimpleApp.ts +0 -923
- package/dev/typings/factories/SimpleApp__factory.ts +0 -620
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { ITownsApp, ITownsAppInterface } from "../ITownsApp";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "accessDuration",
|
|
13
|
+
inputs: [],
|
|
14
|
+
outputs: [
|
|
15
|
+
{
|
|
16
|
+
name: "",
|
|
17
|
+
type: "uint48",
|
|
18
|
+
internalType: "uint48",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
stateMutability: "view",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "executionManifest",
|
|
26
|
+
inputs: [],
|
|
27
|
+
outputs: [
|
|
28
|
+
{
|
|
29
|
+
name: "",
|
|
30
|
+
type: "tuple",
|
|
31
|
+
internalType: "struct ExecutionManifest",
|
|
32
|
+
components: [
|
|
33
|
+
{
|
|
34
|
+
name: "executionFunctions",
|
|
35
|
+
type: "tuple[]",
|
|
36
|
+
internalType: "struct ManifestExecutionFunction[]",
|
|
37
|
+
components: [
|
|
38
|
+
{
|
|
39
|
+
name: "executionSelector",
|
|
40
|
+
type: "bytes4",
|
|
41
|
+
internalType: "bytes4",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "skipRuntimeValidation",
|
|
45
|
+
type: "bool",
|
|
46
|
+
internalType: "bool",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "allowGlobalValidation",
|
|
50
|
+
type: "bool",
|
|
51
|
+
internalType: "bool",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "executionHooks",
|
|
57
|
+
type: "tuple[]",
|
|
58
|
+
internalType: "struct ManifestExecutionHook[]",
|
|
59
|
+
components: [
|
|
60
|
+
{
|
|
61
|
+
name: "executionSelector",
|
|
62
|
+
type: "bytes4",
|
|
63
|
+
internalType: "bytes4",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "entityId",
|
|
67
|
+
type: "uint32",
|
|
68
|
+
internalType: "uint32",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "isPreHook",
|
|
72
|
+
type: "bool",
|
|
73
|
+
internalType: "bool",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "isPostHook",
|
|
77
|
+
type: "bool",
|
|
78
|
+
internalType: "bool",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "interfaceIds",
|
|
84
|
+
type: "bytes4[]",
|
|
85
|
+
internalType: "bytes4[]",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
stateMutability: "pure",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "function",
|
|
94
|
+
name: "initialize",
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
name: "data",
|
|
98
|
+
type: "bytes",
|
|
99
|
+
internalType: "bytes",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
outputs: [],
|
|
103
|
+
stateMutability: "nonpayable",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "function",
|
|
107
|
+
name: "installPrice",
|
|
108
|
+
inputs: [],
|
|
109
|
+
outputs: [
|
|
110
|
+
{
|
|
111
|
+
name: "",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
stateMutability: "view",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: "function",
|
|
120
|
+
name: "moduleId",
|
|
121
|
+
inputs: [],
|
|
122
|
+
outputs: [
|
|
123
|
+
{
|
|
124
|
+
name: "",
|
|
125
|
+
type: "string",
|
|
126
|
+
internalType: "string",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
stateMutability: "view",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
type: "function",
|
|
133
|
+
name: "moduleOwner",
|
|
134
|
+
inputs: [],
|
|
135
|
+
outputs: [
|
|
136
|
+
{
|
|
137
|
+
name: "",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
stateMutability: "view",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: "function",
|
|
146
|
+
name: "onInstall",
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
name: "data",
|
|
150
|
+
type: "bytes",
|
|
151
|
+
internalType: "bytes",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
outputs: [],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: "function",
|
|
159
|
+
name: "onUninstall",
|
|
160
|
+
inputs: [
|
|
161
|
+
{
|
|
162
|
+
name: "data",
|
|
163
|
+
type: "bytes",
|
|
164
|
+
internalType: "bytes",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
outputs: [],
|
|
168
|
+
stateMutability: "nonpayable",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
type: "function",
|
|
172
|
+
name: "requiredPermissions",
|
|
173
|
+
inputs: [],
|
|
174
|
+
outputs: [
|
|
175
|
+
{
|
|
176
|
+
name: "",
|
|
177
|
+
type: "bytes32[]",
|
|
178
|
+
internalType: "bytes32[]",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
stateMutability: "view",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: "function",
|
|
185
|
+
name: "supportsInterface",
|
|
186
|
+
inputs: [
|
|
187
|
+
{
|
|
188
|
+
name: "interfaceId",
|
|
189
|
+
type: "bytes4",
|
|
190
|
+
internalType: "bytes4",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
name: "",
|
|
196
|
+
type: "bool",
|
|
197
|
+
internalType: "bool",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
},
|
|
202
|
+
] as const;
|
|
203
|
+
|
|
204
|
+
export class ITownsApp__factory {
|
|
205
|
+
static readonly abi = _abi;
|
|
206
|
+
static createInterface(): ITownsAppInterface {
|
|
207
|
+
return new utils.Interface(_abi) as ITownsAppInterface;
|
|
208
|
+
}
|
|
209
|
+
static connect(
|
|
210
|
+
address: string,
|
|
211
|
+
signerOrProvider: Signer | Provider
|
|
212
|
+
): ITownsApp {
|
|
213
|
+
return new Contract(address, _abi, signerOrProvider) as ITownsApp;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -1721,6 +1721,16 @@ const _abi = [
|
|
|
1721
1721
|
name: "AppNotRegistered",
|
|
1722
1722
|
inputs: [],
|
|
1723
1723
|
},
|
|
1724
|
+
{
|
|
1725
|
+
type: "error",
|
|
1726
|
+
name: "AppRegistry__InvalidDuration",
|
|
1727
|
+
inputs: [],
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
type: "error",
|
|
1731
|
+
name: "AppRegistry__InvalidPrice",
|
|
1732
|
+
inputs: [],
|
|
1733
|
+
},
|
|
1724
1734
|
{
|
|
1725
1735
|
type: "error",
|
|
1726
1736
|
name: "AppRevoked",
|
|
@@ -1969,11 +1979,6 @@ const _abi = [
|
|
|
1969
1979
|
name: "InvalidDataLength",
|
|
1970
1980
|
inputs: [],
|
|
1971
1981
|
},
|
|
1972
|
-
{
|
|
1973
|
-
type: "error",
|
|
1974
|
-
name: "InvalidDuration",
|
|
1975
|
-
inputs: [],
|
|
1976
|
-
},
|
|
1977
1982
|
{
|
|
1978
1983
|
type: "error",
|
|
1979
1984
|
name: "InvalidExpiration",
|
|
@@ -1984,11 +1989,6 @@ const _abi = [
|
|
|
1984
1989
|
name: "InvalidManifest",
|
|
1985
1990
|
inputs: [],
|
|
1986
1991
|
},
|
|
1987
|
-
{
|
|
1988
|
-
type: "error",
|
|
1989
|
-
name: "InvalidPrice",
|
|
1990
|
-
inputs: [],
|
|
1991
|
-
},
|
|
1992
1992
|
{
|
|
1993
1993
|
type: "error",
|
|
1994
1994
|
name: "Membership__AlreadyMember",
|
|
@@ -899,6 +899,16 @@ const _abi = [
|
|
|
899
899
|
name: "AppNotRegistered",
|
|
900
900
|
inputs: [],
|
|
901
901
|
},
|
|
902
|
+
{
|
|
903
|
+
type: "error",
|
|
904
|
+
name: "AppRegistry__InvalidDuration",
|
|
905
|
+
inputs: [],
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
type: "error",
|
|
909
|
+
name: "AppRegistry__InvalidPrice",
|
|
910
|
+
inputs: [],
|
|
911
|
+
},
|
|
902
912
|
{
|
|
903
913
|
type: "error",
|
|
904
914
|
name: "AppRevoked",
|
|
@@ -1050,11 +1060,6 @@ const _abi = [
|
|
|
1050
1060
|
name: "InvalidDataLength",
|
|
1051
1061
|
inputs: [],
|
|
1052
1062
|
},
|
|
1053
|
-
{
|
|
1054
|
-
type: "error",
|
|
1055
|
-
name: "InvalidDuration",
|
|
1056
|
-
inputs: [],
|
|
1057
|
-
},
|
|
1058
1063
|
{
|
|
1059
1064
|
type: "error",
|
|
1060
1065
|
name: "InvalidExpiration",
|
|
@@ -1065,11 +1070,6 @@ const _abi = [
|
|
|
1065
1070
|
name: "InvalidManifest",
|
|
1066
1071
|
inputs: [],
|
|
1067
1072
|
},
|
|
1068
|
-
{
|
|
1069
|
-
type: "error",
|
|
1070
|
-
name: "InvalidPrice",
|
|
1071
|
-
inputs: [],
|
|
1072
|
-
},
|
|
1073
1073
|
{
|
|
1074
1074
|
type: "error",
|
|
1075
1075
|
name: "ModuleInstallCallbackFailed",
|
|
@@ -1287,6 +1287,16 @@ const _abi = [
|
|
|
1287
1287
|
name: "AppNotRegistered",
|
|
1288
1288
|
inputs: [],
|
|
1289
1289
|
},
|
|
1290
|
+
{
|
|
1291
|
+
type: "error",
|
|
1292
|
+
name: "AppRegistry__InvalidDuration",
|
|
1293
|
+
inputs: [],
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
type: "error",
|
|
1297
|
+
name: "AppRegistry__InvalidPrice",
|
|
1298
|
+
inputs: [],
|
|
1299
|
+
},
|
|
1290
1300
|
{
|
|
1291
1301
|
type: "error",
|
|
1292
1302
|
name: "AppRevoked",
|
|
@@ -1433,11 +1443,6 @@ const _abi = [
|
|
|
1433
1443
|
name: "InvalidDataLength",
|
|
1434
1444
|
inputs: [],
|
|
1435
1445
|
},
|
|
1436
|
-
{
|
|
1437
|
-
type: "error",
|
|
1438
|
-
name: "InvalidDuration",
|
|
1439
|
-
inputs: [],
|
|
1440
|
-
},
|
|
1441
1446
|
{
|
|
1442
1447
|
type: "error",
|
|
1443
1448
|
name: "InvalidExpiration",
|
|
@@ -1448,11 +1453,6 @@ const _abi = [
|
|
|
1448
1453
|
name: "InvalidManifest",
|
|
1449
1454
|
inputs: [],
|
|
1450
1455
|
},
|
|
1451
|
-
{
|
|
1452
|
-
type: "error",
|
|
1453
|
-
name: "InvalidPrice",
|
|
1454
|
-
inputs: [],
|
|
1455
|
-
},
|
|
1456
1456
|
{
|
|
1457
1457
|
type: "error",
|
|
1458
1458
|
name: "ModuleInstallCallbackFailed",
|
|
@@ -38,11 +38,13 @@ export { IPricingModules__factory } from "./IPricingModules__factory";
|
|
|
38
38
|
export { IProxyManager__factory } from "./IProxyManager__factory";
|
|
39
39
|
export { IReview__factory } from "./IReview__factory";
|
|
40
40
|
export { IRoles__factory } from "./IRoles__factory";
|
|
41
|
+
export { ISimpleApp__factory } from "./ISimpleApp__factory";
|
|
41
42
|
export { ISpaceDelegation__factory } from "./ISpaceDelegation__factory";
|
|
42
43
|
export { IStreamRegistry__factory } from "./IStreamRegistry__factory";
|
|
43
44
|
export { ISwapFacet__factory } from "./ISwapFacet__factory";
|
|
44
45
|
export { ISwapRouter__factory } from "./ISwapRouter__factory";
|
|
45
46
|
export { ITipping__factory } from "./ITipping__factory";
|
|
47
|
+
export { ITownsApp__factory } from "./ITownsApp__factory";
|
|
46
48
|
export { ITownsPoints__factory } from "./ITownsPoints__factory";
|
|
47
49
|
export { ITreasury__factory } from "./ITreasury__factory";
|
|
48
50
|
export { IWalletLink__factory } from "./IWalletLink__factory";
|
|
@@ -59,7 +61,6 @@ export { PlatformRequirementsFacet__factory } from "./PlatformRequirementsFacet_
|
|
|
59
61
|
export { PrepayFacet__factory } from "./PrepayFacet__factory";
|
|
60
62
|
export { RewardsDistributionV2__factory } from "./RewardsDistributionV2__factory";
|
|
61
63
|
export { Roles__factory } from "./Roles__factory";
|
|
62
|
-
export { SimpleApp__factory } from "./SimpleApp__factory";
|
|
63
64
|
export { SpaceOwner__factory } from "./SpaceOwner__factory";
|
|
64
65
|
export { StreamRegistry__factory } from "./StreamRegistry__factory";
|
|
65
66
|
export { SubscriptionModuleFacet__factory } from "./SubscriptionModuleFacet__factory";
|
package/dev/typings/index.ts
CHANGED
|
@@ -42,11 +42,13 @@ export type { IPricingModules } from "./IPricingModules";
|
|
|
42
42
|
export type { IProxyManager } from "./IProxyManager";
|
|
43
43
|
export type { IReview } from "./IReview";
|
|
44
44
|
export type { IRoles } from "./IRoles";
|
|
45
|
+
export type { ISimpleApp } from "./ISimpleApp";
|
|
45
46
|
export type { ISpaceDelegation } from "./ISpaceDelegation";
|
|
46
47
|
export type { IStreamRegistry } from "./IStreamRegistry";
|
|
47
48
|
export type { ISwapFacet } from "./ISwapFacet";
|
|
48
49
|
export type { ISwapRouter } from "./ISwapRouter";
|
|
49
50
|
export type { ITipping } from "./ITipping";
|
|
51
|
+
export type { ITownsApp } from "./ITownsApp";
|
|
50
52
|
export type { ITownsPoints } from "./ITownsPoints";
|
|
51
53
|
export type { ITreasury } from "./ITreasury";
|
|
52
54
|
export type { IWalletLink } from "./IWalletLink";
|
|
@@ -63,7 +65,6 @@ export type { PlatformRequirementsFacet } from "./PlatformRequirementsFacet";
|
|
|
63
65
|
export type { PrepayFacet } from "./PrepayFacet";
|
|
64
66
|
export type { RewardsDistributionV2 } from "./RewardsDistributionV2";
|
|
65
67
|
export type { Roles } from "./Roles";
|
|
66
|
-
export type { SimpleApp } from "./SimpleApp";
|
|
67
68
|
export type { SpaceOwner } from "./SpaceOwner";
|
|
68
69
|
export type { StreamRegistry } from "./StreamRegistry";
|
|
69
70
|
export type { SubscriptionModuleFacet } from "./SubscriptionModuleFacet";
|
|
@@ -111,11 +112,13 @@ export type { IRuleEntitlement } from "./IRuleEntitlement.sol/IRuleEntitlement";
|
|
|
111
112
|
export { IRuleEntitlement__factory } from "./factories/IRuleEntitlement.sol/IRuleEntitlement__factory";
|
|
112
113
|
export type { IRuleEntitlementV2 } from "./IRuleEntitlement.sol/IRuleEntitlementV2";
|
|
113
114
|
export { IRuleEntitlementV2__factory } from "./factories/IRuleEntitlement.sol/IRuleEntitlementV2__factory";
|
|
115
|
+
export { ISimpleApp__factory } from "./factories/ISimpleApp__factory";
|
|
114
116
|
export { ISpaceDelegation__factory } from "./factories/ISpaceDelegation__factory";
|
|
115
117
|
export { IStreamRegistry__factory } from "./factories/IStreamRegistry__factory";
|
|
116
118
|
export { ISwapFacet__factory } from "./factories/ISwapFacet__factory";
|
|
117
119
|
export { ISwapRouter__factory } from "./factories/ISwapRouter__factory";
|
|
118
120
|
export { ITipping__factory } from "./factories/ITipping__factory";
|
|
121
|
+
export { ITownsApp__factory } from "./factories/ITownsApp__factory";
|
|
119
122
|
export { ITownsPoints__factory } from "./factories/ITownsPoints__factory";
|
|
120
123
|
export { ITreasury__factory } from "./factories/ITreasury__factory";
|
|
121
124
|
export { IWalletLink__factory } from "./factories/IWalletLink__factory";
|
|
@@ -134,7 +137,6 @@ export { PlatformRequirementsFacet__factory } from "./factories/PlatformRequirem
|
|
|
134
137
|
export { PrepayFacet__factory } from "./factories/PrepayFacet__factory";
|
|
135
138
|
export { RewardsDistributionV2__factory } from "./factories/RewardsDistributionV2__factory";
|
|
136
139
|
export { Roles__factory } from "./factories/Roles__factory";
|
|
137
|
-
export { SimpleApp__factory } from "./factories/SimpleApp__factory";
|
|
138
140
|
export { SpaceOwner__factory } from "./factories/SpaceOwner__factory";
|
|
139
141
|
export { StreamRegistry__factory } from "./factories/StreamRegistry__factory";
|
|
140
142
|
export { SubscriptionModuleFacet__factory } from "./factories/SubscriptionModuleFacet__factory";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.384",
|
|
4
4
|
"packageManager": "yarn@3.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"ethers": "^5.8.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@towns-protocol/contracts": "^0.0.
|
|
16
|
+
"@towns-protocol/contracts": "^0.0.384"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"config/**/*",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "69dd4029799be44cc3d0cd26a29490556e23d920"
|
|
36
36
|
}
|
package/scripts/prepare.js
CHANGED
|
@@ -39,14 +39,22 @@ function generatedFilesExist() {
|
|
|
39
39
|
|
|
40
40
|
// Get git hash of contracts directory
|
|
41
41
|
function getContractsHash() {
|
|
42
|
-
if (!existsSync(
|
|
42
|
+
if (!existsSync(contractsDir)) return null;
|
|
43
43
|
|
|
44
44
|
try {
|
|
45
|
-
|
|
45
|
+
const srcHash = execSync('git rev-parse HEAD:./src', {
|
|
46
46
|
cwd: contractsDir,
|
|
47
47
|
encoding: 'utf8',
|
|
48
48
|
stdio: 'pipe'
|
|
49
49
|
}).trim();
|
|
50
|
+
|
|
51
|
+
const buildScriptHash = execSync('git rev-parse HEAD:./scripts/build-contract-types.sh', {
|
|
52
|
+
cwd: contractsDir,
|
|
53
|
+
encoding: 'utf8',
|
|
54
|
+
stdio: 'pipe'
|
|
55
|
+
}).trim();
|
|
56
|
+
|
|
57
|
+
return `${srcHash}:${buildScriptHash}`;
|
|
50
58
|
} catch (error) {
|
|
51
59
|
return null; // Not in git repo or other error
|
|
52
60
|
}
|