Skip to content

Commit

Permalink
feat: base widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabnock01 committed Aug 31, 2023
1 parent 11ec2a6 commit 80d23e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions knowledge_base/widgets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,36 @@
- amount
type: object
return_value_description: ''
- _name_: display_base_deposit
description: Used to bridge/deposit ETH or token from mainnet L1 to Base L2
parameters:
properties:
token:
description: token to deposit/bridge
type: string
amount:
description: amount to deposit
type: string
required:
- token
- amount
type: object
return_value_description: ''
- _name_: display_base_withdraw
description: Used to withdraw ETH from Base L2 to mainnet L1
parameters:
properties:
token:
description: token to withdraw
type: string
amount:
description: amount to withdraw
type: string
required:
- token
- amount
type: object
return_value_description: ''
- _name_: display_yield_protocol_lend
description: use the yield protocol to lend tokens at a fixed rate
parameters:
Expand Down
2 changes: 1 addition & 1 deletion utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
WIDGET_INFO_TOKEN_LIMIT = 4000

# Widget Index
WIDGET_INDEX_NAME = "WidgetV20"
WIDGET_INDEX_NAME = "WidgetV21"

def get_widget_index_name():
if env.is_local():
Expand Down

0 comments on commit 80d23e2

Please sign in to comment.