Commit Graph

1155 Commits

Author SHA1 Message Date
CanardMandarin 2e89b79c51
fix: used identifiers in handler (#2464) 2023-04-22 21:26:22 +02:00
Elliot Kennedy 670b4f5005
Add `token_program` constraint to token, mint, and associated token accounts (#2460) 2023-04-19 10:43:24 +02:00
Vladimir Guguiev b11d63861c
docker: Update the version of NODE_VERSION to the current LTS (#2462) 2023-04-17 23:33:22 +02:00
xiyao 8cf87d8364
fix: add `.yarn` to the default gitignore of anchor-cli (#2461) 2023-04-11 11:04:32 +02:00
Sean Young 9e7c33eec1
Add support for Solidity using the Solang compiler (#2421)
anchor init and anchor new have a new option `-s` (or `--solidity`) which
creates an example using Solidity in the soldity directory of the
anchor workspace.

anchor deploy/build/test work accordingly.

solang is required to be in the path, this can be downloaded from the
release at https://github.com/hyperledger/solang

anchor build/deploy finds all the solidity contracts by using the
solidity parser to find all contract declarations.
2023-04-04 17:58:03 +02:00
Nick Garfield fbd0688903
Replace unsafe arithmetic with checked_add (#2448) 2023-03-30 11:44:12 -04:00
Pierre 9a075087d0
feat: Add account-dir test-validator argument support (#2436) 2023-03-24 13:13:18 -05:00
Andreas 00c2fc3601
spl: implement try_deserialize for Metaplex accounts to ensure initialization (#2439) 2023-03-24 13:12:15 -05:00
Marquelle N f307729bdc
Narrow AccountClient to it's appropriate type (#2440) 2023-03-24 13:09:34 -05:00
Britt Cyr 7ee4a7a047
Fix unsafe add (#2444) 2023-03-24 12:03:33 -05:00
Matthew Callens 5e13431aca
spl: update mpl metadata crate and add more wrappers (#2430)
* update mpl metadata crate and add more wrappers

* update changelog
2023-03-09 14:36:31 -05:00
Henry-E 16da5e9ce7
Update CHANGELOG.md (#2429) 2023-03-09 14:43:42 +00:00
Henry-E 3b45144787
v0.27.0 (#2428) 2023-03-08 13:28:23 +00:00
Henry-E 30083bd83c
Simple versioned transaction support (#2427) 2023-03-07 15:08:29 +00:00
Henry-E 1dc16d6642
Revert "Simple Versioned Transaction Support (#2407)" (#2426)
This reverts commit 064dde4b1a.
2023-03-06 12:22:58 +00:00
Henry-E 064dde4b1a
Simple Versioned Transaction Support (#2407) 2023-03-06 12:07:24 +00:00
Henry-E 5623c7c8ed
update discord links (#2424) 2023-03-06 11:19:08 +00:00
Jon Cinque 06c42327d4
cli: Add arch option to use `build-sbf` or `build-bpf` (#2398) 2023-03-03 16:21:36 +00:00
Henry-E 45fa9bd3ba
Update Solana-program and rust-version (#2420) 2023-03-02 17:23:16 +00:00
dependabot[bot] a48562754b
Bump minimatch from 3.0.4 to 3.1.2 in /docs/programs/tic-tac-toe (#2418) 2023-03-02 11:35:18 +00:00
dependabot[bot] d31b160dbe
Bump minimatch from 3.0.4 to 3.1.2 in /examples/tutorial (#2417) 2023-03-02 11:35:06 +00:00
dependabot[bot] a7343c3eca
Bump tokio from 1.22.0 to 1.25.0 in /avm (#2416) 2023-03-02 11:34:51 +00:00
dependabot[bot] ef5f4c2538
Bump tokio from 1.21.2 to 1.24.2 (#2415) 2023-03-02 11:34:41 +00:00
dependabot[bot] 53559eb847
Bump json5 from 1.0.1 to 1.0.2 in /docs (#2414) 2023-03-02 11:34:27 +00:00
dependabot[bot] fdecc1bd5c
Bump bumpalo from 3.9.1 to 3.12.0 in /docs/programs/tic-tac-toe (#2413) 2023-03-02 11:34:14 +00:00
Henry-E 90383a7a22
fix redos vulnerability (#2412) 2023-03-01 16:01:41 +00:00
dependabot[bot] 2c94467e67
Bump json5 from 1.0.1 to 1.0.2 in /tests (#2411) 2023-03-01 16:01:19 +00:00
dependabot[bot] 975e38960b
Bump json5 from 2.2.1 to 2.2.3 in /ts (#2410)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 16:01:12 +00:00
dependabot[bot] fd1859bf8c
Bump json5 from 1.0.1 to 1.0.2 in /docs/programs/tic-tac-toe (#2409) 2023-03-01 16:00:56 +00:00
Kyle Espinola 6f4f32a9c5
feat: add master edition account deserialization to spl metadata (#2393) 2023-02-27 17:29:13 +00:00
Tristyn Stimpson e1fd686ef2
Idempotent typo (#2406) 2023-02-27 17:27:53 +00:00
Jon Cinque 777f2eace1
interface: Support multiple programs with the same interface via token-2022 (#2386) 2023-02-27 10:55:08 +00:00
Matthew Callens 9044b9b8cd
spl: add spl token approve checked wrapper (#2401)
* add spl token approve checked wrapper

* update changelog
2023-02-21 02:49:07 -05:00
Marquelle Nesbitt 37cc99c2b6
Make the return type of `AccountClient.fetchMultiple` consistent (#2390) 2023-02-07 20:28:43 +00:00
Henry-E cfdaac11e6
changes from previous PR (#2391)
Co-authored-by: henrye <henry@notanemail>
2023-02-07 10:49:24 +00:00
nojob1 5099044bf4
add --skip-build option for verify command (#2387) 2023-02-07 10:49:07 +00:00
Jean Marchand (Exotic Markets) eef9888c82
lang: remove ConstraintLiteral (#2379) 2023-02-06 17:41:38 +00:00
Jean Marchand (Exotic Markets) c76641f861
lang: remove deprecated accounts (#2375) 2023-02-06 16:46:09 +00:00
Ruven Salamon 010b400669
cli: fixes bug where the wrong exit status is reported (#2370) 2023-02-06 12:29:06 +00:00
cavemanloverboy cd63049c40
add async_rpc method (#2322) 2023-02-06 12:19:43 +00:00
cavemanloverboy 020b6448e0
Multithreaded Client (#2321) 2023-02-06 12:13:54 +00:00
nojob1 872d084e00
--fix clippy (#2388) 2023-02-06 11:16:23 +00:00
nojob1 cb680809f0
make idl enum fields which are snake case have proper typing to camel case (#2378) 2023-02-01 11:56:12 +00:00
Henry-E 21c3b3c7b5
fix misaligned bytes in test (#2373) 2023-01-26 17:40:49 +00:00
Christian Kamm ed2769ef28
Make zero copy safe by default, add `account(zero_copy(unsafe))` feature. (#2330) 2023-01-26 14:46:57 +00:00
Henry-E 2a05075760
Update IDL program (#2365) 2023-01-26 11:32:30 +00:00
Jean Marchand (Exotic Markets) a0ef4ed7a4
lang: add the InitSpace macro (#2346) 2023-01-26 11:22:48 +00:00
Jean Marchand (Exotic Markets) 5f9b5905dc
ts: remove duplicate functions (#2357) 2023-01-24 10:39:31 +00:00
Andrey Frolov 79a066661c
inroduce idl account getter (#2367) 2023-01-23 12:25:28 +00:00
Zhuojie Zhou | rex b4459f2a0c
Relax the mpl metadata package constraint (#2366) 2023-01-22 08:48:57 -06:00