Skip to content

Commit

Permalink
generate framework to cached-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Sep 29, 2024
1 parent a227c58 commit 16dad29
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// Copyright © Aptos Foundation
// Copyright © Starcoin Foundation
// SPDX-License-Identifier: Apache-2.0

// This file was generated. Do not modify!
//
// To update this code, run: `cargo run --release -p framework`.

// Conversion library between a structured representation of a Move script call (`ScriptCall`) and the
// standard BCS-compatible representation used in Aptos transactions (`Script`).
// standard BCS-compatible representation used in Starcoin transactions (`Script`).
//
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `aptos-sdk-builder`.
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `starcoin-sdk-builder`.

#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::arc_with_non_send_sync)]
#![allow(clippy::get_first)]
#![allow(unused_imports)]
use aptos_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use move_core_types::{
ident_str,
language_storage::{ModuleId, TypeTag},
};
use starcoin_vm_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use std::collections::BTreeMap as Map;

type Bytes = Vec<u8>;
Expand Down Expand Up @@ -1037,7 +1037,7 @@ pub enum EntryFunctionCall {
}

impl EntryFunctionCall {
/// Build an Aptos `TransactionPayload` from a structured object `EntryFunctionCall`.
/// Build an Starcoin `TransactionPayload` from a structured object `EntryFunctionCall`.
pub fn encode(self) -> TransactionPayload {
use EntryFunctionCall::*;
match self {
Expand Down Expand Up @@ -1652,7 +1652,7 @@ impl EntryFunctionCall {
}
}

/// Try to recognize an Aptos `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
/// Try to recognize an Starcoin `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
pub fn decode(payload: &TransactionPayload) -> Option<EntryFunctionCall> {
if let TransactionPayload::EntryFunction(script) = payload {
match SCRIPT_FUNCTION_DECODER_MAP.get(&format!(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// Copyright © Aptos Foundation
// Copyright © Starcoin Foundation
// SPDX-License-Identifier: Apache-2.0

// This file was generated. Do not modify!
//
// To update this code, run: `cargo run --release -p framework`.

// Conversion library between a structured representation of a Move script call (`ScriptCall`) and the
// standard BCS-compatible representation used in Aptos transactions (`Script`).
// standard BCS-compatible representation used in Starcoin transactions (`Script`).
//
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `aptos-sdk-builder`.
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `starcoin-sdk-builder`.

#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::arc_with_non_send_sync)]
#![allow(clippy::get_first)]
#![allow(unused_imports)]
use aptos_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use move_core_types::{
ident_str,
language_storage::{ModuleId, TypeTag},
};
use starcoin_vm_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use std::collections::BTreeMap as Map;

type Bytes = Vec<u8>;
Expand Down Expand Up @@ -83,7 +83,7 @@ pub enum EntryFunctionCall {
}

impl EntryFunctionCall {
/// Build an Aptos `TransactionPayload` from a structured object `EntryFunctionCall`.
/// Build an Starcoin `TransactionPayload` from a structured object `EntryFunctionCall`.
pub fn encode(self) -> TransactionPayload {
use EntryFunctionCall::*;
match self {
Expand Down Expand Up @@ -159,7 +159,7 @@ impl EntryFunctionCall {
}
}

/// Try to recognize an Aptos `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
/// Try to recognize an Starcoin `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
pub fn decode(payload: &TransactionPayload) -> Option<EntryFunctionCall> {
if let TransactionPayload::EntryFunction(script) = payload {
match SCRIPT_FUNCTION_DECODER_MAP.get(&format!(
Expand Down
18 changes: 9 additions & 9 deletions vm/framework/cached-packages/src/starcoin_token_sdk_builder.rs
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// Copyright © Aptos Foundation
// Copyright © Starcoin Foundation
// SPDX-License-Identifier: Apache-2.0

// This file was generated. Do not modify!
//
// To update this code, run: `cargo run --release -p framework`.

// Conversion library between a structured representation of a Move script call (`ScriptCall`) and the
// standard BCS-compatible representation used in Aptos transactions (`Script`).
// standard BCS-compatible representation used in Starcoin transactions (`Script`).
//
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `aptos-sdk-builder`.
// This code was generated by compiling known Script interfaces ("ABIs") with the tool `starcoin-sdk-builder`.

#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::arc_with_non_send_sync)]
#![allow(clippy::get_first)]
#![allow(unused_imports)]
use aptos_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use move_core_types::{
ident_str,
language_storage::{ModuleId, TypeTag},
};
use starcoin_vm_types::{
account_address::AccountAddress,
transaction::{EntryFunction, TransactionPayload},
};
use std::collections::BTreeMap as Map;

type Bytes = Vec<u8>;
Expand Down Expand Up @@ -171,7 +171,7 @@ pub enum EntryFunctionCall {
}

impl EntryFunctionCall {
/// Build an Aptos `TransactionPayload` from a structured object `EntryFunctionCall`.
/// Build an Starcoin `TransactionPayload` from a structured object `EntryFunctionCall`.
pub fn encode(self) -> TransactionPayload {
use EntryFunctionCall::*;
match self {
Expand Down Expand Up @@ -339,7 +339,7 @@ impl EntryFunctionCall {
}
}

/// Try to recognize an Aptos `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
/// Try to recognize an Starcoin `TransactionPayload` and convert it into a structured object `EntryFunctionCall`.
pub fn decode(payload: &TransactionPayload) -> Option<EntryFunctionCall> {
if let TransactionPayload::EntryFunction(script) = payload {
match SCRIPT_FUNCTION_DECODER_MAP.get(&format!(
Expand Down

0 comments on commit 16dad29

Please sign in to comment.