diff --git a/bindings.h b/bindings.h index 2a285e0..279a363 100644 --- a/bindings.h +++ b/bindings.h @@ -94,23 +94,18 @@ typedef struct GoApi_vtable { int32_t (*remove_storage)(const struct api_t*, struct U8SliceView, uint64_t*); int32_t (*block_number)(const struct api_t*, uint64_t*, uint64_t*); int32_t (*block_timestamp)(const struct api_t*, uint64_t*, int64_t*); - int32_t (*send)(const struct api_t*, struct U8SliceView, struct U8SliceView, uint64_t*, struct UnmanagedVector*); int32_t (*min_fee_per_gas)(const struct api_t*, uint64_t*, struct UnmanagedVector*); int32_t (*balance)(const struct api_t*, uint64_t*, struct UnmanagedVector*); int32_t (*block_seed)(const struct api_t*, uint64_t*, struct UnmanagedVector*); int32_t (*network_size)(const struct api_t*, uint64_t*, uint64_t*); int32_t (*burn)(const struct api_t*, struct U8SliceView, uint64_t*); int32_t (*epoch)(const struct api_t*, uint64_t*, uint16_t*); - int32_t (*contract_stake)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); - int32_t (*move_to_stake)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); - int32_t (*delegatee)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); int32_t (*identity)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); int32_t (*caller)(const struct api_t*, uint64_t*, struct UnmanagedVector*); int32_t (*original_caller)(const struct api_t*, uint64_t*, struct UnmanagedVector*); int32_t (*deduct_balance)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); int32_t (*add_balance)(const struct api_t*, struct U8SliceView, struct U8SliceView, uint64_t*); int32_t (*contract)(const struct api_t*, uint64_t*, struct UnmanagedVector*); - int32_t (*contract_code)(const struct api_t*, struct U8SliceView, uint64_t*, struct UnmanagedVector*); int32_t (*call)(const struct api_t*, struct U8SliceView, struct U8SliceView, struct U8SliceView, struct U8SliceView, struct U8SliceView, uint64_t, uint64_t*, struct UnmanagedVector*); int32_t (*deploy)(const struct api_t*, struct U8SliceView, struct U8SliceView, struct U8SliceView, struct U8SliceView, uint64_t, uint64_t*, struct UnmanagedVector*); int32_t (*contract_addr)(const struct api_t*, struct U8SliceView, struct U8SliceView, struct U8SliceView, uint64_t*, struct UnmanagedVector*); diff --git a/src/backend.rs b/src/backend.rs index 7bcea5a..f8cae64 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -55,7 +55,6 @@ pub trait Backend: Copy + Clone + Send { fn deduct_balance(&self, amount: IDNA) -> BackendResult<()>; fn add_balance(&self, to: Address, amount: IDNA) ->u64; fn own_addr(&self) -> BackendResult
; - fn contract_code(&self, contract: Address) -> BackendResult