-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1853 from demergent-labs/api_refactor
Api refactor
- Loading branch information
Showing
1,232 changed files
with
465,917 additions
and
2,298 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
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,27 +1,38 @@ | ||
import { nat, Record, text } from '../../src/lib'; | ||
import { IDL } from '../../src/lib/stable'; | ||
|
||
export const BadFee = Record({ | ||
expected_fee: nat | ||
export const BadFee = IDL.Record({ | ||
expected_fee: IDL.Nat | ||
}); | ||
export type BadFee = typeof BadFee.tsType; | ||
export type BadFee = { | ||
expected_fee: bigint; | ||
}; | ||
|
||
export const BadBurn = Record({ | ||
min_burn_amount: nat | ||
export const BadBurn = IDL.Record({ | ||
min_burn_amount: IDL.Nat | ||
}); | ||
export type BadBurn = typeof BadBurn.tsType; | ||
export type BadBurn = { | ||
min_burn_amount: bigint; | ||
}; | ||
|
||
export const InsufficientFunds = Record({ | ||
balance: nat | ||
export const InsufficientFunds = IDL.Record({ | ||
balance: IDL.Nat | ||
}); | ||
export type InsufficientFunds = typeof InsufficientFunds.tsType; | ||
export type InsufficientFunds = { | ||
balance: bigint; | ||
}; | ||
|
||
export const Duplicate = Record({ | ||
duplicate_of: nat | ||
export const Duplicate = IDL.Record({ | ||
duplicate_of: IDL.Nat | ||
}); | ||
export type Duplicate = typeof Duplicate.tsType; | ||
export type Duplicate = { | ||
duplicate_of: bigint; | ||
}; | ||
|
||
export const GenericError = Record({ | ||
error_code: nat, | ||
message: text | ||
export const GenericError = IDL.Record({ | ||
error_code: IDL.Nat, | ||
message: IDL.Text | ||
}); | ||
export type GenericError = typeof GenericError.tsType; | ||
export type GenericError = { | ||
error_code: bigint; | ||
message: 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
Oops, something went wrong.