diff --git a/Cargo.toml b/Cargo.toml index cc990a0..bce1ea7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale_signature_interfaces" -version = "0.1.5" +version = "0.1.6" edition = "2021" description = "The Scale Signature Interfaces for generating host and guest signatures across multiple languages" homepage = "https://scale.sh" diff --git a/index.ts b/index.ts index d74b87b..f4f6ea2 100644 --- a/index.ts +++ b/index.ts @@ -14,6 +14,12 @@ limitations under the License. */ +// TYPESCRIPT_NEXT_FUNCTION is the name of the next function in the typescript guest runtime +export const TYPESCRIPT_NEXT_FUNCTION: string = "scale_next"; + +// TYPESCRIPT_ADDRESS_OF is the name of the address_of function in the typescript guest runtime +export const TYPESCRIPT_ADDRESS_OF: string = "scale_address_of"; + // New is a factory function for creating a new Signature export type New = () => T; diff --git a/interfaces.go b/interfaces.go index 5a934ba..2cc0b4c 100644 --- a/interfaces.go +++ b/interfaces.go @@ -16,6 +16,12 @@ package interfaces +// TYPESCRIPT_NEXT_FUNCTION is the name of the next function in the typescript guest runtime +const TYPESCRIPT_NEXT_FUNCTION = "scale_next" //nolint:revive + +// TYPESCRIPT_ADDRESS_OF is the name of the address_of function in the typescript guest runtime +const TYPESCRIPT_ADDRESS_OF = "scale_address_of" //nolint:revive + // New is a factory function for creating a new Signature type New[T Signature] func() T diff --git a/lib.rs b/lib.rs index 92ebc09..8e0d1cd 100644 --- a/lib.rs +++ b/lib.rs @@ -14,6 +14,12 @@ limitations under the License. */ +// TYPESCRIPT_NEXT_FUNCTION is the name of the next function in the typescript guest runtime +pub const TYPESCRIPT_NEXT_FUNCTION: &str = "scale_next"; + +// TYPESCRIPT_ADDRESS_OF is the name of the address_of function in the typescript guest runtime +pub const TYPESCRIPT_ADDRESS_OF: &str = "scale_address_of"; + // New is a factory function for creating a new Signature #[allow(type_alias_bounds)] pub type New = fn() -> T; diff --git a/package.json b/package.json index 9a21069..34a7aac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@loopholelabs/scale-signature-interfaces", - "version": "0.1.5", + "version": "0.1.6", "description": "The Scale Signature Interfaces for generating host and guest signatures across multiple languages", "homepage": "https://scale.sh", "repository": "https://github.com/loopholelabs/scale-signature-interfaces", diff --git a/version/current_version b/version/current_version index 02bf650..610220f 100644 --- a/version/current_version +++ b/version/current_version @@ -1 +1 @@ -v0.1.5 \ No newline at end of file +v0.1.6 \ No newline at end of file