-
Notifications
You must be signed in to change notification settings - Fork 300
feat(express): migrate signpayload to typed routes #6942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
danielzhao122
wants to merge
60
commits into
master
from
WP-5443-express-migrate-api-v2-ofc-signPayload-to-typed-routes
Closed
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
34f8c8f
feat(express): migrate signpayload to typed routes
danielzhao122 075b35c
refactor: code
danielzhao122 ad45078
refactor: added dependency io-ts-type to package.json
danielzhao122 2d51487
feat: add new tokens for WIN-7171
asset-metadata-bot[bot] fd693d9
feat(express): migrate keychainlocal to typed routes
danielzhao122 96e3ec0
Merge branch 'master' into WP-5414-express-migrate-api-v2-coin-keycha…
danielzhao122 755f8ee
refactor: added docs and updated req type
danielzhao122 80a9c3e
refactor: added express unit test for keychainLocal
danielzhao122 b1bbd4d
Merge branch 'master' into WP-5414-express-migrate-api-v2-coin-keycha…
danielzhao122 1423d8b
fix(express): signPayload API to handle stringified payload as req
parvaparikh-30 6faab4c
refactor: fixed merge conflict error
danielzhao122 2640873
feat(sdk-coin-sol): onboarding sol 2022 token with transfer hook
krupanand-bitgo 93eb7ca
feat: gate tokens for BitGo Singapore
nayandas190 bf4ec32
fix: modify codeowners for ams token export files
manas-at-bitgo 2ac078c
feat: adding iota coin construction in coin factory
parasgarg-bitgo e2befa7
feat: verify psbt withdraw lightning
parvbitgo067 aa745d8
test: withdraw lightning psbt verification tests
parvbitgo067 6031d76
feat: added bip174 to abstract lightning
parvbitgo067 536be8a
feat: add advanced wallet type
alextse-bg 939bf47
refactor: added decoding to unit tests and addressed missing jsdocs
danielzhao122 c9327f0
Merge branch 'master' into WP-5443-express-migrate-api-v2-ofc-signPay…
danielzhao122 ef5121f
fix: replaced vulnerable request package by using axios
yanxue-22 b5350f0
Merge pull request #7028 from BitGo/BTC-2470-verify-change-address
davidkaplanbitgo 0593fbc
Merge pull request #7060
therealdwright d9d167b
Merge pull request #7024 from BitGo/GNA-2162
parvaparikh-30 ee3a622
feat: configure learn to skip git operations
louib 7eeac07
fix: prepare-release should work with latest preid
zahin-mohammad ec7bf3d
Merge pull request #7055 from BitGo/DX-1558-Replace-Request-With-Axios
yanxue-22 ee1b696
feat(sdk-coin-ton): add jetton transaction support
MohammedRyaan786 7b19894
Merge pull request #7059 from BitGo/WIN-7258-sol-2022-token-with-tran…
krupanand-bitgo e140bc7
chore: added new tokens for baseeth, lineath, seievm and flow
Venkat-Annavazzala 745219f
fix(sdk-core): backup keychain creation to use correct privateMaterial
sasikumar-bitgo 7b21e87
Merge pull request #7038 from BitGo/WIN-7285
Venkat-Annavazzala 8ef80b3
Merge pull request #7061 from BitGo/WIN-6873
parasgarg-bitgo 5f2771d
feat(express): migrate calculateminerfeeinfo to typed routes
lokesh-bitgo b084bb4
chore: update regex for raw trx hex validation
Venkat-Annavazzala e046c39
feat(sdk-coin-ada): token build support
Ranjna-G 3fec266
Merge pull request #7071 from BitGo/WP-5400-express-migrate-api-calcu…
lokesh-bitgo 5cd1e9f
Merge pull request #7063 from BitGo/WIN-7341
Venkat-Annavazzala bb7e27a
feat(statics): onboard new bsc token
Chinmay-Sharma1 49e3ea1
Merge pull request #7072 from BitGo/COIN-5732-v1
Chinmay-Sharma1 c70d766
Merge pull request #6953 from BitGo/ams-bot-tokens
manas-at-bitgo be0f3f4
Merge pull request #7067 from BitGo/COIN-5626
MohammedRyaan786 64e3b38
feat: replace asset id with fungible asset address
zeeshanamjad-eng f7cb90b
Merge pull request #7070 from BitGo/WIN-7353-ada-token-build-support
Ranjna-G 04e70e4
Merge pull request #7073 from BitGo/TMS-1274
zeeshanamjad-eng ddcf0ee
chore: adding evm_compatible_ims feature to tstt
rohitsaw115 588313e
Merge pull request #7076 from BitGo/WIN-7359
rohitsaw115 1de938b
Merge pull request #7057 from BitGo/win-6923
nayandas190 513aaf4
Merge pull request #7049 from BitGo/configure-lerna-to-skip-git-opera…
zahin-mohammad a6bb6ad
Merge pull request #7069 from BitGo/fix/WP-6057
sasikumar-bitgo 10b2022
Merge pull request #6991 from BitGo/WP-5414-express-migrate-api-v2-co…
danielzhao122 51f3a04
Merge pull request #7040 from BitGo/WP-6028
alextse-bg 79c95ce
feat: replace apt usd1 asset id with FA address
sachushaji b45e333
Merge pull request #7074 from BitGo/TMS-1274
sachushaji 4381d11
feat(express): migrate signpayload to typed routes
danielzhao122 e581027
refactor: code
danielzhao122 100f88f
refactor: added dependency io-ts-type to package.json
danielzhao122 936f87b
refactor: added decoding to unit tests and addressed missing jsdocs
danielzhao122 42708b6
Merge branch 'WP-5443-express-migrate-api-v2-ofc-signPayload-to-typed…
danielzhao122 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import * as t from 'io-ts'; | ||
| import { Json, NonEmptyString } from 'io-ts-types'; | ||
| import { httpRoute, httpRequest, optional } from '@api-ts/io-ts-http'; | ||
|
|
||
| /** | ||
| * Sign an arbitrary payload using an OFC trading account key. | ||
| * @operationId express.ofc.signPayload | ||
danielzhao122 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * POST /api/v2/ofc/signPayload | ||
| */ | ||
| export const OfcSignPayloadBody = { | ||
| walletId: NonEmptyString, | ||
danielzhao122 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| payload: Json, | ||
| walletPassphrase: optional(t.string), | ||
| }; | ||
|
|
||
| /** | ||
| * Request body for signing an arbitrary payload with an OFC wallet key. | ||
| * @property walletId – non-empty string identifying the OFC wallet | ||
| * @property payload – JSON value to sign | ||
| * @property walletPassphrase – optional passphrase used to decrypt the user key (string) | ||
| */ | ||
| export const PostOfcSignPayload = httpRoute({ | ||
| path: '/api/v2/ofc/signPayload', | ||
| method: 'POST', | ||
| request: httpRequest({ body: OfcSignPayloadBody }), | ||
| response: { | ||
| 200: t.type({ payload: t.string, signature: t.string }), | ||
danielzhao122 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| }); | ||
|
|
||
| export type PostOfcSignPayload = typeof PostOfcSignPayload; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.