(self, lighterSigner, chainId, privateKey, apiKeyIndex, accountIndex)
| 2281 | return lighterSigner |
| 2282 | |
| 2283 | def lighter_create_client(self, lighterSigner, chainId, privateKey, apiKeyIndex, accountIndex): |
| 2284 | url = self.implode_hostname(self.urls['api']['public']) |
| 2285 | res = lighterSigner.CreateClient( |
| 2286 | url.encode("utf-8"), |
| 2287 | privateKey.encode("utf-8"), |
| 2288 | chainId, |
| 2289 | apiKeyIndex, |
| 2290 | accountIndex, |
| 2291 | ) |
| 2292 | if res is not None and str(res).find('error'): |
| 2293 | raise Exception('lighter_create_client(): Failed to create lighter client: ' + str(res)) |
| 2294 | return lighterSigner |
| 2295 | |
| 2296 | def lighter_sign_create_grouped_orders(self, signer, request): |
| 2297 | orders = request['orders'] |
no test coverage detected