|
@@ -7,7 +7,7 @@ use near_primitives::{
|
7
|
7
|
account::{AccessKey, AccessKeyPermission},
|
8
|
8
|
hash::{hash, CryptoHash},
|
9
|
9
|
logging,
|
10
|
|
- serialize::{base64_format, u128_dec_format_compatible},
|
|
10
|
+ serialize::{base64_format, dec_format},
|
11
|
11
|
types::{Balance, BlockHeight, Gas, Nonce},
|
12
|
12
|
};
|
13
|
13
|
use serde::{
|
|
@@ -120,7 +120,7 @@ pub struct FunctionCallAction {
|
120
|
120
|
#[serde(with = "base64_format")]
|
121
|
121
|
pub args: Vec<u8>,
|
122
|
122
|
pub gas: Gas,
|
123
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
123
|
+ #[serde(with = "dec_format")]
|
124
|
124
|
pub deposit: Balance,
|
125
|
125
|
}
|
126
|
126
|
|
|
@@ -146,7 +146,7 @@ impl fmt::Debug for FunctionCallAction {
|
146
|
146
|
|
147
|
147
|
#[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, PartialEq, Eq, Clone, Debug)]
|
148
|
148
|
pub struct TransferAction {
|
149
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
149
|
+ #[serde(with = "dec_format")]
|
150
|
150
|
pub deposit: Balance,
|
151
|
151
|
}
|
152
|
152
|
|
|
@@ -160,7 +160,7 @@ impl From<TransferAction> for Action {
|
160
|
160
|
#[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, PartialEq, Eq, Clone, Debug)]
|
161
|
161
|
pub struct StakeAction {
|
162
|
162
|
/// Amount of tokens to stake.
|
163
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
163
|
+ #[serde(with = "dec_format")]
|
164
|
164
|
pub stake: Balance,
|
165
|
165
|
/// Validator key which will be used to sign transactions on behalf of singer_id
|
166
|
166
|
pub public_key: ED25519PublicKey,
|
|
@@ -377,15 +377,15 @@ pub enum ActionView {
|
377
|
377
|
#[serde(with = "base64_format")]
|
378
|
378
|
args: Vec<u8>,
|
379
|
379
|
gas: Gas,
|
380
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
380
|
+ #[serde(with = "dec_format")]
|
381
|
381
|
deposit: Balance,
|
382
|
382
|
},
|
383
|
383
|
Transfer {
|
384
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
384
|
+ #[serde(with = "dec_format")]
|
385
|
385
|
deposit: Balance,
|
386
|
386
|
},
|
387
|
387
|
Stake {
|
388
|
|
- #[serde(with = "u128_dec_format_compatible")]
|
|
388
|
+ #[serde(with = "dec_format")]
|
389
|
389
|
stake: Balance,
|
390
|
390
|
public_key: ED25519PublicKey,
|
391
|
391
|
},
|