Commit Graph

61 Commits

Author SHA1 Message Date
Paul 17c9463592
Lang: feature flag for init_if_needed (#1258)
Co-authored-by: Armani Ferrante <armaniferrante@gmail.com>
2022-01-30 21:59:25 +01:00
Armani Ferrante 16a7dc5dc1
lang: store calculated bump seeds in context (#1367) 2022-01-27 16:55:13 -05:00
Armani Ferrante d8d720067d
lang, ts: automatic client side pda derivation (#1331) 2022-01-24 14:44:24 -05:00
Armani Ferrante e121e4e09d
ts: builder api (#1324) 2022-01-15 17:09:53 -05:00
Alan O'Donnell e04f144e12
lang: add seeds::program constraint for PDAs (#1197) 2022-01-11 10:51:22 -05:00
Armani Ferrante 84e0852584
ts: `Coder` as interface and SPL token coder (#1259) 2022-01-09 21:10:25 -05:00
Armani Ferrante 9df69cdf4d
tests: fix stake dep (#1277) 2022-01-09 18:28:44 -05:00
Armani Ferrante a81ff88d76
v0.20.1 (#1274) 2022-01-09 16:50:10 -05:00
Armani Ferrante d7e72b33d1
lang: repr override for zero copy (#1273) 2022-01-09 16:19:41 -05:00
Armani Ferrante 9c47c0a6cd
v0.20.0 (#1251) 2022-01-06 18:09:43 -05:00
Paul 3ddad6cbb6
lang: rest of accounts docs reference (#1231) 2022-01-06 16:30:44 -05:00
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 e026e9e874
lang: fix missing ATA owner check (#1240) 2022-01-05 11:09:57 -05:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
Paul b6cbdb257e
tests: add tests for rent_exempt constraint (#1209) 2021-12-30 15:25:10 -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
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
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
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
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
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
Tom Linton 6bc59350de
lang: Add constant attribute (#956) 2021-12-03 18:49:38 -05:00
Armani Ferrante be4e946040
spl: Move permissioned market proxy (#962) 2021-11-30 12:44:15 -08:00
Mikhail Gorbachev 2d44654a4b
lang: Add `AccountNotInitialized` error (#1024) 2021-11-18 07:42:07 -08:00
Tom Linton 1319dc65d6
v0.18.2 (#1011) 2021-11-13 18:58:10 -08:00
Tom Linton 468fe79473
cli, examples, tests: Remove global JavaScript dependencies in favour of local (#990) 2021-11-11 22:38:35 +00:00
Armani Ferrante 62fcd75401
spl, tests: Use feature flag for dex (#985) 2021-11-11 14:12:50 +00:00
Tom Linton f66eee7c6d
tests: 2d array test (#966) 2021-11-02 11:32:24 -07:00
Matthew Callens 20726d06bd
lang: Add `SystemAccount<'info>` Account Type (#954) 2021-10-30 11:45:06 -05:00
Armani Ferrante 6ab714a5a5
Bump solana-program v1.8.0 (#886) 2021-10-24 17:42:52 -07:00
Pierre eb65787a9e
tests: Add EscrowAccount type extraction and make package.json sufficient (#861) 2021-10-23 16:42:20 -07:00
Armani Ferrante 95bb9b3183
lang: Add init_with_needed keyword (#906) 2021-10-21 16:05:16 -07:00
Kirill Fomichev d41fb4feb5
lang: Add custom error for raw constraint (#905) 2021-10-21 15:51:20 -07:00
yuhaoyasuo 5608436d68
tests: Fix #699 ido-pool seeds constraint was violated (#902) 2021-10-20 10:40:38 -07:00
Alan O'Donnell d774b456bf
lang: Support empty seeds constraint token (#853) 2021-10-09 12:21:15 -07:00
Henry-E d5fe9281a7
tests: Change ido pool to use PDAs (#699) 2021-10-09 10:08:19 -07:00
NorbertBodziony 1c5c6a8aba
lang: Support for AccountLoader (#792) 2021-10-08 09:24:25 -07:00
Alan O'Donnell 9d33e13465
lang: Remove mandatory init when using associated_token constraints (#843) 2021-10-07 13:57:47 -07:00
Armani Ferrante e7d16d3ec8
lang: Remove cpi feature flag for account signer check (#849) 2021-10-07 12:21:55 -07:00
Alan O'Donnell dbb5f48b24
lang: Add mint::freeze_authority attribute for init mint (#835) 2021-10-05 11:36:17 -07:00
ChewingGlass 0a660d26c4
ts, cli: Program clients generic over IDL types (#795) 2021-10-04 23:16:13 -07:00
Armani Ferrante db193d8248
lang: Cpi AccountInfos (#824) 2021-10-03 12:57:14 -07:00