Install anchor-cli via yarn
This commit is contained in:
parent
f69fb29f16
commit
60d8005614
|
@ -1,2 +1,6 @@
|
||||||
|
[provider]
|
||||||
cluster = "localnet"
|
cluster = "localnet"
|
||||||
wallet = "~/.config/solana/id.json"
|
wallet = "~/.config/solana/id.json"
|
||||||
|
|
||||||
|
[scripts]
|
||||||
|
test = "mocha -t 1000000 tests/"
|
||||||
|
|
|
@ -765,7 +765,7 @@ pub struct DepositLocked<'info> {
|
||||||
// Program specific.
|
// Program specific.
|
||||||
registry: ProgramState<'info, Registry>,
|
registry: ProgramState<'info, Registry>,
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
#[account(belongs_to = registrar, has_one = beneficiary)]
|
#[account(has_one = registrar, has_one = beneficiary)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -781,7 +781,7 @@ pub struct Stake<'info> {
|
||||||
pool_mint: CpiAccount<'info, Mint>,
|
pool_mint: CpiAccount<'info, Mint>,
|
||||||
|
|
||||||
// Member.
|
// Member.
|
||||||
#[account(mut, has_one = beneficiary, belongs_to = registrar)]
|
#[account(mut, has_one = beneficiary, has_one = registrar)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -820,7 +820,7 @@ pub struct StartUnstake<'info> {
|
||||||
// Member.
|
// Member.
|
||||||
#[account(init)]
|
#[account(init)]
|
||||||
pending_withdrawal: ProgramAccount<'info, PendingWithdrawal>,
|
pending_withdrawal: ProgramAccount<'info, PendingWithdrawal>,
|
||||||
#[account(has_one = beneficiary, belongs_to = registrar)]
|
#[account(has_one = beneficiary, has_one = registrar)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -850,11 +850,11 @@ pub struct StartUnstake<'info> {
|
||||||
pub struct EndUnstake<'info> {
|
pub struct EndUnstake<'info> {
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
|
|
||||||
#[account(belongs_to = registrar, has_one = beneficiary)]
|
#[account(has_one = registrar, has_one = beneficiary)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
#[account(mut, belongs_to = registrar, belongs_to = member, "!pending_withdrawal.burned")]
|
#[account(mut, has_one = registrar, has_one = member, "!pending_withdrawal.burned")]
|
||||||
pending_withdrawal: ProgramAccount<'info, PendingWithdrawal>,
|
pending_withdrawal: ProgramAccount<'info, PendingWithdrawal>,
|
||||||
|
|
||||||
// If we had ordered maps implementing Accounts we could do a constraint like
|
// If we had ordered maps implementing Accounts we could do a constraint like
|
||||||
|
@ -885,7 +885,7 @@ pub struct Withdraw<'info> {
|
||||||
// Stake instance.
|
// Stake instance.
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
// Member.
|
// Member.
|
||||||
#[account(belongs_to = registrar, has_one = beneficiary)]
|
#[account(has_one = registrar, has_one = beneficiary)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -938,7 +938,7 @@ pub struct WithdrawLocked<'info> {
|
||||||
// Program specific.
|
// Program specific.
|
||||||
registry: ProgramState<'info, Registry>,
|
registry: ProgramState<'info, Registry>,
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
#[account(belongs_to = registrar, has_one = beneficiary)]
|
#[account(has_one = registrar, has_one = beneficiary)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -1010,7 +1010,7 @@ pub struct ClaimRewardCommon<'info> {
|
||||||
// Stake instance.
|
// Stake instance.
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
// Member.
|
// Member.
|
||||||
#[account(mut, belongs_to = registrar, has_one = beneficiary)]
|
#[account(mut, has_one = registrar, has_one = beneficiary)]
|
||||||
member: ProgramAccount<'info, Member>,
|
member: ProgramAccount<'info, Member>,
|
||||||
#[account(signer)]
|
#[account(signer)]
|
||||||
beneficiary: AccountInfo<'info>,
|
beneficiary: AccountInfo<'info>,
|
||||||
|
@ -1019,7 +1019,7 @@ pub struct ClaimRewardCommon<'info> {
|
||||||
#[account("BalanceSandbox::from(&balances_locked) == member.balances_locked")]
|
#[account("BalanceSandbox::from(&balances_locked) == member.balances_locked")]
|
||||||
balances_locked: BalanceSandboxAccounts<'info>,
|
balances_locked: BalanceSandboxAccounts<'info>,
|
||||||
// Vendor.
|
// Vendor.
|
||||||
#[account(belongs_to = registrar, has_one = vault)]
|
#[account(has_one = registrar, has_one = vault)]
|
||||||
vendor: ProgramAccount<'info, RewardVendor>,
|
vendor: ProgramAccount<'info, RewardVendor>,
|
||||||
#[account(mut)]
|
#[account(mut)]
|
||||||
vault: AccountInfo<'info>,
|
vault: AccountInfo<'info>,
|
||||||
|
@ -1042,7 +1042,7 @@ pub struct ExpireReward<'info> {
|
||||||
// Staking instance globals.
|
// Staking instance globals.
|
||||||
registrar: ProgramAccount<'info, Registrar>,
|
registrar: ProgramAccount<'info, Registrar>,
|
||||||
// Vendor.
|
// Vendor.
|
||||||
#[account(mut, belongs_to = registrar, has_one = vault, has_one = expiry_receiver)]
|
#[account(mut, has_one = registrar, has_one = vault, has_one = expiry_receiver)]
|
||||||
vendor: ProgramAccount<'info, RewardVendor>,
|
vendor: ProgramAccount<'info, RewardVendor>,
|
||||||
#[account(mut)]
|
#[account(mut)]
|
||||||
vault: CpiAccount<'info, TokenAccount>,
|
vault: CpiAccount<'info, TokenAccount>,
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"@project-serum/anchor-cli@^0.13.2":
|
||||||
|
version "0.13.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@project-serum/anchor-cli/-/anchor-cli-0.13.2.tgz#0dc0e4512a999b3908c3002379de37aa6c54887f"
|
||||||
|
integrity sha512-5wUkycPVyXTNZM7TleqF06owB1ALDecjBeMtHuBCDW5tGQQYVvU9SryjIgJmZjUChqgCQ38+kz+gi6IrJA+hjw==
|
Loading…
Reference in New Issue