diff --git a/v2/api-validator/src/client/generated/index.ts b/v2/api-validator/src/client/generated/index.ts index c5cdfe4c..b8f43855 100644 --- a/v2/api-validator/src/client/generated/index.ts +++ b/v2/api-validator/src/client/generated/index.ts @@ -224,6 +224,7 @@ export type { SwiftTransferDestination } from './models/SwiftTransferDestination export type { Transfer } from './models/Transfer'; export type { TransferCapability } from './models/TransferCapability'; export { UnauthorizedError } from './models/UnauthorizedError'; +export { VirtualAsset } from './models/VirtualAsset'; export type { WireAddress } from './models/WireAddress'; export { WireCapability } from './models/WireCapability'; export type { WireTransfer } from './models/WireTransfer'; diff --git a/v2/api-validator/src/client/generated/models/AssetDefinition.ts b/v2/api-validator/src/client/generated/models/AssetDefinition.ts index 0f96a706..2d160100 100644 --- a/v2/api-validator/src/client/generated/models/AssetDefinition.ts +++ b/v2/api-validator/src/client/generated/models/AssetDefinition.ts @@ -9,6 +9,7 @@ import type { ContractBasedToken } from './ContractBasedToken'; import type { Erc20Token } from './Erc20Token'; import type { SolanaToken } from './SolanaToken'; import type { StellarToken } from './StellarToken'; +import type { VirtualAsset } from './VirtualAsset'; -export type AssetDefinition = (BucketAsset | Erc20Token | Bep20Token | StellarToken | ContractBasedToken | SolanaToken); +export type AssetDefinition = (BucketAsset | VirtualAsset | Erc20Token | Bep20Token | StellarToken | ContractBasedToken | SolanaToken); diff --git a/v2/api-validator/src/client/generated/models/VirtualAsset.ts b/v2/api-validator/src/client/generated/models/VirtualAsset.ts new file mode 100644 index 00000000..1b5d45e7 --- /dev/null +++ b/v2/api-validator/src/client/generated/models/VirtualAsset.ts @@ -0,0 +1,22 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { AssetCommonProperties } from './AssetCommonProperties'; +import type { AssetReference } from './AssetReference'; + +export type VirtualAsset = (AssetCommonProperties & { + type?: VirtualAsset.type; + peggedTo?: AssetReference; +}); + +export namespace VirtualAsset { + + export enum type { + VIRTUAL_ASSET = 'VirtualAsset', + } + + +} + diff --git a/v2/openapi/fb-provider-api.yaml b/v2/openapi/fb-provider-api.yaml index 7c33848d..2923e533 100644 --- a/v2/openapi/fb-provider-api.yaml +++ b/v2/openapi/fb-provider-api.yaml @@ -165,6 +165,14 @@ paths: "symbol": "USDC", "description": "USDC is a fully collateralized US Dollar stablecoin, based on the open source fiat stablecoin framework developed by Centre.", "decimalPlaces": 2, + }, { + "id": "4386cf4d-83b2-4410-96va-0d3919a45506", + "type": "VirtualAsset", + "name": "SXDB", + "symbol": "SXDB", + "description": "SXDB is an internal securities asset designed to deliver monthly benefits to stakeholders.", + "decimalPlaces": 6, + "paagedTo": { "assetId": "f0844d82-7097-4521-95bc-d843724a893e" } } ] usdcBucket: @@ -925,6 +933,16 @@ components: properties: type: enum: [ BucketAsset ] + + VirtualAsset: + allOf: + - $ref: '#/components/schemas/AssetCommonProperties' + - type: object + properties: + type: + enum: [ VirtualAsset ] + peggedTo: + $ref: '#/components/schemas/AssetReference' Erc20Token: allOf: @@ -1020,6 +1038,7 @@ components: AssetDefinition: anyOf: - $ref: '#/components/schemas/BucketAsset' + - $ref: '#/components/schemas/VirtualAsset' - $ref: '#/components/schemas/Erc20Token' - $ref: '#/components/schemas/Bep20Token' - $ref: '#/components/schemas/StellarToken' diff --git a/v2/openapi/fb-unified-openapi.yaml b/v2/openapi/fb-unified-openapi.yaml index fe65976b..a91860c6 100644 --- a/v2/openapi/fb-unified-openapi.yaml +++ b/v2/openapi/fb-unified-openapi.yaml @@ -176,6 +176,14 @@ paths: symbol: USDC description: USDC is a fully collateralized US Dollar stablecoin, based on the open source fiat stablecoin framework developed by Centre. decimalPlaces: 2 + - id: 4386cf4d-83b2-4410-96va-0d3919a45506 + type: VirtualAsset + name: SXDB + symbol: SXDB + description: SXDB is an internal securities asset designed to deliver monthly benefits to stakeholders. + decimalPlaces: 6 + paagedTo: + assetId: f0844d82-7097-4521-95bc-d843724a893e usdcBucket: summary: USDC bucket description: Buckets are used to aggregate various currencies in one balance entry. @@ -3241,6 +3249,16 @@ components: type: enum: - BucketAsset + VirtualAsset: + allOf: + - $ref: '#/components/schemas/AssetCommonProperties' + - type: object + properties: + type: + enum: + - VirtualAsset + peggedTo: + $ref: '#/components/schemas/AssetReference' Erc20Token: allOf: - $ref: '#/components/schemas/AssetCommonProperties' @@ -3351,6 +3369,7 @@ components: AssetDefinition: anyOf: - $ref: '#/components/schemas/BucketAsset' + - $ref: '#/components/schemas/VirtualAsset' - $ref: '#/components/schemas/Erc20Token' - $ref: '#/components/schemas/Bep20Token' - $ref: '#/components/schemas/StellarToken'