Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unfinishedlabs/contracts

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unfinishedlabs/contracts - npm Package Compare versions

Comparing version 0.0.0-1fb655 to 0.0.0-475bf9

abi/ERC165.json

40

abi/Announcer.json

@@ -10,5 +10,11 @@ {

{
"indexed": true,
"internalType": "int16",
"name": "dsnpType",
"type": "int16"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "hash",
"name": "dsnpHash",
"type": "bytes32"

@@ -29,10 +35,22 @@ },

{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"internalType": "string",
"name": "dsnpUri",
"type": "string"
"components": [
{
"internalType": "int16",
"name": "dsnpType",
"type": "int16"
},
{
"internalType": "string",
"name": "uri",
"type": "string"
},
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"internalType": "struct IAnnounce.Announcement[]",
"name": "announcements",
"type": "tuple[]"
}

@@ -46,6 +64,6 @@ ],

],
"bytecode": "0x608060405234801561001057600080fd5b50610159806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80637e54d78f14610030575b600080fd5b6100b16004803603604081101561004657600080fd5b81019080803590602001909291908035906020019064010000000081111561006d57600080fd5b82018360208201111561007f57600080fd5b803590602001918460018302840111640100000000831117156100a157600080fd5b90919293919293905050506100b3565b005b7f05b15401a1cdc64b82f68754db0847c6b6ab8900804fe703c6d30a73e9f00e7b83838360405180848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505094505050505060405180910390a150505056fea2646970667358221220e305ef67f201f2525eec39eb18cf65306753db601f71c7e0025c41c831fefcc764736f6c63430007030033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80637e54d78f14610030575b600080fd5b6100b16004803603604081101561004657600080fd5b81019080803590602001909291908035906020019064010000000081111561006d57600080fd5b82018360208201111561007f57600080fd5b803590602001918460018302840111640100000000831117156100a157600080fd5b90919293919293905050506100b3565b005b7f05b15401a1cdc64b82f68754db0847c6b6ab8900804fe703c6d30a73e9f00e7b83838360405180848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505094505050505060405180910390a150505056fea2646970667358221220e305ef67f201f2525eec39eb18cf65306753db601f71c7e0025c41c831fefcc764736f6c63430007030033",
"bytecode": "0x608060405234801561001057600080fd5b50610526806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ac0c6b0a14610030575b600080fd5b61004a60048036038101906100459190610258565b61004c565b005b60648282905010610092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161008990610374565b60405180910390fd5b60005b828290508110156101f4578282828181106100d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906100eb91906103eb565b60000160208101906100fd919061029d565b60010b7fcbdadaa6a09ef0246e068fac931bf4aee2d931813b150eec3c405d88f6e225a584848481811061015a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200281019061016c91906103eb565b604001358585858181106101a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906101bb91906103eb565b80602001906101ca9190610394565b6040516101d993929190610342565b60405180910390a280806101ec90610450565b915050610095565b505050565b60008083601f84011261020b57600080fd5b8235905067ffffffffffffffff81111561022457600080fd5b60208301915083602082028301111561023c57600080fd5b9250929050565b600081359050610252816104d9565b92915050565b6000806020838503121561026b57600080fd5b600083013567ffffffffffffffff81111561028557600080fd5b610291858286016101f9565b92509250509250929050565b6000602082840312156102af57600080fd5b60006102bd84828501610243565b91505092915050565b6102cf81610420565b82525050565b60006102e1838561040f565b93506102ee838584610441565b6102f7836104c8565b840190509392505050565b600061030f60178361040f565b91507f67617320636f6e73756d7074696f6e20697320686967680000000000000000006000830152602082019050919050565b600060408201905061035760008301866102c6565b818103602083015261036a8184866102d5565b9050949350505050565b6000602082019050818103600083015261038d81610302565b9050919050565b600080833560016020038436030381126103ad57600080fd5b80840192508235915067ffffffffffffffff8211156103cb57600080fd5b6020830192506001820236038313156103e357600080fd5b509250929050565b60008235600160600383360303811261040357600080fd5b80830191505092915050565b600082825260208201905092915050565b6000819050919050565b60008160010b9050919050565b6000819050919050565b82818337600083830152505050565b600061045b82610437565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561048e5761048d610499565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b6104e28161042a565b81146104ed57600080fd5b5056fea2646970667358221220c6b86d5c76230d0fb065592c2eda842b13a0f99ce6c9d6f678e006ba264f2dfc64736f6c63430008000033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ac0c6b0a14610030575b600080fd5b61004a60048036038101906100459190610258565b61004c565b005b60648282905010610092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161008990610374565b60405180910390fd5b60005b828290508110156101f4578282828181106100d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906100eb91906103eb565b60000160208101906100fd919061029d565b60010b7fcbdadaa6a09ef0246e068fac931bf4aee2d931813b150eec3c405d88f6e225a584848481811061015a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200281019061016c91906103eb565b604001358585858181106101a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020028101906101bb91906103eb565b80602001906101ca9190610394565b6040516101d993929190610342565b60405180910390a280806101ec90610450565b915050610095565b505050565b60008083601f84011261020b57600080fd5b8235905067ffffffffffffffff81111561022457600080fd5b60208301915083602082028301111561023c57600080fd5b9250929050565b600081359050610252816104d9565b92915050565b6000806020838503121561026b57600080fd5b600083013567ffffffffffffffff81111561028557600080fd5b610291858286016101f9565b92509250509250929050565b6000602082840312156102af57600080fd5b60006102bd84828501610243565b91505092915050565b6102cf81610420565b82525050565b60006102e1838561040f565b93506102ee838584610441565b6102f7836104c8565b840190509392505050565b600061030f60178361040f565b91507f67617320636f6e73756d7074696f6e20697320686967680000000000000000006000830152602082019050919050565b600060408201905061035760008301866102c6565b818103602083015261036a8184866102d5565b9050949350505050565b6000602082019050818103600083015261038d81610302565b9050919050565b600080833560016020038436030381126103ad57600080fd5b80840192508235915067ffffffffffffffff8211156103cb57600080fd5b6020830192506001820236038313156103e357600080fd5b509250929050565b60008235600160600383360303811261040357600080fd5b80830191505092915050565b600082825260208201905092915050565b6000819050919050565b60008160010b9050919050565b6000819050919050565b82818337600083830152505050565b600061045b82610437565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561048e5761048d610499565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b6104e28161042a565b81146104ed57600080fd5b5056fea2646970667358221220c6b86d5c76230d0fb065592c2eda842b13a0f99ce6c9d6f678e006ba264f2dfc64736f6c63430008000033",
"linkReferences": {},
"deployedLinkReferences": {}
}

@@ -10,5 +10,11 @@ {

{
"indexed": true,
"internalType": "int16",
"name": "dsnpType",
"type": "int16"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "hash",
"name": "dsnpHash",
"type": "bytes32"

@@ -29,10 +35,22 @@ },

{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"internalType": "string",
"name": "dsnpUri",
"type": "string"
"components": [
{
"internalType": "int16",
"name": "dsnpType",
"type": "int16"
},
{
"internalType": "string",
"name": "uri",
"type": "string"
},
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"internalType": "struct IAnnounce.Announcement[]",
"name": "announcements",
"type": "tuple[]"
}

@@ -39,0 +57,0 @@ ],

@@ -16,8 +16,2 @@ {

"indexed": false,
"internalType": "uint256",
"name": "lastCompleted",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",

@@ -32,8 +26,2 @@ "name": "contractAddr",

"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "abi",
"type": "string"
}

@@ -46,28 +34,2 @@ ],

"inputs": [],
"name": "lastCompleted",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lastCompletedMigration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",

@@ -87,15 +49,2 @@ "outputs": [

{
"internalType": "uint256",
"name": "completed",
"type": "uint256"
}
],
"name": "setCompleted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",

@@ -109,7 +58,2 @@ "name": "contractAddr",

"type": "string"
},
{
"internalType": "string",
"name": "abijson",
"type": "string"
}

@@ -123,6 +67,6 @@ ],

],
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001819055506104c0806100686000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806323bd0b991461005c5780633920a20b146101ce5780638da5cb5b146101ec578063fbdbad3c14610220578063fdacd5761461023e575b600080fd5b6101cc6004803603606081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156100af57600080fd5b8201836020820111156100c157600080fd5b803590602001918460018302840111640100000000831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561014657600080fd5b82018360208201111561015857600080fd5b8035906020019184600183028401116401000000008311171561017a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061026c565b005b6101d66103f7565b6040518082815260200191505060405180910390f35b6101f46103fd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610228610421565b6040518082815260200191505060405180910390f35b61026a6004803603602081101561025457600080fd5b810190808035906020019092919050505061042b565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103f2577f57ed10fbec3faed9eb83f2a2105b73a9d375efe032d2b8a50375175ef4d495c0600154848484604051808581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561034d578082015181840152602081019050610332565b50505050905090810190601f16801561037a5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156103b3578082015181840152602081019050610398565b50505050905090810190601f1680156103e05780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15b505050565b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600154905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561048757806001819055505b5056fea26469706673582212209633de6d54865170d3634de4c8504ac886133bae6479ffbf79d609a5c627897f64736f6c63430007030033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806323bd0b991461005c5780633920a20b146101ce5780638da5cb5b146101ec578063fbdbad3c14610220578063fdacd5761461023e575b600080fd5b6101cc6004803603606081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156100af57600080fd5b8201836020820111156100c157600080fd5b803590602001918460018302840111640100000000831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561014657600080fd5b82018360208201111561015857600080fd5b8035906020019184600183028401116401000000008311171561017a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061026c565b005b6101d66103f7565b6040518082815260200191505060405180910390f35b6101f46103fd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610228610421565b6040518082815260200191505060405180910390f35b61026a6004803603602081101561025457600080fd5b810190808035906020019092919050505061042b565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103f2577f57ed10fbec3faed9eb83f2a2105b73a9d375efe032d2b8a50375175ef4d495c0600154848484604051808581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561034d578082015181840152602081019050610332565b50505050905090810190601f16801561037a5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156103b3578082015181840152602081019050610398565b50505050905090810190601f1680156103e05780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15b505050565b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600154905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561048757806001819055505b5056fea26469706673582212209633de6d54865170d3634de4c8504ac886133bae6479ffbf79d609a5c627897f64736f6c63430007030033",
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061040d806100606000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806370a00fc11461003b5780638da5cb5b14610057575b600080fd5b610055600480360381019061005091906101a8565b610075565b005b61005f610107565b60405161006c9190610244565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610103577f17c3a568359af00a3a69dac6f0471b68ef7b38488bcede8c85c5c48e2e75c9c882826040516100fa92919061025f565b60405180910390a15b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061013e610139846102c0565b61028f565b90508281526020810184848401111561015657600080fd5b61016184828561033e565b509392505050565b600081359050610178816103c0565b92915050565b600082601f83011261018f57600080fd5b813561019f84826020860161012b565b91505092915050565b600080604083850312156101bb57600080fd5b60006101c985828601610169565b925050602083013567ffffffffffffffff8111156101e657600080fd5b6101f28582860161017e565b9150509250929050565b6102058161030c565b82525050565b6000610216826102f0565b61022081856102fb565b935061023081856020860161034d565b610239816103af565b840191505092915050565b600060208201905061025960008301846101fc565b92915050565b600060408201905061027460008301856101fc565b8181036020830152610286818461020b565b90509392505050565b6000604051905081810181811067ffffffffffffffff821117156102b6576102b5610380565b5b8060405250919050565b600067ffffffffffffffff8211156102db576102da610380565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006103178261031e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561036b578082015181840152602081019050610350565b8381111561037a576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6103c98161030c565b81146103d457600080fd5b5056fea2646970667358221220d71bddd0de4b361f6f19741273aa29abf8d909a0c567285f9aa14696581a5c6064736f6c63430008000033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806370a00fc11461003b5780638da5cb5b14610057575b600080fd5b610055600480360381019061005091906101a8565b610075565b005b61005f610107565b60405161006c9190610244565b60405180910390f35b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610103577f17c3a568359af00a3a69dac6f0471b68ef7b38488bcede8c85c5c48e2e75c9c882826040516100fa92919061025f565b60405180910390a15b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061013e610139846102c0565b61028f565b90508281526020810184848401111561015657600080fd5b61016184828561033e565b509392505050565b600081359050610178816103c0565b92915050565b600082601f83011261018f57600080fd5b813561019f84826020860161012b565b91505092915050565b600080604083850312156101bb57600080fd5b60006101c985828601610169565b925050602083013567ffffffffffffffff8111156101e657600080fd5b6101f28582860161017e565b9150509250929050565b6102058161030c565b82525050565b6000610216826102f0565b61022081856102fb565b935061023081856020860161034d565b610239816103af565b840191505092915050565b600060208201905061025960008301846101fc565b92915050565b600060408201905061027460008301856101fc565b8181036020830152610286818461020b565b90509392505050565b6000604051905081810181811067ffffffffffffffff821117156102b6576102b5610380565b5b8060405250919050565b600067ffffffffffffffff8211156102db576102da610380565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006103178261031e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561036b578082015181840152602081019050610350565b8381111561037a576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6103c98161030c565b81146103d457600080fd5b5056fea2646970667358221220d71bddd0de4b361f6f19741273aa29abf8d909a0c567285f9aa14696581a5c6064736f6c63430008000033",
"linkReferences": {},
"deployedLinkReferences": {}
}
{
"name": "@unfinishedlabs/contracts",
"description": "Official DSNP Interfaces, Contracts, and ABIs",
"version": "0.0.0-1fb655",
"version": "0.0.0-475bf9",
"files": [

@@ -6,0 +6,0 @@ "**/*.sol",

@@ -33,4 +33,4 @@ # DSNP Contracts

2. Add a postinstall or other step to run typechain:
- `"postinstall": "typechain --target=(ethers-v5|web3-v1|other...) node_modules/@unfinishedlabs/contracts/**/*.json --outDir ./types/typechain"`
- `"build:web3types": "typechain --target=web3-v1 node_modules/@unfinishedlabs/contracts/**/*.json --outDir ./types/typechain"`
- `"postinstall": "typechain --target=(ethers-v5|web3-v1|other...) ./node_modules/@unfinishedlabs/contracts/**/*.json --outDir ./types/typechain"`
- `"build:web3types": "typechain --target=web3-v1 ./node_modules/@unfinishedlabs/contracts/**/*.json --outDir ./types/typechain"`
3. Make sure your `--outDir` is in [tsconfig typeRoots](https://www.typescriptlang.org/tsconfig#typeRoots).

@@ -45,4 +45,4 @@ 4. Use the types:

const getAnnouncerContract = (contractAddress: string) => {
// web3 requires the type cast
return new web3.eth.Contract(announcerABI, contractAddress) as Announcer;
// web3 requires the type casts
return (new web3.eth.Contract(announcerABI, contractAddress) as any) as Announcer;
}

@@ -97,4 +97,4 @@ ```

| LOCAL_NETWORK_PRIVATE_KEY | private key for an account we have on our local network that has eth. |
| TESTNET_ACCOUNT_PRIVATE_KEY | private key for an account we have on our test network that has eth. |
| TESTNET_CHAIN_URL | Url to connect to tesnet |
| STAGENET_ACCOUNT_PRIVATE_KEY | private key for an account we have on our test network that has eth. |
| STAGENET_CHAIN_URL | Url to connect to tesnet |
| VALIDATOR1 | hex prefixed address for validator running on node called liberty-chain |

@@ -101,0 +101,0 @@ | VALIDATOR2 | hex prefixed address for validator running on node called liberty-chain1

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc