From 10cd25f63c31434abce4c6741c9125bce19354b7 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 2 Dec 2022 17:11:44 -0800 Subject: [PATCH] Fix soroban_sdk::i128 -> i128 (#238) --- docs/common-interfaces/token.mdx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/common-interfaces/token.mdx b/docs/common-interfaces/token.mdx index 0aad4e3b..f88b5237 100644 --- a/docs/common-interfaces/token.mdx +++ b/docs/common-interfaces/token.mdx @@ -23,25 +23,25 @@ pub trait Contract { fn burn( env: soroban_sdk::Env, admin: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, from: soroban_auth::Identifier, - amount: soroban_sdk::i128, + amount: i128, ); /// If "admin" is the administrator, mint "amount" to "to". fn mint( env: soroban_sdk::Env, admin: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, to: soroban_auth::Identifier, - amount: soroban_sdk::i128, + amount: i128, ); /// If "admin" is the administrator, set the administrator to "id". fn set_admin( env: soroban_sdk::Env, admin: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, new_admin: soroban_auth::Identifier, ); @@ -49,7 +49,7 @@ pub trait Contract { fn freeze( env: soroban_sdk::Env, admin: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, id: soroban_auth::Identifier, ); @@ -57,7 +57,7 @@ pub trait Contract { fn unfreeze( env: soroban_sdk::Env, admin: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, id: soroban_auth::Identifier, ); @@ -70,44 +70,44 @@ pub trait Contract { env: soroban_sdk::Env, from: soroban_auth::Identifier, spender: soroban_auth::Identifier, - ) -> soroban_sdk::i128; + ) -> i128; /// Set the allowance to "amount" for "spender" to transfer from "from". fn approve( env: soroban_sdk::Env, from: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, spender: soroban_auth::Identifier, - amount: soroban_sdk::i128, + amount: i128, ); /// Get the balance of "id". - fn balance(env: soroban_sdk::Env, id: soroban_auth::Identifier) -> soroban_sdk::i128; + fn balance(env: soroban_sdk::Env, id: soroban_auth::Identifier) -> i128; /// Transfer "amount" from "from" to "to. fn xfer( env: soroban_sdk::Env, from: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, to: soroban_auth::Identifier, - amount: soroban_sdk::i128, + amount: i128, ); /// Transfer "amount" from "from" to "to", consuming the allowance of "spender". fn xfer_from( env: soroban_sdk::Env, spender: soroban_auth::Signature, - nonce: soroban_sdk::i128, + nonce: i128, from: soroban_auth::Identifier, to: soroban_auth::Identifier, - amount: soroban_sdk::i128, + amount: i128, ); // Returns true if "id" is frozen. fn is_frozen(env: soroban_sdk::Env, id: soroban_auth::Identifier) -> bool; // Returns the current nonce for "id". - fn nonce(env: soroban_sdk::Env, id: soroban_auth::Identifier) -> soroban_sdk::i128; + fn nonce(env: soroban_sdk::Env, id: soroban_auth::Identifier) -> i128; // -------------------------------------------------------------------------------- // Descriptive Interface