diff --git a/api/doc/spec.json b/api/doc/spec.json index 2b69b87166ce9..931da247554b9 100644 --- a/api/doc/spec.json +++ b/api/doc/spec.json @@ -11931,7 +11931,10 @@ "$ref": "#/components/schemas/AccountSignature_MultiEd25519Signature" }, { - "$ref": "#/components/schemas/AccountSignature_Secp256k1EcdsaSignature" + "$ref": "#/components/schemas/AccountSignature_SingleKeySignature" + }, + { + "$ref": "#/components/schemas/AccountSignature_MultiKeySignature" } ], "discriminator": { @@ -11939,7 +11942,8 @@ "mapping": { "ed25519_signature": "#/components/schemas/AccountSignature_Ed25519Signature", "multi_ed25519_signature": "#/components/schemas/AccountSignature_MultiEd25519Signature", - "secp256k1_ecdsa_signature": "#/components/schemas/AccountSignature_Secp256k1EcdsaSignature" + "single_key_signature": "#/components/schemas/AccountSignature_SingleKeySignature", + "multi_key_signature": "#/components/schemas/AccountSignature_MultiKeySignature" } } }, @@ -11981,7 +11985,26 @@ } ] }, - "AccountSignature_Secp256k1EcdsaSignature": { + "AccountSignature_MultiKeySignature": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "multi_key_signature" + } + } + }, + { + "$ref": "#/components/schemas/MultiKeySignature" + } + ] + }, + "AccountSignature_SingleKeySignature": { "allOf": [ { "type": "object", @@ -11991,12 +12014,12 @@ "properties": { "type": { "type": "string", - "example": "secp256k1_ecdsa_signature" + "example": "single_key_signature" } } }, { - "$ref": "#/components/schemas/Secp256k1EcdsaSignature" + "$ref": "#/components/schemas/SingleKeySignature" } ] }, @@ -12686,6 +12709,22 @@ } } }, + "IndexedSignature": { + "type": "object", + "required": [ + "index", + "signature" + ], + "properties": { + "index": { + "type": "integer", + "format": "uint8" + }, + "signature": { + "$ref": "#/components/schemas/Signature" + } + } + }, "ModuleBundlePayload": { "type": "object", "required": [ @@ -13081,6 +13120,33 @@ } } }, + "MultiKeySignature": { + "type": "object", + "description": "A multi key signature", + "required": [ + "public_keys", + "signatures", + "signatures_required" + ], + "properties": { + "public_keys": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PublicKey" + } + }, + "signatures": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IndexedSignature" + } + }, + "signatures_required": { + "type": "integer", + "format": "uint8" + } + } + }, "MultisigPayload": { "type": "object", "description": "A multisig transaction that allows an owner of a multisig account to execute a pre-approved\ntransaction as the multisig account.", @@ -13143,6 +13209,43 @@ } } }, + "PublicKey": { + "type": "object", + "oneOf": [ + { + "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + }, + { + "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ed25519": "#/components/schemas/PublicKey_string(HexEncodedBytes)", + "secp256k1_ecdsa": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + } + } + }, + "PublicKey_string(HexEncodedBytes)": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "secp256k1_ecdsa" + } + } + }, + { + "$ref": "#/components/schemas/HexEncodedBytes" + } + ] + }, "RawTableItemRequest": { "type": "object", "description": "Table Item request for the GetTableItemRaw API", @@ -13203,19 +13306,56 @@ } } }, - "Secp256k1EcdsaSignature": { + "Signature": { "type": "object", - "description": "A single Secp256k1Ecdsa signature", + "oneOf": [ + { + "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + }, + { + "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ed25519": "#/components/schemas/Signature_string(HexEncodedBytes)", + "secp256k1_ecdsa": "#/components/schemas/Signature_string(HexEncodedBytes)" + } + } + }, + "Signature_string(HexEncodedBytes)": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "secp256k1_ecdsa" + } + } + }, + { + "$ref": "#/components/schemas/HexEncodedBytes" + } + ] + }, + "SingleKeySignature": { + "type": "object", + "description": "A single key signature", "required": [ "public_key", "signature" ], "properties": { "public_key": { - "$ref": "#/components/schemas/HexEncodedBytes" + "$ref": "#/components/schemas/PublicKey" }, "signature": { - "$ref": "#/components/schemas/HexEncodedBytes" + "$ref": "#/components/schemas/Signature" } } }, @@ -13488,7 +13628,7 @@ "$ref": "#/components/schemas/TransactionSignature_FeePayerSignature" }, { - "$ref": "#/components/schemas/TransactionSignature_Secp256k1EcdsaSignature" + "$ref": "#/components/schemas/TransactionSignature_AccountSignature" } ], "discriminator": { @@ -13498,11 +13638,11 @@ "multi_ed25519_signature": "#/components/schemas/TransactionSignature_MultiEd25519Signature", "multi_agent_signature": "#/components/schemas/TransactionSignature_MultiAgentSignature", "fee_payer_signature": "#/components/schemas/TransactionSignature_FeePayerSignature", - "secp256k1_ecdsa_signature": "#/components/schemas/TransactionSignature_Secp256k1EcdsaSignature" + "single_sender": "#/components/schemas/TransactionSignature_AccountSignature" } } }, - "TransactionSignature_Ed25519Signature": { + "TransactionSignature_AccountSignature": { "allOf": [ { "type": "object", @@ -13512,16 +13652,16 @@ "properties": { "type": { "type": "string", - "example": "ed25519_signature" + "example": "single_sender" } } }, { - "$ref": "#/components/schemas/Ed25519Signature" + "$ref": "#/components/schemas/AccountSignature" } ] }, - "TransactionSignature_FeePayerSignature": { + "TransactionSignature_Ed25519Signature": { "allOf": [ { "type": "object", @@ -13531,16 +13671,16 @@ "properties": { "type": { "type": "string", - "example": "fee_payer_signature" + "example": "ed25519_signature" } } }, { - "$ref": "#/components/schemas/FeePayerSignature" + "$ref": "#/components/schemas/Ed25519Signature" } ] }, - "TransactionSignature_MultiAgentSignature": { + "TransactionSignature_FeePayerSignature": { "allOf": [ { "type": "object", @@ -13550,16 +13690,16 @@ "properties": { "type": { "type": "string", - "example": "multi_agent_signature" + "example": "fee_payer_signature" } } }, { - "$ref": "#/components/schemas/MultiAgentSignature" + "$ref": "#/components/schemas/FeePayerSignature" } ] }, - "TransactionSignature_MultiEd25519Signature": { + "TransactionSignature_MultiAgentSignature": { "allOf": [ { "type": "object", @@ -13569,16 +13709,16 @@ "properties": { "type": { "type": "string", - "example": "multi_ed25519_signature" + "example": "multi_agent_signature" } } }, { - "$ref": "#/components/schemas/MultiEd25519Signature" + "$ref": "#/components/schemas/MultiAgentSignature" } ] }, - "TransactionSignature_Secp256k1EcdsaSignature": { + "TransactionSignature_MultiEd25519Signature": { "allOf": [ { "type": "object", @@ -13588,12 +13728,12 @@ "properties": { "type": { "type": "string", - "example": "secp256k1_ecdsa_signature" + "example": "multi_ed25519_signature" } } }, { - "$ref": "#/components/schemas/Secp256k1EcdsaSignature" + "$ref": "#/components/schemas/MultiEd25519Signature" } ] }, diff --git a/api/doc/spec.yaml b/api/doc/spec.yaml index defc5c52499a9..c26a940dcbb2f 100644 --- a/api/doc/spec.yaml +++ b/api/doc/spec.yaml @@ -8942,13 +8942,15 @@ components: oneOf: - $ref: '#/components/schemas/AccountSignature_Ed25519Signature' - $ref: '#/components/schemas/AccountSignature_MultiEd25519Signature' - - $ref: '#/components/schemas/AccountSignature_Secp256k1EcdsaSignature' + - $ref: '#/components/schemas/AccountSignature_SingleKeySignature' + - $ref: '#/components/schemas/AccountSignature_MultiKeySignature' discriminator: propertyName: type mapping: ed25519_signature: '#/components/schemas/AccountSignature_Ed25519Signature' multi_ed25519_signature: '#/components/schemas/AccountSignature_MultiEd25519Signature' - secp256k1_ecdsa_signature: '#/components/schemas/AccountSignature_Secp256k1EcdsaSignature' + single_key_signature: '#/components/schemas/AccountSignature_SingleKeySignature' + multi_key_signature: '#/components/schemas/AccountSignature_MultiKeySignature' AccountSignature_Ed25519Signature: allOf: - type: object @@ -8969,7 +8971,7 @@ components: type: string example: multi_ed25519_signature - $ref: '#/components/schemas/MultiEd25519Signature' - AccountSignature_Secp256k1EcdsaSignature: + AccountSignature_MultiKeySignature: allOf: - type: object required: @@ -8977,8 +8979,18 @@ components: properties: type: type: string - example: secp256k1_ecdsa_signature - - $ref: '#/components/schemas/Secp256k1EcdsaSignature' + example: multi_key_signature + - $ref: '#/components/schemas/MultiKeySignature' + AccountSignature_SingleKeySignature: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: single_key_signature + - $ref: '#/components/schemas/SingleKeySignature' Address: type: string format: hex @@ -9511,6 +9523,17 @@ components: description: |- Git hash of the build of the API endpoint. Can be used to determine the exact software version used by the API endpoint. + IndexedSignature: + type: object + required: + - index + - signature + properties: + index: + type: integer + format: uint8 + signature: + $ref: '#/components/schemas/Signature' ModuleBundlePayload: type: object required: @@ -9879,6 +9902,25 @@ components: description: The number of signatures required for a successful transaction bitmap: $ref: '#/components/schemas/HexEncodedBytes' + MultiKeySignature: + type: object + description: A multi key signature + required: + - public_keys + - signatures + - signatures_required + properties: + public_keys: + type: array + items: + $ref: '#/components/schemas/PublicKey' + signatures: + type: array + items: + $ref: '#/components/schemas/IndexedSignature' + signatures_required: + type: integer + format: uint8 MultisigPayload: type: object description: |- @@ -9923,6 +9965,26 @@ components: $ref: '#/components/schemas/TransactionPayload' signature: $ref: '#/components/schemas/TransactionSignature' + PublicKey: + type: object + oneOf: + - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' + - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' + discriminator: + propertyName: type + mapping: + ed25519: '#/components/schemas/PublicKey_string(HexEncodedBytes)' + secp256k1_ecdsa: '#/components/schemas/PublicKey_string(HexEncodedBytes)' + PublicKey_string(HexEncodedBytes): + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: secp256k1_ecdsa + - $ref: '#/components/schemas/HexEncodedBytes' RawTableItemRequest: type: object description: Table Item request for the GetTableItemRaw API @@ -9965,17 +10027,37 @@ components: $ref: '#/components/schemas/Address' script: $ref: '#/components/schemas/ScriptPayload' - Secp256k1EcdsaSignature: + Signature: + type: object + oneOf: + - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' + - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' + discriminator: + propertyName: type + mapping: + ed25519: '#/components/schemas/Signature_string(HexEncodedBytes)' + secp256k1_ecdsa: '#/components/schemas/Signature_string(HexEncodedBytes)' + Signature_string(HexEncodedBytes): + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: secp256k1_ecdsa + - $ref: '#/components/schemas/HexEncodedBytes' + SingleKeySignature: type: object - description: A single Secp256k1Ecdsa signature + description: A single key signature required: - public_key - signature properties: public_key: - $ref: '#/components/schemas/HexEncodedBytes' + $ref: '#/components/schemas/PublicKey' signature: - $ref: '#/components/schemas/HexEncodedBytes' + $ref: '#/components/schemas/Signature' StateCheckpointTransaction: type: object description: A state checkpoint transaction @@ -10147,7 +10229,7 @@ components: - $ref: '#/components/schemas/TransactionSignature_MultiEd25519Signature' - $ref: '#/components/schemas/TransactionSignature_MultiAgentSignature' - $ref: '#/components/schemas/TransactionSignature_FeePayerSignature' - - $ref: '#/components/schemas/TransactionSignature_Secp256k1EcdsaSignature' + - $ref: '#/components/schemas/TransactionSignature_AccountSignature' discriminator: propertyName: type mapping: @@ -10155,7 +10237,17 @@ components: multi_ed25519_signature: '#/components/schemas/TransactionSignature_MultiEd25519Signature' multi_agent_signature: '#/components/schemas/TransactionSignature_MultiAgentSignature' fee_payer_signature: '#/components/schemas/TransactionSignature_FeePayerSignature' - secp256k1_ecdsa_signature: '#/components/schemas/TransactionSignature_Secp256k1EcdsaSignature' + single_sender: '#/components/schemas/TransactionSignature_AccountSignature' + TransactionSignature_AccountSignature: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: single_sender + - $ref: '#/components/schemas/AccountSignature' TransactionSignature_Ed25519Signature: allOf: - type: object @@ -10196,16 +10288,6 @@ components: type: string example: multi_ed25519_signature - $ref: '#/components/schemas/MultiEd25519Signature' - TransactionSignature_Secp256k1EcdsaSignature: - allOf: - - type: object - required: - - type - properties: - type: - type: string - example: secp256k1_ecdsa_signature - - $ref: '#/components/schemas/Secp256k1EcdsaSignature' Transaction_BlockMetadataTransaction: allOf: - type: object diff --git a/ecosystem/typescript/sdk/src/generated/index.ts b/ecosystem/typescript/sdk/src/generated/index.ts index 18333c4c894fb..1da2a96f82f90 100644 --- a/ecosystem/typescript/sdk/src/generated/index.ts +++ b/ecosystem/typescript/sdk/src/generated/index.ts @@ -6,7 +6,8 @@ export type { AccountData } from './models/AccountData'; export type { AccountSignature } from './models/AccountSignature'; export type { AccountSignature_Ed25519Signature } from './models/AccountSignature_Ed25519Signature'; export type { AccountSignature_MultiEd25519Signature } from './models/AccountSignature_MultiEd25519Signature'; -export type { AccountSignature_Secp256k1EcdsaSignature } from './models/AccountSignature_Secp256k1EcdsaSignature'; +export type { AccountSignature_MultiKeySignature } from './models/AccountSignature_MultiKeySignature'; +export type { AccountSignature_SingleKeySignature } from './models/AccountSignature_SingleKeySignature'; export type { Address } from './models/Address'; export type { AptosError } from './models/AptosError'; export { AptosErrorCode } from './models/AptosErrorCode'; @@ -33,6 +34,7 @@ export type { HashValue } from './models/HashValue'; export type { HealthCheckSuccess } from './models/HealthCheckSuccess'; export type { HexEncodedBytes } from './models/HexEncodedBytes'; export type { IdentifierWrapper } from './models/IdentifierWrapper'; +export type { IndexedSignature } from './models/IndexedSignature'; export type { IndexResponse } from './models/IndexResponse'; export type { ModuleBundlePayload } from './models/ModuleBundlePayload'; export type { MoveAbility } from './models/MoveAbility'; @@ -53,14 +55,19 @@ export type { MoveType } from './models/MoveType'; export type { MoveValue } from './models/MoveValue'; export type { MultiAgentSignature } from './models/MultiAgentSignature'; export type { MultiEd25519Signature } from './models/MultiEd25519Signature'; +export type { MultiKeySignature } from './models/MultiKeySignature'; export type { MultisigPayload } from './models/MultisigPayload'; export type { MultisigTransactionPayload } from './models/MultisigTransactionPayload'; export type { PendingTransaction } from './models/PendingTransaction'; +export type { PublicKey } from './models/PublicKey'; +export type { PublicKey_string_HexEncodedBytes_ } from './models/PublicKey_string_HexEncodedBytes_'; export type { RawTableItemRequest } from './models/RawTableItemRequest'; export { RoleType } from './models/RoleType'; export type { ScriptPayload } from './models/ScriptPayload'; export type { ScriptWriteSet } from './models/ScriptWriteSet'; -export type { Secp256k1EcdsaSignature } from './models/Secp256k1EcdsaSignature'; +export type { Signature } from './models/Signature'; +export type { Signature_string_HexEncodedBytes_ } from './models/Signature_string_HexEncodedBytes_'; +export type { SingleKeySignature } from './models/SingleKeySignature'; export type { StateCheckpointTransaction } from './models/StateCheckpointTransaction'; export type { StateKeyWrapper } from './models/StateKeyWrapper'; export type { SubmitTransactionRequest } from './models/SubmitTransactionRequest'; @@ -79,11 +86,11 @@ export type { TransactionPayload_ScriptPayload } from './models/TransactionPaylo export type { TransactionsBatchSingleSubmissionFailure } from './models/TransactionsBatchSingleSubmissionFailure'; export type { TransactionsBatchSubmissionResult } from './models/TransactionsBatchSubmissionResult'; export type { TransactionSignature } from './models/TransactionSignature'; +export type { TransactionSignature_AccountSignature } from './models/TransactionSignature_AccountSignature'; export type { TransactionSignature_Ed25519Signature } from './models/TransactionSignature_Ed25519Signature'; export type { TransactionSignature_FeePayerSignature } from './models/TransactionSignature_FeePayerSignature'; export type { TransactionSignature_MultiAgentSignature } from './models/TransactionSignature_MultiAgentSignature'; export type { TransactionSignature_MultiEd25519Signature } from './models/TransactionSignature_MultiEd25519Signature'; -export type { TransactionSignature_Secp256k1EcdsaSignature } from './models/TransactionSignature_Secp256k1EcdsaSignature'; export type { U128 } from './models/U128'; export type { U256 } from './models/U256'; export type { U64 } from './models/U64'; diff --git a/ecosystem/typescript/sdk/src/generated/models/AccountSignature.ts b/ecosystem/typescript/sdk/src/generated/models/AccountSignature.ts index 49fc8f855d280..171dba985248e 100644 --- a/ecosystem/typescript/sdk/src/generated/models/AccountSignature.ts +++ b/ecosystem/typescript/sdk/src/generated/models/AccountSignature.ts @@ -4,7 +4,8 @@ import type { AccountSignature_Ed25519Signature } from './AccountSignature_Ed25519Signature'; import type { AccountSignature_MultiEd25519Signature } from './AccountSignature_MultiEd25519Signature'; -import type { AccountSignature_Secp256k1EcdsaSignature } from './AccountSignature_Secp256k1EcdsaSignature'; +import type { AccountSignature_MultiKeySignature } from './AccountSignature_MultiKeySignature'; +import type { AccountSignature_SingleKeySignature } from './AccountSignature_SingleKeySignature'; /** * Account signature scheme @@ -15,5 +16,5 @@ import type { AccountSignature_Secp256k1EcdsaSignature } from './AccountSignatur * 2. A k-of-n multi-Ed25519 key account, multiple private keys, such that k-of-n must sign a transaction. * 3. A single Secp256k1Ecdsa key account, one private key */ -export type AccountSignature = (AccountSignature_Ed25519Signature | AccountSignature_MultiEd25519Signature | AccountSignature_Secp256k1EcdsaSignature); +export type AccountSignature = (AccountSignature_Ed25519Signature | AccountSignature_MultiEd25519Signature | AccountSignature_SingleKeySignature | AccountSignature_MultiKeySignature); diff --git a/ecosystem/typescript/sdk/src/generated/models/AccountSignature_MultiKeySignature.ts b/ecosystem/typescript/sdk/src/generated/models/AccountSignature_MultiKeySignature.ts new file mode 100644 index 0000000000000..4589269dacbff --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/AccountSignature_MultiKeySignature.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { MultiKeySignature } from './MultiKeySignature'; + +export type AccountSignature_MultiKeySignature = ({ + type: string; +} & MultiKeySignature); + diff --git a/ecosystem/typescript/sdk/src/generated/models/AccountSignature_Secp256k1EcdsaSignature.ts b/ecosystem/typescript/sdk/src/generated/models/AccountSignature_Secp256k1EcdsaSignature.ts deleted file mode 100644 index 0b70911dc4dad..0000000000000 --- a/ecosystem/typescript/sdk/src/generated/models/AccountSignature_Secp256k1EcdsaSignature.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Secp256k1EcdsaSignature } from './Secp256k1EcdsaSignature'; - -export type AccountSignature_Secp256k1EcdsaSignature = ({ - type: string; -} & Secp256k1EcdsaSignature); - diff --git a/ecosystem/typescript/sdk/src/generated/models/AccountSignature_SingleKeySignature.ts b/ecosystem/typescript/sdk/src/generated/models/AccountSignature_SingleKeySignature.ts new file mode 100644 index 0000000000000..3b8a64b12ed72 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/AccountSignature_SingleKeySignature.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { SingleKeySignature } from './SingleKeySignature'; + +export type AccountSignature_SingleKeySignature = ({ + type: string; +} & SingleKeySignature); + diff --git a/ecosystem/typescript/sdk/src/generated/models/IndexedSignature.ts b/ecosystem/typescript/sdk/src/generated/models/IndexedSignature.ts new file mode 100644 index 0000000000000..da6836f12bd2d --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/IndexedSignature.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Signature } from './Signature'; + +export type IndexedSignature = { + index: number; + signature: Signature; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/MultiKeySignature.ts b/ecosystem/typescript/sdk/src/generated/models/MultiKeySignature.ts new file mode 100644 index 0000000000000..529f69de6c441 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/MultiKeySignature.ts @@ -0,0 +1,16 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { IndexedSignature } from './IndexedSignature'; +import type { PublicKey } from './PublicKey'; + +/** + * A multi key signature + */ +export type MultiKeySignature = { + public_keys: Array; + signatures: Array; + signatures_required: number; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts new file mode 100644 index 0000000000000..e9611882147b1 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts @@ -0,0 +1,8 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { PublicKey_string_HexEncodedBytes_ } from './PublicKey_string_HexEncodedBytes_'; + +export type PublicKey = PublicKey_string_HexEncodedBytes_; + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts new file mode 100644 index 0000000000000..488809a28110a --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HexEncodedBytes } from './HexEncodedBytes'; + +export type PublicKey_string_HexEncodedBytes_ = ({ + type: string; +} & HexEncodedBytes); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Secp256k1EcdsaSignature.ts b/ecosystem/typescript/sdk/src/generated/models/Secp256k1EcdsaSignature.ts deleted file mode 100644 index 3cb52c8a5032b..0000000000000 --- a/ecosystem/typescript/sdk/src/generated/models/Secp256k1EcdsaSignature.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { HexEncodedBytes } from './HexEncodedBytes'; - -/** - * A single Secp256k1Ecdsa signature - */ -export type Secp256k1EcdsaSignature = { - public_key: HexEncodedBytes; - signature: HexEncodedBytes; -}; - diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature.ts b/ecosystem/typescript/sdk/src/generated/models/Signature.ts new file mode 100644 index 0000000000000..ebd65c20a1d20 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature.ts @@ -0,0 +1,8 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Signature_string_HexEncodedBytes_ } from './Signature_string_HexEncodedBytes_'; + +export type Signature = Signature_string_HexEncodedBytes_; + diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts b/ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts new file mode 100644 index 0000000000000..74cc378d7c04b --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HexEncodedBytes } from './HexEncodedBytes'; + +export type Signature_string_HexEncodedBytes_ = ({ + type: string; +} & HexEncodedBytes); + diff --git a/ecosystem/typescript/sdk/src/generated/models/SingleKeySignature.ts b/ecosystem/typescript/sdk/src/generated/models/SingleKeySignature.ts new file mode 100644 index 0000000000000..248a576abfc5c --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/SingleKeySignature.ts @@ -0,0 +1,15 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { PublicKey } from './PublicKey'; +import type { Signature } from './Signature'; + +/** + * A single key signature + */ +export type SingleKeySignature = { + public_key: PublicKey; + signature: Signature; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/TransactionSignature.ts b/ecosystem/typescript/sdk/src/generated/models/TransactionSignature.ts index ea00873483579..a4881c202f29b 100644 --- a/ecosystem/typescript/sdk/src/generated/models/TransactionSignature.ts +++ b/ecosystem/typescript/sdk/src/generated/models/TransactionSignature.ts @@ -2,14 +2,14 @@ /* tslint:disable */ /* eslint-disable */ +import type { TransactionSignature_AccountSignature } from './TransactionSignature_AccountSignature'; import type { TransactionSignature_Ed25519Signature } from './TransactionSignature_Ed25519Signature'; import type { TransactionSignature_FeePayerSignature } from './TransactionSignature_FeePayerSignature'; import type { TransactionSignature_MultiAgentSignature } from './TransactionSignature_MultiAgentSignature'; import type { TransactionSignature_MultiEd25519Signature } from './TransactionSignature_MultiEd25519Signature'; -import type { TransactionSignature_Secp256k1EcdsaSignature } from './TransactionSignature_Secp256k1EcdsaSignature'; /** * An enum representing the different transaction signatures available */ -export type TransactionSignature = (TransactionSignature_Ed25519Signature | TransactionSignature_MultiEd25519Signature | TransactionSignature_MultiAgentSignature | TransactionSignature_FeePayerSignature | TransactionSignature_Secp256k1EcdsaSignature); +export type TransactionSignature = (TransactionSignature_Ed25519Signature | TransactionSignature_MultiEd25519Signature | TransactionSignature_MultiAgentSignature | TransactionSignature_FeePayerSignature | TransactionSignature_AccountSignature); diff --git a/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_AccountSignature.ts b/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_AccountSignature.ts new file mode 100644 index 0000000000000..3f8c41de37503 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_AccountSignature.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { AccountSignature } from './AccountSignature'; + +export type TransactionSignature_AccountSignature = ({ + type: string; +} & AccountSignature); + diff --git a/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_Secp256k1EcdsaSignature.ts b/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_Secp256k1EcdsaSignature.ts deleted file mode 100644 index 1c522c1fe4fd1..0000000000000 --- a/ecosystem/typescript/sdk/src/generated/models/TransactionSignature_Secp256k1EcdsaSignature.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Secp256k1EcdsaSignature } from './Secp256k1EcdsaSignature'; - -export type TransactionSignature_Secp256k1EcdsaSignature = ({ - type: string; -} & Secp256k1EcdsaSignature); -