Skip to content

Commit

Permalink
add publisher to weight hook
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Oct 29, 2024
1 parent e58552f commit ac93c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/README.md

This file was deleted.

7 changes: 7 additions & 0 deletions contracts/sources/hooks/weight.move
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module liquid_staking::weight {
use sui::vec_map::{Self, VecMap};
use sui::bag::{Self, Bag};
use liquid_staking::version::{Self, Version};
use sui::package;

/* Constants */
const CURRENT_VERSION: u16 = 1;
Expand All @@ -23,6 +24,12 @@ module liquid_staking::weight {
id: UID
}

public struct WEIGHT has drop {}

fun init(otw: WEIGHT, ctx: &mut TxContext) {
package::claim_and_keep(otw, ctx)
}

public fun new<P>(
admin_cap: AdminCap<P>,
ctx: &mut TxContext
Expand Down

0 comments on commit ac93c3a

Please sign in to comment.