Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Lacy committed Feb 4, 2025
1 parent 3349a6a commit fbd3b31
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
18 changes: 9 additions & 9 deletions contracts/btc-finality/schema/btc-finality.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"additionalProperties": false
},
{
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards",
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards. It's a Babylon address. If rewards are to be sent to a Consumer address, the staker's equivalent address in that chain will be computed and used.",
"type": "object",
"required": [
"withdraw_rewards"
Expand Down Expand Up @@ -915,7 +915,7 @@
"additionalProperties": false
},
{
"description": "`PendingRewards` returns the pending rewards for a user on a finality provider. The rewards are returned in the form of a Coin",
"description": "`PendingRewards` returns the pending rewards for a staker on a finality provider. The staker address must be its Babylon delegator address. The rewards are returned in the form of a Coin.",
"type": "object",
"required": [
"pending_rewards"
Expand All @@ -925,13 +925,13 @@
"type": "object",
"required": [
"fp_pubkey_hex",
"user"
"staker_addr"
],
"properties": {
"fp_pubkey_hex": {
"type": "string"
},
"user": {
"staker_addr": {
"type": "string"
}
},
Expand All @@ -941,7 +941,7 @@
"additionalProperties": false
},
{
"description": "`AllPendingRewards` returns the pending rewards for a user on all finality providers.",
"description": "`AllPendingRewards` returns the pending rewards for a staker on all finality providers. The staker address must be its Babylon delegator address.",
"type": "object",
"required": [
"all_pending_rewards"
Expand All @@ -950,7 +950,7 @@
"all_pending_rewards": {
"type": "object",
"required": [
"user"
"staker_addr"
],
"properties": {
"limit": {
Expand All @@ -961,6 +961,9 @@
"format": "uint32",
"minimum": 0.0
},
"staker_addr": {
"type": "string"
},
"start_after": {
"anyOf": [
{
Expand All @@ -970,9 +973,6 @@
"type": "null"
}
]
},
"user": {
"type": "string"
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion contracts/btc-finality/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"additionalProperties": false
},
{
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards",
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards. It's a Babylon address. If rewards are to be sent to a Consumer address, the staker's equivalent address in that chain will be computed and used.",
"type": "object",
"required": [
"withdraw_rewards"
Expand Down
16 changes: 8 additions & 8 deletions contracts/btc-finality/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"additionalProperties": false
},
{
"description": "`PendingRewards` returns the pending rewards for a user on a finality provider. The rewards are returned in the form of a Coin",
"description": "`PendingRewards` returns the pending rewards for a staker on a finality provider. The staker address must be its Babylon delegator address. The rewards are returned in the form of a Coin.",
"type": "object",
"required": [
"pending_rewards"
Expand All @@ -251,13 +251,13 @@
"type": "object",
"required": [
"fp_pubkey_hex",
"user"
"staker_addr"
],
"properties": {
"fp_pubkey_hex": {
"type": "string"
},
"user": {
"staker_addr": {
"type": "string"
}
},
Expand All @@ -267,7 +267,7 @@
"additionalProperties": false
},
{
"description": "`AllPendingRewards` returns the pending rewards for a user on all finality providers.",
"description": "`AllPendingRewards` returns the pending rewards for a staker on all finality providers. The staker address must be its Babylon delegator address.",
"type": "object",
"required": [
"all_pending_rewards"
Expand All @@ -276,7 +276,7 @@
"all_pending_rewards": {
"type": "object",
"required": [
"user"
"staker_addr"
],
"properties": {
"limit": {
Expand All @@ -287,6 +287,9 @@
"format": "uint32",
"minimum": 0.0
},
"staker_addr": {
"type": "string"
},
"start_after": {
"anyOf": [
{
Expand All @@ -296,9 +299,6 @@
"type": "null"
}
]
},
"user": {
"type": "string"
}
},
"additionalProperties": false
Expand Down
18 changes: 9 additions & 9 deletions contracts/btc-staking/schema/btc-staking.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"additionalProperties": false
},
{
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards",
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards. It's a Babylon address. If rewards are to be sent to a Consumer address, the staker's equivalent address in that chain will be computed and used.",
"type": "object",
"required": [
"withdraw_rewards"
Expand Down Expand Up @@ -915,7 +915,7 @@
"additionalProperties": false
},
{
"description": "`PendingRewards` returns the pending rewards for a user on a finality provider. The rewards are returned in the form of a Coin",
"description": "`PendingRewards` returns the pending rewards for a staker on a finality provider. The staker address must be its Babylon delegator address. The rewards are returned in the form of a Coin.",
"type": "object",
"required": [
"pending_rewards"
Expand All @@ -925,13 +925,13 @@
"type": "object",
"required": [
"fp_pubkey_hex",
"user"
"staker_addr"
],
"properties": {
"fp_pubkey_hex": {
"type": "string"
},
"user": {
"staker_addr": {
"type": "string"
}
},
Expand All @@ -941,7 +941,7 @@
"additionalProperties": false
},
{
"description": "`AllPendingRewards` returns the pending rewards for a user on all finality providers.",
"description": "`AllPendingRewards` returns the pending rewards for a staker on all finality providers. The staker address must be its Babylon delegator address.",
"type": "object",
"required": [
"all_pending_rewards"
Expand All @@ -950,7 +950,7 @@
"all_pending_rewards": {
"type": "object",
"required": [
"user"
"staker_addr"
],
"properties": {
"limit": {
Expand All @@ -961,6 +961,9 @@
"format": "uint32",
"minimum": 0.0
},
"staker_addr": {
"type": "string"
},
"start_after": {
"anyOf": [
{
Expand All @@ -970,9 +973,6 @@
"type": "null"
}
]
},
"user": {
"type": "string"
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion contracts/btc-staking/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"additionalProperties": false
},
{
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards",
"description": "`WithdrawRewards` is a message sent by anyone on behalf of the staker, to withdraw rewards from BTC staking via the given FP.\n\n`staker_addr` is both the address to claim and receive the rewards. It's a Babylon address. If rewards are to be sent to a Consumer address, the staker's equivalent address in that chain will be computed and used.",
"type": "object",
"required": [
"withdraw_rewards"
Expand Down
16 changes: 8 additions & 8 deletions contracts/btc-staking/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"additionalProperties": false
},
{
"description": "`PendingRewards` returns the pending rewards for a user on a finality provider. The rewards are returned in the form of a Coin",
"description": "`PendingRewards` returns the pending rewards for a staker on a finality provider. The staker address must be its Babylon delegator address. The rewards are returned in the form of a Coin.",
"type": "object",
"required": [
"pending_rewards"
Expand All @@ -251,13 +251,13 @@
"type": "object",
"required": [
"fp_pubkey_hex",
"user"
"staker_addr"
],
"properties": {
"fp_pubkey_hex": {
"type": "string"
},
"user": {
"staker_addr": {
"type": "string"
}
},
Expand All @@ -267,7 +267,7 @@
"additionalProperties": false
},
{
"description": "`AllPendingRewards` returns the pending rewards for a user on all finality providers.",
"description": "`AllPendingRewards` returns the pending rewards for a staker on all finality providers. The staker address must be its Babylon delegator address.",
"type": "object",
"required": [
"all_pending_rewards"
Expand All @@ -276,7 +276,7 @@
"all_pending_rewards": {
"type": "object",
"required": [
"user"
"staker_addr"
],
"properties": {
"limit": {
Expand All @@ -287,6 +287,9 @@
"format": "uint32",
"minimum": 0.0
},
"staker_addr": {
"type": "string"
},
"start_after": {
"anyOf": [
{
Expand All @@ -296,9 +299,6 @@
"type": "null"
}
]
},
"user": {
"type": "string"
}
},
"additionalProperties": false
Expand Down

0 comments on commit fbd3b31

Please sign in to comment.