Commit Graph

1065 Commits

Author SHA1 Message Date
Lucas Steuernagel 0ba2195ec7
Add support for 256-bit integers in the IDL (#2260)
* Add support for 256-bit integers in the IDL

Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>

* Fix lint warnings

Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>
2022-12-05 15:45:07 +00:00
Kyle Gilliam 23c9717af1
Add option for jest test scaffolding (#2200)
* Add in option for jest scaffolding

* Add tests for Jest in both JS/TS

* Clone moved value; use new function name

* Remove invalid tests
2022-12-05 15:11:56 +00:00
surfertas 50724df110
allow ability to pass in feePayer to Provider methods [WIP] (#2186)
* allow ability to pass in feePayer to Provider methods

* align comments

* prettier

* check if feePayer set, handle if not

* remove unnecessary spaces in comments

* update changelog

* strict equality check

* use null check

* use logical or

* use logical or

Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-05 12:45:27 +00:00
acheron bbeffd58f7
Use @coral-xyz/borsh package (#2299) 2022-12-05 10:47:36 +00:00
Henry-E 66e4295fe0
drop rust version to allow earlier CLIs to compile (#2289)
* drop back rust version to allow earlier cli to compile

* update solana program to 1.13.5 latest mainnet version

Co-authored-by: henrye <henry@notanemail>
2022-11-29 11:36:48 +00:00
Matthew Callens 2768112cef
update borsh package scripts (#2292) 2022-11-28 13:00:54 -05:00
Matthew Callens fa2f18a2c0
update borsh package builds and config (#2291) 2022-11-28 12:54:49 -05:00
Henry-E 35f4e26ef8
add borsh + u256 changes + update to v0.2.6 (#2290)
Co-authored-by: henrye <henry@notanemail>
2022-11-28 12:20:13 -05:00
Darren 704fdce0cd
Fixed compile time issue on p1 wallet (#2066) (#2067) 2022-11-28 16:50:42 +00:00
Jean Marchand (Exotic Markets) ca7c3f0aca
Bump actions version (#2283) 2022-11-25 15:14:53 +00:00
Henry-E 19e00e5d8f
Don't allow the payer to be initialized as a program account (#2284)
* don't allow people to initialize the payer as a program account

* update changelog

* accidentally commented out part of another test

Co-authored-by: henrye <henry@notanemail>
2022-11-25 15:12:58 +00:00
cyphersnake a73bd728fb
lang: Add `Owner` & `Discriminator` implementation for ix structures (#2085)
lang: Add into `Discriminator` trait constant `DISCRIMINATOR`

So that during match instructions or other entities there is no explicit instruction call of `discriminator()`

lang: Add `Owner` impl to instructions

Co-authored-by: Mikhail Gorbachev <m.gorbachev@joinsprouttherapy.com>
2022-11-24 16:19:39 +00:00
Henry-E 686c97e45b
Revert "client: allow execution stack to have multiple program ids (#1954)" (#2282)
This reverts commit 52b32d2459.
2022-11-24 15:16:37 +00:00
Jean Marchand (Exotic Markets) ca52121a6b
clippy test if it is just a cache issue (#2280)
* test if it is just a cache issue

* fix lint
2022-11-24 14:14:19 +00:00
Arjun 52b32d2459
client: allow execution stack to have multiple program ids (#1954)
* allow execution stack to have multiple program ids

* implement clippy recommendations
2022-11-23 11:30:02 +00:00
Jean Marchand (Exotic Markets) c0d3ff2d77
tests: Fix multiple suites example (#2279) 2022-11-23 10:48:46 +00:00
Matthew Callens be67192f2b
add vercel script for determining deployment skipping (#2277) 2022-11-22 11:49:12 -05:00
Jean Marchand (Exotic Markets) b8cda8a717
cli: Allow custom cluster config (#2271)
* cli: Allow custom cluster config

* Update changelog

* Downgrade the code

* Fix rust fmt

Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-11-22 16:33:44 +00:00
Henry-E 5291a7b6ff
Update rust to v1.62 (#2272)
* update rust from v1.56 to v1.65

* remove unnecessary borrows to appease clippy

* stop clippy complaining for now

* use 1.64 instead because of CI stuff

* update CHANGLEOG

* just seeing if the cli version is affecting the available rust version

* ok, back to 1.62

Co-authored-by: henrye <henry@notanemail>
2022-11-22 16:13:45 +00:00
Henry-E afbbbb0330
Trying to stop `zero-copy` test failing (#2274)
* trying out different solutions to zero copy issue (none work yet)

* using a newer version of the CLI should fix the issue

* re update solana client version

* add cargo.lock for some reason

* comment out broken test, get help later

* clippy doesn't like the new option

Co-authored-by: henrye <henry@notanemail>
2022-11-22 15:40:07 +00:00
Callum McIntyre 982799b7e6
Fix panic parsing seeds when account has qualified path (#2268)
* Fix panic parsing seeds when account has qualified path

* Add a test for seed derivation with account using type with path
2022-11-22 11:10:05 +00:00
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 d6e43c1ed6)

* 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