You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case your protocol follows factory pattern or is based on AMM model pass in log configs to pull holder addresses from smart contract events.
143
+
In case your protocol follows factory pattern or is based on AMM model add log configs to pull holder addresses from smart contract events.
143
144
By default we use ```(poolLog) => `0x${poolLog[2].slice(26)}`; ``` this code snippet as log ```transform``` function. Pass a different custom function if you need.
145
+
146
+
147
+
## Testing
148
+
149
+
While writing your project adapter, you'll need to run the code to check for errors, check for output etc. Some testing commands are provided for this purpose.
150
+
151
+
```
152
+
npm run validate-metadata -- --project=loopring
153
+
```
154
+
155
+
run `validate-metadata` command to check if you have project `Metadata` setup correctly.
156
+
157
+
output:
158
+
```
159
+
Checking Loopring project adapter metadata
160
+
✓ has a valid name
161
+
✓ has a valid start time
162
+
✓ category matches one of the defined categories
163
+
has valid tokenHolderMap configurations
164
+
✓ tokenHolderMap is an array
165
+
✓ tokenHolderMap has valid token configurations
166
+
✓ tokenHolderMap has valid holder/vault/pool configurations
0 commit comments