()
| 166 | } |
| 167 | |
| 168 | async getGatewayAppId(): Promise<string> { |
| 169 | const result = await this.client.readContract({ |
| 170 | address: this.kmsContractAddr, |
| 171 | abi: DSTACK_KMS_ABI, |
| 172 | functionName: 'gatewayAppId' |
| 173 | }); |
| 174 | return result as string; |
| 175 | } |
| 176 | |
| 177 | async getChainId(): Promise<number> { |
| 178 | const chainId = await this.client.getChainId(); |