Skip to content

Commit

Permalink
idl-update: program-hexboosting-0.1.0 (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Louis Thiery <[email protected]>
  • Loading branch information
github-actions[bot] and lthiery authored Aug 2, 2024
1 parent e88893f commit 7b52de6
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 25 deletions.
127 changes: 103 additions & 24 deletions idl/hexboosting.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.6",
"version": "0.1.0",
"name": "hexboosting",
"instructions": [
{
Expand Down Expand Up @@ -65,29 +65,7 @@
{
"name": "boostedHex",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "boosted_hex"
},
{
"kind": "account",
"type": "publicKey",
"account": "BoostConfigV0",
"path": "boost_config"
},
{
"kind": "arg",
"type": {
"defined": "BoostArgsV0"
},
"path": "args.location"
}
]
}
"isSigner": false
},
{
"name": "systemProgram",
Expand Down Expand Up @@ -225,6 +203,40 @@
}
]
},
{
"name": "startBoostV1",
"accounts": [
{
"name": "startAuthority",
"isMut": false,
"isSigner": true
},
{
"name": "boostConfig",
"isMut": false,
"isSigner": false,
"relations": [
"start_authority"
]
},
{
"name": "boostedHex",
"isMut": true,
"isSigner": false,
"relations": [
"boost_config"
]
}
],
"args": [
{
"name": "args",
"type": {
"defined": "StartBoostArgsV0"
}
}
]
},
{
"name": "closeBoostV0",
"accounts": [
Expand Down Expand Up @@ -391,6 +403,47 @@
}
]
}
},
{
"name": "BoostedHexV1",
"type": {
"kind": "struct",
"fields": [
{
"name": "deviceType",
"type": {
"defined": "DeviceTypeV0"
}
},
{
"name": "boostConfig",
"type": "publicKey"
},
{
"name": "version",
"type": "u32"
},
{
"name": "location",
"type": "u64"
},
{
"name": "startTs",
"type": "i64"
},
{
"name": "bumpSeed",
"type": "u8"
},
{
"name": "boostsByPeriod",
"docs": [
"Each entry represents the boost multiplier for a given period"
],
"type": "bytes"
}
]
}
}
],
"types": [
Expand All @@ -414,6 +467,12 @@
"defined": "BoostAmountV0"
}
}
},
{
"name": "deviceType",
"type": {
"defined": "DeviceTypeV0"
}
}
]
}
Expand Down Expand Up @@ -512,6 +571,26 @@
}
]
}
},
{
"name": "DeviceTypeV0",
"type": {
"kind": "enum",
"variants": [
{
"name": "CbrsIndoor"
},
{
"name": "CbrsOutdoor"
},
{
"name": "WifiIndoor"
},
{
"name": "WifiOutdoor"
}
]
}
}
],
"errors": [
Expand Down
2 changes: 1 addition & 1 deletion programs/hexboosting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hexboosting"
version = "0.0.6"
version = "0.1.0"
edition = "2021"
authors = ["Louis Thiery <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 7b52de6

Please sign in to comment.