Commit Graph

703 Commits

Author SHA1 Message Date
Paul 4d4cba5add
lang: add rent exempt check for init_if_needed when init is not needed (#1250) 2022-01-06 15:31:36 -05:00
Paul a830644203
lang: export accounts module, re-export its types in the prelude (#1208) 2022-01-06 15:26:43 -05:00
Paul bb20eee8f6
lang/docs: Context and CpiContext docs (#1247) 2022-01-06 10:05:11 -05:00
Paul e026e9e874
lang: fix missing ATA owner check (#1240) 2022-01-05 11:09:57 -05:00
Pierre 35c8200010
lang: Cleanup constraints as commanded (#1239) 2022-01-05 10:08:49 -05:00
Paul 5edaf7af84
lang, docs: improved constraints reference (#1210) 2022-01-03 14:16:52 -05:00
Dominic Lee 6f4fe1dd11
ts: add missing types for conditional exports (#1137) 2022-01-03 11:51:27 +01:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
Paul 4013ec9337
lang, docs: ErrorCode docs (#1204) 2021-12-30 20:46:49 -05:00
John Rees 69299fb723
ts: only read .json files when parsing IDLs (#1214) 2021-12-30 20:26:11 -05:00
Paul b6cbdb257e
tests: add tests for rent_exempt constraint (#1209) 2021-12-30 15:25:10 -05:00
Paul a7eccb6e82
lang: improved Account reference (#1207) 2021-12-29 10:18:34 -05:00
Paul 1749a7bd53
cli: Add `anchor expand` command (#1160) 2021-12-27 13:34:45 -05:00
Paul 22c2c30ef4
lang: use phantomdata in account type instead of '_account: T' (#1155) 2021-12-27 13:01:46 -05:00
Paul 3e475a26e2
lang: remove ProgramAccount and Loader from 'deriveAccounts' docs (#1167) 2021-12-27 10:38:20 -05:00
Paul 51366441d2
lang: implement AsRef<T> for Account<'a, T> (#1173) 2021-12-27 10:37:47 -05:00
Paul b5827c1b24
lang: add default impls for AccountSerialize and AccountDeserialize (#1156) 2021-12-27 10:36:29 -05:00
Tom Linton 51aeb08ae1
lang: Handle arrays with const as length (#968) 2021-12-22 23:13:46 -05:00
Armani Ferrante f4fe7d4440
tests: Bump compute units for zc test (#1187) 2021-12-22 22:24:08 -05:00
y2kappa fa3d190d42
lang: #[repr(C)] for zero_copy accounts (#1106) 2021-12-22 21:11:50 -05:00
Neco 9005dd7f14
doc: Update solana version (#1184) 2021-12-21 15:17:54 -05:00
Paul d43d965cfb
lang: fix constraint typo (#1166) 2021-12-21 22:13:51 +03:00
Paul 790fda9258
lang: add `set_inner` function to `Account<'a, T>` (#1177) 2021-12-20 15:16:26 -05:00
Drew Nutter 34c4e50917
client: use any Signer instead of only Keypair (#975) 2021-12-20 14:41:21 -05:00
Neco 483999e870
ts: remove deprecated commitment settings (#1128) 2021-12-20 10:51:02 +01:00
Paul d353ed133c
ts: ts-ignore crusade (#1174) 2021-12-19 19:16:49 -05:00
Lyn Nagara bb496e09aa
docs: fix typo in cli docs (commands.md)(#1165) 2021-12-19 18:16:38 +01:00
Paul af926876c5
ts: add optional commitment arg (#1171) 2021-12-19 11:28:39 -05:00
Paul 8aab5b4634
lang: fix clippy (#1164) 2021-12-18 18:25:04 -05:00
Henry-E ed85c9b3de
spl: Remove token program account infos (#1123) 2021-12-18 13:11:43 -05:00
man0s 561f7cdaa8
Change AccoutNotProgramOwned error to AccountOwnedByWrongProgram (#1154) 2021-12-17 13:34:43 +01:00
Tom Linton 713d43668b
examples, tests: Setup prettier (#1152) 2021-12-15 18:11:41 -05:00
Kirill Fomichev efd37219d2
ci: run clippy for nightly (#1150) 2021-12-15 18:03:44 -05:00
Paul a8280b786c
lang: move accounts into their own module (#1139) 2021-12-15 14:02:27 -05:00
utx0 c0a0ce2857
client: Added Debug derive macro (#1142) 2021-12-15 13:20:04 -05:00
Justin Starry a3c8d20352
lang: Reduce compute unit consumption of loader accounts (#1134) 2021-12-15 10:53:48 -05:00
0xCryptoSheik a7e80079da
fix: translateAddress should not rely on PublicKey constructor nam (#1138) 2021-12-15 02:20:26 +01:00
Paul 911620ee27
lang: programdata_address field for Program account (#1125) 2021-12-13 16:43:13 -05:00
Paul 96f79993dd
ci: update solana cli (#1133) 2021-12-13 11:23:36 -05:00
andrealincoln fcb07eb8c3
docs: Change "basic" to "basic_0" (#1119) 2021-12-09 13:47:13 -05:00
andrealincoln 43c119dbde
docs: Changing "0.0.0" --> "0.1.0" (#1118) 2021-12-08 21:47:16 -05:00
Armani Ferrante 4b40719c87
docker: Pin node version (#1117) 2021-12-08 18:11:40 -05:00
Armani Ferrante 3afd1a22e4
v0.19.0 (#1116) 2021-12-08 17:33:36 -05:00
Paul 423ddde30a
lang: Always execute constraints for init_if_needed (#1096) 2021-12-08 16:50:08 -05:00
Dominic Lee bef1bd8b80
ts: add getAccountInfo helper method to account namespace/client (#1084) 2021-12-08 15:05:52 +01:00
Chris Coudron 290d0353e3
docs: Update broken link to tutorial (#1112) 2021-12-07 19:03:55 -05:00
Christian Kamm 512bb95808
spl: Fix governance try_deserialize_unchecked to not check discriminator (#1105) 2021-12-07 15:24:21 -05:00
Jeduan Cornejo 0f8de4f6af
ts: Create a minified browser build (#1108) 2021-12-07 15:16:46 -05:00
Kevin Heavey 105bb203c0
lang: add missing #[serde(rename = "type")] to IdlConst (#1107) 2021-12-05 17:47:50 -05:00
Paul 3321a3f9c9
lang: Add ProgramData account (#1095) 2021-12-05 14:14:16 -05:00