-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add updated typescript models to reflect structure of API responses +…
… add Raw method to API client allowing non-formatted data to be returned from the API.
- Loading branch information
1 parent
c7e055c
commit 7518507
Showing
19 changed files
with
212 additions
and
93 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
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,7 +1,10 @@ | ||
import { TransactionJSON } from "./transaction/transactionJSON"; | ||
import { FinalizeJSON } from "./finalizeJSON"; | ||
|
||
export interface ConfirmedTransaction { | ||
export interface ConfirmedTransactionJSON { | ||
status: string | ||
type: string; | ||
id: string; | ||
index: number; | ||
transaction: TransactionJSON; | ||
finalize: FinalizeJSON[]; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export type VerifyingKeys = [string, [string, string]]; | ||
|
||
export interface DeploymentJSON { | ||
"edition" : number, | ||
"program" : string, | ||
"verifying_keys" : VerifyingKeys, | ||
} |
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,7 @@ | ||
import { FunctionObject } from "../functionObject"; | ||
|
||
export interface DeploymentObject { | ||
"edition" : number, | ||
"program" : string, | ||
"functions" : FunctionObject[], | ||
} |
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,6 +1,7 @@ | ||
import { TransitionJSON } from "./transition/transitionJSON"; | ||
|
||
export interface ExecutionJSON { | ||
edition: number; | ||
transitions?: (TransitionJSON)[]; | ||
transitions: 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,7 @@ | ||
import { TransitionJSON } from "./transition/transitionJSON"; | ||
|
||
export interface FeeJSON { | ||
transition: TransitionJSON; | ||
global_state_root: string; | ||
proof: 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,6 @@ | ||
export interface FinalizeJSON { | ||
"type": string; | ||
"mapping_id": string; | ||
"key_id": string; | ||
"value_id": 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
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,6 +1,6 @@ | ||
export interface OutputJSON { | ||
type: string; | ||
id: string; | ||
checksum: string; | ||
checksum?: string; | ||
value: 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,4 @@ | ||
export interface OwnerJSON { | ||
address: string; | ||
signature: 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import { DeploymentJSON } from "../deployment/deploymentJSON"; | ||
import { ExecutionJSON } from "../executionJSON"; | ||
import { FeeJSON } from "../feeJSON"; | ||
import { OwnerJSON } from "../ownerJSON"; | ||
|
||
export interface TransactionJSON { | ||
type: string; | ||
id: string; | ||
execution: ExecutionJSON; | ||
} | ||
deployment?: DeploymentJSON; | ||
execution?: ExecutionJSON; | ||
fee: FeeJSON; | ||
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
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
Oops, something went wrong.