Commit Graph

213 Commits

Author SHA1 Message Date
Armani Ferrante db193d8248
lang: Cpi AccountInfos (#824) 2021-10-03 12:57:14 -07:00
Armani Ferrante b1ef7431ec
lang, spl: Program and Signer types (#705) 2021-09-11 14:43:12 -07:00
Armani Ferrante 526de235d1
lang: `#[account(owner)]` uses pubkey instead of account target (#691) 2021-09-09 14:32:11 -07:00
Armani Ferrante 3958533750
Static owner and program ID checks (#686) 2021-09-07 13:06:15 -07:00
Armani Ferrante 5d8b4765f2
Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
Armani Ferrante 2cc82bc11a
docs: Update tutorials for new init constraint (#670) 2021-09-02 16:29:25 -07:00
Armani Ferrante f4f60d7fab
lang: Move program check to try_from (#660) 2021-09-01 14:53:39 -07:00
Armani Ferrante b6720be3ce
examples: Bump solana-program to 1.7.11 (#654) 2021-08-31 17:27:59 -07:00
Kirill Fomichev 697f585b5b
Update solana to 1.7.11 (#653) 2021-08-31 14:52:41 -07:00
Armani Ferrante 6085eda9df
lang: Sends lamports to payer on init (#648) 2021-08-31 14:43:04 -07:00
Armani Ferrante 75c20856e4
lang: Consistent init constraints (#641) 2021-08-29 14:25:38 -07:00
Armani Ferrante 2604a442fd
lang: Add zero attribute (#513) 2021-08-25 10:27:27 -07:00
skrrb 142728d271
examples: Use @solana/spl-token in ido-pool test (#636) 2021-08-25 06:04:33 -07:00
xjcaa 7e7e866bb2
ts: Fix event listener and add multiple event test (#631) 2021-08-23 11:56:23 -07:00
vicyyn 541dbfbe37
examples: Tictactoe (#609) 2021-08-18 23:50:50 -07:00
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -07:00
Armani Ferrante 941e439429
examples: Fix token init (#610) 2021-08-15 00:20:00 -07:00
Henry-E fef207dc83
lang, examples: Add mint initialization constraints (#562) 2021-08-14 18:18:28 -07:00
Kirill Fomichev ceb80b0a04
lang: Dynamically fetch rent sysvar for when using `init` (#588) 2021-08-08 13:20:26 -07:00
Armani Ferrante 3248481288
cli: Anchor registry publishing (#570) 2021-08-08 02:11:48 -07:00
Zorro 098c2a0048
travis, examples: Add permissioned markets (#584) 2021-08-06 15:09:18 -07:00
Haik Dulgarian 9ed18dc888
examples: Fix typos (#564) 2021-08-06 12:52:54 -07:00
Zorro b7188b9b3e
examples: Fix small typo (#583) 2021-08-06 12:37:46 -07:00
Kirill Fomichev f9184d6b73
deps: Unpin zeroize (#580) 2021-08-05 11:04:57 -07:00
Armani Ferrante 1bea1bcbfc
Prune ix and solana version pinning (#569) 2021-08-03 12:50:43 -07:00
Kirill Fomichev 690c41315d
cli: Allow custom test commands (#550) 2021-07-29 14:38:24 -07:00
Kirill Fomichev b8dae74836
cli: Add keys include/exclude in programs section (#546) 2021-07-25 17:25:40 -07:00
Armani Ferrante 0998422348
spl: Add prune ix to dex middleware (#543) 2021-07-21 22:01:13 -07:00
Kirill Fomichev 5d0ae3a9f8
lang: Mutate instead returning new one in `CpiAccount::reload` (#527) 2021-07-19 12:16:58 -07:00
Armani Ferrante 615764b9c8
examples, spl: Permissioned markets via proxy middleware (#519) 2021-07-18 11:39:56 -07:00
suscd f34d0730db
lang/syn: Parse entire crate for IDL (#517) 2021-07-16 14:36:32 -07:00
Armani Ferrante 5018e98a9c
examples: Permissioned markets (#483) 2021-07-09 18:42:05 -07:00
Standaa dac6b17866
ts: Fix event listener not firing when creating associated accounts (#397) 2021-07-09 11:46:22 -07:00
Maximilian Schneider 53295e1e0b
examples: Rewrite constraints for new anchor version (#475) 2021-07-04 15:19:07 -07:00
Kirill Fomichev 2d974604ae
lang: Remove belongs_to in favor of has_one (#459) 2021-07-03 11:58:23 -07:00
Armani Ferrante 915e6dd398
lang, ts: Fallback functions (#457) 2021-07-02 17:33:48 -07:00
Armani Ferrante 6ad68ed368
lang, ts: Add deprecated state address feature flag (#446) 2021-07-02 16:53:22 -07:00
Armani Ferrante f067624add
Token PDAs and CLI scripts (#400) 2021-06-27 13:17:05 -07:00
Haik Dulgarian 24824ca9f5
examples: Import TOKEN_PROGRAM_ID from @solana/spl-token (#415) 2021-06-26 10:27:14 -07:00
Sarat Limawongpranee 5aaa4499f6
example: Fix typo in test (#416) 2021-06-24 15:02:18 -07:00
aac fcb7a3e17b
examples: Add escrow (#410) 2021-06-22 20:03:57 -07:00
Armani Ferrante a6ebaabac4
lang: Initialize program derived addresses with instruction data (#386) 2021-06-15 17:15:51 -07:00
NorbertBodziony 2b3a41408c
examples: Update pyth to v2 (#385) 2021-06-14 11:56:30 -07:00
Armani Ferrante 3321ed3daa
examples: Add misc test for remaining accounts with state (#343) 2021-06-11 09:31:59 -07:00
Armani Ferrante df51a27a48
lang, ts: Account close constraint (#371) 2021-06-09 15:40:43 -07:00
Armani Ferrante ba99c9c920
lang: Framework defined error codes (#354) 2021-06-09 13:02:50 -07:00
Haik Dulgarian 9224e0fa99
docs: Change pronouns from one to you (#355) 2021-06-01 11:53:33 -07:00
Armani Ferrante 6b5ed789fc
lang, spl, cli: Refactor to preserve span information (#341) 2021-05-30 12:59:33 -07:00
keemy 2f5a7d2cee
examples: Simplify tutorials/basic-3 test (#337) 2021-05-29 10:24:21 -07:00
Armani Ferrante 2f780e0d27
ts: Reorganize program namespaces into well typed elements (#322) 2021-05-25 20:04:05 -07:00
Armani Ferrante 21fc2d15f4
lang, ts: Consistent domain delimiters (#321) 2021-05-25 11:26:12 -07:00
Armani Ferrante 68c601ab22
lang: Add associated init constraint (#318) 2021-05-24 22:31:48 -07:00
Michael Huang dd64779273
spl: Implement token::set_authority (#307) 2021-05-24 17:07:20 -07:00
Blockchain Man 0d4a820231
examples: Spelling corrections (#315) 2021-05-24 10:48:22 -07:00
Armani Ferrante a9179600cd
cli: Add provider section to Anchor.toml (#305) 2021-05-23 10:00:24 -07:00
Armani Ferrante 8fa867fbd6
ts: Pubkeys as base58 strings (#304) 2021-05-23 09:58:15 -07:00
NorbertBodziony 37118e8c50
examples: Pyth oracle (#287) 2021-05-16 23:43:50 -07:00
Armani Ferrante a73c39bbef
ts: i8, i16, and i32 coding (#282) 2021-05-15 15:21:16 -07:00
John Rees ead60e2fc4
ts: Replace deprecated web3.Account with web3.Keypair (#274) 2021-05-15 14:43:25 -07:00
Armani Ferrante 9b446dbae1
ts: Add program simulate namespace (#266) 2021-05-08 21:31:55 -07:00
Armani Ferrante 851720eb0f
ts: Add support for u16 (#255) 2021-05-07 11:20:15 -07:00
Armani Ferrante d796cee091
client, lang: Add client support for state instructions (#248) 2021-05-06 14:48:22 -07:00
Armani Ferrante a1464d14d5
examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
Henry-E af735a49cf
examples/ido-pool: ensure IDO starts in the future (#225) 2021-04-27 16:24:34 -07:00
Maximilian Schneider 360a16657d
examples/ido-pool: Remove extraneous args (#222) 2021-04-24 02:03:08 -07:00
armaniferrante 2f2f29fea2
examples/ido-pool: Add zero supply check 2021-04-23 11:52:26 -07:00
armaniferrante c24c454523
examples: Add readme 2021-04-23 11:16:22 -07:00
Henry-E 31662b95e8
examples: IDO pool (#220) 2021-04-23 11:09:28 -07:00
Armani Ferrante 2bd84f23b5
examples: Basic-5 toml change and run in CI (#215) 2021-04-20 09:40:05 -07:00
armaniferrante 14edcb038d
docs, examples: Update cli version number and adjust ring size 2021-04-19 09:37:08 -07:00
Armani Ferrante ab509b6580
examples: Chat (#211) 2021-04-18 12:56:25 -07:00
Armani Ferrante a8aa84a3d1
lang: Zero copy state structs (#206) 2021-04-18 09:54:18 -07:00
Armani Ferrante b6afb30474
lang: Zero copy deserialization (#202) 2021-04-17 12:07:48 -07:00
Armani Ferrante 512604b85e
lang: Allow multiple with targets for associated accounts (#197) 2021-04-14 17:29:52 -07:00
armaniferrante d0a3f0faba
docs, examples: Associated tutorial 2021-04-13 22:45:57 -07:00
armaniferrante 318eb520d4
examples/misc: Mark associated account payer mut 2021-04-13 14:05:48 -07:00
Armani Ferrante b498b99f96
lang: Associated program account attributes (#186) 2021-04-13 11:47:54 -07:00
Armani Ferrante a94e24aea4
lang: Add owner constraint (#178) 2021-04-12 12:54:35 +08:00
Armani Ferrante c7c322a306
State struct cpi code generation (#43) 2021-04-11 17:23:43 -07:00
armaniferrante ce8263b858
examples/tutorial/basic-2: Remove typescript 2021-04-09 09:35:21 -07:00
Armani Ferrante 8289e47513
Update solana tooling to v1.6.3 (#139) 2021-04-04 00:55:56 -07:00
Armani Ferrante d6d41eee59
lang: Add executable account constraint (#140) 2021-04-03 15:13:12 -07:00
Standaa 7f2ef239ac
Feat/migrations typescript support (#132) 2021-03-30 23:14:15 -07:00
armaniferrante 6576e0d7ff
ts, examples: Fix web3.js usage 2021-03-30 20:19:05 -07:00
Armani Ferrante 429da0914c
examples: Use path dep for all examples (#122) 2021-03-25 12:13:09 -07:00
Armani Ferrante 3cbc227491
Events (#89) 2021-03-24 20:19:29 -07:00
Armani Ferrante b7cafcda0e
lang: Add state size override (#121) 2021-03-24 10:35:51 -07:00
Austin Abell 1d19a0a774
Fix token proxy tests and change values to make functionality more clear (#108) 2021-03-12 09:11:03 -08:00
Armani Ferrante 09fa8b5ee0
examples/multisig: Remove delete_transaction 2021-03-07 19:51:06 +08:00
Armani Ferrante 066104382b
examples/multisig: Changes for upgradeable programs (#98) 2021-03-07 19:25:53 +08:00
Armani Ferrante c6552e8ded
examples/lockup: Match beneficiary on unstaking 2021-03-05 14:19:40 +08:00
Armani Ferrante 012e258705
examples/lockup/docs: Spelling, grammar, and generalized 2021-03-04 19:41:00 +08:00
Armani Ferrante 8c985ecba0
cli: Require test files to end in .spec.ts 2021-03-01 17:56:52 +08:00
Armani Ferrante 425d2e868b
examples/tutorial/basic-2: Remove unnecessary package.json 2021-03-01 17:45:34 +08:00
NorbertBodziony 7b69e0ba23
add TS support for tests (#94) 2021-03-01 17:25:59 +08:00
Armani Ferrante 0d7425be65
examples/lockup: Add some docs 2021-03-01 14:50:34 +08:00
Armani Ferrante bfd527f760
examples/misc: Use tilde in wallet path 2021-02-23 01:46:28 +08:00
Armani Ferrante b3803aec03
cli: Specify programs to embed into local validator genesis via Anchor.toml 2021-02-23 01:41:40 +08:00
Armani Ferrante bf8d765e26
examples/lockup: Add set_lockup_program instruction 2021-02-13 17:15:55 +08:00
Armani Ferrante f1d2404450
examples: Cashiers check 2021-02-13 00:53:45 +08:00