@railgun-community/deployments
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -15,3 +15,3 @@ "use strict"; | ||
], | ||
name: 'AddToBlacklist', | ||
name: 'AddToBlocklist', | ||
type: 'event', | ||
@@ -25,3 +25,3 @@ }, | ||
internalType: 'uint256', | ||
name: 'treeNumber', | ||
name: 'shieldFee', | ||
type: 'uint256', | ||
@@ -32,3 +32,3 @@ }, | ||
internalType: 'uint256', | ||
name: 'startPosition', | ||
name: 'unshieldFee', | ||
type: 'uint256', | ||
@@ -38,27 +38,18 @@ }, | ||
indexed: false, | ||
internalType: 'uint256[]', | ||
name: 'hash', | ||
type: 'uint256[]', | ||
internalType: 'uint256', | ||
name: 'nftFee', | ||
type: 'uint256', | ||
}, | ||
], | ||
name: 'FeeChange', | ||
type: 'event', | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'uint256[4]', | ||
name: 'ciphertext', | ||
type: 'uint256[4]', | ||
}, | ||
{ | ||
internalType: 'uint256[2]', | ||
name: 'ephemeralKeys', | ||
type: 'uint256[2]', | ||
}, | ||
{ internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }, | ||
], | ||
indexed: false, | ||
internalType: 'struct CommitmentCiphertext[]', | ||
name: 'ciphertext', | ||
type: 'tuple[]', | ||
indexed: false, internalType: 'uint8', name: 'version', type: 'uint8', | ||
}, | ||
], | ||
name: 'CommitmentBatch', | ||
name: 'Initialized', | ||
type: 'event', | ||
@@ -71,20 +62,33 @@ }, | ||
indexed: false, | ||
internalType: 'uint256', | ||
name: 'depositFee', | ||
type: 'uint256', | ||
internalType: 'uint16', | ||
name: 'treeNumber', | ||
type: 'uint16', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'uint256', | ||
name: 'withdrawFee', | ||
type: 'uint256', | ||
internalType: 'bytes32[]', | ||
name: 'nullifier', | ||
type: 'bytes32[]', | ||
}, | ||
], | ||
name: 'Nullified', | ||
type: 'event', | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: false, | ||
internalType: 'uint256', | ||
name: 'nftFee', | ||
type: 'uint256', | ||
indexed: true, | ||
internalType: 'address', | ||
name: 'previousOwner', | ||
type: 'address', | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: 'address', | ||
name: 'newOwner', | ||
type: 'address', | ||
}, | ||
], | ||
name: 'FeeChange', | ||
name: 'OwnershipTransferred', | ||
type: 'event', | ||
@@ -96,2 +100,15 @@ }, | ||
{ | ||
indexed: true, | ||
internalType: 'address', | ||
name: 'token', | ||
type: 'address', | ||
}, | ||
], | ||
name: 'RemoveFromBlocklist', | ||
type: 'event', | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: false, | ||
@@ -110,3 +127,3 @@ internalType: 'uint256', | ||
components: [ | ||
{ internalType: 'uint256', name: 'npk', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
@@ -138,9 +155,17 @@ components: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'bytes32[3]', | ||
name: 'encryptedBundle', | ||
type: 'bytes32[3]', | ||
}, | ||
{ internalType: 'bytes32', name: 'shieldKey', type: 'bytes32' }, | ||
], | ||
indexed: false, | ||
internalType: 'uint256[2][]', | ||
name: 'encryptedRandom', | ||
type: 'uint256[2][]', | ||
internalType: 'struct ShieldCiphertext[]', | ||
name: 'shieldCiphertext', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
name: 'GeneratedCommitmentBatch', | ||
name: 'Shield', | ||
type: 'event', | ||
@@ -159,27 +184,39 @@ }, | ||
indexed: false, | ||
internalType: 'uint256[]', | ||
name: 'nullifier', | ||
type: 'uint256[]', | ||
internalType: 'uint256', | ||
name: 'startPosition', | ||
type: 'uint256', | ||
}, | ||
], | ||
name: 'Nullifiers', | ||
type: 'event', | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: 'address', | ||
name: 'previousOwner', | ||
type: 'address', | ||
indexed: false, | ||
internalType: 'bytes32[]', | ||
name: 'hash', | ||
type: 'bytes32[]', | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: 'address', | ||
name: 'newOwner', | ||
type: 'address', | ||
components: [ | ||
{ | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ internalType: 'bytes', name: 'annotationData', type: 'bytes' }, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
indexed: false, | ||
internalType: 'struct CommitmentCiphertext[]', | ||
name: 'ciphertext', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
name: 'OwnershipTransferred', | ||
name: 'Transact', | ||
type: 'event', | ||
@@ -191,9 +228,9 @@ }, | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: 'address', | ||
name: 'token', | ||
name: 'treasury', | ||
type: 'address', | ||
}, | ||
], | ||
name: 'RemoveFromBlacklist', | ||
name: 'TreasuryChange', | ||
type: 'event', | ||
@@ -205,9 +242,26 @@ }, | ||
{ | ||
indexed: false, internalType: 'address', name: 'to', type: 'address', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, | ||
{ internalType: 'address', name: 'tokenAddress', type: 'address' }, | ||
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }, | ||
], | ||
indexed: false, | ||
internalType: 'address', | ||
name: 'treasury', | ||
type: 'address', | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: 'uint256', | ||
name: 'amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256', | ||
}, | ||
], | ||
name: 'TreasuryChange', | ||
name: 'Unshield', | ||
type: 'event', | ||
@@ -290,11 +344,4 @@ }, | ||
inputs: [], | ||
name: 'SNARK_BYPASS', | ||
outputs: [{ internalType: 'address', name: '', type: 'address' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [], | ||
name: 'ZERO_VALUE', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'view', | ||
@@ -305,3 +352,3 @@ type: 'function', | ||
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }], | ||
name: 'addToBlacklist', | ||
name: 'addToBlocklist', | ||
outputs: [], | ||
@@ -320,4 +367,4 @@ stateMutability: 'nonpayable', | ||
inputs: [ | ||
{ internalType: 'uint120', name: '_depositFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_withdrawFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_shieldFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_unshieldFee', type: 'uint120' }, | ||
{ internalType: 'uint256', name: '_nftFee', type: 'uint256' }, | ||
@@ -347,50 +394,3 @@ ], | ||
{ | ||
inputs: [], | ||
name: 'depositFee', | ||
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ internalType: 'uint256', name: 'npk', type: 'uint256' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'enum TokenType', | ||
name: 'tokenType', | ||
type: 'uint8', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'tokenAddress', | ||
type: 'address', | ||
}, | ||
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }, | ||
], | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'uint120', name: 'value', type: 'uint120' }, | ||
], | ||
internalType: 'struct CommitmentPreimage[]', | ||
name: '_notes', | ||
type: 'tuple[]', | ||
}, | ||
{ | ||
internalType: 'uint256[2][]', | ||
name: '_encryptedRandom', | ||
type: 'uint256[2][]', | ||
}, | ||
], | ||
name: 'generateDeposit', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ internalType: 'uint136', name: '_amount', type: 'uint136' }, | ||
@@ -410,2 +410,14 @@ { internalType: 'bool', name: '_isInclusive', type: 'bool' }, | ||
inputs: [ | ||
{ internalType: 'uint256', name: '_newCommitments', type: 'uint256' }, | ||
], | ||
name: 'getInsertionTreeNumberAndStartingIndex', | ||
outputs: [ | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
@@ -422,4 +434,4 @@ components: [ | ||
], | ||
name: 'getTokenField', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
name: 'getTokenID', | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'pure', | ||
@@ -497,7 +509,9 @@ type: 'function', | ||
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, | ||
{ internalType: 'uint72', name: 'minGasPrice', type: 'uint72' }, | ||
{ | ||
internalType: 'enum WithdrawType', | ||
name: 'withdraw', | ||
internalType: 'enum UnshieldType', | ||
name: 'unshield', | ||
type: 'uint8', | ||
}, | ||
{ internalType: 'uint64', name: 'chainID', type: 'uint64' }, | ||
{ internalType: 'address', name: 'adaptContract', type: 'address' }, | ||
@@ -508,12 +522,18 @@ { internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, | ||
{ | ||
internalType: 'uint256[4]', | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'uint256[4]', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'uint256[2]', | ||
name: 'ephemeralKeys', | ||
type: 'uint256[2]', | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ internalType: 'bytes', name: 'annotationData', type: 'bytes' }, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
@@ -539,3 +559,3 @@ internalType: 'struct CommitmentCiphertext[]', | ||
components: [ | ||
{ internalType: 'uint256', name: 'npk', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
@@ -567,3 +587,3 @@ components: [ | ||
name: 'hashCommitment', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'pure', | ||
@@ -574,7 +594,7 @@ type: 'function', | ||
inputs: [ | ||
{ internalType: 'uint256', name: '_left', type: 'uint256' }, | ||
{ internalType: 'uint256', name: '_right', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: '_left', type: 'bytes32' }, | ||
{ internalType: 'bytes32', name: '_right', type: 'bytes32' }, | ||
], | ||
name: 'hashLeftRight', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'pure', | ||
@@ -586,4 +606,4 @@ type: 'function', | ||
{ internalType: 'address payable', name: '_treasury', type: 'address' }, | ||
{ internalType: 'uint120', name: '_depositFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_withdrawFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_shieldFee', type: 'uint120' }, | ||
{ internalType: 'uint120', name: '_unshieldFee', type: 'uint120' }, | ||
{ internalType: 'uint256', name: '_nftFee', type: 'uint256' }, | ||
@@ -599,3 +619,17 @@ { internalType: 'address', name: '_owner', type: 'address' }, | ||
inputs: [], | ||
name: 'lastEventBlock', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [], | ||
name: 'merkleRoot', | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [], | ||
name: 'nextLeafIndex', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
@@ -615,3 +649,3 @@ stateMutability: 'view', | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: '', type: 'bytes32' }, | ||
], | ||
@@ -632,3 +666,3 @@ name: 'nullifiers', | ||
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }], | ||
name: 'removeFromBlacklist', | ||
name: 'removeFromBlocklist', | ||
outputs: [], | ||
@@ -655,3 +689,3 @@ stateMutability: 'nonpayable', | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
{ internalType: 'uint256', name: '', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: '', type: 'bytes32' }, | ||
], | ||
@@ -727,2 +761,68 @@ name: 'rootHistory', | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'enum TokenType', | ||
name: 'tokenType', | ||
type: 'uint8', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'tokenAddress', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'tokenSubID', | ||
type: 'uint256', | ||
}, | ||
], | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'uint120', name: 'value', type: 'uint120' }, | ||
], | ||
internalType: 'struct CommitmentPreimage', | ||
name: 'preimage', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'bytes32[3]', | ||
name: 'encryptedBundle', | ||
type: 'bytes32[3]', | ||
}, | ||
{ internalType: 'bytes32', name: 'shieldKey', type: 'bytes32' }, | ||
], | ||
internalType: 'struct ShieldCiphertext', | ||
name: 'ciphertext', | ||
type: 'tuple', | ||
}, | ||
], | ||
internalType: 'struct ShieldRequest[]', | ||
name: '_shieldRequests', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
name: 'shield', | ||
outputs: [], | ||
stateMutability: 'payable', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [], | ||
name: 'shieldFee', | ||
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
@@ -735,4 +835,136 @@ name: 'snarkSafetyVector', | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ internalType: 'uint256', name: 'x', type: 'uint256' }, | ||
{ internalType: 'uint256', name: 'y', type: 'uint256' }, | ||
], | ||
internalType: 'struct G1Point', | ||
name: 'a', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, | ||
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }, | ||
], | ||
internalType: 'struct G2Point', | ||
name: 'b', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'uint256', name: 'x', type: 'uint256' }, | ||
{ internalType: 'uint256', name: 'y', type: 'uint256' }, | ||
], | ||
internalType: 'struct G1Point', | ||
name: 'c', | ||
type: 'tuple', | ||
}, | ||
], | ||
internalType: 'struct SnarkProof', | ||
name: 'proof', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'bytes32', name: 'merkleRoot', type: 'bytes32' }, | ||
{ internalType: 'bytes32[]', name: 'nullifiers', type: 'bytes32[]' }, | ||
{ internalType: 'bytes32[]', name: 'commitments', type: 'bytes32[]' }, | ||
{ | ||
components: [ | ||
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, | ||
{ internalType: 'uint72', name: 'minGasPrice', type: 'uint72' }, | ||
{ | ||
internalType: 'enum UnshieldType', | ||
name: 'unshield', | ||
type: 'uint8', | ||
}, | ||
{ internalType: 'uint64', name: 'chainID', type: 'uint64' }, | ||
{ | ||
internalType: 'address', | ||
name: 'adaptContract', | ||
type: 'address', | ||
}, | ||
{ internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'annotationData', | ||
type: 'bytes', | ||
}, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
internalType: 'struct CommitmentCiphertext[]', | ||
name: 'commitmentCiphertext', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
internalType: 'struct BoundParams', | ||
name: 'boundParams', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'enum TokenType', | ||
name: 'tokenType', | ||
type: 'uint8', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'tokenAddress', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'tokenSubID', | ||
type: 'uint256', | ||
}, | ||
], | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'uint120', name: 'value', type: 'uint120' }, | ||
], | ||
internalType: 'struct CommitmentPreimage', | ||
name: 'unshieldPreimage', | ||
type: 'tuple', | ||
}, | ||
], | ||
internalType: 'struct Transaction[]', | ||
name: '_transactions', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
name: 'sumCommitments', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
stateMutability: 'pure', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [{ internalType: 'address', name: '', type: 'address' }], | ||
name: 'tokenBlacklist', | ||
name: 'tokenBlocklist', | ||
outputs: [{ internalType: 'bool', name: '', type: 'bool' }], | ||
@@ -743,2 +975,13 @@ stateMutability: 'view', | ||
{ | ||
inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
name: 'tokenIDMapping', | ||
outputs: [ | ||
{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, | ||
{ internalType: 'address', name: 'tokenAddress', type: 'address' }, | ||
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
@@ -781,13 +1024,15 @@ { | ||
}, | ||
{ internalType: 'uint256', name: 'merkleRoot', type: 'uint256' }, | ||
{ internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' }, | ||
{ internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' }, | ||
{ internalType: 'bytes32', name: 'merkleRoot', type: 'bytes32' }, | ||
{ internalType: 'bytes32[]', name: 'nullifiers', type: 'bytes32[]' }, | ||
{ internalType: 'bytes32[]', name: 'commitments', type: 'bytes32[]' }, | ||
{ | ||
components: [ | ||
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, | ||
{ internalType: 'uint72', name: 'minGasPrice', type: 'uint72' }, | ||
{ | ||
internalType: 'enum WithdrawType', | ||
name: 'withdraw', | ||
internalType: 'enum UnshieldType', | ||
name: 'unshield', | ||
type: 'uint8', | ||
}, | ||
{ internalType: 'uint64', name: 'chainID', type: 'uint64' }, | ||
{ | ||
@@ -802,16 +1047,22 @@ internalType: 'address', | ||
{ | ||
internalType: 'uint256[4]', | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'uint256[4]', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'uint256[2]', | ||
name: 'ephemeralKeys', | ||
type: 'uint256[2]', | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'uint256[]', | ||
name: 'memo', | ||
type: 'uint256[]', | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'annotationData', | ||
type: 'bytes', | ||
}, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
@@ -829,3 +1080,3 @@ internalType: 'struct CommitmentCiphertext[]', | ||
components: [ | ||
{ internalType: 'uint256', name: 'npk', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
@@ -856,6 +1107,5 @@ components: [ | ||
internalType: 'struct CommitmentPreimage', | ||
name: 'withdrawPreimage', | ||
name: 'unshieldPreimage', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'address', name: 'overrideOutput', type: 'address' }, | ||
], | ||
@@ -869,3 +1119,3 @@ internalType: 'struct Transaction[]', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
stateMutability: 'payable', | ||
type: 'function', | ||
@@ -895,8 +1145,53 @@ }, | ||
{ | ||
inputs: [], | ||
name: 'unshieldFee', | ||
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'enum TokenType', | ||
name: 'tokenType', | ||
type: 'uint8', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'tokenAddress', | ||
type: 'address', | ||
}, | ||
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }, | ||
], | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'uint120', name: 'value', type: 'uint120' }, | ||
], | ||
internalType: 'struct CommitmentPreimage', | ||
name: '_note', | ||
type: 'tuple', | ||
}, | ||
], | ||
name: 'validateCommitmentPreimage', | ||
outputs: [ | ||
{ internalType: 'bool', name: '', type: 'bool' }, | ||
{ internalType: 'string', name: '', type: 'string' }, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
@@ -933,13 +1228,15 @@ { internalType: 'uint256', name: 'x', type: 'uint256' }, | ||
}, | ||
{ internalType: 'uint256', name: 'merkleRoot', type: 'uint256' }, | ||
{ internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' }, | ||
{ internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' }, | ||
{ internalType: 'bytes32', name: 'merkleRoot', type: 'bytes32' }, | ||
{ internalType: 'bytes32[]', name: 'nullifiers', type: 'bytes32[]' }, | ||
{ internalType: 'bytes32[]', name: 'commitments', type: 'bytes32[]' }, | ||
{ | ||
components: [ | ||
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, | ||
{ internalType: 'uint72', name: 'minGasPrice', type: 'uint72' }, | ||
{ | ||
internalType: 'enum WithdrawType', | ||
name: 'withdraw', | ||
internalType: 'enum UnshieldType', | ||
name: 'unshield', | ||
type: 'uint8', | ||
}, | ||
{ internalType: 'uint64', name: 'chainID', type: 'uint64' }, | ||
{ | ||
@@ -954,16 +1251,22 @@ internalType: 'address', | ||
{ | ||
internalType: 'uint256[4]', | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'uint256[4]', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'uint256[2]', | ||
name: 'ephemeralKeys', | ||
type: 'uint256[2]', | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'uint256[]', | ||
name: 'memo', | ||
type: 'uint256[]', | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'annotationData', | ||
type: 'bytes', | ||
}, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
@@ -981,3 +1284,3 @@ internalType: 'struct CommitmentCiphertext[]', | ||
components: [ | ||
{ internalType: 'uint256', name: 'npk', type: 'uint256' }, | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
@@ -1008,6 +1311,5 @@ components: [ | ||
internalType: 'struct CommitmentPreimage', | ||
name: 'withdrawPreimage', | ||
name: 'unshieldPreimage', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'address', name: 'overrideOutput', type: 'address' }, | ||
], | ||
@@ -1019,2 +1321,137 @@ internalType: 'struct Transaction', | ||
], | ||
name: 'validateTransaction', | ||
outputs: [ | ||
{ internalType: 'bool', name: '', type: 'bool' }, | ||
{ internalType: 'string', name: '', type: 'string' }, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ | ||
components: [ | ||
{ internalType: 'uint256', name: 'x', type: 'uint256' }, | ||
{ internalType: 'uint256', name: 'y', type: 'uint256' }, | ||
], | ||
internalType: 'struct G1Point', | ||
name: 'a', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, | ||
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }, | ||
], | ||
internalType: 'struct G2Point', | ||
name: 'b', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'uint256', name: 'x', type: 'uint256' }, | ||
{ internalType: 'uint256', name: 'y', type: 'uint256' }, | ||
], | ||
internalType: 'struct G1Point', | ||
name: 'c', | ||
type: 'tuple', | ||
}, | ||
], | ||
internalType: 'struct SnarkProof', | ||
name: 'proof', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'bytes32', name: 'merkleRoot', type: 'bytes32' }, | ||
{ internalType: 'bytes32[]', name: 'nullifiers', type: 'bytes32[]' }, | ||
{ internalType: 'bytes32[]', name: 'commitments', type: 'bytes32[]' }, | ||
{ | ||
components: [ | ||
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, | ||
{ internalType: 'uint72', name: 'minGasPrice', type: 'uint72' }, | ||
{ | ||
internalType: 'enum UnshieldType', | ||
name: 'unshield', | ||
type: 'uint8', | ||
}, | ||
{ internalType: 'uint64', name: 'chainID', type: 'uint64' }, | ||
{ | ||
internalType: 'address', | ||
name: 'adaptContract', | ||
type: 'address', | ||
}, | ||
{ internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'bytes32[4]', | ||
name: 'ciphertext', | ||
type: 'bytes32[4]', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedSenderViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes32', | ||
name: 'blindedReceiverViewingKey', | ||
type: 'bytes32', | ||
}, | ||
{ | ||
internalType: 'bytes', | ||
name: 'annotationData', | ||
type: 'bytes', | ||
}, | ||
{ internalType: 'bytes', name: 'memo', type: 'bytes' }, | ||
], | ||
internalType: 'struct CommitmentCiphertext[]', | ||
name: 'commitmentCiphertext', | ||
type: 'tuple[]', | ||
}, | ||
], | ||
internalType: 'struct BoundParams', | ||
name: 'boundParams', | ||
type: 'tuple', | ||
}, | ||
{ | ||
components: [ | ||
{ internalType: 'bytes32', name: 'npk', type: 'bytes32' }, | ||
{ | ||
components: [ | ||
{ | ||
internalType: 'enum TokenType', | ||
name: 'tokenType', | ||
type: 'uint8', | ||
}, | ||
{ | ||
internalType: 'address', | ||
name: 'tokenAddress', | ||
type: 'address', | ||
}, | ||
{ | ||
internalType: 'uint256', | ||
name: 'tokenSubID', | ||
type: 'uint256', | ||
}, | ||
], | ||
internalType: 'struct TokenData', | ||
name: 'token', | ||
type: 'tuple', | ||
}, | ||
{ internalType: 'uint120', name: 'value', type: 'uint120' }, | ||
], | ||
internalType: 'struct CommitmentPreimage', | ||
name: 'unshieldPreimage', | ||
type: 'tuple', | ||
}, | ||
], | ||
internalType: 'struct Transaction', | ||
name: '_transaction', | ||
type: 'tuple', | ||
}, | ||
], | ||
name: 'verify', | ||
@@ -1122,12 +1559,5 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }], | ||
{ | ||
inputs: [], | ||
name: 'withdrawFee', | ||
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
{ | ||
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
name: 'zeros', | ||
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], | ||
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], | ||
stateMutability: 'view', | ||
@@ -1134,0 +1564,0 @@ type: 'function', |
@@ -22,4 +22,4 @@ "use strict"; | ||
implementation: { | ||
address: '0xb8af889809211fb9496de885240593c1a9efd3a9', | ||
deploymentBlock: 17431933, | ||
address: '0x2c4fb0bbb09945f8e5e2100d6cb4b69d994fa293', | ||
deploymentBlock: 23031077, | ||
}, | ||
@@ -26,0 +26,0 @@ proxy: { |
@@ -22,4 +22,4 @@ "use strict"; | ||
implementation: { | ||
address: '0xbcfa4de73afb071c9ff18a20a22f818e657c541a', | ||
deploymentBlock: 14693018, | ||
address: '0x321617e18be9ec7cfe5ab8856de2aabaa478e13b', | ||
deploymentBlock: 15964145, | ||
}, | ||
@@ -26,0 +26,0 @@ proxy: { |
@@ -22,4 +22,4 @@ "use strict"; | ||
implementation: { | ||
address: '0x280e417ab3cafc378f3e6f91148fd8ef766d4c95', | ||
deploymentBlock: 27803264, | ||
address: '0xa375b97b5701bb85b963192072f1699b49c0e9f7', | ||
deploymentBlock: 35570637, | ||
}, | ||
@@ -26,0 +26,0 @@ proxy: { |
{ | ||
"name": "@railgun-community/deployments", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "Railgun deployment addresses and artifacts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139328
4054