Skip to content

Commit

Permalink
Added EVM tx type interfaces and chain type to actions standard inter…
Browse files Browse the repository at this point in the history
…faces
  • Loading branch information
codebycarson committed Aug 22, 2024
1 parent 2ecefdd commit 320ff16
Show file tree
Hide file tree
Showing 3 changed files with 900 additions and 26 deletions.
4 changes: 3 additions & 1 deletion packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"publishConfig": {
"access": "public"
},
"dependencies": {},
"dependencies": {
"@ethersproject/abstract-provider": "^5.7.0"
},
"peerDependencies": {},
"devDependencies": {},
"exports": {
Expand Down
6 changes: 5 additions & 1 deletion packages/actions/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { TransactionRequest } from '@ethersproject/abstract-provider';

// Define the type for the actions.json file at the root of a domain
export interface SeiActionsJSON {
rules: Array<{
Expand All @@ -21,9 +23,11 @@ export interface GetSeiActionResponse {
export interface SeiActionConfig {
label: string;
href: string;
chainType: 'EVM' | 'COSMOS';
parameters?: Array<{
name: string;
label: string;
required?: boolean;
}>;
}

Expand All @@ -35,6 +39,6 @@ export interface PostSeiActionRequest {

// Define the type for the POST response for a given action
export interface PostSeiActionResponse {
transaction: unknown;
transaction: TransactionRequest | never;
message?: string;
}
Loading

0 comments on commit 320ff16

Please sign in to comment.