Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump versioin to 1.4.3 #32

Merged
merged 9 commits into from Jul 14, 2021
Merged

bump versioin to 1.4.3 #32

merged 9 commits into from Jul 14, 2021

Conversation

wk3368
Copy link
Collaborator

@wk3368 wk3368 commented Jul 12, 2021

  • add test case for deploy contract using blob hex

    • yarn test:unit src/providers/jsonrpc-provider.spec.ts --testNamePattern="deploy contract"
  • add test case for decode SignedMessage

    • yarn test:unit src/utils/signed-message.spec.ts --testNamePattern="decode"
  • add chain_id in SignedMessage

  • add encoding.packageHexToTransactionPayload / packageHexToTransactionPayloadHex

  • support contract.dry_run_raw

// expired after 12 hours since Unix Epoch
const expirationTimestampSecs = nowSeconds + 43200;

const blobHex = '49624992dd72da077ee19d0be210406a02ab02a11ceb0b0200000009010006020609030f2204310805392807615708b801200ad801050cdd0126000001010102000007000202040100000300010000040201000206040101040107050101040204070801040108090101040203030304030503010c00020c0401080002060c0201060c010b0101080002060c04010b0101090002060c0b0101090003506464074163636f756e7405546f6b656e04696e6974046d696e740b64756d6d795f6669656c640e72656769737465725f746f6b656e0f646f5f6163636570745f746f6b656e0f6465706f7369745f746f5f73656c6649624992dd72da077ee19d0be210406a0000000000000000000000000000000100020105010002000001060e00310338000e003801020102000006080e000a0138020c020e000b02380302008d03a11ceb0b020000000a010006020609030f3a04490c0555310786017a0880022006a002030aa302050ca80238000001010102000007000202040100000300010000040102010400050301000006010400020806010104010907010104020a010202040402050a0b0104010b0c010104020601040104040505050608070508050905010c000101020c04010501080002060c0201060c0208000900010b0101080002060c04010b0101090002060c0b0101090003414243074163636f756e7405546f6b656e04696e69740669735f616263046d696e740d746f6b656e5f616464726573730b64756d6d795f6669656c640e72656769737465725f746f6b656e0f646f5f6163636570745f746f6b656e0d69735f73616d655f746f6b656e0f6465706f7369745f746f5f73656c6649624992dd72da077ee19d0be210406a0000000000000000000000000000000102011200020107010002000001060e00070038000e003801020101000001023802020202000009080e000a0138030c020e000b023804020301000001023805020000';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment to explain 'How to get the blob hex of a contract'?

@wk3368 wk3368 merged commit 38ea168 into master Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants