Commit Graph

89 Commits

Author SHA1 Message Date
Faiyam Rahman d649d628a4 remove shx from clean 2023-02-01 17:57:24 +05:30
Faiyam Rahman 9b6eedefa2
Merge pull request #1 from blockworks-foundation/update/spl-token
Updates SPL Token and Fixes bug in Jupiter code
2023-01-23 20:01:09 +05:30
Faiyam Rahman 81a044ab23 decodeTransactionOrNull checks for soft equality, not strict 2023-01-23 19:48:25 +05:30
Faiyam Rahman 15e96ddd8c updates spl-token in core to latest 2023-01-23 15:53:18 +05:30
Seva Zhidkov 76aa419018
fix(core): add commonjs support for octane-core package (#25)
This change fixes Cannot find module error when using CommonJS.
2023-01-05 12:54:11 +04:00
Seva Zhidkov 589818b217
add support for client-submitted transactions with ReCaptcha and allow-all validations (#24) 2022-09-20 23:21:06 +03:00
Seva Zhidkov 6fda808b83
docs: add recipes doc with various use cases (#23) 2022-09-19 20:12:09 +03:00
Seva Zhidkov 6150599519
Docs updates: new README, method reference for octane-core (#22)
* reformat README for clarity and simplicity

* add library doc
2022-09-14 19:57:40 +03:00
Seva Zhidkov 630a8d6afc
New docs (#20)
* docs - wip

* add note to write about your-own-token-scenario

* add reminder to myself to write about backend implementation in security risks

* docs: finish writing README, CLI and example integrations

* add endpoints documentation
2022-09-09 19:02:03 +03:00
Seva Zhidkov f06b842982
Command-line tools to manage fee payer accounts and helper functions in payer-utils (#16)
* add CLI

* Refactor CLI and decouple fee payer utils to payer-utils in core

* restore original config

* add cli command to generate config for one token

* fix swap-tokens-to-sol cli command description

* use TokenFee in new endpoints as well
2022-09-09 01:06:16 +03:00
Seva Zhidkov 2dbbe9c0b2
Endpoint/action to create associated token accounts (#17)
* add an action to create associated token accounts

* fix linter issues

* add transaction submission to create account endpoint

* rename /createAccount to createAssociatedTokenAccount to reduce ambiguity

* add createAssociatedTokenAccount section to config
2022-09-09 00:50:07 +03:00
Seva Zhidkov 6d45f42dfd
Endpoints/actions for gasless swap to SOL using Whirlpools (#19)
* Add a new endpoint for Whirlpools swap

* Introduce two-step process for swap transactions using message tokens

* change @solana/spl-token to 0.2.0 version
2022-09-09 00:45:52 +03:00
Seva Zhidkov 9c6c11696e
Merge pull request #21 from sevazhidkov/cors-fix
Minor CORS fix: Add middleware to / endpoint and add support for OPTIONS
2022-09-01 12:03:44 +03:00
Seva Zhidkov 6923580550 Add cors middleware to / endpoint and add support for OPTIONS 2022-09-01 11:58:40 +03:00
Seva Zhidkov c861eb3baa
Merge pull request #18 from sevazhidkov/revert-returning-signature
Revert returning signature in API methods w/o sending the transaction
2022-08-31 19:04:22 +03:00
Seva Zhidkov cadcc32f9f Revert returning signature in API methods w/o sending the transaction 2022-08-22 18:00:25 +03:00
Jordan Sexton 6ccc2ec8db
Merge pull request #15 from lava-xyz/vercel-fix
fix vercel deployment
2022-08-01 14:01:31 -05:00
Jonathan Lee 7e8b77df06 address nits 2022-08-01 14:53:43 -04:00
Jonathan Lee dc552f3ca1 fix vercel deployment 2022-07-31 21:40:32 -04:00
Jordan Sexton 8b717e88a8
Merge pull request #12 from sevazhidkov/core-library
Move main logic to testable library functions; Use Next.js instead of Vercel functions
2022-07-19 21:16:47 +02:00
Seva Zhidkov 69f03e1422 fix conflict of web3.js dependencies between core and parent packages 2022-07-18 22:53:08 +02:00
Seva Zhidkov 020ce05c5f fix import 2022-07-17 16:24:30 +02:00
Seva Zhidkov 3410c32efa change package name within dependency 2022-07-17 13:52:00 +02:00
Seva Zhidkov f93764ead6 improve packaging using lerna 2022-07-16 17:27:31 +02:00
Seva Zhidkov df49699e20 remove strict node version requirement 2022-04-06 22:02:45 +03:00
Seva Zhidkov db0776c40f change transfer source lock from transaction-flow-based to time-based 2022-03-23 19:31:44 +03:00
Seva Zhidkov f9ea9cfed9 fix old imports of env in rate limit middleware 2022-03-23 18:04:45 +03:00
Seva Zhidkov c3d1b1499e add first tests for token fee action 2022-03-04 22:13:57 +03:00
Seva Zhidkov 5301e93bff add core library to handle most of the logic, move functions from vercel to next 2022-03-04 17:59:22 +03:00
Jordan Sexton fd05065aa6
Merge pull request #8 from steveluscher/repair-ip-getter
Repair rate limiter's IP getter
2022-01-13 20:29:34 -06:00
Jordan Sexton 182817db26
Merge pull request #7 from steveluscher/explicit-import-of-memory-store
Import the memory store explicitly
2022-01-13 17:14:44 -06:00
Jordan Sexton 2fc51546d8
Merge pull request #9 from steveluscher/ignore-node-modules
Ignore the `node_modules` folder
2022-01-13 12:46:24 -06:00
steveluscher a48bd099b7 Ignore the node_modules folder 2022-01-12 23:19:57 -08:00
steveluscher 6e753755ed Supply a function that returns the actual IP from the IncomingMessage 2022-01-12 22:53:40 -08:00
steveluscher 62b88e79f5 Create defaults for rate limiter so that it doesn't try to set undefined to headers 2022-01-12 22:47:32 -08:00
steveluscher ef0c24bc28 Import the memory store explicitly 2022-01-12 22:14:09 -08:00
Jordan Sexton d756fa823f
Merge pull request #6 from steveluscher/fix-config-in-vercel
Don't ignore the config.json file in Vercel deploys
2022-01-13 00:09:57 -06:00
steveluscher 3b8c151f1e Don't ignore the config.json file in Vercel deploys 2022-01-12 22:00:23 -08:00
Jordan Sexton 8ce3142d95
Merge pull request #3 from solana-labs/multiple-tokens
Accept multiple tokens
2022-01-04 21:21:10 -06:00
Jordan Sexton 95fd00b9ed add CORS middleware 2022-01-04 21:20:40 -06:00
Jordan Sexton 8479af3e78 update yarn.lock 2022-01-02 17:05:48 -06:00
Jordan Sexton 9964a670c4 refactor transfer endpoint 2022-01-02 17:05:40 -06:00
Jordan Sexton dae972638a formatting 2022-01-02 17:05:29 -06:00
Jordan Sexton 7cf4451b8e update comment 2022-01-02 17:05:11 -06:00
Jordan Sexton d8bab9e6bf update index 2022-01-02 17:05:03 -06:00
Jordan Sexton cb6eb23d7c refactor signing and serialization into validateTransaction 2022-01-02 17:04:40 -06:00
Jordan Sexton 33ecf6e0e3 add configurable cache store 2022-01-02 17:03:48 -06:00
Jordan Sexton c6e54d40be add sha256 hash function 2022-01-02 17:03:28 -06:00
Jordan Sexton 904343dbe0 add lockout for txid 2022-01-01 16:45:16 -06:00
Jordan Sexton 9e06f52945 separate signing and simulation 2022-01-01 16:44:50 -06:00