Skip to content

Commit

Permalink
Refactor stx methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Oct 4, 2024
1 parent 2c15589 commit 4bfb016
Show file tree
Hide file tree
Showing 12 changed files with 428 additions and 346 deletions.
2 changes: 1 addition & 1 deletion src/request/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface StxRequests {
stx_deployContract: StxMethods.StxDeployContract;
stx_getAccounts: StxMethods.StxGetAccounts;
stx_getAddresses: StxMethods.StxGetAddresses;
stx_signMessage: StxMethods.StxSignStxMessage;
stx_signMessage: StxMethods.StxSignMessage;
stx_signStructuredMessage: StxMethods.StxSignStructuredMessage;
stx_signTransaction: StxMethods.StxSignTransaction;
stx_transferStx: StxMethods.StxTransferStx;
Expand Down
345 changes: 0 additions & 345 deletions src/request/types/stxMethods.ts

This file was deleted.

10 changes: 10 additions & 0 deletions src/request/types/stxMethods/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Stacks Methods

- All values and types are prefixed with `stx*` / `Stx*` to avoid name name clashes with similar methods from other chains or operations.
- Files have the same name as the method name, without the prefix.
- For consistency, each method file should export
- method name
- params: schema & type
- response: schema & type
- request message: schema & type
- helper type built with `MethodParamsAndResult`
Loading

0 comments on commit 4bfb016

Please sign in to comment.