Skip to content

Commit

Permalink
Remove adjustments of stats
Browse files Browse the repository at this point in the history
SnapshotMap does not play nicely with adjustments, so this will need a separate data structure in another release.
  • Loading branch information
ismellike committed Sep 16, 2024
1 parent 56f3e49 commit cec6fe7
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 299 deletions.
89 changes: 16 additions & 73 deletions contracts/arena-league-module/schema/arena-league-module.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,34 +416,6 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"remove_stats"
],
"properties": {
"remove_stats": {
"type": "object",
"required": [
"competition_id",
"stats"
],
"properties": {
"competition_id": {
"$ref": "#/definitions/Uint128"
},
"stats": {
"type": "array",
"items": {
"$ref": "#/definitions/MemberStatsRemoveMsg"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -1006,25 +978,6 @@
},
"additionalProperties": false
},
"MemberStatsRemoveMsg": {
"type": "object",
"required": [
"addr",
"stats"
],
"properties": {
"addr": {
"type": "string"
},
"stats": {
"type": "array",
"items": {
"$ref": "#/definitions/StatsRemoveMsg"
}
}
},
"additionalProperties": false
},
"MigrateMsg": {
"oneOf": [
{
Expand Down Expand Up @@ -1086,13 +1039,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -1219,24 +1174,6 @@
"uint"
]
},
"StatsRemoveMsg": {
"type": "object",
"required": [
"height",
"name"
],
"properties": {
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
"allOf": [
Expand Down Expand Up @@ -2762,13 +2699,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -3040,13 +2979,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -3254,13 +3195,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,34 +416,6 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"remove_stats"
],
"properties": {
"remove_stats": {
"type": "object",
"required": [
"competition_id",
"stats"
],
"properties": {
"competition_id": {
"$ref": "#/definitions/Uint128"
},
"stats": {
"type": "array",
"items": {
"$ref": "#/definitions/MemberStatsRemoveMsg"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -934,25 +906,6 @@
},
"additionalProperties": false
},
"MemberStatsRemoveMsg": {
"type": "object",
"required": [
"addr",
"stats"
],
"properties": {
"addr": {
"type": "string"
},
"stats": {
"type": "array",
"items": {
"$ref": "#/definitions/StatsRemoveMsg"
}
}
},
"additionalProperties": false
},
"MigrateMsg": {
"oneOf": [
{
Expand Down Expand Up @@ -998,13 +951,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -1131,24 +1086,6 @@
"uint"
]
},
"StatsRemoveMsg": {
"type": "object",
"required": [
"height",
"name"
],
"properties": {
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
"allOf": [
Expand Down Expand Up @@ -2655,13 +2592,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -2933,13 +2872,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down Expand Up @@ -3147,13 +3088,15 @@
{
"type": "object",
"required": [
"height",
"name",
"value"
],
"properties": {
"height": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
Expand Down
Loading

0 comments on commit cec6fe7

Please sign in to comment.