Skip to content

Commit 87988e6

Browse files
authored
Merge pull request #1103 from erkanercan/fix/filter-contract-listeners-name-query
fix: get contract listeners api query issue fixed, name added to the …
2 parents 112e1dc + 6722af2 commit 87988e6

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/swagger/swagger.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,11 @@ paths:
821821
name: location
822822
schema:
823823
type: string
824+
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
825+
in: query
826+
name: name
827+
schema:
828+
type: string
824829
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
825830
in: query
826831
name: signature
@@ -3643,6 +3648,11 @@ paths:
36433648
name: location
36443649
schema:
36453650
type: string
3651+
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
3652+
in: query
3653+
name: name
3654+
schema:
3655+
type: string
36463656
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
36473657
in: query
36483658
name: signature
@@ -10399,6 +10409,11 @@ paths:
1039910409
name: location
1040010410
schema:
1040110411
type: string
10412+
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
10413+
in: query
10414+
name: name
10415+
schema:
10416+
type: string
1040210417
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
1040310418
in: query
1040410419
name: signature
@@ -13453,6 +13468,11 @@ paths:
1345313468
name: location
1345413469
schema:
1345513470
type: string
13471+
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
13472+
in: query
13473+
name: name
13474+
schema:
13475+
type: string
1345613476
- description: 'Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^'
1345713477
in: query
1345813478
name: signature

pkg/database/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ var FFIEventQueryFactory = &queryFields{
954954
// ContractListenerQueryFactory filter fields for contract listeners
955955
var ContractListenerQueryFactory = &queryFields{
956956
"id": &UUIDField{},
957+
"name": &StringField{},
957958
"interface": &UUIDField{},
958959
"location": &JSONField{},
959960
"topic": &StringField{},

0 commit comments

Comments
 (0)