Skip to content

Commit

Permalink
update blockchain data types
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-almeida-imtbl committed Apr 5, 2024
1 parent 545c6e7 commit 9f7f1a9
Show file tree
Hide file tree
Showing 14 changed files with 176 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ models/apierror403-all-of.ts
models/apierror403.ts
models/apierror404-all-of.ts
models/apierror404.ts
models/apierror409-all-of.ts
models/apierror409.ts
models/apierror429-all-of.ts
models/apierror429.ts
models/apierror500-all-of.ts
models/apierror500.ts
models/apierror501-all-of.ts
models/apierror501.ts
models/asset-verification-status.ts
models/basic-apierror.ts
models/blockchain-metadata.ts
models/burn.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { APIError404 } from '../models';
// @ts-ignore
import { APIError500 } from '../models';
// @ts-ignore
import { AssetVerificationStatus } from '../models';
// @ts-ignore
import { GetCollectionResult } from '../models';
// @ts-ignore
import { ListCollectionsResult } from '../models';
Expand All @@ -42,6 +44,8 @@ export { APIError404 } from '../models';
// @ts-ignore
export { APIError500 } from '../models';
// @ts-ignore
export { AssetVerificationStatus } from '../models';
// @ts-ignore
export { GetCollectionResult } from '../models';
// @ts-ignore
export { ListCollectionsResult } from '../models';
Expand Down Expand Up @@ -91,6 +95,13 @@ export interface ListCollectionsRequestParams {
*/
readonly contractAddress?: Array<string>

/**
* List of verification status to filter by
* @type {Array<AssetVerificationStatus>}
* @memberof ListCollections
*/
readonly verificationStatus?: Array<AssetVerificationStatus>

/**
* Datetime to use as the oldest updated timestamp
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { APIError403 } from '../models';
// @ts-ignore
import { APIError404 } from '../models';
// @ts-ignore
import { APIError409 } from '../models';
// @ts-ignore
import { APIError429 } from '../models';
// @ts-ignore
import { APIError500 } from '../models';
Expand All @@ -48,6 +50,8 @@ export { APIError403 } from '../models';
// @ts-ignore
export { APIError404 } from '../models';
// @ts-ignore
export { APIError409 } from '../models';
// @ts-ignore
export { APIError429 } from '../models';
// @ts-ignore
export { APIError500 } from '../models';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { APIError404 } from '../models';
// @ts-ignore
import { APIError500 } from '../models';
// @ts-ignore
import { AssetVerificationStatus } from '../models';
// @ts-ignore
import { GetTokenResult } from '../models';
// @ts-ignore
import { ListTokensResult } from '../models';
Expand All @@ -30,6 +32,8 @@ export { APIError404 } from '../models';
// @ts-ignore
export { APIError500 } from '../models';
// @ts-ignore
export { AssetVerificationStatus } from '../models';
// @ts-ignore
export { GetTokenResult } from '../models';
// @ts-ignore
export { ListTokensResult } from '../models';
Expand Down Expand Up @@ -75,6 +79,13 @@ export interface ListERC20TokensRequestParams {
*/
readonly fromUpdatedAt?: string

/**
* List of verification status to filter by
* @type {Array<AssetVerificationStatus>}
* @memberof ListERC20Tokens
*/
readonly verificationStatus?: Array<AssetVerificationStatus>

/**
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* tslint:disable */
/* eslint-disable */
/**
* Immutable zkEVM API
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
*
* @export
* @interface APIError409AllOf
*/
export interface APIError409AllOf {
/**
* Error Code
* @type {string}
* @memberof APIError409AllOf
*/
'code': APIError409AllOfCodeEnum;
/**
* Additional details to help resolve the error
* @type {{ [key: string]: any; }}
* @memberof APIError409AllOf
*/
'details': { [key: string]: any; } | null;
}

/**
* @export
* @enum {string}
*/
export enum APIError409AllOfCodeEnum {
ConflictError = 'CONFLICT_ERROR'
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* tslint:disable */
/* eslint-disable */
/**
* Immutable zkEVM API
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


// May contain unused imports in some cases
// @ts-ignore
import { APIError409AllOf } from './apierror409-all-of';
// May contain unused imports in some cases
// @ts-ignore
import { BasicAPIError } from './basic-apierror';

/**
* @type APIError409
* @export
*/
export type APIError409 = APIError409AllOf & BasicAPIError;


Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* tslint:disable */
/* eslint-disable */
/**
* Immutable zkEVM API
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* The verification status for a given contract
* @export
* @enum {string}
*/

export enum AssetVerificationStatus {
Pending = 'pending',
Verified = 'verified',
Unverified = 'unverified',
Spam = 'spam',
Inactive = 'inactive'
}



Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
*/


// May contain unused imports in some cases
// @ts-ignore
import { AssetVerificationStatus } from './asset-verification-status';
// May contain unused imports in some cases
// @ts-ignore
import { Chain } from './chain';
Expand Down Expand Up @@ -86,6 +89,12 @@ export interface Collection {
* @memberof Collection
*/
'base_uri': string | null;
/**
*
* @type {AssetVerificationStatus}
* @memberof Collection
*/
'verification_status': AssetVerificationStatus;
/**
* When the collection was first indexed
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export * from './apierror403';
export * from './apierror403-all-of';
export * from './apierror404';
export * from './apierror404-all-of';
export * from './apierror409';
export * from './apierror409-all-of';
export * from './apierror429';
export * from './apierror429-all-of';
export * from './apierror500';
Expand All @@ -20,6 +22,7 @@ export * from './activity-nft';
export * from './activity-native-token';
export * from './activity-token';
export * from './activity-type';
export * from './asset-verification-status';
export * from './basic-apierror';
export * from './blockchain-metadata';
export * from './burn';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface MintAsset {
*/
'owner_address': string;
/**
* An `uint256` token id as string. Including token_id is currently only possible on Testnet
* An optional `uint256` token id as string. It is recommended to omit token_id for more efficient minting
* @type {string}
* @memberof MintAsset
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,18 @@ export interface NFTOwner {
*/
'account_address': string;
/**
* The quantity of owned tokens (uint256 as string)
* (deprecated - use balance instead) The quantity of owned tokens (uint256 as string)
* @type {string}
* @memberof NFTOwner
* @deprecated
*/
'quantity': string;
/**
* The amount of owned tokens (uint256 as string)
* @type {string}
* @memberof NFTOwner
*/
'balance': string;
/**
* When the NFT owner was last updated
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export interface NFTWithBalance {
*/
'attributes': Array<NFTMetadataAttribute>;
/**
* The balance of NFT in the account
* The amount of this NFT this account owns
* @type {string}
* @memberof NFTWithBalance
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,18 @@ export interface NFTWithOwner {
*/
'account_address': string;
/**
* The quantity of owned tokens (uint256 as string)
* (deprecated - use balance instead) The quantity of owned tokens (uint256 as string)
* @type {string}
* @memberof NFTWithOwner
* @deprecated
*/
'quantity': string;
/**
* The amount of owned tokens (uint256 as string)
* @type {string}
* @memberof NFTWithOwner
*/
'balance': string;
/**
* When the owner last changed for the given NFT
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
*/


// May contain unused imports in some cases
// @ts-ignore
import { AssetVerificationStatus } from './asset-verification-status';
// May contain unused imports in some cases
// @ts-ignore
import { Chain } from './chain';
Expand Down Expand Up @@ -65,6 +68,12 @@ export interface Token {
* @memberof Token
*/
'name': string | null;
/**
*
* @type {AssetVerificationStatus}
* @memberof Token
*/
'verification_status': AssetVerificationStatus;
/**
* When the collection was last updated
* @type {string}
Expand All @@ -73,3 +82,5 @@ export interface Token {
'updated_at': string;
}



0 comments on commit 9f7f1a9

Please sign in to comment.