Skip to content

Commit

Permalink
Merge pull request #6 from AdrenaFoundation/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
Adrena-Corto authored Nov 29, 2024
2 parents 63f9106 + a8e4994 commit 234be0d
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 99 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ edition = "2021"

[dependencies]
# anchor-lang = "0.30.1"
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "fe4fcded34a68934a6017a85d43a307cdb86d803" } #"f677742a978ffdf7bc321746b4119394f6654b7c" }
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "04536725c2ea16329e84bcfe3200afd47eeeb464" } #"fe4fcded34a68934a6017a85d43a307cdb86d803" } #"f677742a978ffdf7bc321746b4119394f6654b7c" }
# anchor-client = "0.30.1"
anchor-client = { git = "https://github.com/coral-xyz/anchor.git", rev = "fe4fcded34a68934a6017a85d43a307cdb86d803" } #"f677742a978ffdf7bc321746b4119394f6654b7c" }
spl-token-2022 = "4.0.0"
anchor-client = { git = "https://github.com/coral-xyz/anchor.git", rev = "04536725c2ea16329e84bcfe3200afd47eeeb464" } #"fe4fcded34a68934a6017a85d43a307cdb86d803" } #"f677742a978ffdf7bc321746b4119394f6654b7c" }
spl-token-2022 = "6.0.0"
bytemuck = "1.19.0"
anyhow = "1.0.91"
solana-program = "~2.0.10"
solana-program = "2.0.18"
num-traits = "0.2.19"
log = "0.4.22"
borsh = "1.5.1"
137 changes: 103 additions & 34 deletions idl/adrena.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.1",
"version": "1.1.4",
"name": "adrena",
"instructions": [
{
Expand Down Expand Up @@ -1367,171 +1367,179 @@
"name": "swap",
"accounts": [
{
"name": "owner",
"name": "caller",
"isMut": false,
"isSigner": true,
"docs": [
"#1"
]
},
{
"name": "owner",
"isMut": false,
"isSigner": true,
"docs": [
"#2"
]
},
{
"name": "fundingAccount",
"isMut": true,
"isSigner": false,
"docs": [
"#2"
"#3"
]
},
{
"name": "receivingAccount",
"isMut": true,
"isSigner": false,
"docs": [
"#3"
"#4"
]
},
{
"name": "transferAuthority",
"isMut": false,
"isSigner": false,
"docs": [
"#4"
"#5"
]
},
{
"name": "cortex",
"isMut": true,
"isSigner": false,
"docs": [
"#5"
"#6"
]
},
{
"name": "lmStaking",
"isMut": true,
"isSigner": false,
"docs": [
"#6"
"#7"
]
},
{
"name": "lpStaking",
"isMut": true,
"isSigner": false,
"docs": [
"#7"
"#8"
]
},
{
"name": "pool",
"isMut": true,
"isSigner": false,
"docs": [
"#8"
"#9"
]
},
{
"name": "stakingRewardTokenCustody",
"isMut": true,
"isSigner": false,
"docs": [
"#9"
"#10"
]
},
{
"name": "stakingRewardTokenCustodyOracle",
"isMut": false,
"isSigner": false,
"docs": [
"#10"
"#11"
]
},
{
"name": "stakingRewardTokenCustodyTokenAccount",
"isMut": true,
"isSigner": false,
"docs": [
"#11"
"#12"
]
},
{
"name": "receivingCustody",
"isMut": true,
"isSigner": false,
"docs": [
"#12"
"#13"
]
},
{
"name": "receivingCustodyOracle",
"isMut": false,
"isSigner": false,
"docs": [
"#13"
"#14"
]
},
{
"name": "receivingCustodyTokenAccount",
"isMut": true,
"isSigner": false,
"docs": [
"#14"
"#15"
]
},
{
"name": "dispensingCustody",
"isMut": true,
"isSigner": false,
"docs": [
"#15"
"#16"
]
},
{
"name": "dispensingCustodyOracle",
"isMut": false,
"isSigner": false,
"docs": [
"#16"
"#17"
]
},
{
"name": "dispensingCustodyTokenAccount",
"isMut": true,
"isSigner": false,
"docs": [
"#17"
"#18"
]
},
{
"name": "lmStakingRewardTokenVault",
"isMut": true,
"isSigner": false,
"docs": [
"#18"
"#19"
]
},
{
"name": "lpStakingRewardTokenVault",
"isMut": true,
"isSigner": false,
"docs": [
"#19"
"#20"
]
},
{
"name": "lpTokenMint",
"isMut": true,
"isSigner": false,
"docs": [
"#20"
"#21"
]
},
{
"name": "protocolFeeRecipient",
"isMut": true,
"isSigner": false,
"docs": [
"#21"
"#22"
]
},
{
Expand All @@ -1540,23 +1548,23 @@
"isSigner": false,
"isOptional": true,
"docs": [
"#22"
"#23"
]
},
{
"name": "tokenProgram",
"isMut": false,
"isSigner": false,
"docs": [
"#23"
"#24"
]
},
{
"name": "adrenaProgram",
"isMut": false,
"isSigner": false,
"docs": [
"#24"
"#25"
]
}
],
Expand Down Expand Up @@ -8481,6 +8489,44 @@
}
],
"args": []
},
{
"name": "setPoolWhitelistedSwapper",
"accounts": [
{
"name": "admin",
"isMut": false,
"isSigner": true,
"docs": [
"#1"
]
},
{
"name": "cortex",
"isMut": false,
"isSigner": false,
"docs": [
"#2"
]
},
{
"name": "pool",
"isMut": true,
"isSigner": false,
"docs": [
"#3"
]
},
{
"name": "whitelistedSwapper",
"isMut": false,
"isSigner": false,
"docs": [
"#4"
]
}
],
"args": []
}
],
"accounts": [
Expand Down Expand Up @@ -8867,18 +8913,40 @@
"type": {
"array": [
"publicKey",
10
8
]
}
},
{
"name": "padding1",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "whitelistedSwapper",
"type": "publicKey"
},
{
"name": "ratios",
"type": {
"array": [
{
"defined": "TokenRatios"
},
10
8
]
}
},
{
"name": "padding2",
"type": {
"array": [
"u8",
16
]
}
},
Expand Down Expand Up @@ -9434,7 +9502,7 @@
{
"defined": "TokenRatios"
},
10
8
]
}
}
Expand All @@ -9453,7 +9521,7 @@
{
"defined": "TokenRatios"
},
10
8
]
}
}
Expand Down Expand Up @@ -9526,7 +9594,7 @@
{
"defined": "TokenRatios"
},
10
8
]
}
}
Expand Down Expand Up @@ -10327,6 +10395,10 @@
{
"name": "cumulativeBorrowFeeUsd",
"type": "u64"
},
{
"name": "cumulativeTradingVolumeUsd",
"type": "u64"
}
]
}
Expand Down Expand Up @@ -12152,8 +12224,5 @@
"name": "PositionAlreadyClosed",
"msg": "The position is already pending cleanup and close"
}
],
"metadata": {
"address": "13gDzEXCdocbj8iAiqrScGo47NiSuYENGsRqi3SEAwet"
}
]
}
Loading

0 comments on commit 234be0d

Please sign in to comment.