Skip to content

use BorshStorageKey for the prefix of LookupMap for pending_requests #23

use BorshStorageKey for the prefix of LookupMap for pending_requests

use BorshStorageKey for the prefix of LookupMap for pending_requests #23

name: Deploy Dev Smart Contract
on:
pull_request:
types: [closed]
branches:
- develop
jobs:
deploy-contract:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: add JSON contract
run: mkdir -p ~/.near-credentials/testnet && echo '${{ secrets.DEV_CONTRACT_JSON }}' > ~/.near-credentials/testnet/v5.multichain-mpc-dev.testnet.json
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install near-cli
run: 'npm install -g near-cli'
- name: Install Rust
run: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
- name: debug
run: cat ~/.near-credentials/testnet/v5.multichain-mpc-dev.testnet.json
- name: Cargo Build
run: |
source $HOME/.cargo/env && cd ./contract ; rustup target add wasm32-unknown-unknown && cargo build --target wasm32-unknown-unknown --release && \
cd .. && (yes || true) | near deploy v5.multichain-mpc-dev.testnet target/wasm32-unknown-unknown/release/mpc_contract.wasm