Compare commits

...

7 Commits

Author SHA1 Message Date
Matthew Callens fd78344ab5
add reallocs set (#29) 2022-07-05 13:34:45 -04:00
Armani Ferrante aa0d8adc94 Cargo.lock 2022-07-04 22:21:54 -04:00
Armani Ferrante 6e3396701e Revert "update try_accounts for realloc arg (#27)"
This reverts commit 449991acff.
2022-07-04 22:20:20 -04:00
Armani Ferrante 676ad1d583 bump deps 2022-07-04 22:19:40 -04:00
Matthew Callens 449991acff
update try_accounts for realloc arg (#27) 2022-06-18 17:04:25 -04:00
Paul b68b9a6fde
use new Provider interface and AnchorProvider implementor (#25) 2022-04-11 14:24:09 -04:00
Paul 9c41642dff
Change `to` to `from` field in tokenburn call (#26) 2022-04-11 12:24:15 -04:00
5 changed files with 600 additions and 324 deletions

914
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,6 @@ cpi = ["no-entrypoint"]
[dependencies]
anchor-lang = { path = "../../../../../../lang" }
anchor-spl = { path = "../../../../../../spl" }
solana-program = "1.7.1"
solana-program = "1.10.29"
#anchor-lang = "0.4.4"
#anchor-spl = "0.4.4"

View File

@ -18,4 +18,4 @@ anchor-spl = { path = "../../../../../../spl" }
#anchor-lang = "0.4.4"
#anchor-spl = "0.4.4"
lockup = { path = "../lockup", features = ["cpi"] }
solana-program = "1.7.1"
solana-program = "1.10.29"

View File

@ -239,7 +239,7 @@ mod registry {
ctx.accounts.token_program.clone(),
token::Burn {
mint: ctx.accounts.pool_mint.to_account_info(),
to: balances.spt.to_account_info(),
from: balances.spt.to_account_info(),
authority: ctx.accounts.member_signer.to_account_info(),
},
member_signer,
@ -535,12 +535,14 @@ mod registry {
let mut remaining_accounts: &[AccountInfo] = ctx.remaining_accounts;
let cpi_program = ctx.accounts.lockup_program.clone();
let mut bumps = std::collections::BTreeMap::new();
let mut reallocs = std::collections::BTreeSet::new();
let cpi_accounts = {
let accs = CreateVesting::try_accounts(
ctx.accounts.lockup_program.key,
&mut remaining_accounts,
&[],
&mut bumps,
&mut reallocs,
)?;
lockup::cpi::accounts::CreateVesting {
vesting: accs.vesting.to_account_info(),

View File

@ -6,7 +6,7 @@ const utils = require("./utils");
describe("Lockup and Registry", () => {
// Read the provider from the configured environmnet.
const provider = anchor.Provider.env();
const provider = anchor.AnchorProvider.env();
// Configure the client to use the provider.
anchor.setProvider(provider);