File tree 10 files changed +304
-147
lines changed
10 files changed +304
-147
lines changed Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
10
10
env :
11
- solana_version : v1.18.8
11
+ solana_version : v1.18.15
12
12
13
13
jobs :
14
14
install :
Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
10
10
env :
11
- solana_version : v1.18.8
11
+ solana_version : v1.18.15
12
12
13
13
jobs :
14
14
install :
Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
env :
9
- solana_version : v1.18.9
9
+ solana_version : v1.18.15
10
10
11
11
jobs :
12
12
install :
@@ -157,7 +157,7 @@ jobs:
157
157
- name : Generate lib
158
158
run : |
159
159
cd clients/bolt-sdk
160
- yarn build
160
+ yarn install && yarn build
161
161
cd ../..
162
162
163
163
- name : run tests
Original file line number Diff line number Diff line change 7
7
"private" : false ,
8
8
"dependencies" : {
9
9
"@metaplex-foundation/beet" : " ^0.7.1" ,
10
- "@metaplex-foundation/beet-solana" : " ^0.4.0"
10
+ "@metaplex-foundation/beet-solana" : " ^0.4.0" ,
11
+ "@magicblock-labs/delegation-program" : " 0.1.1"
11
12
},
12
13
"devDependencies" : {
13
14
"@metaplex-foundation/solita" : " ^0.20.1" ,
Original file line number Diff line number Diff line change 1
1
import { PublicKey } from "@solana/web3.js" ;
2
-
3
- const SEED_BUFFER_PDA = "buffer" ;
4
- const SEED_DELEGATION_PDA = "delegation" ;
5
- const DELEGATED_ACCOUNT_SEEDS = "account-seeds" ;
6
- const SEED_COMMIT_STATE_RECORD_PDA = "commit-state-record" ;
7
- const SEED_STATE_DIFF_PDA = "state-diff" ;
8
- export const DELEGATION_PROGRAM_ID =
9
- "DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh ";
2
+ import {
3
+ DELEGATED_ACCOUNT_SEEDS ,
4
+ DELEGATION_PROGRAM_ID ,
5
+ SEED_BUFFER_PDA ,
6
+ SEED_COMMIT_STATE_RECORD_PDA ,
7
+ SEED_DELEGATION_PDA ,
8
+ SEED_STATE_DIFF_PDA ,
9
+ } from "@magicblock-labs/delegation-program ";
10
10
11
11
export function getDelegationAccounts (
12
12
accountToDelegate : PublicKey ,
Original file line number Diff line number Diff line change 1
1
import * as beet from "@metaplex-foundation/beet" ;
2
2
import * as web3 from "@solana/web3.js" ;
3
- import { DELEGATION_PROGRAM_ID , getDelegationAccounts } from "./accounts" ;
3
+ import { getDelegationAccounts } from "./accounts" ;
4
+ import { DELEGATION_PROGRAM_ID } from "@magicblock-labs/delegation-program" ;
4
5
5
6
export interface DelegateInstructionArgs {
6
7
validUntil : beet . bignum ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ export * from "./generated/instructions";
6
6
export * from "./world/transactions" ;
7
7
export * from "./delegation/accounts" ;
8
8
export * from "./delegation/delegate" ;
9
- export * from "./delegation/undelegate" ;
9
+ export {
10
+ createCommitInstruction ,
11
+ createUndelegateInstruction ,
12
+ DELEGATION_PROGRAM_ID ,
13
+ } from "@magicblock-labs/delegation-program" ;
10
14
11
15
export const SYSVAR_INSTRUCTIONS_PUBKEY = new PublicKey (
12
16
"Sysvar1nstructions1111111111111111111111111"
You can’t perform that action at this time.
0 commit comments