Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
05ee2aa2
Commit
05ee2aa2
authored
Dec 12, 2019
by
yingqiumin@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve rpc test
parent
7dc1892a
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
38 additions
and
4 deletions
+38
-4
test-rpc.sh
plugin/dapp/autonomy/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/blackwhite/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/dposvote/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/evm/cmd/test/test-rpc.sh
+2
-2
test-rpc.sh
plugin/dapp/game/cmd/test/test-rpc.sh
+2
-2
test-rpc.sh
plugin/dapp/guess/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/hashlock/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/js/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/lottery/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/oracle/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/paracross/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/pokerbull/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/privacy/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/relay/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/retrieve/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/ticket/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/token/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/trade/cmd/test/test-rpc.sh
+2
-0
test-rpc.sh
plugin/dapp/unfreeze/cmd/test/test-rpc.sh
+2
-0
No files found.
plugin/dapp/autonomy/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
plugin/dapp/blackwhite/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
+e
set
+e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/dposvote/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/evm/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
@@ -154,12 +156,10 @@ function init() {
...
@@ -154,12 +156,10 @@ function init() {
chain33_applyCoins
"
$from
"
12000000000
"
${
main_ip
}
"
chain33_applyCoins
"
$from
"
12000000000
"
${
main_ip
}
"
chain33_QueryBalance
"
${
from
}
"
"
$main_ip
"
chain33_QueryBalance
"
${
from
}
"
"
$main_ip
"
else
else
# tx fee
chain33_applyCoins
"
$from
"
1000000000
"
${
main_ip
}
"
chain33_applyCoins
"
$from
"
1000000000
"
${
main_ip
}
"
chain33_QueryBalance
"
${
from
}
"
"
$main_ip
"
chain33_QueryBalance
"
${
from
}
"
"
$main_ip
"
local
para_ip
=
"
${
MAIN_HTTP
}
"
local
para_ip
=
"
${
MAIN_HTTP
}
"
#para chain import pri key
chain33_ImportPrivkey
"0x4947ce3c4b845cfed59be2edf47320546116a3ff3af5715a7df094d116039b89"
"1PTXh2EZ8aRUzpuoDRASV19K86Kx3qQiPt"
"evm"
"
$para_ip
"
chain33_ImportPrivkey
"0x4947ce3c4b845cfed59be2edf47320546116a3ff3af5715a7df094d116039b89"
"1PTXh2EZ8aRUzpuoDRASV19K86Kx3qQiPt"
"evm"
"
$para_ip
"
chain33_applyCoins
"
$from
"
12000000000
"
${
para_ip
}
"
chain33_applyCoins
"
$from
"
12000000000
"
${
para_ip
}
"
...
...
plugin/dapp/game/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-o
pipefail
set
-o
pipefail
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
@@ -99,14 +101,12 @@ function init() {
...
@@ -99,14 +101,12 @@ function init() {
chain33_applyCoins
"
$ACCOUNT_B
"
12000000000
"
${
main_ip
}
"
chain33_applyCoins
"
$ACCOUNT_B
"
12000000000
"
${
main_ip
}
"
chain33_QueryBalance
"
${
ACCOUNT_B
}
"
"
$main_ip
"
chain33_QueryBalance
"
${
ACCOUNT_B
}
"
"
$main_ip
"
else
else
# tx fee
chain33_applyCoins
"
$ACCOUNT_A
"
1000000000
"
${
main_ip
}
"
chain33_applyCoins
"
$ACCOUNT_A
"
1000000000
"
${
main_ip
}
"
chain33_QueryBalance
"
${
ACCOUNT_A
}
"
"
$main_ip
"
chain33_QueryBalance
"
${
ACCOUNT_A
}
"
"
$main_ip
"
chain33_applyCoins
"
$ACCOUNT_B
"
1000000000
"
${
main_ip
}
"
chain33_applyCoins
"
$ACCOUNT_B
"
1000000000
"
${
main_ip
}
"
chain33_QueryBalance
"
${
ACCOUNT_B
}
"
"
$main_ip
"
chain33_QueryBalance
"
${
ACCOUNT_B
}
"
"
$main_ip
"
local
para_ip
=
"
${
MAIN_HTTP
}
"
local
para_ip
=
"
${
MAIN_HTTP
}
"
#para chain import pri key
chain33_ImportPrivkey
"
$PRIVA_A
"
"16Z3haNPQd9wrnFDw19rtpbgnN2xynNT9f"
"game1"
"
$para_ip
"
chain33_ImportPrivkey
"
$PRIVA_A
"
"16Z3haNPQd9wrnFDw19rtpbgnN2xynNT9f"
"game1"
"
$para_ip
"
chain33_ImportPrivkey
"
$PRIVA_B
"
"16GXRfd9xj3XYMDti4y4ht7uzwoh55gZEc"
"game2"
"
$para_ip
"
chain33_ImportPrivkey
"
$PRIVA_B
"
"16GXRfd9xj3XYMDti4y4ht7uzwoh55gZEc"
"game2"
"
$para_ip
"
...
...
plugin/dapp/guess/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/hashlock/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/js/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
plugin/dapp/lottery/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/oracle/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
MAIN_HTTP
=
""
MAIN_HTTP
=
""
oracle_addPublisher_unsignedTx
=
"0a066d616e61676512410a3f0a146f7261636c652d7075626c6973682d6576656e741222313271796f6361794e46374c7636433971573461767873324537553431664b5366761a0361646420a08d0630e6b685d696ee9394163a223151344e687572654a784b4e4266373164323642394a336642516f5163666d657a32"
oracle_addPublisher_unsignedTx
=
"0a066d616e61676512410a3f0a146f7261636c652d7075626c6973682d6576656e741222313271796f6361794e46374c7636433971573461767873324537553431664b5366761a0361646420a08d0630e6b685d696ee9394163a223151344e687572654a784b4e4266373164323642394a336642516f5163666d657a32"
...
...
plugin/dapp/paracross/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
UNIT_HTTP
=
""
UNIT_HTTP
=
""
IS_PARA
=
false
IS_PARA
=
false
...
...
plugin/dapp/pokerbull/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/privacy/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/relay/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
plugin/dapp/retrieve/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/ticket/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
set
-e
set
-e
set
-o
pipefail
set
-o
pipefail
...
...
plugin/dapp/token/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
plugin/dapp/trade/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
plugin/dapp/unfreeze/cmd/test/test-rpc.sh
View file @
05ee2aa2
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2128
# shellcheck source=/dev/null
source
../dapp-test-common.sh
source
../dapp-test-common.sh
MAIN_HTTP
=
""
MAIN_HTTP
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment