|
7 | 7 | //! Use [`TokenClient`] for calling token contracts such as the Stellar Asset |
8 | 8 | //! Contract. |
9 | 9 |
|
10 | | -use crate::{contractclient, contractspecfn, Address, Env, MuxedAddress, String}; |
| 10 | +use crate::{contractclient, contractspecfn, Address, Env, String}; |
11 | 11 |
|
12 | 12 | // The interface below was copied from |
13 | 13 | // https://github.com/stellar/rs-soroban-env/blob/main/soroban-env-host/src/native_contract/token/contract.rs |
@@ -140,9 +140,8 @@ pub trait TokenInterface { |
140 | 140 | /// # Events |
141 | 141 | /// |
142 | 142 | /// Emits an event with topics `["transfer", from: Address, to: Address], |
143 | | - /// data = amount: i128 or data: { amount: i128, to_muxed_id:u64 }` depending on whether `to` |
144 | | - /// contains a muxed ID. |
145 | | - fn transfer(env: Env, from: Address, to: MuxedAddress, amount: i128); |
| 143 | + /// data = amount: i128` |
| 144 | + fn transfer(env: Env, from: Address, to: Address, amount: i128); |
146 | 145 |
|
147 | 146 | /// Transfer `amount` from `from` to `to`, consuming the allowance that |
148 | 147 | /// `spender` has on `from`'s balance. Authorized by spender |
@@ -248,7 +247,7 @@ pub(crate) const TOKEN_SPEC_XDR_INPUT: &[&[u8]] = &[ |
248 | 247 | &TokenSpec::spec_xdr_transfer_from(), |
249 | 248 | ]; |
250 | 249 |
|
251 | | -pub(crate) const TOKEN_SPEC_XDR_LEN: usize = 4804; |
| 250 | +pub(crate) const TOKEN_SPEC_XDR_LEN: usize = 4716; |
252 | 251 |
|
253 | 252 | impl TokenSpec { |
254 | 253 | /// Returns the XDR spec for the Token contract. |
@@ -341,9 +340,8 @@ pub trait StellarAssetInterface { |
341 | 340 | /// # Events |
342 | 341 | /// |
343 | 342 | /// Emits an event with topics `["transfer", from: Address, to: Address], |
344 | | - /// data = amount: i128 or data: { amount: i128, to_muxed_id:u64 }` depending on whether `to` |
345 | | - /// contains a muxed ID. |
346 | | - fn transfer(env: Env, from: Address, to: MuxedAddress, amount: i128); |
| 343 | + /// data = amount: i128` |
| 344 | + fn transfer(env: Env, from: Address, to: Address, amount: i128); |
347 | 345 |
|
348 | 346 | /// Transfer `amount` from `from` to `to`, consuming the allowance that |
349 | 347 | /// `spender` has on `from`'s balance. Authorized by spender |
@@ -526,7 +524,7 @@ pub(crate) const STELLAR_ASSET_SPEC_XDR_INPUT: &[&[u8]] = &[ |
526 | 524 | &StellarAssetSpec::spec_xdr_transfer_from(), |
527 | 525 | ]; |
528 | 526 |
|
529 | | -pub(crate) const STELLAR_ASSET_SPEC_XDR_LEN: usize = 6544; |
| 527 | +pub(crate) const STELLAR_ASSET_SPEC_XDR_LEN: usize = 6456; |
530 | 528 |
|
531 | 529 | impl StellarAssetSpec { |
532 | 530 | /// Returns the XDR spec for the Token contract. |
|
0 commit comments