Skip to content

Commit

Permalink
build & cargo lock
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Sep 29, 2023
1 parent ff4f6b1 commit 5acf5e4
Show file tree
Hide file tree
Showing 40 changed files with 806 additions and 1,642 deletions.
80 changes: 13 additions & 67 deletions dex/governance/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 27 additions & 23 deletions dex/governance/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,40 @@
// Total number of exported functions: 23

#![no_std]
#![feature(alloc_error_handler, lang_items)]

// Configuration that works with rustc < 1.73.0.
// TODO: Recommended rustc version: 1.73.0 or newer.
#![feature(lang_items)]

multiversx_sc_wasm_adapter::allocator!();
multiversx_sc_wasm_adapter::panic_handler!();

multiversx_sc_wasm_adapter::endpoints! {
governance
(
propose
upvote
downvote
execute
redeem
changeQuorum
changeMinTokenBalanceForProposing
changeVotingDelayInBlocks
changeVotingPeriodInBlocks
changeGovernanceTokenIds
changePriceProviders
getGovernanceTokenId
getQuorum
getMinWeightForProposal
getVotingDelayInBlocks
getVotingPeriodInBlocks
getProposal
getProposalIdCounter
getVoteNFTId
getMexTokenId
getProposalStatus
init => init
propose => propose
upvote => upvote
downvote => downvote
execute => execute
redeem => redeem
changeQuorum => change_quorum
changeMinTokenBalanceForProposing => change_min_weight_for_proposal
changeVotingDelayInBlocks => change_voting_delay_in_blocks
changeVotingPeriodInBlocks => change_voting_period_in_blocks
changeGovernanceTokenIds => change_governance_token_ids
changePriceProviders => change_price_providers
getGovernanceTokenId => governance_token_ids
getQuorum => quorum
getMinWeightForProposal => min_weight_for_proposal
getVotingDelayInBlocks => voting_delay_in_blocks
getVotingPeriodInBlocks => voting_period_in_blocks
getProposal => proposal
getProposalIdCounter => proposal_id_counter
getVoteNFTId => vote_nft_id
getMexTokenId => mex_token_id
getProposalStatus => get_proposal_status_view
)
}

multiversx_sc_wasm_adapter::empty_callback! {}
multiversx_sc_wasm_adapter::async_callback_empty! {}
80 changes: 13 additions & 67 deletions dex/pair-mock/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions dex/pair-mock/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@
// Total number of exported functions: 4

#![no_std]
#![feature(alloc_error_handler, lang_items)]

// Configuration that works with rustc < 1.73.0.
// TODO: Recommended rustc version: 1.73.0 or newer.
#![feature(lang_items)]

multiversx_sc_wasm_adapter::allocator!();
multiversx_sc_wasm_adapter::panic_handler!();

multiversx_sc_wasm_adapter::endpoints! {
pair_mock
(
addInitialLiquidity
getTokensForGivenPositionWithSafePrice
init => init
addInitialLiquidity => add_initial_liquidity
getTokensForGivenPositionWithSafePrice => get_tokens_for_given_position_with_safe_price
)
}

multiversx_sc_wasm_adapter::empty_callback! {}
multiversx_sc_wasm_adapter::async_callback_empty! {}
Loading

0 comments on commit 5acf5e4

Please sign in to comment.