-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,308 additions
and
116 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
75 changes: 75 additions & 0 deletions
75
sdk/typescript/lib/generated/models/ComponentEntityAccessRules.ts
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,75 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Babylon Gateway API - RCnet V2 | ||
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal. | ||
* | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface ComponentEntityAccessRules | ||
*/ | ||
export interface ComponentEntityAccessRules { | ||
/** | ||
* | ||
* @type {object} | ||
* @memberof ComponentEntityAccessRules | ||
*/ | ||
owner: object; | ||
/** | ||
* | ||
* @type {object} | ||
* @memberof ComponentEntityAccessRules | ||
*/ | ||
entries: object; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the ComponentEntityAccessRules interface. | ||
*/ | ||
export function instanceOfComponentEntityAccessRules(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "owner" in value; | ||
isInstance = isInstance && "entries" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function ComponentEntityAccessRulesFromJSON(json: any): ComponentEntityAccessRules { | ||
return ComponentEntityAccessRulesFromJSONTyped(json, false); | ||
} | ||
|
||
export function ComponentEntityAccessRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentEntityAccessRules { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'owner': json['owner'], | ||
'entries': json['entries'], | ||
}; | ||
} | ||
|
||
export function ComponentEntityAccessRulesToJSON(value?: ComponentEntityAccessRules | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'owner': value.owner, | ||
'entries': value.entries, | ||
}; | ||
} | ||
|
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
92 changes: 92 additions & 0 deletions
92
sdk/typescript/lib/generated/models/MetadataNonFungibleGlobalIdArrayValue.ts
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,92 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Babylon Gateway API - RCnet V2 | ||
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal. | ||
* | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
import type { MetadataNonFungibleGlobalIdArrayValueAllOfValues } from './MetadataNonFungibleGlobalIdArrayValueAllOfValues'; | ||
import { | ||
MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSON, | ||
MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSONTyped, | ||
MetadataNonFungibleGlobalIdArrayValueAllOfValuesToJSON, | ||
} from './MetadataNonFungibleGlobalIdArrayValueAllOfValues'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface MetadataNonFungibleGlobalIdArrayValue | ||
*/ | ||
export interface MetadataNonFungibleGlobalIdArrayValue { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MetadataNonFungibleGlobalIdArrayValue | ||
*/ | ||
type: MetadataNonFungibleGlobalIdArrayValueTypeEnum; | ||
/** | ||
* | ||
* @type {Array<MetadataNonFungibleGlobalIdArrayValueAllOfValues>} | ||
* @memberof MetadataNonFungibleGlobalIdArrayValue | ||
*/ | ||
values: Array<MetadataNonFungibleGlobalIdArrayValueAllOfValues>; | ||
} | ||
|
||
|
||
/** | ||
* @export | ||
*/ | ||
export const MetadataNonFungibleGlobalIdArrayValueTypeEnum = { | ||
NonFungibleGlobalIdArray: 'NonFungibleGlobalIdArray' | ||
} as const; | ||
export type MetadataNonFungibleGlobalIdArrayValueTypeEnum = typeof MetadataNonFungibleGlobalIdArrayValueTypeEnum[keyof typeof MetadataNonFungibleGlobalIdArrayValueTypeEnum]; | ||
|
||
|
||
/** | ||
* Check if a given object implements the MetadataNonFungibleGlobalIdArrayValue interface. | ||
*/ | ||
export function instanceOfMetadataNonFungibleGlobalIdArrayValue(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "type" in value; | ||
isInstance = isInstance && "values" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function MetadataNonFungibleGlobalIdArrayValueFromJSON(json: any): MetadataNonFungibleGlobalIdArrayValue { | ||
return MetadataNonFungibleGlobalIdArrayValueFromJSONTyped(json, false); | ||
} | ||
|
||
export function MetadataNonFungibleGlobalIdArrayValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataNonFungibleGlobalIdArrayValue { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'type': json['type'], | ||
'values': ((json['values'] as Array<any>).map(MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSON)), | ||
}; | ||
} | ||
|
||
export function MetadataNonFungibleGlobalIdArrayValueToJSON(value?: MetadataNonFungibleGlobalIdArrayValue | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'type': value.type, | ||
'values': ((value.values as Array<any>).map(MetadataNonFungibleGlobalIdArrayValueAllOfValuesToJSON)), | ||
}; | ||
} | ||
|
Oops, something went wrong.