Skip to content

Commit

Permalink
run script
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Mar 6, 2024
1 parent 90989a4 commit ce4d38a
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 8 deletions.
21 changes: 19 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ const docTemplate = `{
"type": "string"
},
"force_network": {
"type": "string"
"$ref": "#/definitions/types.NetWork"
},
"force_strategy_id": {
"type": "string"
},
"force_tokens": {
"force_token": {
"type": "string"
},
"user_operation": {
Expand All @@ -172,6 +172,7 @@ const docTemplate = `{
"model.UserOperationItem": {
"type": "object",
"required": [
"call_data",
"call_gas_limit",
"max_fee_per_gas",
"max_priority_fee_per_gas",
Expand All @@ -181,6 +182,9 @@ const docTemplate = `{
"verification_gas_list"
],
"properties": {
"call_data": {
"type": "string"
},
"call_gas_limit": {
"type": "string"
},
Expand Down Expand Up @@ -209,6 +213,19 @@ const docTemplate = `{
"type": "string"
}
}
},
"types.NetWork": {
"type": "string",
"enum": [
"ethereum",
"sepolia",
"arbitrum"
],
"x-enum-varnames": [
"Ethereum",
"Sepolia",
"Arbitrum"
]
}
},
"securityDefinitions": {
Expand Down
21 changes: 19 additions & 2 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@
"type": "string"
},
"force_network": {
"type": "string"
"$ref": "#/definitions/types.NetWork"
},
"force_strategy_id": {
"type": "string"
},
"force_tokens": {
"force_token": {
"type": "string"
},
"user_operation": {
Expand All @@ -161,6 +161,7 @@
"model.UserOperationItem": {
"type": "object",
"required": [
"call_data",
"call_gas_limit",
"max_fee_per_gas",
"max_priority_fee_per_gas",
Expand All @@ -170,6 +171,9 @@
"verification_gas_list"
],
"properties": {
"call_data": {
"type": "string"
},
"call_gas_limit": {
"type": "string"
},
Expand Down Expand Up @@ -198,6 +202,19 @@
"type": "string"
}
}
},
"types.NetWork": {
"type": "string",
"enum": [
"ethereum",
"sepolia",
"arbitrum"
],
"x-enum-varnames": [
"Ethereum",
"Sepolia",
"Arbitrum"
]
}
},
"securityDefinitions": {
Expand Down
17 changes: 15 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ definitions:
force_entrypoint_address:
type: string
force_network:
type: string
$ref: '#/definitions/types.NetWork'
force_strategy_id:
type: string
force_tokens:
force_token:
type: string
user_operation:
$ref: '#/definitions/model.UserOperationItem'
type: object
model.UserOperationItem:
properties:
call_data:
type: string
call_gas_limit:
type: string
init_code:
Expand All @@ -39,6 +41,7 @@ definitions:
verification_gas_list:
type: string
required:
- call_data
- call_gas_limit
- max_fee_per_gas
- max_priority_fee_per_gas
Expand All @@ -47,6 +50,16 @@ definitions:
- sender
- verification_gas_list
type: object
types.NetWork:
enum:
- ethereum
- sepolia
- arbitrum
type: string
x-enum-varnames:
- Ethereum
- Sepolia
- Arbitrum
info:
contact:
name: AAStar Support
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ go 1.22.0

require (
github.com/appleboy/gin-jwt/v2 v2.9.2
github.com/ethereum/go-ethereum v1.13.14
github.com/gin-contrib/cors v1.5.0
github.com/gin-gonic/gin v1.9.1
github.com/stretchr/testify v1.8.4
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.3
golang.org/x/time v0.3.0
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028
k8s.io/apimachinery v0.29.2
)

Expand All @@ -30,7 +32,6 @@ require (
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/ethereum/go-ethereum v1.13.14 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
Expand Down Expand Up @@ -71,7 +72,6 @@ require (
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.18.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading

0 comments on commit ce4d38a

Please sign in to comment.