-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize interfaces between objects and JSON
- Loading branch information
1 parent
4ba13dc
commit 1b0f732
Showing
13 changed files
with
200 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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 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,13 @@ | ||
import { TransitionJSON } from "../transition/transitionJSON"; | ||
|
||
export interface ExecutionJSON { | ||
transitions: TransitionJSON[]; | ||
proof: string; | ||
global_state_root: string; | ||
} | ||
|
||
export interface FeeExecutionJSON { | ||
transition: TransitionJSON; | ||
proof: string; | ||
global_state_root: string; | ||
} |
This file contains 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,13 @@ | ||
import { TransitionObject } from "../transition/transitionObject"; | ||
|
||
export interface ExecutionObject { | ||
transitions: TransitionObject[]; | ||
proof: string; | ||
global_state_root: string; | ||
} | ||
|
||
export interface FeeExecutionObject { | ||
transition: TransitionObject; | ||
proof: string; | ||
global_state_root: string; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
File renamed without changes.
This file contains 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,6 @@ | ||
import { Address, Signature } from "../../wasm"; | ||
|
||
export interface OwnerObject { | ||
address: string | Address; | ||
signature: string | Signature; | ||
} |
This file contains 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { Plaintext } from "../../wasm"; | ||
import { PlaintextArray } from "./array"; | ||
import { PlaintextLiteral } from "./literal"; | ||
import { PlaintextStruct } from "./struct"; | ||
|
||
export type PlaintextObject = PlaintextArray| PlaintextLiteral | PlaintextStruct; | ||
export type PlaintextObject = PlaintextArray| PlaintextLiteral | PlaintextStruct | Plaintext; |
This file contains 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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { DeploymentJSON } from "../deployment/deploymentJSON"; | ||
import { ExecutionJSON } from "../executionJSON"; | ||
import { FeeJSON } from "../feeJSON"; | ||
import { OwnerJSON } from "../ownerJSON"; | ||
import { ExecutionJSON, FeeExecutionJSON } from "../execution/executionJSON"; | ||
import { OwnerJSON } from "../owner/ownerJSON"; | ||
|
||
export interface TransactionJSON { | ||
type: string; | ||
id: string; | ||
deployment?: DeploymentJSON; | ||
execution?: ExecutionJSON; | ||
fee: FeeJSON; | ||
fee: FeeExecutionJSON; | ||
owner?: OwnerJSON; | ||
} |
This file contains 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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { TransitionObject } from "../transition/transitionObject"; | ||
import { DeploymentObject } from "../deployment/deploymentObject"; | ||
import { ExecutionObject, FeeExecutionObject } from "../execution/executionObject"; | ||
import { OwnerObject } from "../owner/ownerObject"; | ||
|
||
export interface TransactionObject { | ||
id : string; | ||
type : string; | ||
fee : bigint; | ||
baseFee : bigint; | ||
priorityFee : bigint; | ||
transitions : TransitionObject[]; | ||
id : string; | ||
execution?: ExecutionObject; | ||
deployment? : DeploymentObject; | ||
fee: FeeExecutionObject; | ||
owner?: OwnerObject; | ||
feeAmount? : bigint; | ||
baseFee? : bigint; | ||
priorityFee? : bigint; | ||
} |
This file contains 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.