Skip to content

Commit

Permalink
Merge pull request #185 from FindoraNetwork/feat_add_sign_origin
Browse files Browse the repository at this point in the history
feat: fo-1423: add sign origin to mainnet sdk
  • Loading branch information
1160007652 authored Jan 18, 2023
2 parents a6f0b1b + 0f04b5c commit 3b3dc5a
Show file tree
Hide file tree
Showing 87 changed files with 11,073 additions and 112 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ coverage/
.idea/
docs
.pytest_cache
yarn.lock
cache/
.env*
2 changes: 1 addition & 1 deletion dist/Sdk.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FileCacheProvider, MemoryCacheProvider } from './services/cacheStore/providers';
import { CacheItem } from './services/cacheStore/types';
declare type SdkCacheProvider = typeof FileCacheProvider | typeof MemoryCacheProvider;
type SdkCacheProvider = typeof FileCacheProvider | typeof MemoryCacheProvider;
export interface SdkEnvironmentConfig {
hostUrl: string;
queryPort?: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/Sdk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Sdk.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/account/account.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/account/account.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/evm/evm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/evm/evm.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/keypair/keypair-mocked.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/keypair/keypair.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/keypair/keypair.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/network/network.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/network/network.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions dist/api/network/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface NetworkAxiosConfig {
export interface OwnedSidsDataResult extends NetworkAxiosDataResult {
response?: number[];
}
export declare type OwnedMemoResponse = {
export type OwnedMemoResponse = {
blind_share: string;
lock: {
ciphertext: string;
Expand All @@ -37,7 +37,7 @@ export interface LedgerUtxo {
id?: number | null | undefined;
record: any;
}
export declare type UtxoResponse = {
export type UtxoResponse = {
utxo: LedgerUtxo;
authenticated_txn?: string;
finalized_txn?: any;
Expand All @@ -48,13 +48,13 @@ export declare type UtxoResponse = {
export interface UtxoDataResult extends NetworkAxiosDataResult {
response?: UtxoResponse;
}
export declare type AssetTokenResponse = {
export type AssetTokenResponse = {
properties: FindoraWallet.IPureAsset;
};
export interface AssetTokenDataResult extends NetworkAxiosDataResult {
response?: AssetTokenResponse;
}
export declare type BlockDetailsResponse = {
export type BlockDetailsResponse = {
result: {
block_id: {
hash: string;
Expand Down Expand Up @@ -123,21 +123,21 @@ export interface TxListResponseResult {
txs: null | TxInfo[];
total_count: number;
}
export declare type TxListResponse = {
export type TxListResponse = {
result: TxListResponseResult;
};
export interface TxListDataResult extends NetworkAxiosDataResult {
response?: TxListResponse;
}
export declare type TxDetailsResponse = {
export type TxDetailsResponse = {
result: {
tx: string;
};
};
export interface TxDetailsDataResult extends NetworkAxiosDataResult {
response?: TxDetailsResponse;
}
export declare type HashSwapResponse = {
export type HashSwapResponse = {
result: TxListResponseResult;
};
export interface ValidatorItem {
Expand All @@ -159,7 +159,7 @@ export interface ValidatorListResponse {
cur_height: number;
validators: ValidatorItem[];
}
export declare type DelegationBondEntry = [string, string];
export type DelegationBondEntry = [string, string];
export interface DelegateInfoResponse {
bond: string;
bond_entries: DelegationBondEntry;
Expand All @@ -177,7 +177,7 @@ export interface DelegateInfoResponse {
export interface HashSwapDataResult extends NetworkAxiosDataResult {
response?: HashSwapResponse;
}
export declare type StateCommitmenResponse = [number[], number, string];
export type StateCommitmenResponse = [number[], number, string];
export interface StateCommitmentDataResult extends NetworkAxiosDataResult {
response?: StateCommitmenResponse;
}
Expand All @@ -187,21 +187,21 @@ export interface ValidatorListDataResult extends NetworkAxiosDataResult {
export interface DelegateInfoDataResult extends NetworkAxiosDataResult {
response?: DelegateInfoResponse;
}
export declare type TransactionData = string;
export type TransactionData = string;
export interface ParsedTransactionData {
}
export interface SubmitTransactionDataResult extends NetworkAxiosDataResult {
response?: string;
}
export declare type TransactionStatusResponse = {
export type TransactionStatusResponse = {
Committed?: [number, number[]];
Pending?: any;
};
export interface TransactionStatusDataResult extends NetworkAxiosDataResult {
response?: TransactionStatusResponse;
}
export declare type IssuedRecord = [TxOutput, null | number];
export declare type IssuedRecordResponse = IssuedRecord[];
export type IssuedRecord = [TxOutput, null | number];
export type IssuedRecordResponse = IssuedRecord[];
export interface IssuedRecordDataResult extends NetworkAxiosDataResult {
response?: IssuedRecordResponse;
}
Expand All @@ -222,7 +222,7 @@ export interface TxOutput {
id: number | null;
record: TxRecord;
}
export declare type AbciNoceResponse = {
export type AbciNoceResponse = {
result: {
response: AbciNoce;
};
Expand All @@ -233,7 +233,7 @@ export interface AbciNoceResult extends NetworkAxiosDataResult {
export interface AbciInfoResult extends NetworkAxiosDataResult {
response?: AbciNoceResponse;
}
export declare type SubmitEvmTxResponse = {
export type SubmitEvmTxResponse = {
result: {
code: number;
data: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/api/sdkAsset/sdkAsset.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/sdkAsset/sdkAsset.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/staking/staking.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/staking/staking.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/helpers.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/operationProcessors/claim.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/operationProcessors/claim.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/operationProcessors/converAccount.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/operationProcessors/defineAsset.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/transaction/operationProcessors/delegation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b3dc5a

Please sign in to comment.