-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c184474
commit 200f2b0
Showing
12 changed files
with
519 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pub mod errors; | ||
pub mod types; | ||
pub mod contract_addresses; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
use starknet::ContractAddress; | ||
use karst::base::constants::types::{joltParams, joltData}; | ||
use karst::base::constants::types::{JoltParams, JoltData}; | ||
|
||
#[starknet::interface] | ||
pub trait IJolt<TState> { | ||
// ************************************************************************* | ||
// EXTERNALS | ||
// ************************************************************************* | ||
fn jolt(ref self: TState, jolt_params: joltParams) -> u256; | ||
fn jolt(ref self: TState, jolt_params: JoltParams) -> u256; | ||
fn set_fee_address(ref self: TState, _fee_address: ContractAddress); | ||
fn auto_renew(ref self: TState, profile: ContractAddress, renewal_id: u256) -> bool; | ||
fn fullfill_request(ref self: TState, jolt_id: u256, sender: ContractAddress) -> bool; | ||
// ************************************************************************* | ||
// GETTERS | ||
// ************************************************************************* | ||
fn get_jolt(self: @TState, jolt_id: u256) -> joltData; | ||
fn total_jolts_received(self: @TState, profile: ContractAddress) -> u256; | ||
fn get_jolt(self: @TState, jolt_id: u256) -> JoltData; | ||
fn get_fee_address(self: @TState) -> ContractAddress; | ||
} |
Oops, something went wrong.