diff --git a/crates/near-sdk/Cargo.toml b/crates/near-sdk/Cargo.toml index 070176e..d8ac9cf 100644 --- a/crates/near-sdk/Cargo.toml +++ b/crates/near-sdk/Cargo.toml @@ -8,5 +8,5 @@ repository = "https://github.com/ahalabs/witme" version = "0.1.0" [dev-dependencies] -near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-3" } -near-contract-standards = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-3" } +near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-4" } +near-contract-standards = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-4" } diff --git a/examples/counter/Cargo.toml b/examples/counter/Cargo.toml index 91f10ab..677cb12 100644 --- a/examples/counter/Cargo.toml +++ b/examples/counter/Cargo.toml @@ -8,4 +8,4 @@ edition = "2018" crate-type = ["cdylib"] [dependencies] -near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-3" } +near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-4" } diff --git a/examples/rust-status-message/Cargo.toml b/examples/rust-status-message/Cargo.toml index cb89de6..7663192 100644 --- a/examples/rust-status-message/Cargo.toml +++ b/examples/rust-status-message/Cargo.toml @@ -8,5 +8,5 @@ edition = "2018" crate-type = ["cdylib"] [dependencies] -near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-3" } +near-sdk = { git = "https://github.com/ahalabs/near-sdk-rs", tag = "v4.0.0-4" } diff --git a/src/near-sdk/sdk.wit b/src/near-sdk/sdk.wit index 3f4a5b6..3f2d80b 100644 --- a/src/near-sdk/sdk.wit +++ b/src/near-sdk/sdk.wit @@ -1,4 +1,4 @@ -// This is a generated file by witgen (https://github.com/bnjjj/witgen), please do not edit yourself, you can generate a new one thanks to cargo witgen generate command. (witme v0.1.0) +// This is a generated file by witgen (https://github.com/bnjjj/witgen), please do not edit yourself, you can generate a new one thanks to cargo witgen generate command. (witme v0.2.0) /// StorageUsage is used to count the amount of storage used by a contract. type storage-usage = u64 @@ -6,11 +6,6 @@ type storage-usage = u64 /// Balance is a type for storing amounts of tokens, specified in yoctoNEAR. type balance = u128 -/// String representation of a u128-bit integer -/// @pattern ^[0-9]+$ -/// Note: largest u128 is "340282366920938463463374607431768211455" -type u128 = string - /// Represents the amount of NEAR tokens in "gas units" which are used to fund transactions. type gas = u64 @@ -25,6 +20,10 @@ type duration = u64 /// @pattern ^(([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+$ type account-id = string +/// String representation of a u128-bit integer +/// @pattern ^[0-9]+$ +type u128 = string + /// Public key in a binary format with base58 string serialization with human-readable curve. /// The key types currently supported are `secp256k1` and `ed25519`. ///