Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Nov 13, 2024
1 parent 18344c8 commit 58beddd
Show file tree
Hide file tree
Showing 6 changed files with 601 additions and 592 deletions.
66 changes: 33 additions & 33 deletions substrate/frame/revive/rpc/examples/js/abi/event.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "ExampleEvent",
"type": "event"
},
{
"inputs": [],
"name": "triggerEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "ExampleEvent",
"type": "event"
},
{
"inputs": [],
"name": "triggerEvent",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
128 changes: 64 additions & 64 deletions substrate/frame/revive/rpc/examples/js/abi/piggyBank.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "deposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "getDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [
{
"internalType": "uint256",
"name": "remainingBal",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "deposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "getDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [
{
"internalType": "uint256",
"name": "remainingBal",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
26 changes: 13 additions & 13 deletions substrate/frame/revive/rpc/examples/js/abi/revert.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "doRevert",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "doRevert",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
53 changes: 31 additions & 22 deletions substrate/frame/revive/rpc/examples/js/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="https://polkadot.com/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MetaMask Playground</title>
<style>
input { width: 300px; margin-right: 10px; }
<head>
<meta charset="UTF-8" />
<link rel="icon" href="https://polkadot.com/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MetaMask Playground</title>
<style>
input {
width: 300px;
margin-right: 10px;
}

button {
display: block;
margin-bottom: 10px;
}
</style>
</head>
<body>
<input id="transferInput" type="text" style="float: left" placeholder="Destination address" value="0x3cd0a705a2dc65e5b1e1205896baa2be8a07c6e0" />
<button id="transferButton">Transfer coins</button>
button {
display: block;
margin-bottom: 10px;
}
</style>
</head>
<body>
<input
id="transferInput"
type="text"
style="float: left"
placeholder="Destination address"
value="0x3cd0a705a2dc65e5b1e1205896baa2be8a07c6e0"
/>
<button id="transferButton">Transfer coins</button>

<button id="deployButton">Deploy Contract</button>
<button id="deployButton">Deploy Contract</button>

<input id="callInput" type="text" style="float: left" placeholder="Contract address" />
<button id="callButton">Call Contract</button>
<input id="callInput" type="text" style="float: left" placeholder="Contract address" />
<button id="callButton">Call Contract</button>

<button id="deployAndCallButton">Deploy and Call Contract</button>
<script type="module" src="src/web.ts"></script>
</body>
<button id="deployAndCallButton">Deploy and Call Contract</button>
<script type="module" src="src/web.ts"></script>
</body>
</html>
Loading

0 comments on commit 58beddd

Please sign in to comment.