-
Notifications
You must be signed in to change notification settings - Fork 10
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
3a7f258
commit 736e293
Showing
15 changed files
with
246 additions
and
62 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* This code was AUTOGENERATED using the kinobi library. | ||
* Please DO NOT EDIT THIS FILE, instead use visitors | ||
* to add features, then rerun kinobi to update it. | ||
* | ||
* @see https://github.com/kinobi-so/kinobi | ||
*/ | ||
|
||
import { | ||
combineCodec, | ||
getStructDecoder, | ||
getStructEncoder, | ||
type Codec, | ||
type Decoder, | ||
type Encoder, | ||
} from '@solana/web3.js'; | ||
import { | ||
getPreciseNumberWrapperDecoder, | ||
getPreciseNumberWrapperEncoder, | ||
type PreciseNumberWrapper, | ||
type PreciseNumberWrapperArgs, | ||
} from '.'; | ||
|
||
export type PreciseTokenSupply = { number: PreciseNumberWrapper }; | ||
|
||
export type PreciseTokenSupplyArgs = { number: PreciseNumberWrapperArgs }; | ||
|
||
export function getPreciseTokenSupplyEncoder(): Encoder<PreciseTokenSupplyArgs> { | ||
return getStructEncoder([['number', getPreciseNumberWrapperEncoder()]]); | ||
} | ||
|
||
export function getPreciseTokenSupplyDecoder(): Decoder<PreciseTokenSupply> { | ||
return getStructDecoder([['number', getPreciseNumberWrapperDecoder()]]); | ||
} | ||
|
||
export function getPreciseTokenSupplyCodec(): Codec< | ||
PreciseTokenSupplyArgs, | ||
PreciseTokenSupply | ||
> { | ||
return combineCodec( | ||
getPreciseTokenSupplyEncoder(), | ||
getPreciseTokenSupplyDecoder() | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* This code was AUTOGENERATED using the kinobi library. | ||
* Please DO NOT EDIT THIS FILE, instead use visitors | ||
* to add features, then rerun kinobi to update it. | ||
* | ||
* @see https://github.com/kinobi-so/kinobi | ||
*/ | ||
|
||
import { | ||
combineCodec, | ||
getStructDecoder, | ||
getStructEncoder, | ||
type Codec, | ||
type Decoder, | ||
type Encoder, | ||
} from '@solana/web3.js'; | ||
import { | ||
getPreciseNumberWrapperDecoder, | ||
getPreciseNumberWrapperEncoder, | ||
type PreciseNumberWrapper, | ||
type PreciseNumberWrapperArgs, | ||
} from '.'; | ||
|
||
export type PreciseWeight = { number: PreciseNumberWrapper }; | ||
|
||
export type PreciseWeightArgs = { number: PreciseNumberWrapperArgs }; | ||
|
||
export function getPreciseWeightEncoder(): Encoder<PreciseWeightArgs> { | ||
return getStructEncoder([['number', getPreciseNumberWrapperEncoder()]]); | ||
} | ||
|
||
export function getPreciseWeightDecoder(): Decoder<PreciseWeight> { | ||
return getStructDecoder([['number', getPreciseNumberWrapperDecoder()]]); | ||
} | ||
|
||
export function getPreciseWeightCodec(): Codec< | ||
PreciseWeightArgs, | ||
PreciseWeight | ||
> { | ||
return combineCodec(getPreciseWeightEncoder(), getPreciseWeightDecoder()); | ||
} |
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
15 changes: 15 additions & 0 deletions
15
clients/rust/jito_tip_router/src/generated/types/precise_token_supply.rs
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! This code was AUTOGENERATED using the kinobi library. | ||
//! Please DO NOT EDIT THIS FILE, instead use visitors | ||
//! to add features, then rerun kinobi to update it. | ||
//! | ||
//! <https://github.com/kinobi-so/kinobi> | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
|
||
use crate::generated::types::PreciseNumberWrapper; | ||
|
||
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub struct PreciseTokenSupply { | ||
pub number: PreciseNumberWrapper, | ||
} |
15 changes: 15 additions & 0 deletions
15
clients/rust/jito_tip_router/src/generated/types/precise_weight.rs
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! This code was AUTOGENERATED using the kinobi library. | ||
//! Please DO NOT EDIT THIS FILE, instead use visitors | ||
//! to add features, then rerun kinobi to update it. | ||
//! | ||
//! <https://github.com/kinobi-so/kinobi> | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
|
||
use crate::generated::types::PreciseNumberWrapper; | ||
|
||
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub struct PreciseWeight { | ||
pub number: PreciseNumberWrapper, | ||
} |
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,6 +1,5 @@ | ||
pub mod discriminators; | ||
pub mod error; | ||
pub mod instruction; | ||
// pub mod depreciated_weight; | ||
pub mod jito_number; | ||
pub mod precise_numbers; | ||
pub mod weight_table; |
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
Oops, something went wrong.