File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ import {
79
79
FireFlyDeleteOptions ,
80
80
FireFlyTokenApprovalFilter ,
81
81
FireFlyTokenApprovalResponse ,
82
+ FireFlyDeployContractRequest ,
83
+ FireFlyDeployContractResponse ,
82
84
FireFlyWebSocketConnectCallback ,
83
85
} from './interfaces' ;
84
86
import { FireFlyWebSocket , FireFlyWebSocketCallback } from './websocket' ;
@@ -402,6 +404,13 @@ export default class FireFly extends HttpBase {
402
404
return this . getMany < FireFlyTokenBalanceResponse [ ] > ( '/tokens/balances' , filter , options ) ;
403
405
}
404
406
407
+ deployContract (
408
+ request : FireFlyDeployContractRequest ,
409
+ options ?: FireFlyCreateOptions ,
410
+ ) : Promise < FireFlyDeployContractResponse > {
411
+ return this . createOne < FireFlyDeployContractResponse > ( '/contracts/deploy' , request , options ) ;
412
+ }
413
+
405
414
generateContractInterface (
406
415
request : FireFlyContractGenerateRequest ,
407
416
options ?: FireFlyCreateOptions ,
Original file line number Diff line number Diff line change @@ -298,6 +298,8 @@ export type FireFlyContractAPIFilter = operations['getContractAPIs']['parameters
298
298
export type FireFlyContractListenerFilter =
299
299
operations [ 'getContractListeners' ] [ 'parameters' ] [ 'query' ] ;
300
300
301
+ export type FireFlyDeployContractRequest =
302
+ operations [ 'postContractDeploy' ] [ 'requestBody' ] [ 'content' ] [ 'application/json' ] ;
301
303
export type FireFlyContractGenerateRequest =
302
304
operations [ 'postGenerateContractInterface' ] [ 'requestBody' ] [ 'content' ] [ 'application/json' ] ;
303
305
export type FireFlyContractInterfaceRequest =
@@ -307,6 +309,9 @@ export type FireFlyContractAPIRequest =
307
309
export type FireFlyContractListenerRequest =
308
310
operations [ 'postNewContractListener' ] [ 'requestBody' ] [ 'content' ] [ 'application/json' ] ;
309
311
312
+ export type FireFlyDeployContractResponse = Required <
313
+ operations [ 'postContractDeploy' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
314
+ > ;
310
315
export type FireFlyContractInterfaceResponse = Required <
311
316
operations [ 'getContractInterface' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
312
317
> ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @hyperledger/firefly-sdk" ,
3
- "version" : " 1.2.13 " ,
3
+ "version" : " 1.2.14 " ,
4
4
"description" : " Client SDK for Hyperledger FireFly" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments