Skip to content

Commit

Permalink
chore: fix rust compiler bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 1, 2024
1 parent 220c593 commit 2143458
Show file tree
Hide file tree
Showing 11 changed files with 624 additions and 613 deletions.
169 changes: 100 additions & 69 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/containers/partials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl Batch {

pub fn set_priority(&mut self, priority: u8) {
self.main.transition.nonce = priority;
for mut info in &mut self.blanks {
for info in &mut self.blanks {
info.transition.nonce = priority;
}
}
Expand Down
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![deny(
non_upper_case_globals,
non_camel_case_types,
non_snake_case,
unused_mut,
unused_imports,
dead_code,
// missing_docs
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

extern crate core;
Expand Down
2 changes: 1 addition & 1 deletion src/stl/stl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use crate::LIB_NAME_RGB_STD;
/// Strict types id for the library providing standard data types which may be
/// used in RGB smart contracts.
pub const LIB_ID_RGB_STORAGE: &str =
"stl:7oFQsHNj-DaUodoT-JEpv1QK-Px0BgqI-gdu6DzR-sY0XMwQ#sheriff-biology-social";
"stl:Srtqau4!-KXSB1G8-CSroocF-8N2oTi4-L5c2IQk-y$OJQz0#jeep-freedom-student";

/// Strict types id for the library providing standard data types which may be
/// used in RGB smart contracts.
Expand Down
523 changes: 258 additions & 265 deletions stl/[email protected]

Large diffs are not rendered by default.

Binary file modified stl/[email protected]
Binary file not shown.
53 changes: 20 additions & 33 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-
Id: stl:w4Hvo8zW-bFpTGAI-W6Zn$9u-qqXq$cI-ef0vzlQ-hg!AEZs#carol-edgar-escape
Id: stl:R5kQAOh4-zB20Wn0-2z3MtK!-dNvcxhT-nZOmQtF-DWVziK4#forget-radar-macro
Name: RGBStd
Version: 0.11.0
Description: RGB standard library
Expand Down Expand Up @@ -50,7 +50,17 @@ import BPCore#garbo-radius-peru
use BlindSealTxid#media-judge-anita
use TxPtr#italian-july-eddie

import RGBCommit#orbit-airport-voice
import Std#ralph-blue-lucky
use AlphaCaps#picnic-soprano-aurora
use AsciiPrintable#ultra-sunset-format
use Bool#oxygen-complex-duet
use AlphaNumDash#sponsor-snake-nice
use AlphaCapsNum#aladdin-zebra-marble
use AlphaNumLodash#percent-bingo-caesar
use AlphaCapsLodash#duet-hammer-labor
use AlphaSmallLodash#pioneer-eagle-spell

import RGBCommit#miranda-blue-promise
use ExtensionSchema#active-eddie-empty
use BundleId#carmen-farmer-diesel
use AttachState#lady-japan-fiesta
Expand All @@ -63,18 +73,15 @@ import RGBCommit#orbit-airport-voice
use AssetTags#anita-nice-deliver
use VoidState#email-snow-safari
use DataState#short-noise-postal
use Transition#company-combat-disney
use TransitionType#picture-reflex-brigade
use Occurrences#source-olga-mirage
use AssignVoidStateBlindSealTxPtr#profit-granite-fuji
use Schema#vocal-hammer-logic
use Extension#bandit-consul-empire
use MediaType#isabel-heaven-north
use AssignmentsBlindSealTxPtr#village-result-bahama
use ValencyType#aloha-dublin-brush
use PedersenCommitment#pupil-scale-jerome
use ConcealedFungible#story-shrink-aloha
use TransitionBundle#method-match-logic
use GlobalStateSchema#silk-college-august
use AssignRevealedAttachBlindSealTxid#local-memo-modern
use TypedAssignsBlindSealTxid#garlic-project-zigzag
Expand All @@ -94,13 +101,15 @@ import RGBCommit#orbit-airport-voice
use XChainBlindSealTxPtr#senator-limbo-raymond
use Opout#yoga-samba-karma
use AssignVoidStateBlindSealTxid#senior-beyond-cement
use Transition#decimal-motel-echo
use SchemaId#ramirez-patron-simon
use OpId#picnic-single-gloria
use ContractId#uniform-welcome-papa
use FungibleState#guide-poker-coconut
use Inputs#herman-liberal-galaxy
use XChainPubWitness#carrot-import-nova
use Identity#smart-pioneer-nominal
use Extension#wheel-holiday-promo
use AltLayer1#edison-survive-nitro
use AssetTag#slang-amber-club
use Input#actor-minus-multi
Expand All @@ -112,25 +121,15 @@ import RGBCommit#orbit-airport-voice
use Valencies#light-letter-comet
use GlobalState#stadium-barcode-bazaar
use Redeemed#mile-lady-perfect
use TransitionBundle#taxi-repair-stella
use RevealedAttach#slalom-phantom-voyage
use Genesis#round-sound-nectar
use XChainTerminalSeal#canada-nova-barcode
use Metadata#member-nobody-imitate
use FungibleType#matrix-optimal-sinatra
use ConcealedAttach#meter-arizona-albino
use RevealedData#olivia-copper-stamp
use AssignRevealedValueBlindSealTxid#photo-jump-silicon

import Std#ralph-blue-lucky
use AlphaCaps#picnic-soprano-aurora
use AsciiPrintable#ultra-sunset-format
use Bool#oxygen-complex-duet
use AlphaNumDash#sponsor-snake-nice
use AlphaCapsNum#aladdin-zebra-marble
use AlphaNumLodash#percent-bingo-caesar
use AlphaCapsLodash#duet-hammer-labor
use AlphaSmallLodash#pioneer-eagle-spell

import CommitVerify#tennis-peace-olympic
use MerkleHash#horse-popcorn-bundle
use MerkleProof#price-aloha-grid
Expand Down Expand Up @@ -162,7 +161,7 @@ import Bitcoin#signal-color-cipher
use XOnlyPk#clever-swim-carpet


@mnemonic(lazarus-horse-silk)
@mnemonic(fabric-lazarus-social)
data AnchoredBundles : tapret#1 (BPCore.AnchorMerkleProofTapretProof, RGBCommit.TransitionBundle)
| opret (BPCore.AnchorMerkleProofOpretProof, RGBCommit.TransitionBundle)
| double (tapretAnchor BPCore.AnchorMerkleProofTapretProof
Expand All @@ -185,10 +184,10 @@ data AssignIface : ownedState OwnedIface
@mnemonic(explore-spiral-darwin)
data BundledWitness : pubWitness RGBCommit.XChainPubWitness, anchoredBundles AnchoredBundles

@mnemonic(quest-ferrari-dialog)
@mnemonic(common-caesar-export)
data Consignmentfalse : version ContainerVer
, transfer Std.Bool
, terminals {RGBCommit.BundleId -> Terminal}
, terminals {RGBCommit.BundleId -> RGBCommit.XChainSecretSeal}
, genesis RGBCommit.Genesis
, extensions {RGBCommit.Extension ^ ..0xffffffff}
, bundles {BundledWitness ^ ..0xffffffff}
Expand All @@ -200,10 +199,10 @@ data Consignmentfalse : version ContainerVer
, attachments {RGBCommit.AttachId -> [Byte ^ ..0xffffff]}
, signatures {ContentId -> ^ ..0xff ContentSigs}

@mnemonic(salute-client-between)
@mnemonic(virus-solar-suzuki)
data Consignmenttrue : version ContainerVer
, transfer Std.Bool
, terminals {RGBCommit.BundleId -> Terminal}
, terminals {RGBCommit.BundleId -> RGBCommit.XChainSecretSeal}
, genesis RGBCommit.Genesis
, extensions {RGBCommit.Extension ^ ..0xffffffff}
, bundles {BundledWitness ^ ..0xffffffff}
Expand Down Expand Up @@ -384,13 +383,6 @@ data Supplement : contentId ContentRef
, creator RGBCommit.Identity
, annotations {SupplSub -> ^ ..0xff SupplMap}

@mnemonic(lithium-torso-parent)
data Terminal : seals {RGBCommit.XChainTerminalSeal}

@mnemonic(amadeus-athena-lagoon)
data TerminalSeal : concealedUtxo BPCore.SecretSeal
| witnessVout VoutSeal

@mnemonic(sigma-rose-cubic)
data TransitionIface : modifier Modifier
, optional Std.Bool
Expand All @@ -409,9 +401,4 @@ data ValencyIface : required Std.Bool
data VerNo : v0 | v1


@mnemonic(pixel-arctic-flame)
data VoutSeal : method BPCore.Method
, vout Bitcoin.Vout
, blinding U64


Loading

0 comments on commit 2143458

Please sign in to comment.