Commit Graph

1094 Commits

Author SHA1 Message Date
Jac0xb 1ec2b7dfcd
Implement functions to return associated context when fetching accounts. (#2237) 2022-11-22 10:54:37 +00:00
Proph3t d441a3e6de
fix: allow ts to work with account names that have multiple uppercase chars in a row (#2253) 2022-11-22 10:51:07 +00:00
Jean Marchand (Exotic Markets) 89b047b21e
chore: Bump non-solana dependencies (#2270)
* chore: Bump non-solana dependencies

* Fix project generation and client example

* Fix snake case project name

* Update lock file
2022-11-22 10:42:43 +00:00
Luis Perrone fb6508addf
Remove terser for react-native support (#2263)
Co-authored-by: Luis Perrone <perronef5@users.noreply.github.com>
2022-11-21 10:43:01 +00:00
Jean Marchand (Exotic Markets) 8ce18c36db
spl: Update instructions and remove rent from constraints (#2265)
* Update spl instructions and remove the rent sys_var from constraints

* Fix initialize mint

* Update changelog and fix examples

* Remove oversights
2022-11-19 12:59:14 +00:00
Matthew Callens 5e3ebcfde3
upgrade mpl token metadata version (#2264) 2022-11-17 22:41:22 -05:00
Tracy Adams ee026aa8f5
Add geyser_plugin_config test-validator param (#2150) 2022-11-17 14:21:16 +00:00
acheron af115999c6
ts: Remove SPL coders from Anchor package (#2155)
* ts: Remove SPL coders from Anchor package

* Replace old SPL custom coder tests

* Build and link new SPL packages before tests and decode token account for AccountStore

* Fix Github actions ts setup

* Fix u64 buffer length

* Update submodules

* Update CHANGELOG

* Checkout correct submodule commits

* Add filler program to generate idls in order for anchor test to pass
2022-11-17 14:17:22 +00:00
filipzeta 5c474c6dfb
Bugfix multiple event listeners with the same name (#2165)
* Bugfix multiple event listeners with the same name

* Changelog

* changelog
2022-11-16 16:33:01 +00:00
Jean Marchand b107cbe94f
lang: Fix parsing for bytes literals in the IDL (#2261)
* lang: Fix parsing of some constants

* Fix lint + changelog
2022-11-16 15:59:09 +00:00
Deep Mehta e8618a588f
replace getRecentBlockhash to getLatestBlockhash (#2205) 2022-11-14 16:59:36 +00:00
omahs 43ab991852
Fix: typos (#2236)
Fix: typos
2022-11-14 16:57:41 +00:00
Noah Prince feff131ab0
fix: Nested pda types and account resolution for pdas (#2259) 2022-11-13 21:45:41 -05:00
Noah Prince 91a2b7ec96
fix: 0 is falsey for arg filling (#2258) 2022-11-13 08:33:04 -05:00
Henry-E 7a0a37e0f8
Update solana to version 1.13.3 (#2239)
* upgrade solana version to 1.13.3

* get everything to compile correctly

* update to using struct constructor to avoid deprecated field usage

* update deprecated functions

* more fixes to pass tests

* update auction-house submodule commit

* update the swap submodule

Co-authored-by: henrye <henry@notanemail>
2022-10-29 15:23:13 +01:00
Proph3t 5532a0f087
Update the test methods in the examples directory (#2238)
* updated, outdated methods of basic-0,1,2,3

* chore: run prettier on changes

Co-authored-by: vpin09 <sainivipin1998@gmail.com>
2022-10-28 12:12:38 +01:00
Sammy Harris fa1249836e
Feat: Update AccountsClose to be safe to call manually (#2209)
* fix other lints to make the test pass

(cherry picked from commit d6e43c1ed6a176caa60dfdabe406ec125c3d34cf)

* update close to make it safe to call manually

* fix test script

* re-add safety warnings for deprecated account types

* update close checking logic

* readd logic for deprecated methods

* add additional checks to account_loader in exit
2022-10-21 17:06:54 +01:00
Henry-E 46f0b67bff
Revert "updated, outdated methods of basic-0,1,2,3 (#2144)" (#2235)
This reverts commit 6a46bedaf1.
2022-10-21 10:32:50 +01:00
Vipin Saini 6a46bedaf1
updated, outdated methods of basic-0,1,2,3 (#2144)
Tests aren't running properly on this so going to merge and then revert if tests fail
2022-10-21 10:19:18 +01:00
Sammy Harris d653226f40
chore: Speed up tests (#2233) 2022-10-18 14:26:09 -04:00
Sammy Harris e866d45af9
update github runners (#2232) 2022-10-18 12:13:55 -04:00
Dana 8719facf60
Add libssl-dev to additional deps (#2206) 2022-10-18 10:14:25 -04:00
Totoro 8e66d5bb5f
Add support for idl enum tuples, enchance types (#2185) 2022-10-18 10:13:23 -04:00
Ryan Mehta 0f10a99995
Add missing closing parenthesis (#2230) 2022-10-17 22:23:38 -04:00
eydelrivero b9b2737c18
Improved error message when verify command fails on missing program or IDL (#2225) 2022-10-14 00:42:29 -04:00
Sammy Harris 3da28dbc5f
fix: ignore non Accounts in safety checks (#2201) 2022-10-13 23:08:02 -04:00
Sammy Harris 5647510615
chore: bump @solana/web3.js in anchor-ts (#2227) 2022-10-13 23:06:51 -04:00
Henry-E d83efcdc3a
update solana web3 package to 1.64.0 (#2223)
* update solana web3 package to 1.64.0

* fix some missing packages; update changelog

* fix weird prettier thing messing with changelog

* also upgrade the yarn.lock in tests
2022-10-13 11:20:32 +01:00
Noah Prince 52a7e1e278
bug: use program id from account, not idl, when resolving relations (#2221) 2022-10-11 12:44:41 -04:00
Noah Prince fd467df932
feat: Derive has_one's from other programs, recursively search custom resolvers (#2208) 2022-10-08 00:33:18 -04:00
Henry-E 862575a649
new clippy lints for rust 1.63 (#2207) 2022-10-06 14:26:22 -04:00
Han Yang 3970847e75
stake (#2195) 2022-09-24 14:11:12 -04:00
stateofnonreturn 7f243ce66c
the-accounts-struct.md improvement (#2156) 2022-09-24 14:10:23 -04:00
Noah Prince 6f3877f36c
feat: Update seeds inference to allow nested user defined structs as part of the seeds (#2198) 2022-09-23 22:14:57 -04:00
Noah Prince d929589013
feat: Recursively derive const pubkeys and add custom resolver export (#2196) 2022-09-22 12:26:13 -04:00
Noah Prince 436791b039
feat: Recursively derive seeds and add custom account resolver (#2194) 2022-09-21 16:32:24 -04:00
Gajesh Naik 2a07d841c6
implemented more token_metadata wrappers (#2179) 2022-09-13 22:27:14 -04:00
0xWoo e019ba2199
metadata: verify_collection & refactor results (#2151) 2022-09-13 18:05:24 -04:00
Totoro 5ae52cae13
fix IDL types parsing (#2176) 2022-09-12 08:04:11 -04:00
Matthew Callens f155996c3c
add wrappers for mpl `sign_metadata` and `remove_creator_verification` (#2175)
* add wrappers for mpl creator verification ix

* update changelog
2022-09-10 16:32:29 -04:00
Matthew Callens 4c24c5d7b1
add `update_primary_sale_happened_via_token` ix wrapper for `metadata` (#2173)
* add update_primary_sale_happened_via_token ix wrapper

* update changelog
2022-09-10 15:57:27 -04:00
Noah Prince e69e50daaf
feat: Add has_one relations inference so you don't need to pass accounts that are referenced by a has_one (#2160) 2022-09-10 12:52:59 -04:00
surfertas 0c70d183ef
add freeze and thaw delegated account instructions (#2164) 2022-09-06 10:30:50 -04:00
Pierre 8ee4600785
feat: Use new canonical close account pattern (#2169) 2022-09-06 09:33:17 -04:00
Sammy Harris c1c4f6c335
fix new clippy lints (#2148) 2022-08-23 18:57:32 -04:00
Matthew Callens 586094156b
ci: disable breaking nonRentExempt test (#2147) 2022-08-23 16:38:31 -04:00
acheron 5a025b949e
ts: Add SPL Anchor packages (#2143) 2022-08-22 21:57:56 -04:00
dependabot[bot] a59aa5f6f3
build(deps): bump terser from 5.12.1 to 5.14.2 in /ts (#2136) 2022-08-16 19:16:39 -04:00
dependabot[bot] 7bdbb03cbd
build(deps): bump minimist from 1.2.5 to 1.2.6 in /ts (#2135) 2022-08-16 19:16:24 -04:00
Sammy Harris 290b2aa43e
feat: constants declared in impl blocks in seeds (#2128) 2022-08-14 12:42:16 -04:00