Skip to content

Commit

Permalink
Auto-generated SDK v1.0.0-beta27
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Dec 27, 2024
1 parent c96f7c4 commit 6dbf862
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.9.0
7.10.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @curvegrid/multibaas-sdk@1.0.0-beta26
## @curvegrid/multibaas-sdk@1.0.0-beta27

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install @curvegrid/[email protected]beta26 --save
npm install @curvegrid/[email protected]beta27 --save
```

_unPublished (not recommended):_
Expand Down
191 changes: 162 additions & 29 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1271,12 +1271,6 @@ export interface ContractABIMethod {
* @memberof ContractABIMethod
*/
notes: string;
/**
*
* @type {string}
* @memberof ContractABIMethod
*/
returns: string;
/**
* The function description.
* @type {string}
Expand Down Expand Up @@ -1344,12 +1338,6 @@ export interface ContractABIMethod1 {
* @memberof ContractABIMethod1
*/
notes: string;
/**
*
* @type {string}
* @memberof ContractABIMethod1
*/
returns: string;
/**
* The function description.
* @type {string}
Expand Down Expand Up @@ -2004,6 +1992,115 @@ export interface DeployContractTransaction {
*/
label?: string;
}
/**
* The domain fields for EIP-712. All fields are optional per the specification.
* @export
* @interface EIP712Domain
*/
export interface EIP712Domain {
/**
* Human-readable name of the signing domain.
* @type {string}
* @memberof EIP712Domain
*/
name?: string;
/**
* Current major version of the signing domain.
* @type {string}
* @memberof EIP712Domain
*/
version?: string;
/**
*
* @type {EIP712DomainChainId}
* @memberof EIP712Domain
*/
chainId?: EIP712DomainChainId;
/**
* An ethereum address.
* @type {string}
* @memberof EIP712Domain
*/
verifyingContract?: string;
/**
* A hex string.
* @type {string}
* @memberof EIP712Domain
*/
salt?: string;
}
/**
* @type EIP712DomainChainId
* The EIP-155 chain ID of the application using the typed data.
* @export
*/
export type EIP712DomainChainId = number | string;

/**
*
* @export
* @interface EIP712TypeEntry
*/
export interface EIP712TypeEntry {
/**
*
* @type {string}
* @memberof EIP712TypeEntry
*/
name: string;
/**
*
* @type {string}
* @memberof EIP712TypeEntry
*/
type: string;
}
/**
* EIP-712 structured typed data object.
* @export
* @interface EIP712TypedData
*/
export interface EIP712TypedData {
/**
*
* @type {EIP712Types}
* @memberof EIP712TypedData
*/
types: EIP712Types;
/**
* The root type of the message object. Must correspond to a key in the `types` object.
* @type {string}
* @memberof EIP712TypedData
*/
primaryType: string;
/**
*
* @type {EIP712Domain}
* @memberof EIP712TypedData
*/
domain: EIP712Domain;
/**
* The actual data, conforming to the `primaryType` definition in `types`.
* @type {object}
* @memberof EIP712TypedData
*/
message: object;
}
/**
* A mapping of type names to arrays of fields.
* @export
* @interface EIP712Types
*/
export interface EIP712Types {
[key: string]: Array<EIP712TypeEntry> | any;

/**
*
* @type {Array<EIP712TypeEntry>}
* @memberof EIP712Types
*/
EIP712Domain: Array<EIP712TypeEntry>;
}
/**
* An event returned by the API call.
* @export
Expand Down Expand Up @@ -2801,42 +2898,78 @@ export interface HSMData {
wallets: Array<AzureHardwareWallet>;
}
/**
* Request body representing a sign-data request.
* @type HSMSignRequest
* @export
* @interface HSMSignRequest
*/
export interface HSMSignRequest {
export type HSMSignRequest =
| ({ method: 'eth_signTypedData_v4' } & HSMSignRequestTypedData)
| ({ method: 'personal_sign' } & HSMSignRequestPersonalSign)
| ({ method: 'HSMSignRequestPersonalSign' } & HSMSignRequestPersonalSign)
| ({ method: 'HSMSignRequestTypedData' } & HSMSignRequestTypedData);

/**
* Request to sign a message using a cloud wallet.
* @export
* @interface HSMSignRequestPersonalSign
*/
export interface HSMSignRequestPersonalSign {
/**
* An ethereum address.
* The signing method to use.
* @type {string}
* @memberof HSMSignRequest
* @memberof HSMSignRequestPersonalSign
*/
address: string;
method: string;
/**
* Is the data field an encapsulated EIP-712 typed message?
* @type {boolean}
* @memberof HSMSignRequest
* An ethereum address.
* @type {string}
* @memberof HSMSignRequestPersonalSign
*/
isTyped?: boolean;
address: string;
/**
* Data to sign
* A hex string.
* @type {string}
* @memberof HSMSignRequest
* @memberof HSMSignRequestPersonalSign
*/
data: string;
/**
*
* @type {HSMSignRequestChainId}
* @memberof HSMSignRequest
* @type {HSMSignRequestPersonalSignChainId}
* @memberof HSMSignRequestPersonalSign
*/
chainId?: HSMSignRequestChainId;
chainId?: HSMSignRequestPersonalSignChainId;
}
/**
* @type HSMSignRequestChainId
* @type HSMSignRequestPersonalSignChainId
* Optionally lock the message to a specific chain by encoding the chain ID in the signature per EIP-155.
* @export
*/
export type HSMSignRequestChainId = number | string;
export type HSMSignRequestPersonalSignChainId = number | string;

/**
* Request to sign typed data using a cloud wallet.
* @export
* @interface HSMSignRequestTypedData
*/
export interface HSMSignRequestTypedData {
/**
* The signing method to use.
* @type {string}
* @memberof HSMSignRequestTypedData
*/
method: string;
/**
* An ethereum address.
* @type {string}
* @memberof HSMSignRequestTypedData
*/
address: string;
/**
*
* @type {EIP712TypedData}
* @memberof HSMSignRequestTypedData
*/
data: EIP712TypedData;
}
/**
* Response body representing a sign-data response.
* @export
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gitRepoId: multibaas-sdk-typescript
templateDir: templates
additionalProperties:
npmName: "@curvegrid/multibaas-sdk"
npmVersion: 1.0.0-beta26
npmVersion: 1.0.0-beta27
disallowAdditionalPropertiesIfNotPresent: true
legacyDiscriminatorBehavior: false
withInterfaces: true
Expand Down
2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.9.0"
"version": "7.10.0"
}
}
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvegrid/multibaas-sdk",
"version": "1.0.0-beta26",
"version": "1.0.0-beta27",
"description": "MultiBaas SDK for TypeScript / JavaScript",
"author": "Curvegrid",
"repository": {
Expand Down

0 comments on commit 6dbf862

Please sign in to comment.